:root {
  --bg: #ffffff;
  --surface: #f3f6fa;
  --side: #f3f6fa;
  --text: #0d0d0d;
  --brand: #0a9b6e;
  --muted: #3a3a44;
  --line: #ececec;
  --soft: #f3f6fa;
  --font: Inter, "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --panel: #ffffff;
  --ink: var(--text);
  --accent: var(--brand);
  --brand-hover: #088f5f;
  --brand-soft: #f3f6fa;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --radius-lg: 18px;
  --radius-xl: 22px;
  --btn-min-h: 36px;
  --btn-pad-y: 7px;
  --btn-pad-x: 14px;
  --btn-font: 14px;
  --btn-radius: 10px;
  --btn-back-size: 40px;
}

/* Studio workflow: hidden blocks must not steal scroll or show at page bottom */
.col > #panel-brief[hidden],
.col > #panel-ideas[hidden],
.col > #panel-script[hidden],
.col > #panel-images[hidden],
.col > #panel-shots[hidden],
.col > #panel-captions[hidden],
.col > #process[hidden],
.col > .composer[hidden],
.col > .studio-coach[hidden],
#workflowContext[hidden],
#alert[hidden],
.main > .composer[hidden] {
  display: none !important;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: #d9e7ff; }
::placeholder { color: #4a4a55; opacity: 1; }

.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.side {
  --side-inset: 8px;
  --side-gap: 1px;
  --side-icon: 20px;
  background: var(--side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  position: sticky;
  top: 0;
}
.side__head {
  flex: none;
  z-index: 2;
  padding: 10px 8px 8px;
  background: var(--side);
}
.side__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 6px 10px;
  scrollbar-width: thin;
  scrollbar-color: #d4d4dc transparent;
}
.side__scroll::-webkit-scrollbar { width: 5px; }
.side__scroll::-webkit-scrollbar-thumb {
  background: #d4d4dc;
  border-radius: 999px;
}
/* ChatGPT-style compact “New script” in sidebar head */
.side__head .new {
  margin: 6px 0 0;
  width: 100%;
  min-height: 0;
  padding: 6px 10px;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  box-shadow: none;
}
.side__head .new:hover {
  background: #ececef;
  border-color: #dcdce2;
  box-shadow: none;
}
.side__head .new__icon {
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.new, .side__link, .side__item, .side__user-btn {
  text-decoration: none;
  border-radius: 8px;
}
.new, .side__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px var(--side-inset);
  box-sizing: border-box;
}
.side__link, .side__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}
.new {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.new__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  color: var(--brand);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}
.new:hover {
  background: color-mix(in srgb, var(--brand) 4%, #fff);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 2px 8px rgba(10, 124, 98, 0.08);
}
.side__link, .side__item {
  font-size: 13px;
  font-weight: 500;
  color: #3a3a42;
  transition: background 0.12s ease, color 0.12s ease;
}
.side__link:hover { background: #ececef; }
.side__nav {
  display: flex;
  flex-direction: column;
  gap: var(--side-gap);
  padding: 2px 0 4px;
  margin-bottom: 0;
  border-bottom: 0;
}
.side__link > span:last-child {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.side__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--side-icon);
  height: var(--side-icon);
  color: #667085;
}
.side__nav .side__icon svg {
  width: 18px;
  height: 18px;
}
.side__icon svg {
  width: 16px;
  height: 16px;
}
.side__link.is-on {
  background: #ececef;
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
}
.side__link.is-on .side__icon { color: var(--text); }
.side__hint {
  margin: 4px 0 0;
  padding: 0 var(--side-inset);
  font-size: 11px;
  line-height: 1.35;
  color: #98a2b3;
}
.side__hint-text {
  display: block;
  margin-bottom: 2px;
}
.side__mid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px 0 0;
  padding-top: 0;
  border-top: 0;
}
.side__scroll .side__recent {
  overflow: visible;
  flex: none;
  min-height: 0;
  max-height: none;
}
.side__recent--stack {
  flex: none;
  max-height: none;
}
.side__label {
  margin: 0;
  padding: 2px var(--side-inset) 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #98a2b3;
}
.side__recent {
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--side-gap);
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 0 2px 0 0;
  scrollbar-width: thin;
  scrollbar-color: #d4d4dc transparent;
}
.side__recent::-webkit-scrollbar { width: 5px; }
.side__recent::-webkit-scrollbar-thumb {
  background: #d4d4dc;
  border-radius: 999px;
}
.side__section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}
.side__section:last-child {
  margin-bottom: 0;
}
.side__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 2px;
}
.side__label--inline {
  margin: 0;
  flex: 1;
}
.side__section-add {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  color: #667085;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.side__section-add:hover {
  background: #ececef;
  color: var(--text);
}
.projects-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.projects-page__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ececf1;
  background: #fafafb;
}
.projects-page__row .btn {
  min-height: 0;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: none;
}
.projects-page__name {
  flex: 1;
  min-width: 120px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.projects-page__name:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.project-page__head {
  margin-bottom: 12px;
  padding: 0 0 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.project-page__head.sheet {
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.project-page__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.project-page__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-page__search {
  display: block;
  max-width: min(480px, 100%);
  margin-bottom: 10px;
}
.project-page__empty {
  margin-top: 8px;
}
.projects-page__new .me__actions {
  margin-top: 8px;
}
.side__projects {
  display: flex;
  flex-direction: column;
  gap: var(--side-gap);
}
.side__project {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 3px var(--side-inset);
  border-radius: 8px;
  text-decoration: none;
  color: #3a3a42;
  transition: background 0.12s ease;
}
.side__project:hover {
  background: #ececef;
}
.side__project.is-on {
  background: #ececef;
  color: var(--text);
  font-weight: 600;
}
.side__project-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--side-icon);
  height: var(--side-icon);
  color: #667085;
}
.side__project-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
.side__project-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side__project-meta {
  font-size: 11px;
  color: #98a2b3;
}
.side__empty--tight {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 12px;
}
.side__row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 8px;
}
.side__row:hover,
.side__row.is-menu-open {
  background: #ececef;
}
.side__row .side__item {
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: calc(100% - 30px);
  padding-right: 4px;
}
.side__row:hover .side__item,
.side__row.is-menu-open .side__item {
  background: transparent;
}
.side__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  min-height: 30px;
  padding: 4px var(--side-inset);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  color: #475467;
  transition: background 0.12s ease, color 0.12s ease;
}
.side__item-pin {
  flex: none;
  display: grid;
  place-items: center;
  color: #98a2b3;
}
.side__item:hover {
  background: #ececef;
  color: var(--text);
}
.side__row-more {
  flex: none;
  align-self: center;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 1px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease, background 0.12s ease;
}
.side__row:hover .side__row-more,
.side__row.is-menu-open .side__row-more,
.side__row-more:focus-visible {
  opacity: 1;
}
.side__row-more:hover {
  background: color-mix(in srgb, #000 6%, transparent);
  color: var(--text);
}
@media (hover: none) {
  .side__row-more { opacity: 1; }
}
.side__row-menu {
  position: absolute;
  right: 4px;
  top: calc(100% + 4px);
  z-index: 60;
  min-width: 200px;
  max-width: min(260px, 92vw);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e8e8ec;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
}
.side__row-menu-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f1f24;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.side__row-menu-item:hover,
.side__row-menu-item[aria-current="true"] {
  background: #f3f3f6;
}
.side__row-menu-item--danger {
  color: #b42318;
}
.side__row-menu-label {
  margin: 6px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a2b3;
}
.side__row-menu-sub {
  max-height: 160px;
  overflow: auto;
  scrollbar-width: thin;
}
.side__item-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.side__empty {
  margin: 0;
  padding: 4px var(--side-inset);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  border-radius: 10px;
  background: color-mix(in srgb, #fff 70%, transparent);
}
.side__account {
  position: relative;
  flex: none;
  z-index: 2;
  margin-top: 0;
  padding: 8px 8px 10px;
  background: var(--side);
  border-top: 1px solid var(--line);
}
.side__user {
  position: relative;
}
.side__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  min-height: 36px;
  padding: 4px var(--side-inset);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.side__user-btn:hover,
.side__user.is-open > .side__user-btn {
  background: #ececef;
}
.side__user-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, #fff);
  outline-offset: 1px;
}
.side__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.side__avatar--user {
  background: #d8d8de;
  color: #1f1f24;
}
.side__avatar--guest {
  background: #ececef;
  color: #667085;
}
.side__user-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
.side__user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side__user-plan {
  font-size: 11px;
  font-weight: 500;
  color: #717179;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side__user-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 50;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #e8e8ec;
  background: #fff;
  box-shadow: 0 12px 38px rgba(16, 24, 40, 0.14), 0 0 0 1px rgba(16, 24, 40, 0.04);
  max-height: min(70vh, 420px);
  overflow: auto;
  scrollbar-width: thin;
}
.side__user-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.side__user-head:hover {
  background: #f3f3f6;
}
.side__user-chevron {
  flex: none;
  color: #98a2b3;
}
.side__user-divider {
  height: 1px;
  margin: 6px 4px;
  background: #ececf1;
}
.side__user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1f1f24;
  text-decoration: none;
  transition: background 0.12s ease;
}
.side__user-item--help .side__user-item-label {
  flex: 1;
  min-width: 0;
}
.side__user-item--help .side__user-chevron {
  margin-left: auto;
}
.side__user-item:hover {
  background: #f3f3f6;
}
.side__user-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #52525b;
}
.side__user-item--logout {
  color: #b42318;
}
.side__user-item--logout .side__user-ico {
  color: #b42318;
}
.side__user-logout {
  margin: 0;
  padding: 0;
  width: 100%;
}
.side__user-logout .side__user-item {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.side__user--guest .side__user-plan {
  font-size: 10.5px;
  line-height: 1.3;
}
.side__user--guest .side__user-guest-foot {
  margin: 2px 0 0;
  padding: 0 var(--side-inset);
  font-size: 10.5px;
  line-height: 1.45;
  color: #98a2b3;
  text-align: center;
}
.side__user-guest-foot a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.side__user-guest-foot a:hover {
  text-decoration: underline;
}
.side__link--sub { padding-left: 42px; font-size: 13px; }

.support-page__intro h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.support-page__wa { margin: 14px 0 0; }
.support-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.support-links__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ececf1;
  background: #fafafb;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.support-links__row:hover {
  background: #f3f3f6;
  border-color: #e2e2e8;
}
.support-links__row strong {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f24;
}
.support-links__row span {
  font-size: 13px;
  line-height: 1.4;
  color: #667085;
}
.support-page__where { margin-top: 4px; }

.legal-page {
  width: min(680px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 28px;
}
.legal-page__hero {
  padding: 22px 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.legal-page__crumbs {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #98a2b3;
}
.legal-page__crumbs a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}
.legal-page__crumbs a:hover { text-decoration: underline; text-underline-offset: 2px; }
.legal-page__crumbs-sep { margin: 0 6px; color: #c8c8d0; }
.legal-page__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}
.legal-page__lead {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.55;
  color: #52525b;
}
.legal-page__meta {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #ececf1;
  font-size: 12px;
  color: #98a2b3;
}
.legal-page__sheet {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.legal-doc.legal-prose > p:first-child { margin-top: 0; }
.legal-prose h3 {
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ececf1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
}
.legal-prose h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-prose p,
.legal-prose li {
  margin: 0 0 0.75rem;
  font-size: 15px;
  line-height: 1.6;
  color: #3f3f46;
}
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}
.legal-prose li { margin-bottom: 0.35rem; }
.legal-prose a {
  font-weight: 500;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-prose strong { color: var(--text); font-weight: 600; }
.legal-prose code {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f4f4f5;
  border: 1px solid #ececf1;
}
.legal-faq {
  margin: 0;
  padding: 0;
}
.legal-faq__item {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #ececf1;
}
.legal-faq__item:first-child { padding-top: 4px; }
.legal-faq__item:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}
.legal-faq__q {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal-faq__a {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #52525b;
}
.legal-faq__a p { margin: 0; }
.legal-faq__a a {
  font-weight: 500;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page__footer {
  padding: 20px 24px;
}
.legal-page__footer-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #98a2b3;
}
.legal-page__footer-links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.legal-page__footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: #3f3f46;
  text-decoration: none;
}
.legal-page__footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.legal-page__footer-actions {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #ececf1;
  font-size: 13px;
  color: #98a2b3;
}
.legal-page__footer-actions a {
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}
.legal-page__footer-actions a:hover { text-decoration: underline; }
.legal-page__footer-actions span { margin: 0 8px; }
.support-page .support-page__section-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
}
.support-page .legal-page__sheet.support-page__wa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}
.support-page .support-page__wa .me__quiet { margin: 0; flex: 1; min-width: 200px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin: 0;
  padding: 4px var(--side-inset);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}
.side__icon--brand {
  border-radius: 8px;
  overflow: hidden;
  width: 28px;
  height: 28px;
}
.side__icon--brand img {
  display: block;
  width: 28px;
  height: 28px;
}
.brand:hover { opacity: 0.82; }
.brand img, .topbar__mark { border-radius: 8px; }
.topbar__mark { display: none; }
.topbar__back { display: none; }
.scrim { display: none; }

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
.topbar {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topbar__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu {
  display: none;
  flex: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.menu:hover { background: var(--soft); }
.main__scroll { flex: 1; overflow: auto; }
.col {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 32px;
}
.col--wide { width: min(1120px, calc(100% - 40px)); }
.home-tools {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 4px 0 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f0f0f4;
}
.home-tools__k {
  margin: 8px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #98a2b3;
}
.home-tools .chips {
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 0 2px;
}
.home-tools .chip {
  flex: none;
  scroll-snap-align: start;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 8px 14px;
  min-height: 36px;
  color: #667085;
  border: 1px solid transparent;
}
.home-tools .chip.is-on {
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
}
.home-tools .chip:hover {
  color: var(--text);
  background: #f5f5f7;
}
.home-tools .chip.is-on:hover {
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  border-radius: 16px;
  overflow: hidden;
  background: #1c1c1c;
  color: #fff;
  text-decoration: none;
}
.poster img, .poster__ph { width: 100%; height: 100%; object-fit: cover; }
.poster__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}
.poster strong, .poster small, .poster em {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poster strong { font-size: 16px; line-height: 1.25; -webkit-line-clamp: 2; }
.poster small { margin-top: 3px; font-size: 14px; line-height: 1.35; opacity: 1; -webkit-line-clamp: 2; }
.poster em { margin-top: 2px; font-style: normal; font-size: 13px; opacity: 0.95; -webkit-line-clamp: 1; }
.band h2 span { font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.project-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.project-head img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}
.project-head strong { display: block; font-size: 16px; }
.project-head span { display: block; color: var(--muted); font-size: 14px; }
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
.job-grid--list {
  max-width: min(960px, 100%);
}
.job-grid--list .pm-card {
  border-radius: 14px;
  background: #fff;
}
.job-grid--list .pm-card__main {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  align-items: center;
}
.job-grid--list .pm-card__main img {
  width: 80px;
  height: 106px;
  border-radius: 10px;
}
.job-grid--list .pm-card__bar {
  border-top: 1px solid var(--line);
  padding: 8px 14px 12px;
  background: color-mix(in srgb, var(--surface) 45%, #fff);
}
@media (min-width: 720px) {
  .job-grid--list .pm-card__main {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 16px;
  }
  .job-grid--list .pm-card__main img {
    width: 96px;
    height: 128px;
  }
}
.job {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: #fff;
}
.job:hover { background: var(--soft); }
.job img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}
.job__text { min-width: 0; }
.job strong, .job__text > span, .job em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job strong { font-size: 15px; }
.job span, .job em { color: var(--muted); font-size: 13px; font-style: normal; }
.job em { margin-top: 6px; color: var(--text); font-size: 14px; }

.pm-tools { display: grid; gap: 8px; }
.pm-tools__row { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; min-width: 0; }
.pm-tools .chips { flex: 1; min-width: 0; margin: 0; }
.pm-mini {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  font-size: 13px;
  max-width: 42%;
}
.pm-mini--grow { flex: 0 1 148px; width: 148px; max-width: 42%; }
.pm-select { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pm-select select, .pm-rename input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  max-width: 100%;
}
.pm-generate, .pm-card, .pm-idea, .pm-confirm {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}
.pm-generate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-top: 12px;
}
.pm-generate p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.pm-card { overflow: hidden; }
.pm-card__main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  text-decoration: none;
  align-items: center;
}
.pm-card__main img { width: 76px; height: 100px; object-fit: cover; border-radius: 10px; background: #eee; }
.pm-card__main img.pm-card__poster--fallback { object-fit: contain; padding: 12px; background: #f3f4f6; }
.pm-card__bar, .pm-idea__actions, .pm-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pm-card__bar { padding: 0 10px 10px; }
.pm-card__bar button, .pm-card__bar a, .pm-idea__actions button, .pm-idea__actions a, .pm-confirm button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.pm-card__bar button.is-on { background: #ececec; font-weight: 600; }
.pm-card__bar a.btn, .pm-idea__actions a.btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.pm-rename { display: block; padding: 0 10px 10px; }
.pm-rename input { width: 100%; }
.pm-confirm { margin: 0 10px 10px; padding: 10px; border-radius: 12px; }
#ideaBoard { margin-top: 16px; }
#ideaBoard h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pm-idea {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.pm-idea p { margin: 4px 0 8px; color: var(--muted); overflow-wrap: anywhere; }
.pm-idea strong { overflow-wrap: anywhere; }

.lead {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.search input:focus { border-color: #c5c5c5; }
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 14px 0 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 11px;
  min-height: 32px;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.band h2 { scroll-margin-top: 132px; }
.chip.is-on { background: #ececec; color: var(--text); }
.chip-rail { position: relative; }
.home-account-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 14px;
  line-height: 1.5;
  color: #92400e;
}
.home-account-note a { color: #b45309; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* —— Create (home) page —— */
.home-create {
  display: grid;
  gap: 0;
  padding-bottom: 8px;
}
.home-create .hint {
  font-size: 13px;
  line-height: 1.45;
  color: #667085;
}
.home-create .hint a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-hero {
  margin-bottom: 20px;
  padding: 18px 16px 16px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm), var(--shadow-md);
}
.home-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #067a52;
}
.home-hero__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.home-hero__lead {
  margin: 0 0 16px;
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
  max-width: 36rem;
}
.home-flow {
  margin: 0 0 16px;
  padding: 12px 12px 12px 10px;
  list-style: none;
  display: grid;
  gap: 10px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.home-flow li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #344054;
}
.home-flow li strong { font-weight: 600; color: var(--text); }
.home-flow__n {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.home-hero__actions {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
}
.home-hero__btn {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
  border-radius: 14px;
}
.home-hero__optional { margin: 0; font-size: 12px; }

.home-intro {
  margin: 0 0 16px;
  padding: 4px 2px 14px;
  border-bottom: 1px solid var(--line);
}
.home-intro__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.home-intro__lead {
  margin: 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #344054;
}
@media (min-width: 640px) {
  .home-intro__lead { font-size: 16px; }
}
.home-starters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 4px;
}
@media (min-width: 900px) {
  .home-starters { gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.home-starters .home-starter {
  aspect-ratio: 3 / 4.15;
  border-radius: 16px;
  box-shadow: 0 10px 14px -12px rgba(16, 24, 40, 0.55);
}
.home-starters .home-starter img,
.home-starters .home-starter .poster__ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.home-starters .home-starter .poster__ph {
  background: #1c1c1c;
  min-height: 0;
}
.home-starters .home-starter .poster__copy {
  padding: 32px 10px 10px;
}
.home-starters .home-starter strong,
.home-starters .home-starter small {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 2px 12px rgba(0, 0, 0, 0.65),
    0 0 1px rgba(0, 0, 0, 0.9);
}
.home-starters .home-starter strong {
  font-size: 14px;
  font-weight: 600;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.home-starters .home-starter small {
  font-size: 12px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
@media (min-width: 900px) {
  .home-starters .home-starter .poster__copy { padding: 36px 12px 12px; }
  .home-starters .home-starter strong { font-size: 15px; }
  .home-starters .home-starter small { font-size: 13px; }
}
.home-browse-link { margin: 20px 0 16px; display: grid; gap: 8px; }
.home-browse-link__btn {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 32%, #d0d5dd);
  color: #067a52;
  background: #fff;
}
.home-browse-link__btn:hover {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 45%, #d0d5dd);
}
.home-browse-link__hint { margin: 0; text-align: center; font-size: 12px; color: #98a2b3; }
.home-create .support-line {
  margin: 0 0 8px;
  padding-top: 4px;
  text-align: center;
  font-size: 13px;
}
.home-create .support-line a { text-decoration: none; }
.home-create .support-line a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .home-hero__title { font-size: 1.45rem; }
  .home-hero__lead { font-size: 15px; }
  .home-flow li { font-size: 14px; }
  .home-hero__actions { max-width: 280px; }
}
.main__scroll:has(.beta-banner) .home-hero__eyebrow {
  display: none;
}
.browse-lead { margin: 0 0 12px; }
.support-line { margin: 12px 0 0; font-size: 0.88rem; }
.support-line a { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.auth-beta-note { color: #067a52; }
.side__hint a {
  display: inline-block;
  margin: 0 -4px;
  padding: 2px 4px;
  border-radius: 6px;
  color: #667085;
  font-weight: 500;
  text-decoration: none;
}
.side__hint a:hover { background: #ececef; color: var(--text); }
.library-empty { text-align: left; max-width: 28rem; margin: 0 auto 12px; }
.library-empty h3 { margin: 0 0 8px; font-size: 1.15rem; }
.library-empty__flow {
  margin: 10px 0 14px;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.library-empty__starters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.88rem; }
.library-empty__starters span { color: var(--muted); }
.library-empty__more { margin: 14px 0 0; }
.library-empty__pick { font-size: 0.82rem !important; padding: 6px 10px !important; min-height: auto !important; }

.chip-rail__more {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #fff;
  color: #8b919a;
  box-shadow: none;
  cursor: pointer;
}
.chip-rail__more[hidden] { display: none; }
.chip-rail__more:active { color: var(--brand); }
.band h2 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.fmt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
}
.fmt:hover { background: var(--soft); }
.fmt img, .fmt__ph {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #eee;
}
.fmt__ph { display: grid; place-items: center; font-weight: 600; }
.fmt span { min-width: 0; }
.fmt strong { display: block; font-size: 15px; font-weight: 600; }
.fmt small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.empty-note { color: var(--muted); }

.steps {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.steps button {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  min-height: 40px;
  cursor: pointer;
}
.steps button.is-on { background: #ececec; color: var(--text); font-weight: 600; }
.steps button:disabled { opacity: 1; color: #5e5e6a; cursor: default; }

.steps--progress {
  position: sticky;
  top: 0;
  z-index: 4;
  gap: 0;
  align-items: flex-start;
  padding: 12px 8px 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 24px rgba(16, 24, 40, 0.07);
  box-sizing: border-box;
  width: 100%;
}
@media (min-width: 801px) {
  #phases.steps--progress {
    padding: 12px 16px 14px;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.08);
  }
  #phases.steps--progress.is-stuck {
    border-radius: 0;
    margin-bottom: 0;
    padding-bottom: 14px;
    box-shadow: 0 1px 0 #ececf1, 0 10px 28px rgba(16, 24, 40, 0.08);
    border-bottom: 1px solid #ececf1;
  }
  .main__scroll:has(#phases) {
    scroll-padding-top: 88px;
  }
}
.steps--progress .steps__item {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: center;
}
.steps--progress .steps__item[hidden] {
  display: none !important;
}
.steps--progress .steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: #e4e4ea;
  border-radius: 1px;
  z-index: 0;
}
.steps--progress .steps__item.is-done:not(:last-child)::after {
  background: var(--brand);
}
.steps--progress button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 2px 2px;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  color: #5e5e6a;
  font-weight: 500;
}
.steps--progress button.is-on {
  background: transparent;
  color: var(--text);
  font-weight: 600;
}
.steps--progress button:disabled {
  color: #9a9aa6;
  cursor: default;
}
.steps--progress .steps__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #d8d8e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.steps--progress .steps__label {
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.steps--progress .steps__item.is-active .steps__dot {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.steps--progress .steps__item.is-active .steps__label {
  color: var(--text);
  font-weight: 600;
}
.steps--progress .steps__item.is-done .steps__dot {
  border-color: var(--brand);
  background: var(--brand);
  color: transparent;
  font-size: 0;
}
.steps--progress .steps__item.is-done .steps__dot::before {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.steps--progress .steps__item.is-done button:not(:disabled) {
  color: var(--text);
  cursor: pointer;
}
.steps--progress .steps__item.is-done .steps__label {
  color: var(--text);
}
.sheet {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 14px 32px rgba(16, 24, 40, 0.08);
}
.sheet .project-head { margin: 0; background: transparent; box-shadow: none; }
.sheet .project-head img {
  width: 84px;
  height: 112px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
}
.sheet .project-head strong { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.sheet .lead {
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #ececf1;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.45;
}
.sheet .field { margin-top: 14px; }
.sheet textarea {
  min-height: 104px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
  padding: 14px;
}

.field { display: block; margin-top: 14px; }
.field input, .field select {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  outline: none;
  font: inherit;
}
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: 46%; flex: none; }
.phone-row input { min-width: 0; }

.auth-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 0 36px;
}
.auth-page__hero { display: none !important; }
.auth-card {
  margin: 0;
  padding: 26px 22px 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.07);
}
.auth-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}
.auth-card > .hint {
  margin-top: 8px;
  color: #64748b;
  font-size: 15px;
}
.auth-card .field {
  margin-top: 16px;
}
.auth-card .field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.auth-card .field input,
.auth-card .field select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: var(--surface);
  padding: 13px 14px;
  outline: none;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-card .field input:focus,
.auth-card .field select:focus {
  border-color: color-mix(in srgb, var(--brand) 50%, #e2e8f0);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.auth-card .phone-row select { width: 42%; }
.auth-dial-hint { margin-top: 6px; font-size: 13px; color: #94a3b8; }
.auth-card .btn {
  width: 100%;
  margin-top: 18px;
  min-height: 40px;
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(10, 155, 110, 0.15);
}
.auth-card .btn:active { transform: scale(0.985); }
.auth-card a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  color: #fff;
}
.gate-card { text-align: left; }
.auth-error {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 500;
}
.auth-error:empty { display: none; }
.auth-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}
.auth-foot a {
  color: var(--brand);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-note { margin: 8px 0 0; }
.plan-pill {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.me { display: flex; flex-direction: column; gap: 14px; }
.me__who { display: flex; align-items: center; gap: 14px; padding: 2px 2px 4px; }
.me__mark {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.me__who h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; }
.me__who p { margin: 2px 0 0; color: #6e6e80; font-size: 14px; line-height: 1.35; }
.me__plan { color: #3a3a44; }
.me__plan strong { color: var(--brand); font-weight: 650; }
.me__block {
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: var(--surface);
}
.me__block h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #6e6e80;
}
.me__field { display: block; margin: 0 0 12px; }
.me__field > span {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e80;
}
.me__field input,
.me__field select,
.me__field textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}
.me__field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}
.me__field input:focus,
.me__field select:focus,
.me__field textarea:focus { box-shadow: 0 0 0 2px #d7f3ea; }
.me__phone { display: flex; gap: 8px; }
.me__phone select {
  width: 88px;
  flex: none;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236e6e80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.me__phone input { min-width: 0; }
.me__quiet { margin: 6px 0 0; color: #6e6e80; font-size: 13px; }
.me .auth-error { min-height: 0; margin: 0; font-size: 13px; }
.me .auth-error:empty,
.me .auth-note:empty { display: none; }
.me__actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.me__actions .btn { min-height: var(--btn-min-h); padding: var(--btn-pad-y) 16px; font-size: var(--btn-font); font-weight: 600; }
.me__out {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-h);
  border-radius: var(--btn-radius);
  background: var(--surface);
  color: #b42318;
  font-size: var(--btn-font);
  font-weight: 600;
}
.me__out-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  width: 100%;
  min-height: var(--btn-min-h);
}
.admin-set__lead { margin: 0; }
.admin-set__note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff8e6;
  color: #7a4e00;
  font-size: 14px;
  line-height: 1.4;
}
.admin-set__status { margin: 0; font-size: 14px; color: #3a3a44; font-weight: 600; }
.admin-set__back { color: var(--text); font-weight: 600; }

.admin-page {
  background: #f6f7f9;
  min-height: 100dvh;
}
.admin-page__shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.admin-page__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line, #e5e7eb);
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-page__bar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.admin-page__bar-end {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-page__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text, #111);
  font-weight: 700;
  font-size: 15px;
}
.admin-page__brand em {
  font-style: normal;
  font-weight: 600;
  color: #6b7280;
  font-size: 13px;
}
.admin-page__user {
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}
.admin-page__main {
  flex: 1;
  padding: 16px 20px 40px;
}
.admin-page__col {
  max-width: 920px;
  margin: 0 auto;
}
.admin-page__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1rem;
}
.admin-tabs--bar {
  margin: 0;
}
.admin-tabs__link {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.admin-tabs__link.is-on {
  background: var(--accent, #111);
  color: #fff;
  border-color: transparent;
}

.pm__lead { max-width: 52rem; }
.pm__status { font-size: 14px; margin: 0.5rem 0 1rem; }
.pm__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 1rem;
}
.pm__toggle { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.pm__panels { display: grid; gap: 0; }
.pm__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}
.pm__tab {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.pm__tab.is-on { background: #f3f4f6; border-color: #9ca3af; }
.pm__panel { display: none; }
.pm__panel.is-on { display: block; }
.pm__editor {
  width: 100%;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 12rem;
  resize: vertical;
}
.pm__actions { margin-top: 12px; }
.pm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .pm__row { grid-template-columns: 1fr; } }
.pm__map-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.pm__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pm__table th,
.pm__table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pm__table th { position: sticky; top: 0; background: #fafafa; z-index: 1; }
.pm__muted { font-size: 12px; color: #6b7280; }
.pm__engine-select { font-size: 13px; max-width: 10rem; }
.pm__flow { margin: 0 0 1rem; padding-left: 1.25rem; line-height: 1.55; }
.pm__table--compact td:first-child { font-weight: 600; white-space: nowrap; }
.admin-set__radios { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.admin-set__radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.admin-set__radio input { margin-top: 4px; }
.admin-set__radio span { line-height: 1.45; }
.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;
}
.beta-banner {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: #344054;
}
.pricing-badge--beta {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  color: #067a52;
}
.field > span, .choice-label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
textarea, select {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  outline: none;
}
textarea { min-height: 88px; resize: vertical; }
textarea:focus, select:focus { border-color: #bdbdbd; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills--compact { gap: 5px; }
.tone, .story, .film-genre, .pill, .aspect {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pills--compact .tone,
.pills--compact .story,
.pills--compact .film-genre,
.pills--compact .pill {
  padding: 7px 11px;
  min-height: 34px;
  font-size: 13px;
  line-height: 1.25;
}
.tone.is-on, .story.is-on, .film-genre.is-on, .pill.is-on, .aspect.is-on {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.brief-steer {
  padding: 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid #e3e8e6;
  background: rgba(255, 255, 255, 0.72);
}
.brief-steer__hint {
  margin: 6px 0 10px;
}
.brief-steer__group + .brief-steer__group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ececf1;
}
.brief-steer__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.brief-steer__note {
  margin-top: 10px;
  margin-bottom: 0;
}
.brief-steer__note span {
  font-size: 13px;
  color: var(--muted);
}
.aspect {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  min-width: 88px;
}
.aspect b { font-weight: 600; }
.aspect small { font-size: 12px; font-weight: 600; opacity: 0.9; }
.aspect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.aspect-grid .aspect-card {
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  padding: 16px 12px 14px;
  min-height: 112px;
  gap: 12px;
  border-width: 2px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
.aspect-grid .aspect-card.is-on {
  box-shadow: 0 0 0 1px var(--brand), 0 8px 20px rgba(16, 24, 40, 0.1);
}
.aspect-card__icon {
  display: block;
  border: 2px solid currentColor;
  border-radius: 6px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent);
}
.aspect-card__icon--portrait {
  width: 26px;
  height: 44px;
}
.aspect-card__icon--landscape {
  width: 44px;
  height: 26px;
}
.aspect-card.is-on .aspect-card__icon {
  background: color-mix(in srgb, #fff 22%, transparent);
  border-color: #fff;
}
.aspect-card__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.aspect-card__label b { font-size: 15px; }
.aspect-card__label small { font-size: 12px; opacity: 0.85; }
.switch {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}
.switch input { margin-top: 3px; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.more {
  margin-top: 16px;
  border-radius: 16px;
  background: var(--soft);
  padding: 4px 14px 14px;
}
.more__head {
  font-weight: 600;
  padding: 12px 0;
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ececf1;
  margin-bottom: 2px;
}
.more__head--sub {
  margin-top: 8px;
  font-size: 15px;
  border-bottom: 0;
  padding-bottom: 0;
  min-height: auto;
}
.content-format-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.format-grid .content-format {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  width: 100%;
  margin: 0;
  padding: 13px 14px 12px;
  min-height: 76px;
  border-radius: 14px;
  border: 1.5px solid #e3e8e6;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: 0 1px 2px rgba(16, 24, 22, 0.06);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}
.format-grid .content-format:active {
  transform: scale(0.98);
}
.format-grid .content-format__label {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: var(--text);
}
.format-grid .content-format__tag {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}
.format-grid .content-format.is-on {
  background: var(--brand-soft, #edf8f4);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 2px 8px rgba(16, 24, 22, 0.06);
}
.format-grid .content-format.is-on .content-format__label {
  color: var(--text);
}
.format-grid .content-format.is-on .content-format__tag {
  color: #2f5f50;
}
.format-grid .content-format:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (max-width: 360px) {
  .format-grid {
    grid-template-columns: 1fr;
  }
}
.more summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  min-height: 44px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  margin-top: -4px;
}
.more[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.more .field,
.more .pair { margin-top: 22px; }
.more .pair .field { margin-top: 0; }
.more .field > span,
.more .choice-label { margin-bottom: 10px; }
.more[open] summary { border-bottom: 1px solid #ececf1; margin-bottom: 2px; }
.alert {
  background: #fff4f2;
  color: #9b2c2c;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.ideas-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.ideas-list__actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: stretch;
}
.ideas-list__new {
  width: 100%;
  min-height: var(--btn-min-h);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font);
}
.ideas-list__new-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.ideas-progress.ideas-progress--inline,
.shots-progress.shots-progress--inline {
  margin-top: 14px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  transform-origin: top center;
  animation: ideas-progress-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.idea.idea--enter {
  animation: ideas-row-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ideas-progress-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes ideas-row-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.idea {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px 12px 12px;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.idea:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.idea:hover {
  border-color: #d0d5dd;
  background: #fafafa;
}
.idea.is-on {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}
.idea.is-on:focus-within {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent),
    0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.idea__radio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.idea__mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #c8cdd4;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.idea.is-on .idea__mark {
  border-color: var(--brand);
  background: #fff;
}
.idea.is-on .idea__mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.idea__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.idea__num {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.idea__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  color: var(--text);
}
.idea.is-on .idea__title {
  color: #101828;
}
.idea-setup__hook {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 400;
}
.idea-setup {
  margin: 8px 0 14px;
  transition: box-shadow 0.35s ease, outline-color 0.35s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.ideas-radios .idea-setup {
  margin-top: 6px;
}
.idea-setup.idea-setup--enter {
  animation: idea-setup-in 0.28s ease both;
}
.idea-setup__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.idea-setup__actions #ideaGoSecondary.composer__back {
  flex: 0 0 var(--btn-back-size);
  width: var(--btn-back-size);
  min-width: var(--btn-back-size);
  min-height: var(--btn-min-h);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.idea-setup__actions #ideaGo {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--btn-min-h);
}
.idea-setup__actions {
  margin-bottom: 4px;
}
.idea-setup__actions #ideaGo[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
@keyframes idea-setup-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .idea-setup.idea-setup--enter { animation: none; }
}
.idea-setup__lead {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.idea-setup__picked { margin: 0 0 12px; }
.idea-setup__picked .k { margin-top: 0; }
.idea-setup__picked strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.idea-setup.is-focus {
  outline-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 28%, transparent), 0 14px 32px rgba(16, 24, 40, 0.12);
  animation: idea-setup-glow 2.4s ease-out;
}
@keyframes idea-setup-glow {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent), 0 14px 32px rgba(16, 24, 40, 0.08); }
  35% { box-shadow: 0 0 0 10px transparent, 0 14px 32px rgba(16, 24, 40, 0.12); }
  100% { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 14px 32px rgba(16, 24, 40, 0.08); }
}
.doc-title { margin: 0 0 8px; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: break-word; }
.sheet .doc-title { margin: 0 0 10px; }
.logline { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }

#script-body {
  margin-bottom: 14px;
}
.script-panel__actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.script-panel__actions .btn,
.script-panel__actions .btn--ghost {
  height: auto;
  min-height: var(--btn-min-h);
  max-height: none;
  margin: 0;
  padding: var(--btn-pad-y) 14px;
  font-size: var(--btn-font);
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.script-panel__actions--back-only #scriptGoSecondary {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  gap: 8px;
  white-space: nowrap;
}
.script-panel__actions--pair #scriptGoSecondary.script-panel__back {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  padding: 0 14px;
  gap: 8px;
  white-space: nowrap;
}
.script-panel__actions--pair #scriptGoSecondary.script-panel__back .composer__back-icon,
.script-panel__actions--pair #scriptGoSecondary.script-panel__back .script-gen-bar__back-label {
  display: block;
  flex: none;
}
.script-panel__actions--pair #scriptGoSecondary.script-panel__back .script-gen-bar__back-label {
  font-weight: 600;
}
@media (max-width: 800px) {
  .script-panel__actions--pair #scriptGoSecondary.script-panel__back .script-gen-bar__back-label {
    display: none;
  }
  .script-panel__actions--pair #scriptGoSecondary.script-panel__back {
    flex: 0 0 var(--btn-back-size);
    width: var(--btn-back-size);
    min-width: var(--btn-back-size);
    padding: 0;
  }
}
.script-panel__actions--pair #scriptGoPrimary {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}
.script-gen-bar__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.script-gen-bar__row .script-gen-bar__back-btn,
.script-gen-bar__row .btn.script-scene-block__write {
  height: auto;
  min-height: var(--btn-min-h);
  max-height: none;
  margin: 0;
  padding: var(--btn-pad-y) 12px;
  font-size: var(--btn-font);
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: var(--btn-radius);
}
.script-gen-bar__row .btn.script-scene-block__write {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  padding: 0 14px;
}
.script-gen-bar__back-btn {
  flex: 0 1 auto;
  min-width: 0;
  gap: 8px;
  white-space: nowrap;
}
.script-gen-bar__back-btn .composer__back-icon {
  display: block;
  flex: none;
}
.script-gen-bar .btn.script-scene-block__write {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
@media (max-width: 800px) {
  .script-gen-bar__back-btn .script-gen-bar__back-label {
    display: none;
  }
  .script-gen-bar__row .script-gen-bar__back-btn {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    padding: 0;
  }
}
.script-panel {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.08);
}
.band__subtitle {
  margin: -6px 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #667085;
}
.brief-master-hint {
  margin: 0 0 14px;
}
.script-panel__sources {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececf1;
}
.script-verified {
  margin: 0 0 20px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  border: 1px solid #e4e4ea;
}
.script-verified__title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}
.script-verified__meta {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #667085;
}
.script-verified__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.script-verified__item {
  margin: 0;
}
.script-verified__chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d0d5dd;
  font-size: 14px;
  font-weight: 600;
  color: #344054;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.script-verified__chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.script-panel__step-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f3ff;
  color: #42307d;
  font-size: 13px;
  line-height: 1.45;
}
.script-panel__regen {
  margin: 0 0 18px;
}
.script-panel__regen-btn {
  width: 100%;
}
.script-head--with-regen {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.script-head--with-regen .doc-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.script-head__regen {
  flex: none;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.script-head__regen:hover:not([disabled]) {
  color: var(--brand);
}
.script-head__regen[disabled] {
  opacity: 0.45;
  cursor: default;
  text-decoration: none;
}
.images-panel {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.08);
}
.images-panel__step-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.panel-images__howto {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1px solid #ececf1;
  color: #475467;
  font-size: 14px;
  line-height: 1.5;
}
.images-panel__head + .panel-images__howto {
  margin-top: 0;
  margin-bottom: 14px;
}
.images-panel__shots .shot {
  margin-bottom: 10px;
}
.images-panel__shots .shot:last-child {
  margin-bottom: 0;
}
.panel-images__reel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ececf1;
}
.panel-images__reel .panel-images__generate {
  margin-top: 12px;
}
.script-doc-block {
  margin: 0 0 20px;
}
.script-doc-block:last-child {
  margin-bottom: 0;
}
.script-doc-block__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #667085;
}
.script-doc-block__label--section {
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
}
.script-doc-block__text {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.script-head {
  margin: 0 0 6px;
  padding: 0 2px 16px;
  border-bottom: 1px solid #ececf1;
}
.script-head--verse {
  margin: 0 0 8px;
  padding: 18px 4px 18px;
  border-top: none;
  border-bottom: 1px solid #ececf1;
}
.script-head--verse .doc-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.script-head__note {
  margin: 10px 0 0;
}
.script-output__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
}
.script-output__note {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.script-output__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}
#panel-shots .script-output__actions--video {
  margin-top: 2px;
}
.script-output__actions .script-output__action {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) 16px;
}
.script-output__actions--images-nav {
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
}
.script-output__actions--images-nav .images-panel__back {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  min-height: var(--btn-min-h);
  max-height: none;
  height: auto;
  margin: 0;
  padding: var(--btn-pad-y) 14px;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.script-output__actions--images-nav .images-panel__primary {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: var(--btn-min-h);
  max-height: none;
  height: auto;
  margin: 0;
}
.script-output__actions--images-nav .images-panel__skip {
  flex: 0 1 auto;
  min-width: 0;
  min-height: var(--btn-min-h);
  max-height: none;
  height: auto;
  margin: 0;
  padding: var(--btn-pad-y) 16px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--btn-radius);
}
@media (max-width: 800px) {
  .script-output__actions--images-nav .images-panel__back .script-gen-bar__back-label {
    display: none;
  }
  .script-output__actions--images-nav .images-panel__back {
    flex: 0 0 var(--btn-back-size);
    width: var(--btn-back-size);
    min-width: var(--btn-back-size);
    padding: 0;
  }
}
.images-panel__head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  width: 100%;
  min-height: 0;
}
.images-panel__head .images-panel__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.images-panel__head .script-head__regen,
.images-panel__regen,
.videos-panel__regen {
  flex: 0 0 auto;
  margin: 0;
  align-self: center;
  color: var(--brand);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
}
.images-panel__regen:hover:not([disabled]),
.videos-panel__regen:hover:not([disabled]) {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.55);
}
.images-panel__regen[disabled],
.videos-panel__regen[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
#panel-images .images-panel__head .images-panel__title {
  margin: 0;
}
.images-panel__footer-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.images-panel__footer-actions .images-panel__primary {
  flex: 1 1 auto;
  min-width: 0;
}
.videos-panel {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.08);
}
.videos-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin: 0 0 12px;
}
.videos-panel__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.videos-panel__head .videos-panel__regen {
  flex: 0 0 auto;
  margin: 0;
  align-self: center;
}
.videos-panel__howto {
  margin: 0 0 12px;
}
.videos-panel .shots-timeline-summary {
  margin: 0 0 14px;
}
.videos-panel .shots-app-pick {
  margin: 0 0 14px;
}
.videos-panel__shots .shot {
  margin-bottom: 12px;
}
.videos-panel__shots .shot:last-child {
  margin-bottom: 0;
}
.videos-panel__footer-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.videos-panel__progress {
  margin-top: 18px;
}
.videos-panel__footer-actions .videos-panel__primary {
  flex: 1 1 auto;
  min-width: 0;
}
.videos-panel__captions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.videos-panel__social-icon {
  flex: none;
  display: block;
}
.videos-panel__back .composer__back-icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}
.script-output__actions--images-nav .videos-panel__back {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  min-height: var(--btn-min-h);
  max-height: none;
  height: auto;
  margin: 0;
  padding: var(--btn-pad-y) 14px;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
@media (max-width: 800px) {
  .script-output__actions--images-nav .videos-panel__back .script-gen-bar__back-label {
    display: none;
  }
  .script-output__actions--images-nav .videos-panel__back {
    flex: 0 0 var(--btn-back-size);
    width: var(--btn-back-size);
    min-width: var(--btn-back-size);
    padding: 0;
  }
}
.script-block.script-block--screenplay {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.script-scenes {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 4px;
}
.script-scenes--compact {
  gap: 12px;
}
.script-scene--compact {
  padding: 10px 0;
}
.script-scene--compact + .script-scene--compact {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.script-scene--compact .script-scene__heading {
  font-size: 14px;
  margin-bottom: 6px;
}
.script-block--outline-short {
  padding-bottom: 12px;
}
.script-outline-hook,
.script-outline-logline {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
}
.script-outline-details {
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--soft);
}
.script-outline-details__sum {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.script-outline-details__part-k {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.script-outline-details__body {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.script-outline-characters {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.45;
}
.script-movie-plan {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.script-movie-plan__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.script-movie-plan__rows {
  margin: 0;
}
.script-movie-plan__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}
.script-movie-plan__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}
.script-movie-plan__row dd {
  margin: 0;
  color: var(--text);
}
.script-movie-plan__formula {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.script-movie-plan__progress,
.script-movie-plan__next {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.script-movie-plan__next--done {
  color: var(--brand);
}
.script-output__subtitle {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.script-scenes__archive-note {
  margin-bottom: 8px;
}
.script-scene-batch {
  margin: 12px 0 0;
}
.script-scene-block__actions--end {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.script-gen-bar {
  margin: 16px 0 4px;
}
.script-gen-bar .script-gen-alert {
  margin: 0 0 10px;
  width: 100%;
  box-sizing: border-box;
}
.script-gen-bar--end {
  margin: 24px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.script-gen-bar--busy {
  border-top-color: transparent;
  padding-top: 8px;
}
.script-panel--generating .script-gen-bar__back-btn,
.script-panel--generating .script-panel__actions {
  display: none !important;
}
.script-gen-bar--busy .script-batch-progress {
  width: 100%;
}
.script-gen-bar:not(:has(.script-gen-bar__row)) .btn.script-scene-block__write {
  width: 100%;
}
.script-batch-progress {
  margin: 16px 0 4px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid #cce5dc;
  background: linear-gradient(145deg, var(--brand-soft, #edf8f4) 0%, #fff 62%);
  box-shadow: 0 1px 2px rgba(16, 24, 22, 0.06);
}
.script-batch-progress__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.script-batch-progress__spinner {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2.5px solid #dce8e4;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: script-batch-spin 0.75s linear infinite;
}
.script-batch-progress__meta {
  flex: 1;
  min-width: 0;
}
.script-batch-progress__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.script-batch-progress__sub,
.script-gen-hint {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.script-batch-progress__clock {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.script-batch-progress__track {
  margin-top: 14px;
  height: 4px;
  border-radius: 99px;
  background: #e2ebe8;
  overflow: hidden;
  position: relative;
}
.script-batch-progress__fill {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #5bc4a8, var(--brand));
  background-size: 200% 100%;
  animation: script-batch-progress-slide 1.25s ease-in-out infinite,
    script-batch-progress-shimmer 2.2s linear infinite;
}
@keyframes script-batch-spin {
  to { transform: rotate(360deg); }
}
@keyframes script-batch-progress-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(300%); }
}
@keyframes script-batch-progress-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .script-batch-progress__spinner,
  .script-batch-progress__fill {
    animation: none;
  }
  .script-batch-progress__fill {
    width: 55%;
    transform: none;
    margin: 0 auto;
  }
}
.script-assistant-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 16px;
}
.script-assistant-reply {
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.script-assistant-reply--status {
  color: var(--muted);
  font-size: 14px;
}
.script-assistant-reply--scene {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.script-assistant-reply.is-typing::after {
  content: "▋";
  margin-left: 2px;
  color: var(--brand);
  animation: script-cursor-blink 0.85s step-end infinite;
}
@keyframes script-cursor-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
.script-scene {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.script-scene + .script-scene {
  padding-top: 20px;
  border-top: 1px solid #ececf1;
}
.script-scene__heading {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.script-scene__line {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}
.script-scene__line:last-child {
  margin-bottom: 0;
}
.script-scene__k {
  font-weight: 600;
}
.script-scene__dialogue {
  margin: 10px 0 4px;
}
.script-scene__dialogue-k {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.script-scene__line--dialogue {
  margin-bottom: 6px;
}
.script-output--video .shot {
  margin-bottom: 16px;
}
.script-output--video .shot:last-child {
  margin-bottom: 0;
}
.story-scene-box {
  margin: 0 0 20px;
  padding: 12px 12px 6px;
  border: 1px solid #ececf1;
  border-radius: 14px;
  background: #fafafa;
}
.story-scene-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececf1;
}
.story-scene-box__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.story-scene-box__dur {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.story-scene-box .shot--video {
  margin-left: 4px;
  margin-right: 4px;
}
.script-scene__story-dur {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.script-clip {
  margin: 10px 0 12px;
  padding: 10px 10px 8px;
  border-left: 3px solid var(--brand);
  background: #f6f7f9;
  border-radius: 0 10px 10px 0;
}
.script-clip__k {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.script-block {
  margin: 0 0 18px;
  padding: 0 2px 16px;
  border-bottom: 1px solid #ececf1;
}
.script-block--intro {
  margin: 0 0 18px;
  padding: 0 2px 16px;
  border-bottom: 1px solid #ececf1;
}
.script-block__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667085;
}
.script-profile-cards__hint {
  margin: -4px 0 12px;
}
.script-profile-card {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #ececf1;
}
.script-profile-card:last-child {
  margin-bottom: 0;
}
.script-profile-card__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  -webkit-user-select: none;
  user-select: none;
}
.script-profile-card__summary::-webkit-details-marker {
  display: none;
}
.script-profile-card__summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.script-profile-card[open] .script-profile-card__summary::after {
  transform: rotate(-135deg);
}
.script-profile-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.script-profile-card__body {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #ececf1;
}
.script-profile-card__body .script-scene__line:first-child {
  margin-top: 0;
}
.script-profile-card__age {
  font-size: 13px;
  font-weight: 600;
  color: #667085;
}
.script-scene-block__progress {
  margin: 0 0 14px;
}
.script-scene-block__write {
  width: 100%;
  margin: 10px 0 4px;
  min-height: 44px;
  font-size: 15px;
}
.script-scene-block__wait {
  margin: 8px 0 0;
  font-size: 13px;
}
.script-scene-block--done {
  border-color: #d1e9ff;
  background: #f8fbff;
}
.timeline-scene__beat {
  margin: 0 0 14px;
}
.timeline-scene__beat:last-child {
  margin-bottom: 0;
}
.timeline-scene__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.3;
}
.timeline-scene__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}
.script-close {
  margin: 0;
  padding: 16px 2px 4px;
  border-top: 1px solid #ececf1;
}
.script-close__k {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.script-close__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.scene {
  padding: 16px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.scene header { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.k { display: block; margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
.scene p { margin: 0; overflow-wrap: break-word; line-height: 1.5; }
.studio-banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.studio-banner p { margin: 0; }
.studio-banner p + p { margin-top: 10px; }
.studio-banner--signin {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}
.studio-banner--signin.is-pulse {
  animation: studio-banner-pulse 0.9s ease 2;
}
@keyframes studio-banner-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 35%, transparent); }
}
.studio-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-banner--plan {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}
.studio-coach {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #14532d;
}
.studio-coach p { margin: 0; flex: 1 1 200px; }
.studio-coach[hidden] { display: none !important; }
.mgr-intro { margin: 0 0 14px; max-width: 42rem; }
/* My videos (library) */
.library-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 28px;
  max-width: min(960px, 100%);
}
.library-page__stat {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #71717a;
}
.library-page__stat:empty { display: none; }
.library-page__banner {
  margin: 0 0 12px;
}
.library-page__alert { margin: 12px 0 0; }
.library-page__ideas { margin-top: 16px; }
.library-page__list { margin-top: 8px; }
.library-toolbar {
  gap: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  position: static;
  box-shadow: none;
}
.library-toolbar__mobile-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.library-toolbar__mobile-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.library-toolbar__search {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.library-toolbar__filter-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  cursor: pointer;
  box-shadow: none;
}
.library-toolbar__filter-btn:active {
  background: #f2f4f7;
}
.library-toolbar__filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}
.library-toolbar__filter-badge[hidden] {
  display: none !important;
}
.library-toolbar__drawer-head {
  display: none;
}
.library-toolbar__drawer-body {
  display: grid;
  gap: 12px;
}
.library-drawer-scrim {
  display: none;
}
@media (min-width: 720px) {
  .library-toolbar__filter-btn,
  .library-drawer-scrim {
    display: none !important;
  }
  .library-toolbar__drawer {
    position: static;
    display: grid;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    max-height: none;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .library-page .library-toolbar__search input {
    min-height: 0;
  }
}
.library-toolbar__search input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: none;
  border: 1px solid var(--line);
  background: #fff;
}
.library-page .library-toolbar__select {
  box-shadow: none;
  border: 1px solid var(--line);
  background: #fff;
}
.library-toolbar__block { display: grid; gap: 8px; }
.library-toolbar__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a2b3;
}
.library-toolbar__status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.library-page .chip {
  min-height: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  border-radius: 8px;
}
.library-page .library-toolbar__status .chip {
  font-weight: 600;
}
.library-toolbar__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
@media (min-width: 720px) {
  .library-toolbar__filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }
  .library-format-chips,
  .library-toolbar__pin {
    display: none;
  }
}
@media (max-width: 719px) {
  .library-format-select {
    display: none;
  }
  .library-format-chips {
    grid-column: 1 / -1;
  }
  .library-toolbar__pin {
    display: none !important;
  }
  .library-page .pm-tools.library-toolbar {
    gap: 0;
    margin: 0 0 6px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: static;
  }
  .library-toolbar__mobile-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 4px 0 10px;
    background: linear-gradient(180deg, var(--surface) 70%, transparent 100%);
  }
  .library-page__stat {
    margin: 8px 0 0;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
  }
  .library-page .library-toolbar__search input {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: none !important;
  }
  .library-toolbar__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid #ececf1;
  }
  .library-toolbar__drawer-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .library-toolbar__drawer-done {
    border: 0;
    background: transparent;
    color: var(--brand);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 4px;
    cursor: pointer;
  }
  .library-toolbar__drawer {
    position: fixed;
    z-index: 52;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(78vh, 560px);
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
  }
  .library-toolbar__drawer:not(.is-open) {
    pointer-events: none;
    visibility: hidden;
    transform: translateY(110%);
    transition: transform 0.22s ease, visibility 0.22s ease;
  }
  .library-toolbar__drawer.is-open {
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s;
  }
  .library-drawer-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 51;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.42);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .library-drawer-scrim[hidden] {
    display: none !important;
  }
  body.library-filters-open {
    overflow: hidden;
  }
  .library-toolbar__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #667085;
  }
  .library-toolbar__status {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    background: #f2f4f7;
    border-radius: 12px;
  }
  .library-page .library-toolbar__status .chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 9px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #667085;
  }
  .library-page .library-toolbar__status .chip.is-on {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
  }
  .library-toolbar__filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .library-page .library-toolbar__select.pm-mini {
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: 8px 30px 8px 11px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: none !important;
  }
  .library-toolbar__chip-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none;
    padding: 0;
    overflow: visible;
  }
  .library-page #formatFilters .chip {
    flex: none;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: none;
  }
  .library-page #formatFilters .chip.is-on {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }
}
@media (max-width: 360px) {
  .library-page .library-toolbar__status .chip {
    font-size: 10px;
    padding: 8px 2px;
  }
}
.library-toolbar__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.library-toolbar__select {
  width: 100%;
  max-width: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  min-height: 0;
}
.library-toolbar__pin-btn {
  width: auto;
  min-height: 0;
  padding: 4px 10px;
  font-size: 12px;
}
.library-page__list.job-grid--list,
.project-page .job-grid--list {
  gap: 0;
}
.library-page__list .pm-card,
.project-page .job-grid--list .pm-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.library-page__list .pm-card:last-child,
.project-page .job-grid--list .pm-card:last-child {
  border-bottom: 0;
}
.library-page__list .pm-card:hover,
.project-page .job-grid--list .pm-card:hover {
  background: var(--soft);
}
.library-page__list .pm-card__bar,
.project-page .job-grid--list .pm-card__bar {
  background: transparent;
  border-top: 0;
}
.pm-card__body { position: relative; padding-top: 2px; }
.pm-card__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-style: normal;
}
.pm-card__badge--upcoming { background: #f4f4f5; color: #52525b; }
.pm-card__badge--active { background: #e8f4fd; color: #0b5cab; }
.pm-card__badge--done { background: #e8f7ee; color: #0d6b3a; }
.pm-card__meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.pm-card__time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #71717a;
}
.pm-card__pin {
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff8e6;
  color: #7a4e00;
  font-weight: 600;
  font-style: normal;
}
.job-grid--list .pm-card__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: space-between;
}
.pm-card__bar-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.library-page .pm-card__bar-status button {
  font-size: 11px;
  padding: 3px 7px;
  min-height: 0;
  border-radius: 6px;
}
.library-page .pm-card__bar-actions button {
  font-size: 11px;
  padding: 3px 7px;
  min-height: 0;
  border-radius: 6px;
}
.pm-card__bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.pm-card__bar-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  position: relative;
  width: 100%;
}
.pm-card__more {
  flex: none;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  box-shadow: none;
}
.pm-card__more:active {
  background: #f2f4f7;
}
.pm-card__menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  min-width: min(252px, calc(100vw - 40px));
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4e7ec;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.pm-card.is-menu-open .pm-card__menu {
  display: block;
}
.pm-card__menu-k {
  margin: 6px 10px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #98a2b3;
}
.pm-card__menu-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin: 0 4px 6px;
  background: #f2f4f7;
  border-radius: 10px;
}
.pm-card__menu > button[role="menuitem"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
}
.pm-card__menu > button[role="menuitem"]:active {
  background: #f2f4f7;
}
.pm-card__menu > button.pm-card__menu-danger {
  color: #b42318;
}
.pm-card__menu-status button {
  width: 100%;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #667085;
  cursor: pointer;
}
.pm-card__menu-status button.is-on {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  font-weight: 700;
}
.library-page .pm-card__continue.btn,
.project-page .pm-card__bar .btn {
  min-height: 0 !important;
  padding: 5px 11px !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 8px;
  box-shadow: none;
  white-space: nowrap;
}
.library-page .pm-card__bar,
.project-page .job-grid--list .pm-card__bar {
  padding: 2px 0 8px;
  gap: 6px 8px;
}
.library-page .job-grid--list .pm-card__main,
.project-page .job-grid--list .pm-card__main {
  padding: 10px 0;
}
.library-page .job-grid--list .pm-card__bar,
.project-page .job-grid--list .pm-card__bar {
  padding-left: 0;
  padding-right: 0;
}
.project-page__actions .btn {
  min-height: 0;
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 8px;
  box-shadow: none;
}
.library-empty.sheet {
  padding: 8px 0 16px;
  border: 0;
  background: transparent;
}
@media (max-width: 800px) {
  .library-format-chips #formatFilters {
    display: flex;
  }
  .library-page .library-toolbar__select {
    box-shadow: none !important;
  }
}
@media (max-width: 719px) {
  .library-page .job-grid--list .pm-card__bar,
  .library-page__list .pm-card__bar {
    display: block;
    padding: 10px 12px 12px;
    border-top: 1px solid #ececf1;
    background: #fafbfc;
  }
  .library-page .pm-card__continue.btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: none;
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }
  .library-page .job-grid--list .pm-card {
    position: relative;
    z-index: 0;
    border-radius: 16px;
    margin: 0 0 10px;
    border: 1px solid #ececf1;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    overflow: visible;
  }
  .library-page .pm-card.is-menu-open {
    z-index: 5;
  }
  .library-page .job-grid--list .pm-card__main {
    padding: 12px 12px 10px;
  }
}
@media (min-width: 720px) {
  .library-page .pm-card__continue {
    flex: 0 1 auto;
    margin-left: auto;
  }
  .library-page .pm-card__bar {
    justify-content: flex-end;
  }
}

.library-import-banner {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
}
.library-import-banner p { margin: 0; flex: 1 1 200px; }
.tool-sheet__pick-hint { margin: 0 0 12px; }
.tool-sheet { margin-top: 8px; }
.tool-sheet > .tool-sheet__lead,
.tool-sheet > .lead.tool-sheet__lead {
  margin: 0 0 12px;
  padding: 0;
  border-top: none;
}
.tool-sheet__lead {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.tool-sheet--pick-needed {
  border-radius: 14px;
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--brand) 5%, #fff);
}
.tool-sheet--pick-needed .choice-label {
  color: var(--brand);
  font-weight: 600;
}
.tool-picks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tool-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 6px 10px 6px 7px;
  min-height: 34px;
  border: 1.5px solid #e4e4ea;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tool-pick:hover {
  border-color: #cfcfd8;
}
.tool-pick.is-on {
  border-color: var(--brand);
  border-width: 2px;
  background: color-mix(in srgb, var(--brand) 7%, #fff);
}
.tool-pick__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #c5c5cf;
  flex: none;
  position: relative;
  background: #fff;
  transition: border-color 0.2s ease;
}
.tool-pick.is-on .tool-pick__dot {
  border-color: var(--brand);
}
.tool-pick.is-on .tool-pick__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}
.tool-pick__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}
.sheet__sub {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f9fb;
  border: 1px solid #e8eaef;
}
.tool-guide__selected.is-on,
.tool-guide__item.is-on {
  border-color: color-mix(in srgb, var(--brand) 35%, #e8eaef);
  background: color-mix(in srgb, var(--brand) 6%, #f8f9fb);
}
.tool-guide__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.tool-guide__name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tool-guide__free {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
}
.tool-guide__info {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}
.tool-guide__link-row { margin: 0; }
.tool-guide__link,
.tool-guide__item-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.tool-guide__link:hover,
.tool-guide__item-link:hover { text-decoration: underline; }
.tool-guide__all { margin-top: 10px; }
.tool-guide__summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
.tool-guide__summary::-webkit-details-marker { display: none; }
.tool-guide__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-guide__item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e8eaef;
  background: #fff;
}
.tool-guide__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.tool-guide__item-label { font-size: 14px; }
.tool-guide__item-free {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  line-height: 1.35;
}
.tool-guide__item-info {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}
.image-prompts-field { margin-top: 18px; }
.image-prompts-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 10px;
  padding: 16px 14px;
  border: 2px solid #e4e4ea;
  border-radius: 16px;
  background: #fafafb;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.image-prompts-card:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}
.image-prompts-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.image-prompts-card__body strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.image-prompts-card__body > span {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.image-prompts-card input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brand);
  cursor: pointer;
}
.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 8px;
}
#panel-shots h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 700; }
#panel-images .panel-images__intro { white-space: pre-wrap; line-height: 1.5; }
#panel-images .panel-images__generate {
  display: flex;
  width: 100%;
  margin-top: 18px;
  min-height: var(--btn-min-h);
  justify-content: center;
  align-items: center;
  font-size: var(--btn-font);
  font-weight: 600;
  border-radius: var(--btn-radius);
}
#panel-shots .panel-shots__intro { line-height: 1.5; }
.shots-app-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.shots-app-pick__name { color: var(--text); font-weight: 600; }
.shots-app-pick__change {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
}
#panel-shots .panel-shots__generate {
  display: flex;
  width: 100%;
  margin-top: 18px;
  min-height: var(--btn-min-h);
  justify-content: center;
  align-items: center;
  font-size: var(--btn-font);
  font-weight: 600;
  border-radius: var(--btn-radius);
}
.composer.composer--busy {
  display: none;
}
.composer.composer--video-pick .composer__inner #goSecondary.composer__back {
  flex: 0 0 var(--btn-back-size);
  max-width: var(--btn-back-size);
}
.composer.composer--video-pick .composer__inner #goSecondary:not(.composer__back) {
  flex: 1;
  max-width: 100%;
}
.composer.composer--video-pick #go[hidden] {
  display: none !important;
}
.composer.composer--images-pick .composer__inner #goSecondary.composer__back {
  flex: 0 0 var(--btn-back-size);
  max-width: var(--btn-back-size);
  min-width: var(--btn-back-size);
}
.composer.composer--images-pick .composer__inner #go,
.composer.composer--images-pick .composer__inner #goSecondary:not(.composer__back) {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  min-height: var(--btn-min-h);
}
.composer.composer--images-pick .composer__inner #go:hover,
.composer.composer--images-pick .composer__inner #goSecondary:hover {
  background: var(--surface);
}
#panel-images #imagesVideoSheet { margin-top: 8px; }
#panel-shots #shots-prompts-mount { margin-top: 0; }
#panel-shots #shotsVideoSheet + #shots-prompts-mount { margin-top: 8px; }
#panel-shots .videos-panel .script-output__title {
  display: none;
}
.shot header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.shot__head { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.shot__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}
.shot--video .shot__title-row {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}
.shot__title-row strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
}
.shot--video .shot__title-row .shot__regen {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 6px;
  border: 1px solid #e8eaed;
  background: var(--surface);
  color: #667085;
  box-shadow: none;
  white-space: nowrap;
}
.shot--video .shot__title-row .shot__regen:hover:not([disabled]) {
  background: #eef0f3;
  border-color: #d0d5dd;
  color: #475467;
}
.shot__head strong { font-size: 15px; line-height: 1.35; }
.shot__meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.shot__outline {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.shot--video.shot--just-added {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  background: #f8fbff;
}
.shot--video .shot__outline {
  margin: 10px 0 0;
  padding: 0;
}
.shot--video > header {
  margin: 0;
}
.shot--video .shot__prompt-copy {
  position: relative;
  margin-top: 12px;
}
.shot--video .shot__prompt-copy--ready {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.shot--video .shot__copy {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.shot--video .shot__prompt-copy--ready .shot__copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}
.shot--video .shot__used {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #98a2b3;
  cursor: pointer;
}
.shot--video .shot__prompt-copy--ready .shot__used {
  grid-column: 3;
  grid-row: 1;
}
.shot--video .shot__used.is-on {
  color: #fff;
  background: #0a9b6e;
  border-color: #0a9b6e;
}
.shot--video.shot--used {
  border-color: rgba(10, 155, 110, 0.45);
}
.shot--video .shot__prompt-copy--ready .shot__prompt-wrap {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 12px;
}
.shot--video .shot__prompt-copy .shot__prompt-wrap {
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  box-sizing: border-box;
}
.shot--video .shot__prompt-copy .shot__prompt-wrap > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.shot__prompt-placeholder {
  font-style: italic;
  color: var(--muted);
}
.shot--locked .shot__regen:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.shot__tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.shot--video:first-of-type .shot__tag {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.shot p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.shot__prompt-wrap {
  position: relative;
  margin-top: 8px;
}
.shot__prompt-wrap > p {
  margin: 0;
}
.shot--video.is-regenerating .shot__prompt-wrap > p {
  opacity: 0.4;
  user-select: none;
}
.shot__prompt-busy {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-sizing: border-box;
}
.shot--video.is-regenerating .shot__prompt-busy {
  display: flex;
}
.shot__prompt-busy-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.shot__prompt-track {
  height: 3px;
  border-radius: 99px;
  background: #ececec;
  overflow: hidden;
}
.shot__prompt-fill {
  width: 36%;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
  animation: shot-prompt-slide 1.1s ease-in-out infinite;
}
@keyframes shot-prompt-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.shot__foot {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid #ececf1;
}
.shot__regen-hint {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot--video.is-regenerating .shot__regen {
  opacity: 0.55;
}
.shot--video.is-regenerating .copy {
  opacity: 0.55;
}
.copy, .btn, .btn--ghost {
  border-radius: var(--btn-radius);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-h);
  font-size: var(--btn-font);
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.btn--sm {
  min-height: 0;
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none;
}
.copy.btn--sm,
.btn--ghost.btn--sm {
  box-shadow: none;
}
a.btn, a.btn--ghost, a.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.copy, .btn--ghost {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.copy:hover, .btn--ghost:hover {
  background: #f9fafb;
  border-color: #98a2b3;
}
.shot__foot .shot__regen.btn--ghost {
  min-height: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 6px;
  border: 1px solid #e8eaed;
  background: var(--surface);
  color: #667085;
}
.shot__foot .shot__regen.btn--ghost:hover {
  background: #eef0f3;
  border-color: #d0d5dd;
  color: #475467;
}
.btn {
  border: 0;
  background: linear-gradient(180deg, #0bab6f 0%, var(--brand) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(10, 124, 98, 0.22);
}
.btn:hover {
  background: linear-gradient(180deg, #0ca575 0%, var(--brand-hover) 100%);
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.model-note { color: var(--muted); font-size: 13px; }

.composer {
  flex: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px 14px;
}
@media (min-width: 801px) {
  .app:has(#phases) .composer--in-flow {
    position: static;
    flex: none;
    margin: 22px 0 12px;
    padding: 14px 16px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.08);
    width: 100%;
    box-sizing: border-box;
  }
  .app:has(#phases) .composer--in-flow[hidden] {
    display: none !important;
  }
}
.composer__inner {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: stretch;
  gap: 8px;
}
.composer__inner:not(:has(#goSecondary[hidden])) #goSecondary.composer__back {
  flex: 0 0 var(--btn-back-size);
  width: var(--btn-back-size);
  min-width: var(--btn-back-size);
  min-height: var(--btn-min-h);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.composer__inner:not(:has(#goSecondary[hidden])) #goSecondary:not(.composer__back) {
  flex: 0 0 40%;
  min-width: 0;
  padding: 10px 8px;
  font-size: 14px;
}
.composer__inner:not(:has(#goSecondary[hidden])) #go {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  font-size: 14px;
  white-space: normal;
  line-height: 1.25;
  overflow: visible;
}
.composer #goSecondary.composer__back .composer__back-icon {
  display: block;
}
.composer #go[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.composer__inner:has(#goSecondary[hidden]) #go {
  flex: 1;
  max-width: 100%;
}
/* Pricing page */
.pricing-page {
  padding-bottom: 8px;
}
.pricing-page__tagline {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #667085;
  max-width: 36rem;
}
.pricing-page__tagline a { text-decoration: underline; text-underline-offset: 2px; }
.pricing-status {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ececf1;
}
.pricing-status--guest {
  background: var(--surface);
  border-color: #e4e7ec;
}
.pricing-status__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.pricing-status__email {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}
.pricing-status__meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: #667085;
}
.pricing-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.pricing-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef0f3;
  color: #344054;
}
.pricing-badge--pro {
  background: #ecfdf5;
  color: #047857;
}
.pricing-meter {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: #eef0f3;
  overflow: hidden;
}
.pricing-meter__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #34d399);
  transition: width 0.25s ease;
}
.pricing-legacy {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #ececf1;
  font-size: 13px;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pricing-cards {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
@media (min-width: 640px) {
  .pricing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .pricing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-card--free { grid-column: 1 / -1; }
  .pricing-cards:has(.pricing-card--pro:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pricing-cards:has(.pricing-card--pro:nth-child(4)) .pricing-card--free {
    grid-column: auto;
  }
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ececf1;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.pricing-card--best {
  border-color: color-mix(in srgb, var(--brand) 35%, #ececf1);
  box-shadow: 0 4px 20px rgba(10, 155, 110, 0.12);
}
.pricing-card__ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
}
.pricing-card__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.pricing-card__price {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.pricing-card__price span {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.pricing-card__price small {
  font-size: 13px;
  font-weight: 500;
  color: #667085;
}
.pricing-card__blurb {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #667085;
}
.pricing-card__features {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #344054;
  flex: 1;
}
.pricing-card__features li { margin: 4px 0; }
.pricing-card__note {
  margin: 0;
  font-size: 13px;
  color: #667085;
}
.pricing-card .plan-go {
  margin-top: auto;
  width: 100%;
  min-height: 44px;
  justify-content: center;
}
.pricing-foot {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f9fafb;
  font-size: 12px;
  line-height: 1.45;
  color: #667085;
}
.pricing-page .auth-error { margin: 0 0 12px; }
.plan-grid { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 720px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.lib-row, .plan {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.lib-row strong, .plan strong { display: block; font-size: 18px; }
.lib-row span, .plan span { display: block; color: var(--text); font-size: 16px; line-height: 1.45; }
.plan .price { display: block; margin: 4px 0; font-size: 28px; font-weight: 600; color: var(--text); }
.plan-go { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
}
.toast.is-on { opacity: 1; }

.tabbar { display: none; }
.workflow-context {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.workflow-context__k {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.workflow-context strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin: 2px 0 4px;
}
.workflow-context span {
  color: var(--muted);
  font-size: 13px;
}
.workflow-context--warn {
  border-color: #e8c9a8;
  background: #fff9f2;
}
.process {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  background: #fff;
}
.process__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.process__head strong { font-size: 17px; }
.process__head span, .process__detail { color: var(--muted); font-size: 13px; }
.process__detail { margin: 4px 0 14px; }
.process__track { height: 4px; border-radius: 99px; background: #ececec; overflow: hidden; }
.process__fill { height: 100%; background: var(--brand); position: relative; overflow: hidden; transition: width 0.45s ease; }
.process__fill i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: process-slide 1.1s linear infinite;
}
.process__list { list-style: none; margin: 14px 0 0; padding: 0; }
.process__list--scroll {
  max-height: min(52vh, 340px);
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}
.process__step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--muted);
}
.process__step span { width: 16px; flex: none; }
.process__step.is-on { color: var(--text); font-weight: 600; }
.process__step.is-done { color: var(--text); }
.process-typewriter {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.process-typewriter.is-typing::after {
  content: "▋";
  margin-left: 2px;
  color: var(--brand);
  animation: script-cursor-blink 0.85s step-end infinite;
}
@keyframes process-slide {
  from { transform: translateX(-60%); }
  to { transform: translateX(160%); }
}

@media (max-width: 800px) {
  :root {
    --btn-min-h: 40px;
    --btn-pad-y: 8px;
    --btn-pad-x: 15px;
  }
  body { font-size: 17px; font-family: system-ui, "Segoe UI", "Noto Sans Devanagari", sans-serif; }
  html, body {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    overscroll-behavior: none;
    touch-action: manipulation;
  }
  .app, .main, .main__scroll { background: var(--surface); overscroll-behavior: none; }
  .main__scroll:has(.auth-page) {
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
  }
  .main__scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .main__scroll::-webkit-scrollbar { display: none; }
  .topbar, .tabbar, .home-tools, .steps, .chip, .poster, .tabbar__link { -webkit-user-select: none; user-select: none; }
  .topbar, .tabbar, .composer {
    background: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  }
  .tabbar { box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.06); }
  .home-tools {
    top: 12px;
    background: #e8eaee;
    padding: 2px 0 8px;
    border-bottom: 0;
    margin-bottom: 0;
  }
  .home-tools::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    background: #e8eaee;
  }
  .home-tools .search input {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  }
  .topbar__title { font-size: 17px; font-weight: 700; }
  .lead, .plan {
    background: #fff;
    border: 0;
    border-radius: 20px;
    padding: 16px;
    margin: 0 0 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 24px rgba(16, 24, 40, 0.07);
  }
  .col--wide > .lead {
    font-size: 14px;
    line-height: 1.4;
    padding: 12px 14px;
  }
  .plan-go { display: flex; width: 100%; min-height: var(--btn-min-h); }
  .poster:active, .pm-card:active, .btn:active, .plan-go:active { transform: scale(0.98); }
  .tabbar__link:active { opacity: 0.55; }
  .more {
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 24px rgba(16, 24, 40, 0.07);
  }
  .search input, .pm-card, .pm-idea, .pm-generate, .process, .project-head, .scene, .shot, textarea, select {
    background: #fff;
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 24px rgba(16, 24, 40, 0.07);
  }
  .pm-tools {
    position: sticky;
    top: 0;
    z-index: 4;
    gap: 8px;
    margin: 0 -4px;
    padding: 8px 4px 10px;
    background: #e8eaee;
    border-radius: 0;
    box-shadow: none;
  }
  .library-page .pm-tools.library-toolbar {
    position: static;
    margin: 0;
    padding: 0;
    background: transparent;
  }
  .pm-tools .search input { padding: 9px 14px; border-radius: 999px; }
  #formatFilters { display: none; }
  .library-format-chips #formatFilters { display: flex; }
  .pm-tools .chips { margin: 0; }
  .pm-mini { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); padding: 7px 10px; max-width: 34%; }
  .pm-mini--grow { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; }
  .library-page .library-toolbar__select.pm-mini {
    max-width: none;
    width: 100%;
    box-shadow: none !important;
  }
  .library-page .pm-tools.library-toolbar .search input {
    border-radius: 12px;
    box-shadow: none !important;
  }
  .library-page .pm-tools.library-toolbar {
    position: static;
    margin: 0 0 6px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .chip, .tone, .story, .film-genre, .aspect, .pill {
    background: #fff;
    color: #3a3a44;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  }
  .format-grid .content-format {
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  }
  .format-grid .content-format.is-on {
    background: var(--brand-soft, #edf8f4);
    color: var(--text);
    box-shadow: 0 0 0 1px var(--brand);
  }
  .pm-card__bar button, .pm-idea__actions button, .pm-confirm button {
    background: #eef0f3;
    box-shadow: none;
    border-color: transparent;
  }
  #statusFilters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    width: 100%;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  }
  #statusFilters .chip {
    background: #eef0f3;
    color: #1a1a1a;
    box-shadow: none;
    text-align: center;
    padding: 8px 4px;
  }
  #statusFilters .chip.is-on { background: var(--brand); color: #fff; }
  .chip.is-on, .tone.is-on, .story.is-on, .film-genre.is-on, .aspect.is-on, .pill.is-on, .pm-card__bar button.is-on, .steps:not(.steps--progress) button.is-on {
    background: var(--brand);
    color: #fff;
    box-shadow: none;
  }
  .home-tools .chip-rail {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .home-tools .chips {
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 2px;
    height: 36px;
    margin: 6px 0 0;
  }
  .home-tools .chip-rail__more {
    position: static;
    transform: none;
    flex: none;
    width: 28px;
    height: 32px;
    background: transparent;
  }
  .home-tools .chip {
    display: flex;
    align-items: center;
    height: 32px;
    min-height: 0;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    background: transparent;
    color: #5c6570;
    box-shadow: none;
  }
  .home-tools .chip.is-on {
    background: #fff;
    color: var(--brand);
    box-shadow: none;
  }
  .more .pair { grid-template-columns: 1fr 1fr; }
  .pm-card, .pm-idea, .pm-generate, .process { border-radius: 20px; }
  .poster { box-shadow: 0 10px 14px -12px rgba(16, 24, 40, 0.55); }
  .app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
  .menu {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: 0;
    border-radius: 22px;
  }
  .menu:hover { background: transparent; }
  .menu:active { background: #eef0f3; }
  .topbar__mark { display: none; }
  .topbar--home .topbar__mark {
    display: block;
    width: 28px;
    height: 28px;
    margin: 8px;
    flex: none;
  }
  .main { flex: 1; min-height: 0; height: auto; }
  .topbar {
    position: relative;
    height: calc(48px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 4px 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
  }
  .topbar__title {
    position: absolute;
    left: 52px;
    right: 52px;
    top: env(safe-area-inset-top);
    height: 48px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    pointer-events: none;
  }
  .topbar--pushed {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
  }
  .topbar--pushed .topbar__mark { display: none; }
  .topbar--pushed .topbar__back {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    color: var(--brand);
    border-radius: 22px;
  }
  .topbar--pushed .topbar__back:active { background: #e7f8f2; }
  .tabbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    flex: none;
    border-top: 0;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
  }
  .tabbar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding: 4px 2px 2px;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
  }
  .tabbar__link.is-on { color: #0a9b6e; background: transparent; font-weight: 700; }
  .tabbar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: inherit;
  }
  .tabbar__link.is-on .tabbar__icon {
    width: 36px;
    height: 32px;
    border-radius: 12px;
    background: var(--surface);
    color: #0a9b6e;
  }
  .tabbar__label {
    line-height: 1.1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .col { padding-top: 12px; padding-bottom: 20px; }
  .main__scroll:has(#phases) .col {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .app:has(.main > .composer:not([hidden])) .main__scroll:has(#phases) .col {
    padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }
  .main__scroll:has(.library-page) .col,
  .main__scroll:has(.project-page) .col,
  .main__scroll:has(.projects-page) .col,
  .main__scroll:has(.me) .col {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .col:has(.pricing-page) {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .col:has(.auth-page) {
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-bottom: 28px;
    width: min(440px, calc(100% - 28px));
  }
  .col--wide:has(.auth-page) {
    width: min(440px, calc(100% - 28px));
  }
  .auth-page {
    padding-top: 24px;
    padding-bottom: 36px;
  }
  .me__block, .me__out { background: #fff; }
  .me__field input, .me__field select { background-color: var(--surface); box-shadow: none; }
  .me__field textarea { background-color: var(--surface); }
  .me__phone select { background-color: var(--surface); }
  .steps {
    position: sticky;
    top: 0;
    margin: 0 0 14px;
  }
  .steps.steps--progress {
    z-index: 8;
    isolation: isolate;
  }
  .main__scroll:has(#phases) {
    scroll-padding-top: 72px;
  }
  .steps--progress {
    display: flex;
    padding: 10px 6px 8px;
  }
  .steps--progress .steps__label { font-size: 10px; }
  .steps--progress .steps__dot { width: 28px; height: 28px; font-size: 11px; }
  .steps--progress .steps__item:not(:last-child)::after { top: 14px; left: calc(50% + 14px); width: calc(100% - 28px); }
  .steps li { min-width: 0; }
  .steps:not(.steps--progress) button { width: 100%; padding: 10px 2px; font-size: 13px; min-height: 44px; white-space: nowrap; }
  .steps button:disabled { opacity: 1; color: #5c5c68; }
  .more { margin-top: 12px; padding: 2px 16px 14px; border-radius: 20px; }
  .composer__inner { width: 100%; }
  .composer .btn, .composer .btn--ghost,
  .idea-setup__actions .btn, .idea-setup__actions .btn--ghost,
  .script-panel__actions .btn, .script-panel__actions .btn--ghost {
    min-height: 40px;
    font-weight: 600;
    border-radius: var(--btn-radius);
  }
  .app:has(.composer) .composer {
    border: 0;
    border-radius: 22px 22px 0 0;
    padding: 12px 14px 8px;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
  }
  .app:has(.composer) .tabbar {
    border-radius: 0;
    box-shadow: none;
    padding-top: 2px;
    border-top: 1px solid #ececf1;
  }
  body:has(.composer) .toast { bottom: calc(148px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
  button, a, select { -webkit-tap-highlight-color: transparent; }
  .side {
    position: fixed;
    z-index: 30;
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid var(--line);
    width: min(260px, 88vw);
    transform: translateX(105%);
    transition: transform 0.18s ease;
  }
  .side.is-open { transform: none; }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 20;
  }
  .scrim[hidden] { display: none; }
  .pair { grid-template-columns: 1fr; }
  .col, .col--wide { width: min(1120px, calc(100% - 24px)); }
  .col--wide:has(.home-create) {
    padding: 16px 0 24px;
  }
  .home-create .home-hero {
    padding: 16px 14px 14px;
    border-radius: 20px;
    border: 0;
  }
  .home-create .home-hero.sheet {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 24px rgba(16, 24, 40, 0.07);
  }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .job-grid { grid-template-columns: 1fr; }
  .pm-generate { flex-direction: column; align-items: stretch; }
  .pm-generate .btn { min-height: var(--btn-min-h); }
  .composer__inner { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .side { transition: none; }
  .process__fill, .process__fill i { animation: none; transition: none; }
  .ideas-progress.ideas-progress--inline,
  .idea.idea--enter {
    animation: none;
  }
}

/* Onboarding + Manager */
.ob { display: grid; gap: 16px; max-width: 640px; margin: 0 auto; }
.ob__steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ob__step {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.ob__step span { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.ob__step.is-on { border-color: var(--accent); color: var(--ink); }
.ob__step.is-done { opacity: 0.72; }
.ob__panel {
  display: none;
  gap: 12px;
}
.ob__panel.is-on {
  display: grid;
}
.ob__panel[hidden] {
  display: none !important;
}
.ob__goals { display: grid; gap: 8px; }
.ob__goals--inline { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.ob__goal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}
.ob__goal--sm { padding: 6px 10px; font-size: 0.88rem; }
.ob__channel { position: relative; display: grid; gap: 10px; }
.ob__remove {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.ob__nav { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ob__mirror { font-size: 1.05rem; line-height: 1.55; margin: 0; }

.mgr { display: grid; gap: 12px; }
.mgr__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mgr__tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink);
}
.mgr__tab.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.mgr__toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.mgr__pick { flex: 1; min-width: 200px; margin: 0; }
.mgr__toolbar-add {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mgr__toolbar-add[hidden] {
  display: none !important;
}
.mgr__toolbar-add .mgr__add-btn {
  flex: 1 1 auto;
  min-height: var(--btn-min-h);
  text-align: center;
  justify-content: center;
}
@media (min-width: 480px) {
  .mgr__toolbar-add { flex: 1; flex-wrap: nowrap; }
}
.mgr__list { display: grid; gap: 10px; }
.mgr__slot { display: grid; gap: 8px; }
.mgr__slot-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mgr__slot h3 { margin: 0; font-size: 1.05rem; }
.mgr__slot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mgr__cards { display: grid; gap: 10px; }
.mgr__card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mgr__card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.mgr__delete { color: #b42318; }
.mgr__delete:hover { color: #912018; }
.mgr__badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}
.mgr__add { margin-top: 8px; }
.mgr__add summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.mgr-topic-grid { max-height: min(420px, 55vh); overflow: auto; padding-right: 4px; }
.mgr-topic-grid .mgr-topic {
  appearance: none;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #1c1c1c;
  color: #fff;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 10px 14px -12px rgba(16, 24, 40, 0.45);
}
.mgr-topic-grid .mgr-topic img,
.mgr-topic-grid .mgr-topic .poster__ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mgr-topic-grid .mgr-topic .poster__ph {
  background: #1c1c1c;
  min-height: 0;
}
.mgr-topic-grid .mgr-topic .poster__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.mgr-topic-grid .mgr-topic strong,
.mgr-topic-grid .mgr-topic small {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 2px 10px rgba(0, 0, 0, 0.55);
}
.mgr-topic-grid .mgr-topic strong {
  font-size: 14px;
  font-weight: 600;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.mgr-topic-grid .mgr-topic small {
  font-size: 12px;
  opacity: 0.95;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.mgr-topic-grid .mgr-topic.is-on {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent), 0 10px 14px -12px rgba(16, 24, 40, 0.45);
}
.mgr-topic-grid .mgr-topic:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mgr-series-lead { margin: 0 0 12px; }
.mgr-series-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.mgr-series-picked {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #067a52;
}

.sg-dialog {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(440px, calc(100vw - 24px));
  width: 100%;
  background: transparent;
  color: var(--ink, var(--text));
}
.sg-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.sg-dialog__panel {
  padding: 20px 20px 16px;
  background: var(--panel, #fff);
  color: var(--ink, var(--text));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}
.sg-dialog__title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; }
.sg-dialog__title[hidden] { display: none; }
.sg-dialog__body { margin: 0 0 18px; color: var(--muted); line-height: 1.45; font-size: 0.95rem; }
.sg-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}
.sg-dialog__field[hidden] { display: none; }
.sg-dialog__field-label { font-size: 13px; font-weight: 600; color: var(--ink, var(--text)); }
.sg-dialog__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--bg, #fff);
  color: var(--ink, var(--text));
}
.sg-dialog__input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #0a9b6e) 35%, transparent);
  border-color: var(--accent, #0a9b6e);
}
.sg-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.sg-dialog__actions .btn.mgr__delete { background: color-mix(in srgb, #b42318 12%, var(--panel)); border-color: #fda29b; }
.sg-dialog--video-tool {
  max-width: min(520px, calc(100vw - 24px));
}
.sg-dialog--video-tool .choice-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.sg-dialog--video-tool .tool-picks--dialog {
  margin: 0 0 12px;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  padding-right: 4px;
}
.sg-dialog__hint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
}

.studio-admin-preview {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #e8f0fe;
  border: 1px solid #c2d6f8;
  font-size: 14px;
  line-height: 1.45;
}

.studio-admin-preview a {
  font-weight: 600;
}
