:root {
  color-scheme: light;
  --bg: #f4f4f0;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --muted: #5d5d57;
  --line: #e2e2dc;
  --gray: #e9e9e4;
  --brand: #7CDB4C;
  --brand-ink: #16351A;
  --brand-text: #2F6B1F;
  --char: #2a2a2a;
  --on: #fff;
  --side: 232px;
}
@font-face {
  font-family: "MF Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
html { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "MF Inter", Inter, ui-sans-serif, system-ui, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 19;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 max(32px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  transition: border-color 300ms;
}
.top.compact { border-bottom-color: var(--line); }
body:not(.app):not(.studio) main { padding-top: 72px; }
.links button { display: inline-flex; align-items: center; gap: 4px; }
.logo, .links button, .ghost, .solid, .make {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}
.logo { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0; color: var(--ink); font-size: 20px; font-weight: 800; line-height: 28px; letter-spacing: -0.04em; }
.logo img { width: 32px; height: 32px; display: block; }
.icon {
  width: 64px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
}
.links { display: flex; gap: 24px; align-items: center; }
.links > button, .links .products-btn, .links .products-chev { font-family: "MF Inter", Inter, sans-serif; }
.links > button, .products-btn { height: 20px; padding: 0; line-height: 20px; border-radius: 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.products { position: relative; display: flex; align-items: center; gap: 2px; }
.links .products-chev { width: 24px; height: 24px; padding: 0; border-radius: 999px; display: grid; place-items: center; }
.product-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  z-index: 30;
  width: max-content;
  max-width: 26rem;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.links .product-menu button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  white-space: normal;
}
.links .product-menu button:hover { background: var(--bg); }
.product-menu .mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.product-menu b, .product-menu i { display: block; font-style: normal; }
.product-menu b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; font-weight: 600; line-height: 20px; }
.product-menu i { margin-top: 2px; color: var(--muted); font-family: "MF Inter", Inter, sans-serif; font-size: 14px; font-weight: 400; line-height: 19.25px; }
.links button:hover, .ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.account { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.language { position: relative; width: 72px; height: 36px; flex: none; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 160px;
  height: 384px;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "MF Inter", Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}
.lang-menu button > span { display: inline-flex; align-items: center; gap: 8px; }
.lang-menu button > span > span { font-size: 16px; line-height: 1; }
.lang-menu svg { color: var(--muted); flex: none; visibility: hidden; }
.lang-menu button.on svg { visibility: visible; }
.theme { position: relative; width: 64px; height: 36px; flex: none; }
.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 160px;
  margin: 0;
  padding: 4px 0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.theme-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "MF Inter", Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}
.theme-menu svg { color: var(--muted); flex: none; }
.account .ghost, .account .solid { display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px; font-family: "MF Inter", Inter, sans-serif; font-size: 14px; font-weight: 600; line-height: 20px; }
.account .ghost { padding: 0 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.account .solid { padding: 0 20px; border: 0; background: var(--ink); color: var(--bg); }
.home { padding: 0 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--brand-text); font-family: "Plus Jakarta Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--brand); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.hero { display: flex; flex-direction: column; align-items: center; width: min(1080px, 100%); margin: 0 auto; padding: 56px 0 96px; text-align: center; }
.lede { margin: 28px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; }
.lede strong { font-weight: 800; }
.lede em { display: block; font-style: normal; }
.lede .tail { margin-left: 0.14em; }
.lede .spin { display: inline-block; padding: 0 0.16em; background: var(--brand); color: var(--brand-ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 0.32em 100%, 0 calc(100% - 0.32em)); overflow: hidden; vertical-align: baseline; }
.lede .spin span { display: inline-block; white-space: nowrap; transition: opacity 0.26s ease, transform 0.26s ease; }
.lede .spin span.out { opacity: 0; transform: translateY(-0.5em); }
.lede .spin span.in { opacity: 0; transform: translateY(0.5em); transition: none; }
.punch { margin: 22px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; }
.punch em { font-style: normal; box-shadow: inset 0 -0.32em 0 var(--brand); }
.sub { max-width: 36rem; margin: 14px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; text-wrap: balance; }
.hero-form { display: flex; align-items: center; gap: 6px; width: min(36rem, 100%); margin: 32px 0 0; padding: 6px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--surface); box-shadow: 6px 6px 0 var(--brand); text-align: left; }
.hero-samples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.free { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.hero-film { position: relative; display: block; width: calc(100% - 18px); margin: 56px 18px 0 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-film::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--brand); clip-path: polygon(0 0, 100% 0, 100% 100%, 56px 100%, 0 calc(100% - 56px)); }
.cut-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; clip-path: polygon(0 0, 100% 0, 100% 100%, 56px 100%, 0 calc(100% - 56px)); }
.news { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 20px; text-decoration: none; }
.news .pill { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; }
.news .line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news svg { flex: none; color: var(--muted); }
.news:hover { border-color: var(--ink); }
.hero-slot { flex: 1; min-width: 0; }
.hero-slot input { width: 100%; height: 48px; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.make { height: 48px; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.make:hover { filter: brightness(0.95); }
.hero-samples button { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; cursor: pointer; }
.hero-samples button:hover { border-color: var(--ink); }
.cut-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-tag { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(20, 20, 20, 0.78); color: #f4f4f0; font-size: 13px; backdrop-filter: blur(6px); }
.hero-tag b { font-weight: 600; }
.hero-tag i { color: rgba(244, 244, 240, 0.65); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; font-size: 11px; }
.reel-band { width: min(1240px, 100%); margin: 0 auto; padding: 24px 0 0; border-top: 1.5px solid var(--ink); }
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.reel-head h2 { max-width: 40rem; margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.reel-head h2 em { padding: 0 4px; background: var(--brand); color: var(--brand-ink); font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.reel-actions { display: flex; flex: none; gap: 8px; }
.shuffle, .see { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.shuffle { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.shuffle:hover { border-color: var(--ink); }
.see { border: 0; background: var(--ink); color: var(--bg); }
.reel { display: flex; gap: 16px; margin: 0 -32px; padding: 0 32px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 32px; scrollbar-width: thin; }
.reel button { flex: none; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; scroll-snap-align: start; }
.reel button.short { width: 560px; }
.reel button.tall { width: 177px; }
.reel .poster { height: 315px; aspect-ratio: auto; clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.reel button:hover .poster { outline: 3px solid var(--brand); outline-offset: -3px; }
.reel .blurb { padding: 12px 0 0; border: 0; }
.reel .cap, .reel button.tall .meta span { display: none; }
.poster { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray); }
.poster img, .poster video { width: 100%; height: 100%; object-fit: cover; display: block; }
.watch { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(20, 20, 20, 0.6); }
.watch-card { position: relative; background: var(--surface); border-radius: 16px; color: var(--ink); }
.watch-card.tall { width: 735px; height: 836px; padding: 9px 26px 12px 9px; display: grid; grid-template-columns: 437px minmax(0, 1fr); grid-template-rows: 776px 44px; column-gap: 23px; }
.watch-card.wide { width: min(1282px, calc(100vw - 158px)); height: 833px; padding: 9px 9px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 711px 44px 1fr; }
.watch-film { overflow: hidden; background: #000; }
.watch-card.tall .watch-film { grid-area: 1 / 1; height: 776px; border-radius: 12px; }
.watch-card.wide .watch-film { grid-column: 1 / -1; grid-row: 1; height: 711px; border-radius: 10px; }
.watch-film video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.watch-side { min-width: 0; }
.watch-card.tall .watch-side { grid-area: 1 / 2; display: flex; flex-direction: column; align-items: flex-start; padding-top: 16px; }
.watch-card.wide .watch-side { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.watch-side b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 24px; font-weight: 700; line-height: 32px; }
.watch-domain { display: inline-flex; align-items: center; gap: 8px; height: 32px; margin-top: 16px; padding: 0 10px; border-radius: 8px; background: var(--bg); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; line-height: 20px; }
.watch-card.wide .watch-domain { margin-top: 0; }
.watch-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.watch-card.wide .watch-facts { display: none; }
.watch-facts span { display: block; color: var(--muted); font-size: 13px; line-height: 18px; }
.watch-facts strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; line-height: 20px; }
.watch-bar { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--ink); }
.watch-card.tall .watch-bar { grid-area: 2 / 1; }
.watch-card.wide .watch-bar { grid-column: 1 / -1; grid-row: 2; }
.watch-bar button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
#watch-time { flex: none; min-width: 84px; padding: 0 4px; color: var(--muted); font-size: 13px; line-height: 16px; font-variant-numeric: tabular-nums; }
.watch-seek { flex: 1; height: 28px; cursor: pointer; accent-color: var(--brand); }
#watch-make { height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: inline-flex; align-items: center; gap: 8px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; font-weight: 700; line-height: 20px; cursor: pointer; }
.watch-card.tall #watch-make { grid-area: 2 / 2; justify-self: start; margin-top: -8px; }
.watch-card.wide #watch-make { grid-column: 2; grid-row: 3; align-self: center; margin-right: 8px; }
.watch-nav { position: absolute; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.watch-card.tall .prev { left: -64px; top: 394px; }
.watch-card.tall .next, .watch-card.tall .close { right: -63px; }
.watch-card.tall .next { top: 394px; }
.watch-card.tall .close { top: 0; }
.watch-card.wide .prev { left: -64px; top: 340px; }
.watch-card.wide .next, .watch-card.wide .close { right: -63px; }
.watch-card.wide .next { top: 340px; }
.watch-card.wide .close { top: 0; }
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; width: min(1240px, 100%); margin: 0 auto; padding: 120px 0; }
.letter { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 40px 36px 36px; background: var(--char); color: #f4f4f0; clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 40px)); }
.letter .eyebrow { color: var(--brand); }
.letter h2 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.letter p { margin: 0; color: rgba(244, 244, 240, 0.78); font-size: 15.5px; line-height: 1.7; }
.letter .who { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 20px; border-top: 1px solid rgba(244, 244, 240, 0.14); }
.letter .who > div { display: flex; flex-direction: column; gap: 2px; }
.letter .who .mono { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 800; clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.letter .who b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 700; }
.letter .who span { color: rgba(244, 244, 240, 0.55); font-size: 13px; }
.notes-col { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.band-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.band-head h2 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.band-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.band-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.posts { display: flex; flex-direction: column; }
.posts article { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.posts img { width: 128px; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--gray); clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.posts time, .entries time { display: block; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.posts h3 { margin: 6px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.35; }
.posts article[data-post]:hover h3, .entries article[data-view]:hover h3 { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.entries article { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.entries time { padding-top: 3px; }
.entries h3 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.entries p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.morelinks { display: flex; gap: 16px; margin: 12px 0 0; }
.morelinks a { color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; width: min(1240px, 100%); margin: 0 auto; padding: 0 0 96px; }
.faq h2 { position: sticky; top: 96px; align-self: start; margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.faq-list { display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); }
.faq article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 8px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 17px; font-weight: 700; line-height: 1.4; }
.faq p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq .morelinks a { color: var(--ink); font-size: 13px; font-weight: 600; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sources { width: min(1240px, 100%); margin: 0 auto; padding: 0 0 96px; }
.sources div { max-width: 46rem; margin-left: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { margin: 0 0 10px; color: var(--muted); font-family: "Plus Jakarta Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sources p, .sources blockquote { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.sources blockquote { margin-top: 8px; font-style: italic; }
.sources blockquote span { font-style: normal; }
.sources a { color: inherit; text-underline-offset: 4px; }
.foot { margin: 0 -32px; padding: 88px 32px 32px; color: #f4f4f0; background: var(--char); clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%, 0 64px); }
.foot-top { width: min(1240px, 100%); margin: 0 auto 72px; display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.worth-block { max-width: 300px; }
.worth-block img { width: 44px; height: 44px; margin-bottom: 20px; border-radius: 10px; background: #f4f4f0; }
.worth-block p { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: rgba(244, 244, 240, 0.8); }
.worth-block em { color: var(--brand); font-style: normal; font-weight: 800; }
.cols { display: flex; flex-wrap: wrap; gap: 56px; margin: 0; }
.cols b { display: block; margin-bottom: 16px; color: var(--brand); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cols > div > span { display: block; min-height: 24px; margin: 0 0 10px; color: rgba(244, 244, 240, 0.7); font-size: 14px; line-height: 24px; }
.cols > div > span:last-child { margin-bottom: 0; }
.cols > div > span > span,
.cols > div > span > button,
.cols > div > span > a { display: inline; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 20px; cursor: pointer; text-align: left; text-decoration: none; }
.cols > div > span > button:hover,
.cols > div > span > a:hover { color: #f4f4f0; }
.logo-n { color: var(--brand-text); }
.wordmark { position: relative; width: min(1240px, 100%); margin: 0 auto 40px; padding: 40px 0 36px; container-type: inline-size; }
.wm-word { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 20.4cqw; font-weight: 800; letter-spacing: -0.055em; line-height: 0.82; white-space: nowrap; }
.wm-word span { padding: 0 0.08em; margin: 0 -0.08em; color: transparent; -webkit-background-clip: text; background-clip: text; }
.wm-motion { background-image: linear-gradient(180deg, #f4f4f0 30%, rgba(244, 244, 240, 0.38)); }
.wm-need { background-image: linear-gradient(180deg, var(--brand) 30%, rgba(124, 219, 76, 0.38)); }
.wm-n { background-image: linear-gradient(to top right, #f4f4f0 50%, var(--brand) 50%); }
.wm-brace { position: absolute; left: var(--l, 0); width: var(--w, 0); height: 10px; border: 0 solid currentColor; }
.wm-brace.up { top: 12px; border-width: 1.5px 1.5px 0; color: rgba(244, 244, 240, 0.7); }
.wm-brace.down { bottom: 6px; border-width: 0 1.5px 1.5px; color: var(--brand); }
.wm-brace i { position: absolute; padding: 0 8px; background: var(--char); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-style: normal; letter-spacing: 0.18em; line-height: 1; text-transform: uppercase; }
.wm-brace.up i { left: 12px; top: -7px; }
.wm-brace.down i { right: 12px; bottom: -6px; }
.copy { width: min(1240px, 100%); margin: 0 auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(244, 244, 240, 0.12); }
.copy p { margin: 0; font-size: 12px; line-height: 16px; color: rgba(244, 244, 240, 0.5); }
.copy-side { display: flex; align-items: center; gap: 20px; }
.foot-lang { height: 24px; display: flex; align-items: flex-start; }
.copy .lang { display: inline-flex; align-items: center; gap: 6px; height: 20px; border: 0; background: transparent; padding: 0; font-size: 14px; line-height: 20px; color: rgba(244, 244, 240, 0.7); cursor: pointer; }
.copy .flag { font-size: 16px; line-height: 1; }
.copy-side img { width: 20px; height: 20px; border-radius: 5px; background: #f4f4f0; opacity: 0.6; display: block; }
.poster i { position: absolute; left: 10px; top: 10px; height: 20px; display: flex; align-items: center; padding: 0 7px; border-radius: 5px; background: rgba(20, 20, 20, 0.72); color: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; font-size: 11px; line-height: 1; }
.poster .play { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--brand); color: var(--brand-ink); opacity: 0; transition: opacity 0.25s ease; }
.poster .play svg { display: block; }
.reel button:hover .play, .reel button:focus-visible .play, .gallery button:hover .play { opacity: 1; }
.blurb { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; }
.reel b, .gallery b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 700; line-height: 22px; }
.meta span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 11px; line-height: 16.5px; }
.cap { margin: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 20px; }
button, input, textarea, select { font: inherit; color: inherit; }
.poster i, .poster em, .solid { color: white; }
.shell { min-height: 100%; display: flex; }
.side { width: var(--side); flex: none; display: flex; flex-direction: column; padding: 8px 12px 16px; }
.brand { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 8px; font-weight: 680; letter-spacing: -0.04em; }
.nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 2px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.nav.on { color: var(--ink); }
.ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.nav.on .ico { background: var(--ink); color: var(--on); }
.badge {
  margin-left: auto;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  padding: 4px 6px;
}
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px; color: var(--muted); font-size: 13px; }
.avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--gray); }
.canvas {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 10px 10px 10px 0;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 16px;
  background: var(--surface);
  overflow: auto;
}
.wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 280px at 78% 8%, #7CDB4C33, transparent 70%),
    radial-gradient(520px 360px at 50% 42%, #ffffff, transparent 72%);
}
.view { position: relative; min-height: 100%; }
.stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 16vh 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stage > h1, .panel h1 { margin: 0 0 28px; font-size: 30px; font-weight: 640; letter-spacing: -0.04em; text-align: center; }
.modes { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--gray) 80%, white); }
.mode { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.mode.on { background: white; color: var(--ink); box-shadow: 0 1px 2px rgba(40, 41, 43, 0.08); }
.hint, .lead { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.composer {
  width: 100%;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 5;
  overflow: visible;
}
.slot { display: block; }
.slot[hidden] { display: none; }
.slot input, .slot textarea { width: 100%; border: 0; background: transparent; padding: 18px 20px 8px; outline: none; resize: none; }
.slot input { height: 58px; }
.slot textarea { min-height: 96px; line-height: 1.45; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 12px; border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip, .seg {
  border: 0;
  background: color-mix(in srgb, var(--gray) 70%, white);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink);
}
.chip select { border: 0; background: transparent; padding: 0; outline: none; }
.images-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--gray) 70%, white); color: var(--ink); font-size: 12px; cursor: pointer; }
.images-btn b { font-weight: 600; font-variant-numeric: tabular-nums; }
.images-btn b[hidden] { display: none; }
.uploads { padding: 4px 12px 12px; }
.uploads[hidden] { display: none; }
.upload-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.upload { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; row-gap: 4px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf8; position: relative; }
.upload img { grid-row: 1 / span 2; width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: #eee; }
.upload-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 18px; }
.upload-use { grid-column: 2 / span 2; display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: color-mix(in srgb, var(--gray) 70%, white); justify-self: start; }
.upload-use button { border: 0; background: transparent; border-radius: 999px; padding: 2px 9px; font-size: 11px; color: var(--muted, #666); cursor: pointer; }
.upload-use button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.upload-drop { position: absolute; top: 4px; right: 6px; width: 20px; height: 20px; border: 0; background: transparent; font-size: 16px; line-height: 1; color: var(--muted, #666); cursor: pointer; }
.upload-hint { margin: 8px 2px 0; font-size: 12px; color: var(--muted, #666); }
.upload-error { margin: 6px 2px 0; font-size: 12px; color: #b42318; }
.upload-error[hidden] { display: none; }
.model { position: relative; z-index: 6; }
.model > button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fafaf8;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.model-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: 320px;
  max-height: min(46vh, 360px);
  overflow: auto;
  padding: 6px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px -26px #00000059;
}
.model-menu button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.model-menu button.on, .model-menu button:hover { background: #f4f5f3; }
.model-menu b { font-size: 13px; font-weight: 600; }
.model-menu em { grid-column: 1 / -1; color: #5c6058; font-size: 12px; font-style: normal; }
.model-menu .rate { color: #5c6058; font-size: 12px; font-variant-numeric: tabular-nums; }
.model-menu .grp { margin: 6px 8px 2px; color: #5c6058; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.seg { margin: 0; padding: 0; display: flex; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 6px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: white; color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.send { width: 40px; height: 40px; flex: none; border: 0; border-radius: 999px; background: var(--ink); color: var(--on); display: grid; place-items: center; cursor: pointer; }
.send:disabled { opacity: 0.45; cursor: progress; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.samples button, .text-btn, .card {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  cursor: pointer;
}
.app-nav { display: none; }
body.app { background: var(--bg); }
body.app .top, body.app .foot { display: none; }
body.app .app-nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 20; display: flex; flex-direction: column; width: 240px; background: var(--bg); }
.app-nav-head { display: flex; align-items: center; height: 64px; padding: 0 20px; }
.app-brand { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); cursor: pointer; }
.app-brand img { width: 24px; height: 24px; border-radius: 6px; }
.app-nav nav { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 16px 12px 8px; }
.app-nav nav button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.app-nav nav button:hover { background: rgba(40, 41, 43, 0.05); color: var(--ink); }
.app-nav nav button.on { color: var(--ink); }
.nav-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; }
.app-nav nav button.on .nav-ico { background: var(--ink); color: #f6f6f4; }
.app-nav nav em { position: absolute; top: 4px; right: 8px; padding: 2px 6px 2px 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-style: normal; font-size: 10px; font-weight: 600; line-height: 1; }
.app-user { display: flex; align-items: center; gap: 12px; margin: 12px; padding: 8px; }
button.app-user { border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.app-user > span:last-child { min-width: 0; }
.app-user b, .app-user i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 148px; }
.account .who {
  display: inline-flex;
  align-items: center;
  max-width: 9rem;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(40, 41, 43, 0.15);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.account .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-form { display: grid; gap: 12px; max-width: 360px; margin-top: 8px; }
.account-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.account-form input, .account-form textarea { border: 1px solid var(--line); border-radius: 12px; background: white; font: inherit; }
.account-form input { height: 44px; padding: 0 12px; }
.account-form textarea { padding: 10px 12px; resize: vertical; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan.on { border-color: var(--ink); }
.plan h2 { margin: 0; font-size: 15px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.plan .price b { font-size: 30px; letter-spacing: -0.02em; }
.plan .price span, .plan .credits { font-size: 13px; color: var(--muted); }
.plan .credits { margin: 0; }
.plan ul { display: grid; align-content: start; gap: 6px; flex: 1; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }
.plan li { padding-left: 18px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--muted); }
.plan button { height: 38px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.plan button:hover:not(:disabled) { border-color: var(--ink); }
.plan.on button { background: var(--ink); border-color: var(--ink); color: var(--surface); cursor: default; }
.credit-head { margin: 8px 0 10px; font-size: 15px; }
.credit-cost { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.credit-cost div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.credit-cost dt { font-size: 12px; color: var(--muted); }
.credit-cost dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; }
.revise-chip { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-form .solid, #account-console, #logout {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-top: 4px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #f6f6f4;
  cursor: pointer;
}
.account-error { margin: 0; color: #c62828; font-size: 14px; }
.avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: #f6f6f4; font-size: 13px; font-weight: 600; }
.app-user b { display: block; font-size: 13px; font-weight: 600; }
.app-user i { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--muted); }
body.app main { margin-left: 240px; min-height: 100dvh; padding: 10px 10px 10px 0; }
body.app .view:not([hidden]) { min-height: calc(100dvh - 20px); border: 1px solid rgba(224, 224, 224, 0.7); border-radius: 16px; background: #fafaf8; }
body.studio { overflow: hidden; background: #f4f5f3; background-image: none; }
body.studio .top { display: none; }
body.studio main { height: 100dvh; }
.workspace { display: flex; height: 100dvh; background: #f4f5f3; color: var(--ink); }
.history { width: 432px; flex: none; display: flex; flex-direction: column; min-height: 0; }
.history-top { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; }
.history-top button { width: 28px; height: 28px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.history-top button:hover { background: var(--bg); color: var(--ink); }
.history-top b { min-width: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; font-weight: 700; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid rgba(224, 224, 224, 0.5); background: rgba(255, 255, 255, 0.06); color: rgba(40, 41, 43, 0.7); }
.history-bar span { font-size: 12px; font-weight: 500; color: var(--ink); }
.history-bar em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted); }
.history-feed { flex: 1; min-height: 0; overflow: auto; }
.msg-user { display: flex; justify-content: flex-end; padding: 10px 16px; }
.msg-user p { max-width: 88%; margin: 0; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 16px 6px 16px 16px; background: rgba(255, 255, 255, 0.6); padding: 10px 14px; font-size: 13px; line-height: 1.625; color: var(--ink); box-shadow: 0 6px 20px -14px rgba(0, 0, 0, 0.14); }
.msg-assistant { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px 18px; }
.msg-assistant img { position: relative; z-index: 1; width: 24px; height: 24px; margin-top: 2px; flex: none; border-radius: 8px; box-shadow: 0 18px 44px -26px #00000059; }
.msg-assistant .stem { position: absolute; top: 32px; bottom: -12px; left: 27px; width: 1px; background: linear-gradient(#e0e0e0, transparent); }
.msg-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.msg-body > p { margin: 0; font-size: 14px; line-height: 1.625; color: rgba(40, 41, 43, 0.85); white-space: pre-wrap; }
.pipe { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 14px; background: rgba(255, 255, 255, 0.5); box-shadow: 0 18px 44px -26px #00000059; }
.pipe-head { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; font-size: 12px; font-weight: 500; color: rgba(40, 41, 43, 0.85); }
.pipe-head b { min-width: 0; flex: 1; font-weight: 500; }
.pipe-head .spin { width: 14px; height: 14px; flex: none; border: 1.5px solid #1565c0; border-right-color: transparent; border-radius: 999px; animation: spin 0.8s linear infinite; }
.pipe-head .ok { width: 14px; height: 14px; flex: none; border-radius: 999px; background: #2e7d32; }
.pipe ul { margin: 0; padding: 8px 12px 10px; border-top: 1px solid rgba(255, 255, 255, 0.7); list-style: none; }
.pipe li { display: flex; gap: 8px; padding: 4px 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.pipe li.now { color: var(--ink); }
.chat-sections { margin: 0; padding: 0; list-style: none; }
.chat-sections li { display: flex; gap: 8px; padding: 3px 0; font-size: 13px; line-height: 1.45; color: rgba(40, 41, 43, 0.85); }
.chat-sections .idx { width: 18px; flex: none; font-family: "Plus Jakarta Sans", sans-serif; font-style: normal; color: var(--muted); }
.composer-dock { flex: none; position: relative; z-index: 2; border-top: 1px solid rgba(224, 224, 224, 0.5); background: rgba(250, 250, 248, 0.55); padding: 8px 10px 10px; backdrop-filter: blur(24px); }
.composer-box { border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 16px; background: rgba(255, 255, 255, 0.6); box-shadow: 0 18px 44px -26px #00000059; }
.composer-box textarea { display: block; width: 100%; min-height: 96px; resize: none; border: 0; background: transparent; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--ink); outline: none; }
.composer-box textarea:disabled { opacity: 0.6; }
.composer-box textarea::placeholder { color: var(--muted); }
.composer-tools { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 8px; }
.plus-wrap { display: inline-flex; }
.plus, .send-up { width: 32px; height: 32px; padding: 0; border-radius: 999px; display: grid; place-items: center; }
.plus { border: 1px solid rgba(224, 224, 224, 0.7); background: transparent; color: var(--muted); }
.send-up { border: 0; background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.plus:disabled, .send-up:disabled { opacity: 0.35; cursor: default; }
.studio-canvas { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 10px 10px 10px 0; border: 1px solid rgba(224, 224, 224, 0.7); border-radius: 16px; overflow: hidden; background: radial-gradient(520px 280px at 88% 0%, rgba(124, 219, 76, 0.14), transparent 70%), var(--bg); }
.canvas-bar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 56px; padding: 0 20px; border-bottom: 1px solid rgba(224, 224, 224, 0.5); background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(24px); }
.canvas-title { display: flex; align-items: center; gap: 12px; }
.canvas-title > span:first-child { font-size: 13px; font-weight: 500; }
.run-badge { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 10px; border-radius: 6px; font-size: 11px; font-weight: 500; }
.run-badge i { width: 6px; height: 6px; border-radius: 999px; }
.run-badge.rendering { background: rgba(196, 127, 0, 0.08); color: #c47f00; }
.run-badge.rendering i { width: 10px; height: 10px; border: 1.5px solid #c47f00; border-right-color: transparent; border-radius: 999px; animation: spin 0.8s linear infinite; }
.run-badge.ready { background: rgba(46, 125, 50, 0.1); color: #2e7d32; }
.run-badge.ready i { background: #2e7d32; }
.run-badge.failed { background: rgba(198, 40, 40, 0.08); color: #c62828; }
.run-badge.failed i { background: #c62828; }
.canvas-actions { display: flex; align-items: center; gap: 8px; }
.glass-btn, .export-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 16px; font-size: 12px; font-weight: 500; text-decoration: none; }
.glass-btn { border: 1px solid rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.55); color: var(--ink); box-shadow: 0 18px 44px -26px #00000059; cursor: pointer; font: inherit; }
.export { position: relative; }
.export-btn { border: 0; background: var(--ink); color: #f6f6f4; box-shadow: 0 18px 44px -26px #00000059; cursor: pointer; font: inherit; }
.export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
}
.export-menu button {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.export-menu button:hover { background: var(--gray); }
.versions, .share { position: relative; }
.versions-menu, .share-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 300px;
  max-height: 60vh;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
}
.version-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; }
.version-row.on { background: var(--gray); }
.version-row .version-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.version-row b { font-size: 13px; font-weight: 600; }
.version-row em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; font-style: normal; }
.version-row button, .share-row button { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.version-row button:hover, .share-row button:hover { background: var(--gray); }
.share-panel { padding: 10px; display: grid; gap: 8px; }
#share-url { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 12px; }
.share-row { display: flex; gap: 8px; justify-content: flex-end; }
.film-dock .speed-toggle { width: auto; min-width: 44px; padding: 0 8px; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .film-dock .speed-toggle { display: none; } }
.export-menu b { font-size: 13px; font-weight: 600; }
.export-menu em { color: var(--muted); font-size: 12px; font-style: normal; }
.glass-btn:disabled, .export-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.theme-menu button.on { background: var(--gray); }
.canvas-body { flex: 1; min-height: 0; overflow: auto; }
.run-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: min(922px, calc(100% - 48px)); margin: 34px auto 0; }
.run-banner[hidden] { display: none; }
.run-banner p { margin: 8px 0 0; font-size: 16px; line-height: 20px; }
#cancel-run { height: 38px; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 16px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; }
.progress-row { display: flex; align-items: flex-start; gap: 12px; width: min(768px, calc(100% - 32px)); margin: 40px auto 0; }
.progress-mark { width: 32px; height: 32px; margin-top: 2px; flex: none; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.progress-mark svg { display: block; }
.progress-row.ready .progress-mark { background: #2e7d32; }
.progress-row.ready .progress-mark i { border: 0; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); animation: none; }
.progress-row.failed .progress-mark { background: #c62828; }
.progress-row.failed .progress-mark i { border: 0; width: 12px; height: 12px; background: linear-gradient(#fff, #fff) center/12px 2px no-repeat, linear-gradient(#fff, #fff) center/2px 12px no-repeat; transform: rotate(45deg); animation: none; }
.progress-card { min-width: 0; flex: 1; padding: 28px; border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 28px 28px 28px 8px; background: rgba(255, 255, 255, 0.6); box-shadow: 0 18px 44px -26px #00000059; backdrop-filter: blur(24px); }
.progress-kicker { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.progress-count { display: inline-flex; align-items: baseline; gap: 10px; color: #c47f00; }
.progress-count b { font-family: "Plus Jakarta Sans", sans-serif; font-style: normal; font-weight: 600; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.progress-count.word b { font-size: 16px; }
.progress-count em { font-family: "Plus Jakarta Sans", sans-serif; font-style: normal; font-weight: 600; font-size: 11px; color: rgba(92, 96, 88, 0.9); }
.progress-flag { display: inline-flex; align-items: center; gap: 6px; color: rgba(92, 96, 88, 0.6); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.progress-flag i { width: 6px; height: 6px; border-radius: 999px; background: #c47f00; animation: pulse 1.2s ease-in-out infinite; }
.progress-row.ready .progress-count, .progress-row.ready .progress-flag { color: #2e7d32; }
.progress-row.ready .progress-flag i { background: #2e7d32; animation: none; }
.progress-row.failed .progress-count, .progress-row.failed .progress-flag { color: #c62828; }
.progress-row.failed .progress-flag i { background: #c62828; animation: none; }
.progress-card h2 { margin: 10px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.progress-card > p { margin: 4px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-style: normal; font-weight: 600; font-size: 14px; line-height: 1.5; color: var(--muted); }
.step-rail { margin-top: 20px; }
.step-bars { display: flex; gap: 6px; }
.step-bars i { flex: 1; height: 3px; border-radius: 999px; background: #e0e0e0; }
.step-bars i.done { background: var(--ink); }
.step-bars i.now { background: linear-gradient(90deg, #c47f00, #f0c27a, #c47f00); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.step-names { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
.step-names span { text-align: center; font-size: 10px; line-height: 14px; color: rgba(92, 96, 88, 0.55); }
.step-names span.done, .step-names span.now { color: var(--ink); }
.stage-note, .sections, .polish { margin-top: 20px; }
.stage-note header, .sections-head, .polish-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.thinking { display: inline-flex; align-items: center; gap: 4px; letter-spacing: 0.14em; }
.thinking i, .progress-flag i { width: 6px; height: 6px; border-radius: 999px; background: #c47f00; animation: pulse 1.2s ease-in-out infinite; }
.think-box { border: 1px solid rgba(224, 224, 224, 0.6); border-radius: 8px; background: rgba(250, 250, 248, 0.5); padding: 12px; }
.bones { display: flex; flex-direction: column; gap: 8px; }
.bones i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(224, 224, 224, 0.3), rgba(224, 224, 224, 0.8), rgba(224, 224, 224, 0.3)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.think-box p { margin: 10px 0 0; height: 16px; overflow: hidden; font-family: Inter, "MF Inter", sans-serif; font-style: normal; font-weight: 400; font-size: 11px; line-height: 16px; color: rgba(92, 96, 88, 0.8); }
.swatch-row { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.swatches { display: inline-flex; gap: 2px; }
.swatches i { width: 10px; height: 10px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
.bpm { font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(92, 96, 88, 0.7); font-variant-numeric: tabular-nums; }
.ready-count { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.scale { height: 3px; margin-bottom: 8px; overflow: hidden; border-radius: 999px; background: rgba(224, 224, 224, 0.6); }
.scale i { display: block; height: 100%; background: #c47f00; transform-origin: left center; }
.sections ul, .polish ul { margin: 0; padding: 0; list-style: none; }
.sections li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; font-size: 12px; }
.sections .idx { width: 16px; flex: none; text-align: center; font-family: "Plus Jakarta Sans", sans-serif; font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mark-state { width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.mark-state.active { background: rgba(21, 101, 192, 0.12); color: #1565c0; }
.mark-state.active svg { animation: spin 0.8s linear infinite; }
.mark-state.ready { background: rgba(46, 125, 50, 0.12); color: #2e7d32; }
.sections .chapter { flex: none; font-weight: 500; color: rgba(40, 41, 43, 0.6); }
.sections li.ready .chapter { color: rgba(40, 41, 43, 0.85); }
.sections .idea { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.sections .dur { margin-left: auto; flex: none; font-size: 10px; color: rgba(92, 96, 88, 0.7); font-variant-numeric: tabular-nums; }
.polish li { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px; border: 1px solid rgba(224, 224, 224, 0.3); border-radius: 6px; background: rgba(250, 250, 248, 0.2); font-size: 12px; color: rgba(92, 96, 88, 0.5); }
.polish li.now { border-color: rgba(196, 127, 0, 0.3); background: rgba(196, 127, 0, 0.05); color: var(--ink); }
.polish li.done { border-color: rgba(224, 224, 224, 0.5); background: rgba(250, 250, 248, 0.4); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(92, 96, 88, 0.3); }
.polish li b { margin-left: auto; font-weight: 500; }
.retry-btn { margin-top: 12px; height: 32px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--ink); color: #f6f6f4; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.retry-btn:disabled { opacity: 0.5; cursor: default; }
#work-error { margin-top: 12px; padding: 12px; border: 1px solid rgba(198, 40, 40, 0.3); border-radius: 8px; background: rgba(198, 40, 40, 0.08); color: rgba(198, 40, 40, 0.9); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; font-weight: 400; font-size: 11px; line-height: 1.5; }
.canvas-body figure { width: min(960px, calc(100% - 40px)); margin: 16px auto; }
.canvas-body figure.portrait { width: min(420px, calc(100% - 40px)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes shimmer { to { background-position: -200% 0; } }
figure { margin: 0; }
.film {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  background: #000;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.film video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #000;
  border-radius: 0;
}
.film.portrait video { aspect-ratio: 9 / 16; width: auto; height: auto; max-height: min(72vh, 820px); }
.film.square video { aspect-ratio: 1 / 1; width: auto; height: auto; max-height: min(72vh, 820px); }
.film:fullscreen,
.film:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #000;
}
.film:fullscreen video,
.film:-webkit-full-screen video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
}
.sound-tap { position: absolute; top: 42%; right: 16px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; line-height: 28px; cursor: pointer; }
.sound-tap[hidden] { display: none; }
.film-bar { position: absolute; right: 0; bottom: 0; left: 0; padding: 48px 12px 12px; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35), transparent); }
.film-dock { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); color: #fff; }
#film-time { flex: none; min-width: 88px; font-size: 13px; font-variant-numeric: tabular-nums; }
.seek { flex: 1; height: 36px; margin: 0; accent-color: #fff; cursor: pointer; }
.film-dock button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.film-dock button:hover { background: rgba(255, 255, 255, 0.12); }
figcaption { color: var(--muted); margin-top: 8px; font-size: 13px; }
.text-btn { margin-top: 14px; }
.panel { max-width: 760px; margin: 0 auto; padding: 12vh 24px 64px; }
.panel h1, .panel .lead { text-align: left; }
.account-note { margin: -8px auto 22px; max-width: 36rem; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.45; }
.notes { display: grid; gap: 12px; margin-top: 22px; }
.notes article { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.notes time { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.notes h2 { margin: 6px 0 8px; font-size: 16px; }
.notes p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.job-settings-wrap { position: relative; }
.job-settings {
  position: fixed;
  z-index: 40;
  width: 280px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
  text-align: left;
  color: var(--ink);
}
.job-settings h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.job-settings dl { margin: 0; display: grid; gap: 8px; }
.job-settings dt { color: var(--muted); font-size: 11px; }
.job-settings dd { margin: 2px 0 0; font-size: 14px; }
.job-settings .note { margin: 10px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.job-settings .theme-row { display: flex; gap: 4px; }
.job-settings .theme-row button { flex: 1; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; }
.job-settings .theme-row button.on { background: var(--ink); color: var(--on); }
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1e1e1e;
  --ink: #f2f2ee;
  --muted: #a9a9a1;
  --line: #333330;
  --gray: #2a2a28;
  --brand-text: #7CDB4C;
  --char: #0b0b0b;
  --on: #141414;
}
html[data-theme="dark"] .icon,
html[data-theme="dark"] .product-menu,
html[data-theme="dark"] .lang-menu,
html[data-theme="dark"] .theme-menu { border-color: var(--line); background: var(--surface); }
html[data-theme="dark"] body.app,
html[data-theme="dark"] body.app .app-nav,
html[data-theme="dark"] body.studio,
html[data-theme="dark"] .workspace { background: var(--bg); }
html[data-theme="dark"] body.app .view:not([hidden]) { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .studio-canvas { background: var(--bg); border-color: var(--line); }
html[data-theme="dark"] .canvas-bar,
html[data-theme="dark"] .composer-dock,
html[data-theme="dark"] .composer-box,
html[data-theme="dark"] .glass-btn { background: color-mix(in srgb, var(--surface) 92%, transparent); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .mode.on,
html[data-theme="dark"] .seg input:checked + span,
html[data-theme="dark"] .watch-card { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .account-form input, html[data-theme="dark"] .account-form textarea { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .account .solid,
html[data-theme="dark"] .app-nav nav button.on .nav-ico,
html[data-theme="dark"] .avatar { color: var(--on); }
html[data-theme="dark"] .letter { background: var(--surface); }
html[data-theme="dark"] .msg-body > p,
html[data-theme="dark"] .history-bar { color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.pair article, .card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: color-mix(in srgb, white 72%, transparent); text-align: left; }
.pair h2 { margin: 0 0 8px; font-size: 16px; }
.pair p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cards { display: grid; gap: 10px; margin-top: 18px; }
.card { width: 100%; border-radius: 16px; display: flex; justify-content: space-between; gap: 12px; }
.card b { font-weight: 640; }
.card span { color: var(--muted); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.posts article[data-post],
.entries article[data-view] { cursor: pointer; }
.posts article[data-post]:hover { translate: 0 -2px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery button {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.gallery .poster { aspect-ratio: 16 / 9; }
.post-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 16px; display: block; }
.post time { display: block; margin: 16px 0 0; color: var(--muted); font-size: 12px; letter-spacing: 0.05em; }
@media (max-width: 1100px) {
  .top, .top.compact {
    height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 40px 28px;
    align-items: center;
    gap: 6px 12px;
    padding: 10px 16px 8px;
  }
  .logo { grid-column: 1; grid-row: 1; min-width: 0; }
  .account { grid-column: 2; grid-row: 1; margin-left: 0; }
  .links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .links::-webkit-scrollbar { display: none; }
  .links > button, .products-btn { flex: none; }
  .product-menu { left: 0; translate: 0; max-width: calc(100vw - 32px); }
  body:not(.app):not(.studio) main { padding-top: 96px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .duo, .faq { grid-template-columns: 1fr; gap: 40px; }
  .duo { padding: 88px 0; }
  .reel-head { flex-direction: column; align-items: flex-start; }
  .foot-top { flex-direction: column; gap: 40px; margin-bottom: 48px; }
  .cols { gap: 28px 32px; }
  .cols > div { flex: 1 1 140px; min-width: 0; }
  .copy { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 860px) {
  .side { display: none; }
  .canvas { margin: 0; border: 0; border-radius: 0; }
  .workspace { flex-direction: column; height: auto; min-height: 100dvh; }
  .history { width: 100%; height: 42dvh; }
  .studio-canvas { margin: 0; border-radius: 0; }
  .canvas-bar { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 12px; }
  .canvas-actions { flex-wrap: wrap; }
  .pair { grid-template-columns: 1fr; }
  .stage { padding-top: 8vh; }
  body.app .app-nav {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 56px;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid rgba(224, 224, 224, 0.7);
  }
  body.app .app-nav-head { width: auto; height: 56px; padding: 0 8px 0 12px; flex: none; }
  body.app .app-brand { font-size: 0; gap: 0; }
  body.app .app-brand img { width: 28px; height: 28px; }
  body.app .app-nav nav {
    flex-direction: row;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 8px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.app .app-nav nav::-webkit-scrollbar { display: none; }
  body.app .app-nav nav button { width: auto; flex: none; gap: 4px; padding: 4px 6px; font-size: 13px; }
  body.app .nav-ico { width: 28px; height: 28px; }
  body.app .app-nav nav em { display: none; }
  body.app .app-user { display: none; }
  body.app main { margin-left: 0; padding: 56px 0 0; }
  body.app .view:not([hidden]) {
    min-height: calc(100dvh - 56px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .watch { padding: 12px; }
  .watch-card.tall, .watch-card.wide {
    width: min(100%, calc(100vw - 24px));
    height: auto;
    max-height: calc(100dvh - 24px);
    padding: 8px;
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .watch-card.tall .watch-film,
  .watch-card.wide .watch-film {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
  .watch-card.tall .watch-film { aspect-ratio: 9 / 14; max-height: 62dvh; }
  .watch-card.tall .watch-side,
  .watch-card.wide .watch-side { padding: 12px 4px 0; }
  .watch-card.tall #watch-make,
  .watch-card.wide #watch-make { margin: 8px 0; }
  .watch-card.tall .prev, .watch-card.wide .prev { left: 16px; top: 34%; bottom: auto; }
  .watch-card.tall .next, .watch-card.wide .next { right: 16px; top: 34%; bottom: auto; }
  .watch-card.tall .close, .watch-card.wide .close { top: 12px; right: 12px; }
}
@media (max-width: 720px) {
  .home { padding-left: 16px; padding-right: 16px; }
  .logo { gap: 8px; font-size: 17px; }
  .logo img { width: 26px; height: 26px; }
  .language { width: 40px; }
  .icon { width: 40px; }
  .account { gap: 8px; }
  .account .ghost { display: none; }
  .account .who { display: none; }
  .account .solid { padding: 0 14px; }
  .links { gap: 8px; }
  .links > button, .products-btn { font-size: 13px; }
  .hero { padding: 36px 0 64px; }
  .lede { font-size: clamp(2.1rem, 10.5vw, 2.8rem); }
  .punch { font-size: 1.15rem; }
  .sub { font-size: 1rem; }
  .hero-form { flex-direction: column; align-items: stretch; box-shadow: 4px 4px 0 var(--brand); }
  .make { justify-content: center; }
  .hero-film::before { inset: 10px -10px -10px 10px; }
  .hero-film { width: calc(100% - 10px); margin: 40px 10px 0 0; }
  .reel { margin: 0 -16px; padding: 0 16px 12px; scroll-padding: 0 16px; }
  .reel button.short { width: 82vw; }
  .reel button.tall { width: calc(82vw * 81 / 256); }
  .reel .poster { height: calc(82vw * 9 / 16); }
  .reel button.tall .poster { height: calc(82vw * 9 / 16); }
  .letter { padding: 32px 22px 28px; }
  .letter h2 { font-size: 26px; }
  .posts article { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .posts img { width: 96px; }
  .entries article { grid-template-columns: 1fr; gap: 6px; }
  .faq h2 { font-size: 28px; }
  .wordmark { padding: 26px 0; }
  .wm-brace i { font-size: 10px; letter-spacing: 0.12em; }
  .foot { margin: 0 -16px; padding: 72px 20px 28px; clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%, 0 40px); }
  .panel { padding: 48px 16px 64px; }
  .post-cover { max-height: 220px; border-radius: 12px; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Film mode (spec 042) */
.film-mode { max-width: 920px; }
.film-provider { margin: 6px 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.film-provider[data-state="on"] { border-color: var(--brand); color: var(--ink); box-shadow: inset 4px 0 0 var(--brand); }
.film-provider[data-state="off"] { border-color: #f0b9a8; color: #8a2d12; background: #fff4f0; }
.film-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin: 8px 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.film-form .wide { grid-column: 1 / -1; }
/* Website | Prompt uses Motion's .modes / .mode tabs; Film only aligns them left (spec 043). */
.film-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.film-modes { width: fit-content; }
.film-hint { margin: 0; text-align: left; font-size: 13px; }
.film-form label, .film-field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; align-content: start; }
.film-form input[type="url"], .film-form textarea, .film-form select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.film-form input[type="url"], .film-form select { height: 42px; padding: 0 12px; }
.film-form textarea { padding: 10px 12px; resize: vertical; }
.film-length { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.film-length label { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.film-length output { color: var(--ink); font-weight: 650; min-width: 3.5em; }
.film-length input[type="range"] { width: 100%; accent-color: var(--brand-text); }
.film-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.film-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.film-chips button.on { background: var(--char); color: var(--on); border-color: var(--char); }
.film-chips button:disabled { opacity: 0.4; cursor: not-allowed; }
.film-switches { display: flex; flex-wrap: wrap; gap: 18px; }
.film-switches label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.film-note { margin: 0; color: var(--muted); font-size: 12.5px; }
#film-plan, #film-render { display: inline-flex; align-items: center; justify-content: center; justify-self: start; height: 44px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--char); color: var(--on); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
#film-plan:disabled, #film-render:disabled { opacity: 0.45; cursor: not-allowed; }
.film-board { margin: 0 0 28px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.film-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.film-head h2 { margin: 0; font-size: 20px; }
.film-meta { color: var(--muted); font-size: 13px; }
.film-stage { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; }
.film-stage .spin { width: 14px; height: 14px; border: 1.5px solid var(--brand-text); border-right-color: transparent; border-radius: 999px; animation: spin 0.8s linear infinite; }
.film-stage[data-status="ready"] { color: var(--brand-text); font-weight: 600; }
.film-player { margin: 12px 0; border-radius: 14px; overflow: hidden; background: #000; }
.film-player video { display: block; width: 100%; max-height: 70vh; background: #000; }
.film-player.vertical { max-width: 360px; }
.film-versions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.film-versions button { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.film-versions button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.film-download { margin-left: auto; color: var(--brand-text); font-weight: 600; }
.film-plan { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 14px 0; font-size: 14px; }
.film-plan dt { color: var(--muted); }
.film-plan dd { margin: 0; }
.film-clips { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.film-clip { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.film-clip h3 { margin: 0 0 8px; font-size: 14px; }
.film-clip ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
.film-clip ul b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.film-clip label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.film-clip textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); resize: vertical; }
.film-clip details { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.film-sfx { margin: 8px 0 0; font-size: 13px; }
.film-sfx span { color: var(--muted); margin-right: 4px; }
.film-estimate { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.film-revise { display: flex; gap: 8px; margin-top: 14px; }
.film-revise input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg); color: var(--ink); }
.film-revise button { height: 42px; padding: 0 16px; border: 1px solid var(--char); border-radius: 12px; background: var(--char); color: var(--on); font: inherit; cursor: pointer; }
.film-yours { font-size: 16px; margin: 8px 0 10px; }
.film-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.film-card { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.film-card.on { border-color: var(--brand-text); }
.film-thumb { width: 72px; height: 48px; border-radius: 8px; background: var(--gray); overflow: hidden; }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-card-text { display: grid; gap: 2px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.film-card-text b { color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.film-empty { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .film-form { grid-template-columns: 1fr; padding: 14px; }
  .film-length { grid-template-columns: 1fr; }
  .film-plan { grid-template-columns: 1fr; }
  .film-plan dd { margin-bottom: 6px; }
}
html[data-theme="dark"] .film-provider[data-state="off"] { background: #2a1712; color: #f3b19c; border-color: #6b2c1a; }
