:root {
  --ink: #07111f;
  --muted: #526071;
  --line: #dbe4ee;
  --soft: #f4f8fb;
  --green: #33c6ad;
  --green-dark: #138673;
  --blue: #3267ff;
  --red: #d71920;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
main { min-height: calc(100vh - 152px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 80px);
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid rgba(219, 228, 238, 0.9);
  backdrop-filter: blur(14px);
}
.brand { display: grid; gap: 1px; font-weight: 900; font-size: 24px; }
.brand small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
nav { display: flex; align-items: center; gap: 20px; color: #273244; font-weight: 750; }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #031016;
  background: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
}
.button:hover, button:hover { background: #48d7c2; }
.button:disabled, button:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.button.dark { background: var(--ink); color: #fff; }
.button.ghost { background: #e8f3f1; color: var(--green-dark); }
.button.danger { background: #ffecec; color: var(--red); border: 1px solid #ffb9b9; }
.button.full { width: 100%; }
.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 78px clamp(20px, 6vw, 80px) 46px;
  background:
    linear-gradient(130deg, rgba(3, 16, 22, .94) 0%, rgba(7, 17, 31, .97) 58%, rgba(51, 198, 173, .2) 100%),
    url("https://images.unsplash.com/photo-1611162617474-5b21e879e113?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: #fff;
}
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(48px, 8vw, 108px); line-height: .92; letter-spacing: 0; }
.hero p { max-width: 720px; color: rgba(255,255,255,.78); font-size: clamp(18px, 2vw, 24px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.signal {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
}
.score {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #061016;
  font-weight: 950;
  background: conic-gradient(var(--green) 84%, rgba(255,255,255,.2) 0);
}
.signal strong { display: block; }
.signal span { color: rgba(255,255,255,.72); font-size: 14px; }

.section { padding: 54px clamp(20px, 6vw, 80px); }
.section h2 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 58px); letter-spacing: 0; }
.section > p { margin: 0 0 26px; max-width: 780px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(7,17,31,.05);
}
.card h3 { margin: 0 0 10px; font-size: 24px; }
.card p, .muted { color: var(--muted); line-height: 1.5; }
.metric { font-size: 42px; font-weight: 950; margin: 14px 0 4px; }
.features { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; color: #334155; }
.features li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 999px; background: var(--green); vertical-align: 1px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.price-card { display: flex; flex-direction: column; min-height: 380px; }
.price-card .button { margin-top: auto; }
.price-card.featured { border-color: var(--green); box-shadow: var(--shadow); }

.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 74px); }
.sidebar { border-right: 1px solid var(--line); background: #fff; padding: 28px; }
.sidebar nav { align-items: stretch; flex-direction: column; gap: 8px; }
.sidebar a { padding: 12px 14px; border-radius: 8px; font-weight: 850; }
.sidebar a.active, .sidebar a:hover { background: #ecf8f6; color: var(--green-dark); }
.workspace { padding: 34px clamp(18px, 4vw, 56px); }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.studio-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.credit-chip,
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}
.credit-chip span {
  color: #3267ff;
  font-weight: 950;
}
.credit-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.credit-chip strong {
  font-size: 18px;
}
.profile-chip {
  width: 44px;
  padding: 0;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #172554, #33c6ad);
  border-color: transparent;
  font-weight: 950;
}
.studio-metric-grid {
  align-items: stretch;
}
.studio-metric-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
}
.studio-metric-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 100px;
  height: 42px;
  opacity: .5;
  background:
    linear-gradient(135deg, transparent 0 16%, currentColor 16% 20%, transparent 20% 34%, currentColor 34% 38%, transparent 38% 52%, currentColor 52% 56%, transparent 56% 70%, currentColor 70% 74%, transparent 74%);
}
.metric-purple { color: #7c3aed; }
.metric-blue { color: #2563eb; }
.metric-green { color: #16a34a; }
.studio-metric-card p,
.studio-metric-card .metric,
.studio-metric-card small,
.studio-metric-card .metric-icon {
  position: relative;
  z-index: 1;
}
.studio-metric-card .metric {
  color: var(--ink);
}
.studio-metric-card small {
  color: var(--muted);
  font-weight: 750;
}
.metric-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 14%, white);
  color: currentColor;
  font-weight: 950;
}
.studio-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(300px, 1fr) minmax(360px, 1.35fr);
  gap: 18px;
  margin-bottom: 24px;
}
.studio-dashboard-grid .card {
  min-width: 0;
}
.studio-source-card,
.studio-moments-card,
.studio-ready-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.studio-source-card h2,
.studio-moments-card h2,
.studio-ready-card h2,
.studio-bottom-grid h2 {
  margin: 0;
}
.studio-source-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid #dfe7f1;
  background: linear-gradient(145deg, #07111f, #204b52);
}
.studio-source-preview video,
.studio-source-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-source-preview .thumb-fallback {
  z-index: 0;
}
.studio-moment-list {
  display: grid;
  gap: 10px;
}
.studio-moment-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 9px;
  border: 1px solid #e3ebf4;
  border-radius: 12px;
  background: #f8fbff;
}
.studio-moment-list strong,
.studio-moment-list small {
  display: block;
}
.studio-moment-list small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}
.studio-moment-list b {
  color: #16a34a;
  font-size: 20px;
}
.mini-play {
  width: 54px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #172554, #33c6ad);
  font-size: 12px;
}
.studio-card-link {
  color: #2563eb;
  font-weight: 900;
}
.studio-ready-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ready-clip {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 14px;
  background: #07111f;
  color: #fff;
}
.ready-clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}
.ready-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2,6,23,.82));
}
.ready-clip span,
.ready-clip small {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  text-shadow: 0 2px 12px rgba(2,6,23,.45);
}
.ready-clip span {
  bottom: 34px;
  font-weight: 950;
}
.ready-clip small {
  bottom: 12px;
  color: rgba(255,255,255,.82);
  font-weight: 850;
}
.studio-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr);
  gap: 18px;
  margin-top: 24px;
}
.activity-list {
  display: grid;
  gap: 10px;
}
.activity-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e3ebf4;
}
.activity-list strong,
.activity-list small {
  display: block;
}
.activity-list small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}
.activity-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #3267ff, #33c6ad);
  font-weight: 950;
}
.score-donut {
  width: 150px;
  height: 150px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: conic-gradient(#16a34a 0 34%, #3267ff 34% 72%, #7c3aed 72% 92%, #fb7185 92% 100%);
  display: grid;
  place-items: center;
}
.score-donut span {
  width: 88px;
  height: 88px;
  border-radius: inherit;
  background: #fff;
}
.storage-gauge-card { display: grid; align-content: center; gap: 10px; }
.storage-meter {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef7;
  border: 1px solid #d7e2ee;
}
.storage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #33c6ad, #3267ff);
}
.storage-meter.compact { height: 8px; margin: 10px 0 6px; }
.storage-copy { margin: 0; font-size: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.project-card { padding: 0; overflow: hidden; }
.thumb { aspect-ratio: 9/16; background: linear-gradient(160deg, #07111f, #174f58); display: grid; align-items: end; color: #fff; padding: 16px; font-weight: 950; }
.project-card .body { padding: 16px; }
.dashboard-project-card { position: relative; background: #f8fafc; padding: 8px; }
.dashboard-project-card a { display: block; }
.dashboard-project-card .thumb { border-radius: 8px; }
.dashboard-thumb {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: stretch;
  padding: 0;
  background:
    radial-gradient(circle at 25% 18%, rgba(94, 234, 212, .32), transparent 28%),
    radial-gradient(circle at 76% 6%, rgba(59, 130, 246, .24), transparent 24%),
    linear-gradient(160deg, #07111f 0%, #10263a 52%, #174f58 100%);
}
.dashboard-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(2, 6, 23, .08) 0%, rgba(2, 6, 23, .18) 42%, rgba(2, 6, 23, .78) 100%);
  pointer-events: none;
}
.dashboard-thumb img,
.dashboard-thumb video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #07111f;
}
.thumb-title,
.thumb-status {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(2, 6, 23, .55);
}
.thumb-title {
  bottom: 16px;
  font-size: 18px;
  line-height: 1.08;
}
.thumb-status {
  top: 14px;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: .08em;
}
.thumb-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 22px;
}
.has-preview-media .thumb-fallback {
  opacity: 0;
}
.has-preview-media.media-load-failed .thumb-fallback {
  opacity: 1;
}
.fallback-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  color: rgba(204, 251, 241, .92);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}
.fallback-reel {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  height: 88px;
}
.fallback-reel i {
  display: block;
  width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5eead4, #38bdf8);
  box-shadow: 0 14px 34px rgba(20, 184, 166, .28);
}
.fallback-reel i:nth-child(1) { height: 36px; }
.fallback-reel i:nth-child(2) { height: 64px; }
.fallback-reel i:nth-child(3) { height: 88px; }
.fallback-reel i:nth-child(4) { height: 54px; }
.fallback-reel i:nth-child(5) { height: 72px; }
.fallback-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.fallback-dots b {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #5eead4;
  box-shadow: 0 0 0 5px rgba(94, 234, 212, .12);
}
.fallback-dots b:nth-child(2) { background: #facc15; box-shadow: 0 0 0 5px rgba(250, 204, 21, .12); }
.fallback-dots b:nth-child(3) { background: #fb7185; box-shadow: 0 0 0 5px rgba(251, 113, 133, .12); }
.fallback-dots b:nth-child(4) { background: #60a5fa; box-shadow: 0 0 0 5px rgba(96, 165, 250, .12); }
.dashboard-delete-form {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}
.dashboard-delete-form button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(215, 25, 32, .25);
}
.dashboard-delete-form button:hover { background: #b91c1c; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #edf5ff; color: #2c5282; font-weight: 900; font-size: 12px; }

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-grid,
.support-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.admin-table,
.support-list,
.support-admin-list {
  display: grid;
  gap: 10px;
}
.admin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) .7fr .6fr .7fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-row-users {
  grid-template-columns: minmax(220px, 1.55fr) .55fr .45fr .55fr 110px;
}
.admin-user-link {
  color: var(--ink);
  text-decoration: none;
}
.admin-user-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}
.admin-row.head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-row small {
  display: block;
  color: var(--muted);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-actions form {
  display: inline-flex;
  gap: 0;
}
.admin-actions .issue-credits-form {
  display: grid;
  grid-template-columns: 72px minmax(110px, 1fr) auto;
  gap: 6px;
  width: 100%;
}
.issue-credits-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.admin-limits-panel {
  margin-bottom: 24px;
}
.admin-limits-panel code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef4f8;
}
.limits-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.limits-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) 120px 110px 110px minmax(220px, 1.25fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.limits-row input {
  width: 100%;
}
.limits-row label {
  display: grid;
  gap: 6px;
  font-weight: 850;
  color: var(--muted);
}
.limits-row label small {
  font-weight: 650;
}
.limits-actions {
  display: grid;
  gap: 8px;
}
.admin-user-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admin-user-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.admin-user-card h2,
.admin-user-card p {
  margin: 0;
}
.stacked-admin-form {
  display: grid;
  gap: 12px;
}
.stacked-admin-form + .stacked-admin-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.stacked-admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}
.stacked-admin-form label small {
  font-weight: 650;
}
.stacked-admin-form input,
.stacked-admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
}
.mini-ledger {
  display: grid;
  gap: 10px;
}
.mini-ledger div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 4px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.mini-ledger strong {
  color: var(--green-dark);
}
.mini-ledger small {
  grid-column: 2;
  color: var(--muted);
}
.danger-zone-card {
  border-color: #fecaca;
  background: #fffafa;
}
.row-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.support-form,
.support-admin-form {
  display: grid;
  gap: 14px;
}
.support-form input,
.support-form textarea,
.support-admin-form select,
.support-admin-form textarea {
  width: 100%;
}
.support-form textarea,
.support-admin-form textarea {
  min-height: 130px;
}
.support-list article,
.support-admin-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.support-admin-list > article {
  margin-bottom: 14px;
}
.support-link {
  display: inline-flex;
  margin: 6px 0 12px;
  color: var(--green-dark);
  font-weight: 900;
}

.form-wrap { max-width: 680px; margin: 44px auto; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: #334155; font-weight: 850; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdd8e5;
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
textarea { min-height: 118px; resize: vertical; }
.notice { padding: 14px 16px; border-radius: 8px; border: 1px solid #b7ece3; background: #eefcf9; color: #0f766e; font-weight: 750; }
.error { padding: 14px 16px; border-radius: 8px; border: 1px solid #fecaca; background: #fff1f2; color: #be123c; font-weight: 750; }

.create-message { margin-bottom: 18px; }
.short-submit-feedback[hidden] { display: none; }
.short-submit-feedback {
  position: sticky;
  top: 12px;
  z-index: 8;
  box-shadow: 0 14px 34px rgba(15, 118, 110, .13);
}
.create-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.create-review-shell .workspace {
  padding-top: 18px;
}
.create-studio-premium {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}
.create-studio-premium .create-main,
.create-studio-premium .estimate-panel {
  border-radius: 18px;
  border-color: #dfe7f1;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}
.setup-section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.setup-section-title.compact {
  margin: 8px 0 0;
}
.setup-section-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #172554, #3267ff);
  font-weight: 950;
}
.setup-section-title h2 {
  margin: 0;
  font-size: 22px;
}
.setup-section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}
.sidebar-credit-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(50,103,255,.18), transparent 36%),
    #f8fbff;
}
.sidebar-credit-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 12px;
  color: #3267ff;
  background: #eef4ff;
}
.sidebar-credit-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}
.sidebar-credit-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}
.create-main { padding: 26px; }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.workflow-tile {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.workflow-tile input { position: absolute; opacity: 0; pointer-events: none; }
.workflow-tile.selected {
  border-color: var(--green);
  background:
    radial-gradient(circle at top right, rgba(51,198,173,.18), transparent 42%),
    #eefcf9;
  box-shadow: inset 0 0 0 1px rgba(51, 198, 173, .25), 0 14px 30px rgba(15,23,42,.06);
}
.workflow-tile.disabled-tile { opacity: .72; cursor: not-allowed; }
.workflow-icon {
  display: block;
  margin-bottom: 16px;
  color: #07111f;
  font-size: 26px;
  line-height: 1;
}
.workflow-tile strong { font-size: 21px; }
.field-stack { display: grid; gap: 18px; margin-top: 26px; }
.source-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #f7d271;
  border-radius: 8px;
  background: #fff8df;
  color: #884b0c;
  font-weight: 750;
  line-height: 1.45;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.wide-field { grid-column: 1 / -1; }
.option-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.option-section.tinted { background: #f8fafc; }
.option-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}
.option-section p {
  margin: 4px 0 0;
  color: var(--muted);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.check-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 15px;
  font-weight: 750;
}
.check-tile input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green);
}
.estimate-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}
.estimate-panel h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
}
.estimate-credits {
  color: var(--ink);
  font-size: 48px;
  line-height: 1;
  font-weight: 950;
}
.estimate-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}
.rights-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #f7d271;
  border-radius: 8px;
  background: #fff8df;
  color: #78350f;
  font-size: 14px;
  line-height: 1.45;
}
.rights-box input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--green);
}
.submit-generation:disabled {
  cursor: not-allowed;
  color: rgba(255,255,255,.82);
  background: #91cbc4;
}
.upload-side-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #f8fbff;
}
.upload-side-card h3,
.upload-side-card p {
  margin: 0;
}
.upload-side-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 800;
}
.upload-side-card li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  font-size: 11px;
}
.upload-queue-list {
  display: grid;
  gap: 10px;
}
.upload-queue-list a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e3ebf4;
  border-radius: 12px;
  background: #fff;
}
.upload-queue-list strong,
.upload-queue-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-queue-list small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}
.queue-thumb {
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #172554, #33c6ad);
  font-weight: 950;
}
.project-status-card {
  display: grid;
  gap: 18px;
}
.project-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.project-status-head h2 { margin: 0 0 8px; }
.project-status-head p { margin: 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-weight: 950;
}
.status-processing,
.status-queued {
  background: #e8f3f1;
  color: var(--green-dark);
}
.status-completed { background: #edf5ff; color: #1d4ed8; }
.status-failed { background: #fff1f2; color: var(--red); }
.processing-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #b7ece3;
  border-radius: 8px;
  background: #eefcf9;
}
.processing-panel p { margin: 4px 0 0; }
.spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 4px solid rgba(51, 198, 173, .22);
  border-top-color: var(--green-dark);
  border-radius: 999px;
  animation: spin .9s linear infinite;
}
.progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.progress-steps li {
  position: relative;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}
.progress-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
}
.progress-steps li.done,
.progress-steps li.active {
  border-color: #b7ece3;
  color: #0f766e;
  background: #f0fdfa;
}
.progress-steps li.done::before,
.progress-steps li.active::before {
  background: var(--green);
  color: #031016;
}
.progress-steps li.active {
  box-shadow: 0 0 0 3px rgba(51, 198, 173, .15);
}
.empty-clips h3 {
  margin: 0 0 8px;
}
.empty-clips p {
  margin: 0;
}
.project-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.short-creator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(51,198,173,.16), transparent 28%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}
.short-creator-header h2 {
  margin: 4px 0 6px;
  font-size: clamp(30px, 4vw, 48px);
}
.short-creator-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.eyebrow {
  display: inline-flex;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.creator-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}
.creator-status-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 950;
}
.creator-status-pills .ready {
  background: #e8f8f4;
  color: var(--green-dark);
}
.creator-status-pills .demo {
  background: #fff7ed;
  color: #c2410c;
}
.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.source-studio {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}
.premium-creator-header {
  border-color: rgba(51,198,173,.22);
  background:
    radial-gradient(circle at top left, rgba(51,198,173,.18), transparent 34%),
    linear-gradient(135deg, #07111f, #0f2435 58%, #102f36);
  color: #fff;
}
.premium-creator-header p { color: rgba(255,255,255,.72); }
.premium-creator-header .eyebrow { color: #76e4d3; }
.source-studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.source-studio-head h2,
.source-studio-head p {
  margin: 0;
}
.signal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff, #f3f7fb);
}
.signal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(7,17,31,.05);
}
.signal-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 0 0 3px rgba(7,17,31,.08);
}
.comment-tone { background: #111827; }
.selected-tone { background: #33c6ad; }
.analysis-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
}
.analysis-warning strong { color: #7c2d12; }
.review-viewer-shell {
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 12px;
  background: #050b16;
  box-shadow: 0 24px 70px rgba(7,17,31,.18);
}
.viewer-meta-strip,
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
}
.viewer-meta-strip {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(51,198,173,.12), rgba(96,165,250,.08));
}
.viewer-meta-strip strong { display: block; margin-top: 2px; }
.viewer-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.viewer-meta-pills span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 900;
}
.viewer-toolbar {
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.viewer-toolbar form { margin: 0; }
.source-video-player,
.source-video-placeholder {
  width: 100%;
  max-height: 640px;
  aspect-ratio: 16/9;
  border-radius: 0;
  background: #07111f;
}
.source-video-player {
  display: block;
  object-fit: contain;
}
.source-video-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  color: #fff;
  text-align: center;
}
.source-video-placeholder span {
  color: rgba(255,255,255,.7);
}
.moment-timeline { padding: 8px 8px 0; }
.moment-rail {
  position: relative;
  height: 38px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(15,23,42,.08), transparent 12%, transparent 88%, rgba(15,23,42,.08)),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(100,116,139,.16) calc(10% - 1px), rgba(100,116,139,.16) 10%),
    linear-gradient(90deg, #e4edf7, #f4f8fc);
}
.timeline-playhead {
  position: absolute;
  z-index: 2;
  top: 5px;
  bottom: 5px;
  width: 2px;
  border-radius: 99px;
  background: #07111f;
  box-shadow: 0 0 0 3px rgba(7,17,31,.08);
  transform: translateX(-50%);
  pointer-events: none;
}
.moment-dot {
  position: absolute;
  z-index: 3;
  top: 50%;
  min-width: 0;
  min-height: 0;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  background: var(--green-dark);
  box-shadow: 0 2px 6px rgba(7,17,31,.2);
  font-size: 0;
  line-height: 0;
  transform: translate(-50%, -50%);
}
.comment-marker {
  width: 10px;
  height: 10px;
  background: #111827;
  border-color: #f8fafc;
  box-shadow: 0 0 0 3px rgba(17,24,39,.12), 0 3px 10px rgba(7,17,31,.24);
}
.moment-dot span {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  display: none;
  width: max-content;
  max-width: 220px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #07111f;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(7,17,31,.2);
}
.moment-dot:hover span,
.moment-dot:focus-visible span {
  display: block;
}
.moment-dot:hover,
.moment-dot:focus-visible {
  box-shadow: 0 0 0 6px rgba(51,198,173,.12), 0 4px 12px rgba(7,17,31,.24);
  transform: translate(-50%, -50%) scale(1.45);
}
.moment-dot.active {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 7px rgba(51,198,173,.16), 0 7px 18px rgba(7,17,31,.24);
}
.moment-dot.selected,
.moment-card.selected {
  outline: 3px solid rgba(51,198,173,.24);
  outline-offset: 3px;
}
.moment-tone-angry {
  background: #dc2626;
}
.moment-tone-tense { background: #b91c1c; }
.moment-tone-happy { background: #16a34a; }
.moment-tone-controversial { background: #eab308; }
.moment-tone-funny { background: #f97316; }
.moment-tone-sad { background: #2563eb; }
.moment-tone-fear { background: #7c3aed; }
.moment-tone-suspense { background: #4338ca; }
.moment-tone-exciting { background: #db2777; }
.moment-tone-impressive { background: #0891b2; }
.moment-tone-surprising { background: #06b6d4; }
.moment-tone-curious { background: #0ea5e9; }
.moment-tone-relatable { background: #65a30d; }
.moment-tone-authority { background: #0f766e; }
.moment-tone-educational { background: #14b8a6; }
.moment-tone-neutral { background: #64748b; }
.custom-short-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.custom-short-panel strong {
  display: block;
  font-size: 18px;
}
.custom-short-panel p {
  margin: 4px 0 0;
}
.custom-range-controls,
.custom-range-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.custom-range-controls label {
  display: grid;
  gap: 6px;
  min-width: 140px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.custom-range-controls input {
  width: 100%;
}
.time-preview {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}
.custom-duration {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: #e8f3f1;
  color: var(--green-dark);
  font-weight: 900;
}
.custom-duration.invalid {
  background: #fff1f2;
  color: #be123c;
}
.range-guidance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.range-guidance span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eefcf9;
  color: var(--green-dark);
}
.range-guidance strong {
  color: #be123c;
  font-size: 13px;
}
.selected-clip-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(51,198,173,.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(51,198,173,.12), transparent 38%),
    #f8fafc;
}
.selected-security-state,
.selected-publish-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.selected-security-state span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}
.review-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .7fr) minmax(280px, .9fr);
  gap: 14px;
}
.review-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.review-panel h3,
.review-panel p {
  margin: 0;
}
.comment-form {
  display: grid;
  gap: 10px;
}
.comment-form label,
.status-select {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.comment-form textarea {
  min-height: 92px;
  resize: vertical;
}
.comment-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.comment-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #dbe8e5;
  border-radius: 8px;
  background: #fff;
}
.comment-item.resolved {
  opacity: .68;
}
.comment-time {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #07111f;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}
.comment-item strong {
  display: block;
}
.comment-item p {
  margin: 2px 0 3px;
  color: var(--ink);
}
.comment-item small {
  color: var(--muted);
  font-weight: 800;
}
.empty-mini {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}
.share-state-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbe8e5;
  border-radius: 8px;
  background: #fff;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.asset-metadata-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.asset-metadata-panel dl div {
  padding: 10px;
  border: 1px solid #dbe8e5;
  border-radius: 8px;
  background: #fff;
}
.asset-metadata-panel dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.asset-metadata-panel dd {
  margin: 4px 0 0;
  font-weight: 950;
}
.selected-clip-panel h3,
.selected-clip-panel p,
.selected-clip-panel dl {
  margin: 0;
}
.selected-clip-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.selected-clip-details div {
  padding: 10px;
  border: 1px solid #dbe8e5;
  border-radius: 8px;
  background: #fff;
}
.selected-clip-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.selected-clip-details dd {
  margin: 3px 0 0;
  font-weight: 950;
}
.selected-excerpt {
  color: var(--muted);
}
.selected-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.selected-options label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.selected-options select {
  width: 100%;
}
.moment-list {
  display: grid;
  gap: 12px;
}
.version-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe8e5;
  border-radius: 8px;
  background: linear-gradient(90deg, #f8fafc, #eefcf9);
}
.version-row span,
.version-row small {
  color: var(--muted);
  font-weight: 900;
}
.version-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.moment-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}
.moment-section-head strong {
  display: block;
  font-size: 19px;
}
.moment-section-head p { margin: 4px 0 0; }
.moment-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(51,198,173,.08), transparent 26%),
    #fff;
  box-shadow: 0 8px 22px rgba(7,17,31,.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.moment-card:hover {
  border-color: rgba(51,198,173,.42);
  box-shadow: 0 14px 34px rgba(7,17,31,.08);
}
.moment-time {
  min-height: 40px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(7,17,31,.12);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  gap: 2px;
  padding: 10px 12px;
}
.moment-time small { font-size: 11px; opacity: .82; text-transform: uppercase; letter-spacing: .04em; }
.moment-time:hover,
.moment-time:focus-visible {
  filter: brightness(1.08);
}
.moment-card strong {
  display: block;
  font-size: 17px;
}
.moment-card p {
  margin: 4px 0 8px;
  color: var(--muted);
}
.moment-badges,
.clip-intel {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.moment-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eefcf9;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}
.moment-badges span:first-child {
  background: #e8f3f1;
  color: #0f766e;
}
.clip-intel span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f5f8fc;
  color: #475569;
  border: 1px solid #dbe5ef;
  font-size: 12px;
  font-weight: 900;
}
.moment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.moment-actions form {
  margin: 0;
}
.shorts-panel,
.generation-panel {
  display: grid;
  gap: 18px;
}
.panel-title-row,
.clip-card-head,
.clip-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-title-row h2,
.generation-panel h2,
.clip-card-head p {
  margin: 0;
}
.small-spinner {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-width: 3px;
}
.empty-render-card {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
}
.empty-render-card p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}
.pulse-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green-dark);
}
.pulse-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--green);
  animation: ping 1.4s infinite;
}
.project-progress-card {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.project-progress-head,
.generation-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-progress-head strong,
.generation-progress strong {
  color: var(--ink);
  font-weight: 950;
}
.project-progress-head span,
.generation-progress span {
  color: var(--muted);
  font-weight: 850;
}
.project-progress-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.project-progress-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}
.project-progress-track.compact {
  height: 10px;
}
.project-progress-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  transition: width 0.45s ease;
}
.project-progress-track > span.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: progressSweep 1.3s linear infinite;
}
.generation-progress {
  display: grid;
  gap: 8px;
}
.clip-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.clip-card-head strong {
  display: block;
  font-size: 18px;
}
.clip-card-head p {
  margin-top: 6px;
  color: var(--muted);
}
.clip-card .clip-preview img,
.clip-card .clip-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clip-card-actions a {
  color: var(--ink);
  font-weight: 950;
}
.clip-card-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.clip-delete-form {
  margin: 0;
}
.clip-delete-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #dc2626;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.clip-delete-button:hover {
  border-color: #f87171;
  background: #fee2e2;
}
.score-reason {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.generated-clip-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #e6edf5;
}
.clip-platform-download {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.clip-platform-download select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-transform: none;
}
.clip-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d8e3ef;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}
.clip-action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
.clip-action-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}
.preview-action {
  background: #f8fafc;
  color: #334155;
}
.download-action {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.publish-action {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.social-topline {
  align-items: start;
}
.social-connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.social-account-card,
.publish-form-card,
.publish-preview-card,
.publish-history-card {
  display: grid;
  gap: 16px;
}
.social-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.social-card-head h2,
.social-card-head p,
.publish-form-card h2,
.publish-history-card h2 {
  margin: 0;
}
.social-platform-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eef2ff;
  color: #2563eb;
  font-size: 22px;
  font-weight: 950;
}
.social-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.social-status-pill.connected {
  background: #e9fbf6;
  color: var(--green-dark);
}
.social-status-pill.ready {
  background: #eff6ff;
  color: #1d4ed8;
}
.social-status-pill.setup {
  background: #fff7ed;
  color: #c2410c;
}
.social-profile-form,
.publish-form-card form {
  display: grid;
  gap: 12px;
}
.social-profile-details {
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}
.social-profile-details summary {
  cursor: pointer;
  color: #334155;
  font-weight: 950;
  list-style-position: outside;
}
.social-profile-details summary::marker {
  color: var(--green-dark);
}
.social-profile-details .social-profile-form {
  margin-top: 12px;
}
.social-profile-form label,
.publish-form-card label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}
.social-profile-form label span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.social-profile-form input,
.social-profile-form select,
.social-profile-form textarea,
.publish-form-card input,
.publish-form-card select,
.publish-form-card textarea {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
}
.social-connect-actions {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.social-connect-actions small {
  color: var(--muted);
  font-weight: 750;
}
.social-config-warning {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 850;
}
.admin-social-platforms {
  margin-bottom: 24px;
}
.social-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.social-admin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.social-admin-card h3,
.social-admin-card p {
  margin: 0;
}
.social-admin-card label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}
.social-admin-card input {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
}
.social-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.setup-instructions-link {
  color: #2563eb;
  font-weight: 900;
  text-decoration: none;
}
.setup-instructions-link:hover {
  text-decoration: underline;
}
.setup-instructions-card {
  display: grid;
  gap: 18px;
  max-width: 860px;
}
.setup-instructions-card ol,
.setup-instructions-card ul {
  margin: 0;
  padding-left: 22px;
  color: #475569;
  font-weight: 750;
  line-height: 1.65;
}
.setup-value-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fbff;
}
.setup-value-box span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.setup-value-box code {
  overflow-wrap: anywhere;
}
.publish-workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: start;
}
.publish-preview {
  min-height: 360px;
  padding: 12px;
}
.publish-preview video {
  width: 100%;
  height: 100%;
  max-height: 620px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 10px;
  background: #050914;
}
.publish-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}
.export-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.export-spec-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fafc;
}
.export-spec-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.export-spec-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.publish-job-list {
  display: grid;
  gap: 10px;
}
.publish-job-list div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.publish-job-list span {
  justify-self: end;
  color: #1d4ed8;
  font-weight: 950;
}
.publish-job-list small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.generation-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
.generation-panel dt {
  color: var(--muted);
  font-weight: 850;
}
.generation-panel dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 950;
}
.generation-steps {
  display: grid;
  gap: 14px;
}
.transcript-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.transcript-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}
.transcript-segment {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.transcript-time {
  min-height: 36px;
  background: #e8f3f1;
  color: var(--green-dark);
}
.transcript-segment strong,
.transcript-segment p {
  margin: 0;
}
.transcript-segment p {
  margin-top: 4px;
  color: var(--muted);
}
.generation-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
}
.generation-step span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: #64748b;
}
.generation-step.done,
.generation-step.active {
  color: var(--ink);
}
.generation-step.done span,
.generation-step.active span {
  border-color: var(--green);
  background: #eefcf9;
  color: var(--green-dark);
}
.project-danger-zone {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
}
.project-danger-zone h3,
.project-danger-zone p {
  margin: 0;
}
.project-danger-zone h3 {
  color: #7f1d1d;
}
.project-danger-zone p {
  color: #991b1b;
  font-size: 14px;
}
.export-state-panel,
.account-export-panel,
.watermark-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.export-state-panel h3,
.account-export-panel h3,
.watermark-panel h3,
.export-state-panel p,
.account-export-panel p,
.watermark-panel p {
  margin: 0;
}
.export-state-panel button,
.export-state-panel a {
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dbe4ee;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-weight: 900;
}
.export-state-panel button:hover,
.export-state-panel a:hover {
  background: #eefcf9;
}
.export-state-panel small {
  color: var(--muted);
  font-weight: 900;
}
.account-route-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.account-route-row a {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #e8f3f1;
  color: var(--green-dark);
  font-weight: 900;
}
.watermark-panel {
  border-color: #fed7aa;
  background: #fff7ed;
}
.social-state-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7,17,31,.56);
}
.social-state-modal[hidden] {
  display: none;
}
.social-state-modal > div {
  position: relative;
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.social-state-modal h3,
.social-state-modal p {
  margin: 0;
}
.social-state-modal h3 {
  margin-top: 6px;
}
.social-state-modal p {
  margin-top: 10px;
  color: var(--muted);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  background: #eef2f7;
}
.compact-error { margin: 0; }

/* Light media-review workspace inspired by professional review tools. */
.workspace {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .92), rgba(255, 255, 255, .98) 320px),
    #fff;
}
.workspace > .topline {
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}
.workspace > .topline h1 {
  margin: 0 0 4px;
  letter-spacing: -.02em;
}
.premium-creator-header {
  position: relative;
  overflow: hidden;
  border-color: #d9e6f2;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(51,198,173,.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 54%, #eefcf9 100%);
  color: var(--ink);
  box-shadow: 0 16px 46px rgba(15, 23, 42, .06);
}
.premium-creator-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #33c6ad, #60a5fa);
}
.premium-creator-header p { color: #5b6778; }
.premium-creator-header .eyebrow { color: #0f766e; }
.creator-status-pills span {
  border: 1px solid rgba(148,163,184,.22);
  background: #fff;
}
.creator-status-pills .ready {
  border-color: #b7eadf;
  background: #effdfa;
}
.creator-status-pills .demo {
  border-color: #fed7aa;
}
.project-progress-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}
.frame-review-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "warning"
    "legend"
    "main"
    "rail"
    "summary"
    "range"
    "moments"
    "list";
  gap: 16px;
  padding: 20px;
  border-color: #d9e6f2;
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .07);
  align-items: start;
}
.frame-review-workspace .source-studio-head { grid-area: head; }
.frame-review-workspace .analysis-warning { grid-area: warning; }
.frame-review-workspace .signal-legend { grid-area: legend; }
.frame-review-workspace .review-main-column { grid-area: main; }
.frame-review-workspace .review-viewer-shell { grid-area: viewer; }
.frame-review-workspace .moment-timeline { grid-area: timeline; }
.frame-review-workspace .review-workspace-grid { grid-area: rail; }
.frame-review-workspace .source-summary-panel { grid-area: summary; }
.frame-review-workspace .custom-short-panel { grid-area: range; }
.frame-review-workspace .moment-section-head { grid-area: moments; }
.frame-review-workspace .moment-list,
.frame-review-workspace .empty-render-card { grid-area: list; }
.source-studio-head {
  padding: 0 2px;
}
.source-studio-head h2 {
  margin-top: 4px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.03em;
}
.review-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.badge-soft {
  background: #f8fafc;
  color: #475569;
}
.signal-legend {
  border-color: #dce7f2;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.signal-legend span {
  border: 1px solid #e5edf6;
  box-shadow: none;
}
.analysis-warning {
  border-radius: 14px;
}
.review-main-column {
  display: grid;
  gap: 0;
  min-width: 0;
  align-self: start;
  height: max-content;
}
.frame-review-workspace .review-main-column .review-viewer-shell,
.frame-review-workspace .review-main-column .moment-timeline {
  grid-area: auto;
}
.review-viewer-shell {
  border-color: #d8e3ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .10);
  align-self: start;
}
.viewer-meta-strip {
  color: var(--ink);
  border-bottom: 1px solid #e4ecf5;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}
.viewer-meta-strip .eyebrow {
  color: #64748b;
}
.viewer-meta-pills span {
  color: #334155;
  background: #eef4fb;
  border: 1px solid #dce7f2;
}
.source-video-player,
.source-video-placeholder {
  background: #f1f5f9;
}
.source-video-player {
  border-inline: 14px solid #ffffff;
  border-top: 8px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  max-height: min(78vh, 860px);
  min-height: clamp(420px, 54vw, 780px);
}
.source-video-placeholder {
  color: var(--ink);
}
.source-video-placeholder span {
  color: var(--muted);
}
.viewer-toolbar {
  justify-content: space-between;
  border-top: 1px solid #e4ecf5;
  background: #ffffff;
  padding: 10px 12px;
}
.viewer-toolbar .button.ghost {
  border: 1px solid #dbe7f2;
  background: #f8fbff;
  color: #1f3b57;
}
.viewer-toolbar .button.ghost:hover {
  border-color: #b9d5ec;
  background: #eef7ff;
}
.moment-timeline {
  padding: 0;
  align-self: start;
}
.viewer-signal-track {
  padding: 8px 12px 10px;
  border-top: 1px solid #e4ecf5;
  background: #f8fbff;
}
.moment-rail {
  height: 34px;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(100,116,139,.14) calc(10% - 1px), rgba(100,116,139,.14) 10%),
    linear-gradient(180deg, #ffffff, #edf5fb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px rgba(15, 23, 42, .04);
}
.timeline-playhead {
  top: 5px;
  bottom: 5px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.moment-dot {
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15,23,42,.12), 0 4px 10px rgba(15,23,42,.18);
}
.moment-dot.active {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 7px rgba(37,99,235,.13), 0 7px 18px rgba(15,23,42,.22);
}
.timeline-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.timeline-caption strong {
  color: #b45309;
}
.review-workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  align-self: start;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.source-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr) minmax(220px, .8fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe7f2;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(51,198,173,.10), transparent 30%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15,23,42,.045);
}
.source-summary-panel h3,
.source-summary-panel p {
  margin: 0;
}
.source-summary-panel h3 {
  margin-top: 3px;
}
.source-summary-panel p {
  color: #526071;
  line-height: 1.48;
}
.summary-signal-list,
.competitive-coverage {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 7px;
}
.summary-signal-list strong,
.competitive-coverage strong {
  width: 100%;
}
.summary-signal-list span,
.competitive-coverage span {
  border: 1px solid #d8efe9;
  border-radius: 999px;
  padding: 6px 9px;
  color: #0f766e;
  background: #f2fbf8;
  font-size: 12px;
  font-weight: 900;
}
.competitive-coverage small {
  color: #64748b;
  line-height: 1.4;
}
.review-panel,
.selected-clip-panel,
.custom-short-panel {
  border-color: #dbe7f2;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(15,23,42,.045);
}
.review-panel h3 {
  letter-spacing: -.02em;
}
.comment-form textarea,
.status-select select,
.selected-options select,
.custom-range-controls input {
  border-color: #d5e2ef;
  border-radius: 10px;
  background: #fff;
}
.comment-item,
.share-state-card,
.asset-metadata-panel dl div,
.selected-clip-details div {
  border-color: #e0e9f3;
  border-radius: 12px;
}
.comment-time {
  background: #eff6ff;
  color: #1d4ed8;
}
.selected-clip-panel {
  background:
    radial-gradient(circle at top right, rgba(51,198,173,.12), transparent 30%),
    #fff;
}
.selected-clip-panel .button.full {
  min-height: 48px;
}
.custom-short-panel {
  padding: 18px;
}
.custom-range-actions .button.ghost {
  border: 1px solid #dbe7f2;
  background: #f8fbff;
}
.moment-section-head {
  padding: 14px 4px 0;
}
.moment-section-head strong {
  font-size: 24px;
  letter-spacing: -.02em;
}
.moment-list {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.moment-card {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  position: relative;
  padding: 18px;
  border-color: #dbe7f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.045);
}
.moment-card:hover {
  border-color: #b9d5ec;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.moment-card .moment-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 6px;
  border-top: 1px solid #eef3f8;
}
.moment-time {
  width: 64px;
  min-height: 58px;
  border-radius: 14px;
  box-shadow: none;
}
.moment-badges span {
  border: 1px solid #d8efe9;
  background: #f2fbf8;
}
.clip-intel span {
  border: 1px solid #dbe5ef;
  background: #f6f8fb;
  color: #475569;
}
.project-detail-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}
.shorts-panel,
.generation-panel,
.transcript-panel {
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15,23,42,.055);
}
.clip-card {
  border-color: #dbe7f2;
  border-radius: 16px;
  background: #fff;
}
.clip-preview {
  border-radius: 14px;
  background: #f1f5f9;
}
.version-row {
  border-color: #dbe7f2;
  border-radius: 14px;
  background: #f8fbff;
}
.transcript-segment {
  border-color: #dbe7f2;
  border-radius: 14px;
  background: #fff;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
@keyframes progressSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.clip-preview { aspect-ratio: 9/16; border-radius: 8px; overflow: hidden; background: #07111f; color: #fff; display: grid; place-items: center; text-align: center; padding: 18px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 6vw, 80px); color: var(--muted); border-top: 1px solid var(--line); background: #fff; }

@media (max-width: 1000px) {
  .hero, .app-shell, .create-studio, .project-detail-grid, .admin-grid, .support-layout { grid-template-columns: 1fr; }
  .limits-row { grid-template-columns: 1fr 1fr; }
  .grid, .pricing-grid, .stats, .admin-metrics { grid-template-columns: 1fr 1fr; }
  .frame-review-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "warning"
      "legend"
      "main"
      "rail"
      "summary"
      "range"
      "selected"
      "moments"
      "list";
  }
  .source-summary-panel { grid-template-columns: 1fr; }
  .review-workspace-grid { grid-template-columns: 1fr; max-height: none; overflow: visible; padding-right: 0; }
  .short-creator-header { flex-direction: column; }
  .creator-status-pills { justify-content: flex-start; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .estimate-panel { position: static; }
  .progress-steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { align-items: flex-start; gap: 16px; flex-direction: column; }
  nav { flex-wrap: wrap; gap: 12px; }
  .grid, .pricing-grid, .stats, .workflow-grid, .settings-grid, .check-grid, .admin-metrics, .admin-row { grid-template-columns: 1fr; }
  .limits-row { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; }
  .topline, .site-footer, .project-status-head, .project-top-actions, .source-studio-head { align-items: flex-start; flex-direction: column; }
  .viewer-meta-strip, .viewer-toolbar { align-items: flex-start; flex-direction: column; }
  .viewer-toolbar .button, .viewer-toolbar form { width: 100%; }
  .viewer-toolbar form .button { width: 100%; }
  .moment-card { grid-template-columns: 1fr; }
  .selected-clip-details,
  .selected-options,
  .asset-metadata-panel dl,
  .version-row,
  .comment-item { grid-template-columns: 1fr; }
  .custom-range-controls label, .custom-range-actions .button, .moment-actions .button, .moment-actions form { width: 100%; }
  .moment-actions { justify-content: stretch; }
  .create-main, .estimate-panel { padding: 18px; }
  .estimate-credits { font-size: 40px; }
}

/* Light Frame-style media library treatment for the project review page. */
.asset-review-shell {
  grid-template-columns: 74px 270px minmax(0, 1fr);
  background:
    linear-gradient(180deg, #eef3fb 0, #f8fafc 260px),
    #f8fafc;
}
.asset-review-shell .frame-asset-sidebar {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: 74px 270px;
  padding: 0;
  border-right: 1px solid #dfe7f1;
  background: transparent;
}
.frame-icon-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 12px;
  background: #f5f8fc;
  border-right: 1px solid #dfe7f1;
}
.frame-icon-rail a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #dfe7f1;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}
.frame-icon-rail a:hover {
  color: #0f766e;
  border-color: #9de6d9;
  background: #ecfdf8;
}
.frame-icon-rail a.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #172554, #33c6ad);
}
.frame-asset-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
}
.frame-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px 14px;
  border-bottom: 1px solid #e5edf6;
}
.frame-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #172554, #33c6ad);
  font-weight: 950;
}
.frame-nav-brand strong { display: block; line-height: 1; }
.frame-nav-brand small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.frame-asset-nav section {
  display: grid;
  gap: 6px;
}
.frame-nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.frame-nav-section-title a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef6f4;
  color: #0f766e;
}
.frame-asset-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: #334155;
  font-weight: 820;
}
.frame-asset-nav a:hover,
.frame-asset-nav a.active {
  color: #07111f;
  background: #eef6ff;
}
.frame-asset-nav a.active {
  box-shadow: inset 3px 0 0 #33c6ad;
}
.asset-review-shell .workspace {
  grid-column: 3;
  min-width: 0;
  padding: 18px clamp(16px, 2vw, 30px) 34px;
}
.frame-breadcrumb-bar {
  position: sticky;
  top: 74px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  margin: -18px clamp(-30px, -2vw, -16px) 18px;
  padding: 12px clamp(16px, 2vw, 30px);
  border-bottom: 1px solid #dfe7f1;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
}
.frame-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #64748b;
  font-weight: 850;
}
.frame-breadcrumb strong {
  color: #07111f;
}
.frame-breadcrumb a {
  color: #475569;
}
.frame-library-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-weight: 800;
}
.asset-review-shell .topline {
  border-color: #dfe7f1;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
}
.asset-review-shell .premium-creator-header {
  border-color: #dfe7f1;
  background: #ffffff;
}
.asset-review-shell .frame-review-workspace {
  border-color: #dfe7f1;
  background: #ffffff;
}
.asset-review-shell .review-viewer-shell,
.asset-review-shell .review-panel,
.asset-review-shell .custom-short-panel,
.asset-review-shell .selected-clip-panel,
.asset-review-shell .shorts-panel,
.asset-review-shell .generation-panel,
.asset-review-shell .transcript-panel {
  border-color: #dfe7f1;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
}
.asset-review-shell .source-video-player {
  border-color: #f8fafc;
  background: #0b1220;
}
.frame-asset-section-head {
  align-items: flex-end;
}
.frame-asset-section-head h2 {
  margin-top: 4px;
}
.frame-asset-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #f8fbff;
}
.frame-asset-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-weight: 850;
}
.asset-search-state {
  min-width: 230px;
  padding: 10px 12px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  color: #94a3b8;
  background: #ffffff;
}
.asset-review-shell .clips {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.asset-review-shell .clip-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
}
.asset-review-shell .clip-card:hover {
  border-color: #33c6ad;
  box-shadow: 0 20px 44px rgba(15,23,42,.1);
}
.asset-review-shell .clip-card:first-child {
  border-color: #33c6ad;
  box-shadow: 0 0 0 2px rgba(51,198,173,.22), 0 20px 44px rgba(15,23,42,.1);
}
.asset-review-shell .clip-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: 0 4px 14px rgba(15,23,42,.18);
}
.asset-review-shell .clip-card:first-child::before {
  background: #33c6ad;
  border-color: #33c6ad;
}
.asset-review-shell .clip-card-head {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #07111f;
  background: rgba(255,255,255,.94);
  border-top: 1px solid #e2e8f0;
  backdrop-filter: blur(12px);
}
.asset-review-shell .clip-card-head p {
  margin: 4px 0 0;
  color: #64748b;
  line-height: 1.25;
}
.asset-review-shell .clip-preview {
  aspect-ratio: 9 / 16;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #050914;
  color: #fff;
}
.asset-review-shell .clip-preview video,
.asset-review-shell .clip-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background: #050914;
}
.asset-review-shell .clip-card-actions {
  padding: 14px 16px 0;
  margin-top: 0;
}
.asset-review-shell .clip-card-action-group {
  gap: 8px;
}
.asset-review-shell .clip-intel {
  padding: 12px 16px 0;
}
.asset-review-shell .generated-clip-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 16px 16px;
  margin-top: auto;
}
.asset-review-shell .clip-platform-download {
  grid-column: 1 / -1;
}
.asset-review-shell .score-reason {
  margin: 0;
  padding: 0 16px 18px;
}
.asset-review-shell .clip-delete-button {
  background: #fff1f2;
  color: #dc2626;
  border: 1px solid #fecdd3;
}

@media (max-width: 1180px) {
  .asset-review-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .asset-review-shell .frame-asset-sidebar {
    grid-column: 1;
    grid-template-columns: 72px;
  }
  .frame-asset-nav {
    display: none;
  }
  .asset-review-shell .workspace {
    grid-column: 2;
  }
  .studio-dashboard-grid,
  .studio-bottom-grid {
    grid-template-columns: 1fr;
  }
  .studio-ready-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .create-studio-premium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .asset-review-shell {
    grid-template-columns: 1fr;
  }
  .asset-review-shell .frame-asset-sidebar {
    position: sticky;
    top: 0;
    z-index: 18;
    grid-column: 1;
    border-right: 0;
    border-bottom: 1px solid #dfe7f1;
  }
  .frame-icon-rail {
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
  }
  .asset-review-shell .workspace {
    grid-column: 1;
    padding: 16px;
  }
  .frame-breadcrumb-bar {
    position: static;
    margin: -16px -16px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .frame-library-actions,
  .frame-asset-toolbar {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }
  .asset-search-state {
    min-width: 0;
    width: 100%;
  }
  .asset-review-shell .clips {
    grid-template-columns: 1fr;
  }
  .studio-top-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .credit-chip {
    flex: 1 1 160px;
  }
  .studio-ready-strip,
  .studio-metric-grid {
    grid-template-columns: 1fr;
  }
  .setup-section-title,
  .setup-section-title.compact {
    flex-direction: column;
  }
}

/* Library-wide creation and real keyword search */
.library-hero,
.search-hero {
  display: grid;
  gap: 20px;
  border-left: 4px solid #60a5fa;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(240, 253, 250, .94)),
    #fff;
}
.library-hero h1,
.search-hero h1 {
  margin: 4px 0 8px;
  max-width: 900px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}
.library-filter-bar,
.semantic-search-form,
.library-custom-range {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.semantic-search-form {
  grid-template-columns: minmax(260px, 2fr) minmax(140px, .8fr) minmax(150px, .8fr) minmax(130px, .7fr) auto;
}
.library-filter-bar label,
.semantic-search-form label,
.library-custom-range label {
  display: grid;
  gap: 7px;
  color: #526071;
  font-size: 13px;
  font-weight: 800;
}
.library-filter-bar input,
.library-filter-bar select,
.semantic-search-form input,
.semantic-search-form select,
.library-custom-range input,
.library-custom-range select {
  min-height: 44px;
  border: 1px solid #d7e2ee;
  border-radius: 10px;
  padding: 0 12px;
  color: #07111f;
  background: #fff;
  font: inherit;
  font-weight: 750;
}
.semantic-search-form > input {
  min-height: 52px;
  font-size: 17px;
}
.library-grid {
  display: grid;
  gap: 20px;
}
.library-asset-card {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}
.library-thumb {
  position: relative;
  height: 320px;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: linear-gradient(145deg, #07111f, #204b52);
}
.library-thumb img,
.library-thumb video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.library-thumb video {
  background: #050b14;
  cursor: pointer;
}
.library-mini-timeline {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(255,255,255,.18) calc(10% - 1px), rgba(255,255,255,.18) 10%),
    rgba(7,17,31,.58);
  box-shadow: 0 10px 22px rgba(7,17,31,.24);
  backdrop-filter: blur(10px);
}
.library-mini-timeline .moment-dot {
  top: 50%;
  width: 9px;
  height: 9px;
  border-width: 2px;
}
.library-thumb .thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 20px;
  color: #fff;
  pointer-events: none;
}
.library-thumb > span {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #0f766e;
  background: rgba(240, 253, 250, .94);
  font-size: 12px;
  font-weight: 950;
}
.library-asset-body {
  display: grid;
  gap: 16px;
}
.library-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.library-delete-form {
  margin: 0;
}
.library-delete-button {
  min-height: 44px;
}
.library-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.library-meta-grid span {
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  padding: 11px 12px;
  color: #526071;
  background: #f8fbff;
  font-weight: 800;
}
.library-moments {
  display: grid;
  gap: 10px;
}
.library-moments article,
.search-result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.library-moments article {
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(51,198,173,.08), transparent 32%),
    #fff;
  box-shadow: 0 10px 22px rgba(7,17,31,.04);
}
.library-moment-card .moment-time {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.library-moment-card .moment-time span {
  font-size: 17px;
  font-weight: 950;
}
.library-moment-card .moment-time small {
  font-size: 11px;
  opacity: .86;
}
.library-moment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.library-moment-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #cfece7;
  border-radius: 999px;
  background: #eefcf9;
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}
.library-moment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.library-moment-actions form {
  margin: 0;
}
.library-moments p,
.search-result-card p {
  margin: 4px 0 0;
  color: #526071;
  line-height: 1.45;
}
.search-results-stack {
  display: grid;
  gap: 14px;
}
.search-result-card {
  padding: 18px;
}
.search-result-type {
  width: 116px;
  border-radius: 999px;
  padding: 9px 12px;
  text-align: center;
  color: #164e63;
  background: #ecfeff;
  border: 1px solid #cffafe;
  font-weight: 950;
}
.search-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.setup-required-card {
  border-color: #fde68a;
  background: #fffbeb;
}
.setup-required-card strong {
  color: #92400e;
}

@media (max-width: 1100px) {
  .admin-user-summary,
  .admin-user-grid {
    grid-template-columns: 1fr;
  }
  .library-asset-card,
  .library-moments article,
  .search-result-card {
    grid-template-columns: 1fr;
  }
  .library-filter-bar,
  .semantic-search-form,
  .library-custom-range,
  .library-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-result-type {
    width: fit-content;
  }
  .search-result-actions {
    justify-content: flex-start;
  }
  .library-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .library-filter-bar,
  .semantic-search-form,
  .library-custom-range,
  .library-meta-grid {
    grid-template-columns: 1fr;
  }
  .library-asset-card {
    padding: 14px;
  }
  .library-thumb {
    height: 260px;
    min-height: 200px;
  }
}

/* Publish page: keep rendered clips in a platform preview without browser-side cropping. */
.publish-workspace-grid {
  grid-template-columns: minmax(260px, 440px) minmax(320px, 1fr);
}

.publish-preview-card .publish-preview {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 9 / 16 !important;
  min-height: 0 !important;
  max-height: min(70vh, 720px) !important;
  padding: 10px !important;
  overflow: hidden !important;
  background: #050914 !important;
}

.publish-preview-card .publish-preview video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: #050914 !important;
}

.publish-preview-card .export-spec-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.publish-preview-card .export-spec-grid div {
  display: grid !important;
  gap: 4px !important;
}

@media (max-width: 900px) {
  .publish-workspace-grid {
    grid-template-columns: 1fr;
  }

  .publish-preview-card .publish-preview {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Authenticated studio theme: dark Nuzipp SaaS shell from the approved mockups. */
.app-authenticated {
  --ink: #eef6ff;
  --muted: #93a4bd;
  --line: rgba(148, 163, 184, .20);
  --soft: rgba(15, 23, 42, .84);
  --card: rgba(10, 20, 36, .86);
  --green: #36d1b7;
  --green-dark: #78e7d8;
  --blue: #2f63ff;
  --purple: #7c5cff;
  --studio-bg: #050b16;
  --studio-panel: rgba(9, 18, 33, .88);
  --studio-panel-strong: rgba(13, 25, 46, .96);
  --studio-border: rgba(123, 148, 186, .22);
  --studio-glow: 0 22px 70px rgba(0, 0, 0, .36);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 99, 255, .18), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(124, 92, 255, .18), transparent 30%),
    linear-gradient(180deg, #06101e 0%, #050b16 48%, #030812 100%);
}
.app-authenticated .site-header {
  background: rgba(5, 11, 22, .88);
  border-bottom-color: rgba(123, 148, 186, .18);
  backdrop-filter: blur(18px);
}
.app-authenticated .brand span,
.app-authenticated nav {
  color: #f4f8ff;
}
.app-authenticated .brand small,
.app-authenticated .muted {
  color: var(--muted);
}
.app-authenticated main {
  background:
    linear-gradient(90deg, rgba(47, 99, 255, .10), transparent 22%, transparent 78%, rgba(124, 92, 255, .10)),
    var(--studio-bg);
}
.app-authenticated .app-shell,
.app-authenticated .asset-review-shell {
  background: transparent;
}
.app-authenticated .frame-icon-rail,
.app-authenticated .frame-asset-sidebar,
.app-authenticated .sidebar {
  border-color: rgba(123, 148, 186, .20);
  background:
    radial-gradient(circle at top left, rgba(47, 99, 255, .20), transparent 42%),
    linear-gradient(180deg, rgba(8, 17, 31, .96), rgba(3, 8, 18, .98));
}
.app-authenticated .frame-asset-nav {
  background: transparent;
}
.app-authenticated .frame-brand-mark {
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #2f63ff 58%, #36d1b7);
  box-shadow: 0 14px 36px rgba(47, 99, 255, .26);
}
.app-authenticated .frame-nav-brand strong,
.app-authenticated .frame-asset-nav a,
.app-authenticated .frame-nav-section-title,
.app-authenticated .sidebar a {
  color: #dce8ff;
}
.app-authenticated .frame-nav-brand small,
.app-authenticated .frame-nav-section-title span {
  color: #8da0bd;
}
.app-authenticated .frame-asset-nav section {
  border-color: rgba(123, 148, 186, .16);
}
.app-authenticated .frame-asset-nav a.active,
.app-authenticated .frame-asset-nav a:hover,
.app-authenticated .sidebar a.active,
.app-authenticated .sidebar a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(47, 99, 255, .90), rgba(38, 86, 236, .74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 28px rgba(47, 99, 255, .18);
}
.app-authenticated .frame-icon-rail a {
  color: #a6b7d2;
}
.app-authenticated .frame-icon-rail a.active,
.app-authenticated .frame-icon-rail a:hover {
  color: #fff;
  background: rgba(47, 99, 255, .22);
}
.app-authenticated .workspace {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 3%, rgba(47, 99, 255, .12), transparent 25%),
    radial-gradient(circle at 90% 0%, rgba(124, 92, 255, .12), transparent 28%);
}
.app-authenticated .workspace > .topline,
.app-authenticated .asset-review-shell .topline,
.app-authenticated .card,
.app-authenticated .project-progress-card,
.app-authenticated .frame-review-workspace,
.app-authenticated .create-studio-premium .create-main,
.app-authenticated .create-studio-premium .estimate-panel,
.app-authenticated .library-asset-card,
.app-authenticated .library-hero,
.app-authenticated .admin-card,
.app-authenticated .review-panel,
.app-authenticated .shorts-panel,
.app-authenticated .generation-panel,
.app-authenticated .transcript-panel {
  border-color: var(--studio-border);
  background:
    linear-gradient(180deg, rgba(18, 32, 56, .86), rgba(8, 17, 31, .88));
  box-shadow: var(--studio-glow);
}
.app-authenticated .premium-creator-header,
.app-authenticated .asset-review-shell .premium-creator-header {
  color: #f8fbff;
  border-color: rgba(72, 121, 255, .34);
  background:
    radial-gradient(circle at top left, rgba(54, 209, 183, .16), transparent 30%),
    linear-gradient(135deg, rgba(15, 30, 56, .96), rgba(7, 15, 30, .96));
}
.app-authenticated .premium-creator-header p,
.app-authenticated .asset-review-shell .premium-creator-header p {
  color: #9daec7;
}
.app-authenticated h1,
.app-authenticated h2,
.app-authenticated h3,
.app-authenticated strong,
.app-authenticated dt,
.app-authenticated dd {
  color: #f8fbff;
}
.app-authenticated .eyebrow {
  color: #6ee7d8;
}
.app-authenticated .button,
.app-authenticated button {
  color: #fff;
  background: linear-gradient(135deg, #2f63ff, #2454ec);
  border: 1px solid rgba(134, 161, 255, .32);
  box-shadow: 0 12px 28px rgba(47, 99, 255, .22);
}
.app-authenticated .button:hover,
.app-authenticated button:hover {
  background: linear-gradient(135deg, #416fff, #2f63ff);
}
.app-authenticated .button.ghost {
  color: #dbe8ff;
  background: rgba(148, 163, 184, .10);
  border-color: rgba(148, 163, 184, .24);
  box-shadow: none;
}
.app-authenticated .button.danger {
  color: #fecaca;
  background: rgba(127, 29, 29, .30);
  border-color: rgba(248, 113, 113, .36);
}
.app-authenticated input,
.app-authenticated select,
.app-authenticated textarea,
.app-authenticated .asset-search-state,
.app-authenticated .library-filter-bar input,
.app-authenticated .library-filter-bar select,
.app-authenticated .semantic-search-form input,
.app-authenticated .semantic-search-form select,
.app-authenticated .library-custom-range input,
.app-authenticated .library-custom-range select {
  color: #f8fbff;
  border-color: rgba(148, 163, 184, .24);
  background: rgba(3, 8, 18, .50);
}
.app-authenticated input::placeholder,
.app-authenticated textarea::placeholder {
  color: #73849f;
}
.app-authenticated .credit-chip,
.app-authenticated .profile-chip,
.app-authenticated .badge,
.app-authenticated .creator-status-pills span,
.app-authenticated .viewer-meta-pills span,
.app-authenticated .library-meta-grid span,
.app-authenticated .moment-badges span,
.app-authenticated .library-moment-badges span,
.app-authenticated .tag,
.app-authenticated .clip-intel span {
  color: #d9e7ff;
  border-color: rgba(125, 157, 255, .22);
  background: rgba(18, 34, 62, .74);
}
.app-authenticated .creator-status-pills .ready,
.app-authenticated .badge.ready,
.app-authenticated .storage-meter span,
.app-authenticated .project-progress-track span {
  background: linear-gradient(90deg, #2f63ff, #36d1b7);
}
.app-authenticated .creator-status-pills .demo {
  color: #ffd6a5;
  border-color: rgba(251, 191, 36, .36);
  background: rgba(146, 64, 14, .22);
}
.app-authenticated .review-viewer-shell {
  border-color: rgba(125, 157, 255, .28);
  background: #030812;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .44);
}
.app-authenticated .viewer-meta-strip,
.app-authenticated .viewer-toolbar {
  color: #f8fbff;
  border-color: rgba(148, 163, 184, .14);
  background: linear-gradient(180deg, rgba(15, 28, 52, .94), rgba(7, 15, 30, .94));
}
.app-authenticated .source-video-player,
.app-authenticated .source-video-placeholder {
  background: #020611;
}
.app-authenticated .signal-legend,
.app-authenticated .frame-asset-toolbar,
.app-authenticated .source-summary-panel,
.app-authenticated .share-state-card,
.app-authenticated .empty-render-card,
.app-authenticated .library-moments article,
.app-authenticated .search-result-card {
  border-color: rgba(148, 163, 184, .20);
  background: rgba(7, 15, 30, .74);
  box-shadow: none;
}
.app-authenticated .signal-legend span {
  color: #d9e7ff;
  background: rgba(18, 34, 62, .82);
  border-color: rgba(148, 163, 184, .18);
}
.app-authenticated .moment-rail {
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(148,163,184,.16) calc(10% - 1px), rgba(148,163,184,.16) 10%),
    linear-gradient(90deg, rgba(47, 99, 255, .16), rgba(54, 209, 183, .12));
}
.app-authenticated .timeline-playhead {
  background: #f8fbff;
}
.app-authenticated .project-card,
.app-authenticated .dashboard-project-card,
.app-authenticated .clip-card,
.app-authenticated .moment-card {
  border-color: rgba(148, 163, 184, .20);
  background:
    linear-gradient(180deg, rgba(13, 26, 48, .94), rgba(8, 17, 31, .96));
}
.app-authenticated .thumb,
.app-authenticated .library-thumb,
.app-authenticated .clip-preview {
  background: linear-gradient(145deg, #020611, #0b1b32);
}
.app-authenticated .notice {
  color: #bff8ec;
  border-color: rgba(54, 209, 183, .30);
  background: rgba(20, 83, 75, .30);
}
.app-authenticated .error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, .34);
  background: rgba(127, 29, 29, .26);
}
.app-authenticated .site-footer {
  color: #8fa1bb;
  border-top-color: rgba(123, 148, 186, .16);
  background: #030812;
}

/* Dark studio refinement: closer to the approved premium Nuzipp mockups. */
.app-authenticated {
  --studio-bg: #020713;
  --studio-surface: rgba(8, 17, 34, .92);
  --studio-surface-strong: rgba(10, 21, 42, .98);
  --studio-border: rgba(95, 128, 205, .24);
  --studio-border-strong: rgba(102, 138, 255, .38);
  --studio-blue: #2458ff;
  --studio-blue-bright: #3b82ff;
  --studio-purple: #7c5cff;
  --studio-green: #37d399;
  --studio-text: #f7fbff;
  --studio-muted: #9baac1;
  --studio-shadow: 0 22px 70px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .035);
  background:
    radial-gradient(circle at 20% -5%, rgba(44, 94, 255, .24), transparent 30rem),
    radial-gradient(circle at 86% 12%, rgba(124, 92, 255, .16), transparent 26rem),
    linear-gradient(135deg, #020713 0%, #061225 44%, #020711 100%);
}

.app-authenticated .site-header {
  min-height: 86px;
  padding: 16px clamp(22px, 4vw, 52px);
  border-bottom: 1px solid rgba(114, 143, 197, .16);
  background:
    linear-gradient(90deg, rgba(3, 8, 18, .96), rgba(5, 13, 29, .92)),
    radial-gradient(circle at 8% 0%, rgba(47, 99, 255, .22), transparent 26rem);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.app-authenticated .brand {
  gap: 14px;
}

.app-authenticated .brand strong {
  color: #fff;
  letter-spacing: -.02em;
  text-shadow: 0 0 26px rgba(85, 124, 255, .20);
}

.app-authenticated .brand small {
  color: #8ea0bb;
  letter-spacing: .16em;
}

.app-authenticated .app-shell {
  grid-template-columns: 300px minmax(0, 1fr);
  background:
    radial-gradient(circle at 55% 4%, rgba(36, 88, 255, .18), transparent 34rem),
    var(--studio-bg);
}

.app-authenticated .frame-icon-rail {
  width: 72px;
  border-right-color: rgba(114, 143, 197, .14);
  background: linear-gradient(180deg, #020611, #040b17);
}

.app-authenticated .frame-asset-sidebar,
.app-authenticated .sidebar {
  background:
    radial-gradient(circle at 20% 6%, rgba(47, 99, 255, .20), transparent 15rem),
    linear-gradient(180deg, rgba(6, 14, 29, .98), rgba(3, 8, 18, .98));
  box-shadow: inset -1px 0 0 rgba(114, 143, 197, .16);
}

.app-authenticated .frame-asset-nav,
.app-authenticated .sidebar nav {
  padding: 30px 22px;
}

.app-authenticated .frame-asset-nav a,
.app-authenticated .sidebar nav a {
  min-height: 48px;
  color: #c4cfe0;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.app-authenticated .frame-asset-nav a:hover,
.app-authenticated .sidebar nav a:hover {
  color: #fff;
  background: rgba(50, 72, 115, .28);
  border-color: rgba(125, 157, 255, .18);
  transform: translateX(2px);
}

.app-authenticated .frame-asset-nav a.active,
.app-authenticated .sidebar nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #2458ff, #173db8);
  border-color: rgba(141, 169, 255, .46);
  box-shadow: 0 18px 36px rgba(36, 88, 255, .28);
}

.app-authenticated .frame-nav-heading,
.app-authenticated .frame-sidebar-section-title {
  color: #8ca3c7;
  letter-spacing: .16em;
}

.app-authenticated .workspace {
  padding-top: clamp(28px, 4vw, 48px);
}

.app-authenticated .workspace > .topline {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-authenticated .workspace > .topline h1,
.app-authenticated .studio-hero h1,
.app-authenticated .studio-dashboard-hero h1,
.app-authenticated .project-title h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4.4vw, 4.35rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.app-authenticated .workspace > .topline p,
.app-authenticated .studio-hero p,
.app-authenticated .studio-dashboard-hero p,
.app-authenticated .project-title p {
  color: var(--studio-muted);
}

.app-authenticated .card,
.app-authenticated .project-progress-card,
.app-authenticated .frame-review-workspace,
.app-authenticated .review-side-card,
.app-authenticated .studio-source-card,
.app-authenticated .studio-moments-card,
.app-authenticated .studio-ready-clips-card,
.app-authenticated .studio-recent-projects-card,
.app-authenticated .studio-activity-card,
.app-authenticated .studio-score-card,
.app-authenticated .library-asset-card,
.app-authenticated .search-panel,
.app-authenticated .admin-card,
.app-authenticated .form-card,
.app-authenticated .pricing-card {
  border: 1px solid var(--studio-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(12, 24, 46, .94), rgba(5, 13, 27, .94)),
    radial-gradient(circle at 85% 0%, rgba(47, 99, 255, .14), transparent 18rem);
  box-shadow: var(--studio-shadow);
}

.app-authenticated .studio-metric-card,
.app-authenticated .metric-card {
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(95, 128, 205, .25);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 20%, rgba(47, 99, 255, .20), transparent 10rem),
    linear-gradient(180deg, rgba(12, 26, 51, .96), rgba(5, 13, 27, .96));
  box-shadow: var(--studio-shadow);
  position: relative;
}

.app-authenticated .studio-metric-card::after,
.app-authenticated .metric-card::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 110px;
  height: 42px;
  opacity: .72;
  background:
    linear-gradient(135deg, transparent 8%, rgba(64, 123, 255, .0) 8% 17%, rgba(64, 123, 255, .85) 17% 20%, transparent 20% 31%, rgba(64, 123, 255, .95) 31% 34%, transparent 34% 45%, rgba(64, 123, 255, .95) 45% 48%, transparent 48% 60%, rgba(64, 123, 255, .95) 60% 63%, transparent 63%);
  filter: drop-shadow(0 0 10px rgba(47, 99, 255, .35));
}

.app-authenticated .metric-icon,
.app-authenticated .stat-icon {
  color: #8db3ff;
  border: 1px solid rgba(92, 138, 255, .22);
  background: linear-gradient(135deg, rgba(47, 99, 255, .24), rgba(47, 99, 255, .08));
}

.app-authenticated .metric-purple .metric-icon,
.app-authenticated .metric-purple .stat-icon {
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(124, 92, 255, .26), rgba(124, 92, 255, .08));
}

.app-authenticated .metric-green .metric-icon,
.app-authenticated .metric-green .stat-icon {
  color: #86efac;
  background: linear-gradient(135deg, rgba(55, 211, 153, .22), rgba(55, 211, 153, .06));
}

.app-authenticated .button,
.app-authenticated button,
.app-authenticated input[type="submit"] {
  min-height: 46px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2f63ff, #2458ff 55%, #173db8);
  border: 1px solid rgba(150, 176, 255, .40);
  box-shadow: 0 14px 34px rgba(36, 88, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.app-authenticated .button:hover,
.app-authenticated button:hover,
.app-authenticated input[type="submit"]:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #4776ff, #2f63ff 55%, #2458ff);
}

.app-authenticated .button.ghost,
.app-authenticated button.ghost,
.app-authenticated .secondary-action {
  color: #dbe8ff;
  background: rgba(10, 21, 42, .78);
  border-color: rgba(118, 148, 205, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.app-authenticated .button.small,
.app-authenticated button.small {
  min-height: 38px;
  border-radius: 10px;
}

.app-authenticated .button.danger,
.app-authenticated button.danger,
.app-authenticated .delete-project-button,
.app-authenticated .delete-clip-button,
.app-authenticated .delete-library-video-button {
  color: #fecaca;
  background: linear-gradient(135deg, rgba(127, 29, 29, .82), rgba(185, 28, 28, .68));
  border-color: rgba(248, 113, 113, .40);
  box-shadow: 0 14px 34px rgba(127, 29, 29, .24);
}

.app-authenticated input,
.app-authenticated select,
.app-authenticated textarea {
  border-radius: 12px;
  color: #f7fbff;
  background: rgba(3, 8, 18, .62);
  border-color: rgba(126, 153, 198, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.app-authenticated input:focus,
.app-authenticated select:focus,
.app-authenticated textarea:focus {
  outline: none;
  border-color: rgba(86, 132, 255, .72);
  box-shadow: 0 0 0 4px rgba(47, 99, 255, .18);
}

.app-authenticated .frame-breadcrumb-bar,
.app-authenticated .frame-asset-toolbar,
.app-authenticated .studio-tabs,
.app-authenticated .library-toolbar,
.app-authenticated .clip-library-toolbar {
  border: 1px solid rgba(95, 128, 205, .20);
  border-radius: 16px;
  background: rgba(7, 15, 30, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.app-authenticated .studio-source-preview,
.app-authenticated .thumb,
.app-authenticated .library-thumb,
.app-authenticated .dashboard-thumb,
.app-authenticated .clip-preview,
.app-authenticated .video-preview-frame {
  overflow: hidden;
  border: 1px solid rgba(75, 114, 199, .30);
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 35%, rgba(47, 99, 255, .24), transparent 16rem),
    linear-gradient(145deg, #020611, #0d1d33);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.app-authenticated .studio-source-preview video,
.app-authenticated .thumb video,
.app-authenticated .library-thumb video,
.app-authenticated .dashboard-thumb video,
.app-authenticated .clip-preview video,
.app-authenticated .video-preview-frame video {
  background: #020611;
}

.app-authenticated .studio-moment-row,
.app-authenticated .library-moments article,
.app-authenticated .moment-card,
.app-authenticated .search-result-card,
.app-authenticated .ready-clip,
.app-authenticated .activity-row {
  border: 1px solid rgba(95, 128, 205, .18);
  border-radius: 14px;
  background: rgba(6, 15, 30, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.app-authenticated .studio-moment-row:hover,
.app-authenticated .library-moments article:hover,
.app-authenticated .moment-card:hover,
.app-authenticated .search-result-card:hover,
.app-authenticated .ready-clip:hover {
  border-color: rgba(86, 132, 255, .52);
  background: rgba(10, 23, 45, .90);
}

.app-authenticated .score-pill,
.app-authenticated .viral-pill,
.app-authenticated .badge.ready,
.app-authenticated .creator-status-pills .ready {
  color: #bfffdc;
  border-color: rgba(74, 222, 128, .32);
  background: rgba(20, 83, 45, .35);
}

.app-authenticated .credit-chip {
  color: #fff;
  border-color: rgba(102, 138, 255, .40);
  background:
    linear-gradient(135deg, rgba(47, 99, 255, .24), rgba(9, 18, 36, .86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.app-authenticated .storage-meter,
.app-authenticated .project-progress-track {
  height: 11px;
  border: 1px solid rgba(95, 128, 205, .14);
  background: rgba(53, 72, 103, .36);
}

.app-authenticated .storage-meter span,
.app-authenticated .project-progress-track span {
  background: linear-gradient(90deg, #2458ff, #7c5cff 55%, #37d399);
  box-shadow: 0 0 18px rgba(47, 99, 255, .38);
}

.app-authenticated .review-viewer-shell {
  border-radius: 18px;
  border: 1px solid rgba(102, 138, 255, .32);
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 99, 255, .16), transparent 24rem),
    #020611;
}

.app-authenticated .source-video-player {
  background: #020611;
}

.app-authenticated .moment-rail {
  border: 1px solid rgba(95, 128, 205, .18);
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), rgba(123, 148, 186, .14) calc(8.333% - 1px), rgba(123, 148, 186, .14) 8.333%),
    linear-gradient(90deg, rgba(47, 99, 255, .12), rgba(124, 92, 255, .12), rgba(55, 211, 153, .10));
}

.app-authenticated .moment-marker,
.app-authenticated .library-moment-dot {
  box-shadow: 0 0 0 3px rgba(2, 7, 19, .92), 0 0 18px currentColor;
}

.app-authenticated .source-summary-panel,
.app-authenticated .transcript-panel,
.app-authenticated .comments-panel {
  border-radius: 16px;
  border-color: rgba(95, 128, 205, .20);
  background: rgba(7, 15, 30, .78);
}

.app-authenticated .site-footer {
  background: #020713;
}

@media (max-width: 900px) {
  .app-authenticated .app-shell {
    grid-template-columns: 1fr;
  }

  .app-authenticated .frame-asset-nav,
  .app-authenticated .sidebar nav {
    padding: 18px;
  }

  .app-authenticated .workspace > .topline h1,
  .app-authenticated .studio-hero h1,
  .app-authenticated .studio-dashboard-hero h1,
  .app-authenticated .project-title h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* Mockup fidelity pass: electric-blue studio panels, denser media layout, and fewer legacy teal controls. */
.app-authenticated .frame-nav-brand {
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(112, 142, 196, .18);
}

.app-authenticated .frame-brand-mark {
  color: #fff;
  background:
    linear-gradient(135deg, #6847ff 0%, #2458ff 48%, #23d2c5 100%);
  box-shadow: 0 20px 42px rgba(36, 88, 255, .30);
}

.app-authenticated .frame-nav-brand strong {
  font-size: 24px;
  letter-spacing: -.03em;
}

.app-authenticated .frame-nav-brand small {
  color: #8fa1bb;
}

.app-authenticated .studio-top-actions {
  align-items: center;
}

.app-authenticated .profile-chip {
  color: #fff;
  background: linear-gradient(135deg, #111827, #24324b);
  border-color: rgba(125, 157, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.app-authenticated .dashboard-stats {
  gap: 18px;
}

.app-authenticated .studio-metric-card p,
.app-authenticated .storage-gauge-card p {
  color: #b6c3d7;
  font-weight: 800;
}

.app-authenticated .studio-metric-card .metric {
  color: #fff;
  font-size: clamp(2.15rem, 3.4vw, 3.5rem);
  letter-spacing: -.05em;
}

.app-authenticated .studio-metric-card small,
.app-authenticated .storage-copy {
  color: #7f91ad;
}

.app-authenticated .studio-dashboard-grid {
  grid-template-columns: minmax(280px, .88fr) minmax(320px, 1.12fr) minmax(380px, 1.45fr);
  gap: 20px;
}

.app-authenticated .panel-title-row {
  align-items: center;
}

.app-authenticated .panel-title-row h2,
.app-authenticated .studio-source-card h2,
.app-authenticated .studio-moments-card h2,
.app-authenticated .studio-ready-clips-card h2,
.app-authenticated .studio-recent-projects-card h2,
.app-authenticated .studio-activity-card h2,
.app-authenticated .studio-score-card h2 {
  color: #f8fbff;
  letter-spacing: -.03em;
}

.app-authenticated .studio-source-preview {
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  background:
    radial-gradient(circle at 38% 40%, rgba(102, 126, 255, .18), transparent 15rem),
    linear-gradient(145deg, #030711, #08172c);
}

.app-authenticated .studio-source-preview::before,
.app-authenticated .dashboard-thumb::before,
.app-authenticated .library-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.16), transparent 32%, rgba(0,0,0,.50)),
    radial-gradient(circle at 50% 45%, transparent 0 42%, rgba(2,7,19,.08) 70%);
}

.app-authenticated .studio-source-preview > *,
.app-authenticated .dashboard-thumb > *,
.app-authenticated .library-thumb > * {
  position: relative;
  z-index: 2;
}

.app-authenticated .studio-source-preview video,
.app-authenticated .studio-source-preview img,
.app-authenticated .dashboard-thumb video,
.app-authenticated .dashboard-thumb img,
.app-authenticated .library-thumb video,
.app-authenticated .library-thumb img {
  position: absolute;
  z-index: 0;
}

.app-authenticated .mini-play,
.app-authenticated .activity-icon,
.app-authenticated .queue-thumb {
  color: #dbe8ff;
  background:
    linear-gradient(135deg, rgba(36, 88, 255, .26), rgba(124, 92, 255, .14)),
    #08172f;
  border: 1px solid rgba(111, 145, 255, .28);
  box-shadow: 0 12px 30px rgba(36, 88, 255, .16);
}

.app-authenticated .studio-moment-list a {
  grid-template-columns: 62px minmax(0, 1fr) 54px;
  border-color: rgba(95, 128, 205, .18);
  background:
    linear-gradient(90deg, rgba(10, 22, 44, .94), rgba(6, 14, 29, .84));
}

.app-authenticated .studio-moment-list a:hover {
  border-color: rgba(59, 130, 255, .55);
  box-shadow: 0 14px 34px rgba(2, 7, 19, .24);
}

.app-authenticated .studio-moment-list b {
  color: #86efac;
  text-shadow: 0 0 18px rgba(74, 222, 128, .18);
}

.app-authenticated .ready-clip {
  min-height: 260px;
  border: 1px solid rgba(86, 132, 255, .30);
  border-radius: 16px;
  background: #020611;
}

.app-authenticated .ready-clip::after {
  background:
    linear-gradient(180deg, rgba(2,6,23,.04) 0%, rgba(2,6,23,.28) 46%, rgba(2,6,23,.90) 100%);
}

.app-authenticated .studio-ready-strip {
  gap: 14px;
}

.app-authenticated .activity-list a,
.app-authenticated .upload-queue-list a {
  color: #e8f0ff;
  border-color: rgba(95, 128, 205, .18);
  background: rgba(6, 15, 30, .78);
}

.app-authenticated .activity-list a:hover,
.app-authenticated .upload-queue-list a:hover {
  border-color: rgba(59, 130, 255, .50);
  background: rgba(10, 23, 45, .92);
}

.app-authenticated .score-donut {
  background: conic-gradient(#37d399 0 32%, #2458ff 32% 74%, #7c5cff 74% 92%, #fb4d7a 92% 100%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .24), 0 0 42px rgba(36, 88, 255, .12);
}

.app-authenticated .score-donut span {
  background: #061225;
  box-shadow: inset 0 0 0 1px rgba(125,157,255,.18);
}

.app-authenticated .project-grid {
  gap: 18px;
}

.app-authenticated .project-card,
.app-authenticated .dashboard-project-card {
  padding: 10px;
  border-radius: 18px;
}

.app-authenticated .project-card .body,
.app-authenticated .dashboard-project-card .body {
  color: #d8e4f8;
  background: transparent;
}

.app-authenticated .thumb,
.app-authenticated .dashboard-thumb {
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 26%, rgba(36, 88, 255, .22), transparent 12rem),
    radial-gradient(circle at 72% 72%, rgba(35, 210, 197, .10), transparent 12rem),
    linear-gradient(160deg, #030711 0%, #08192f 56%, #041021 100%);
}

.app-authenticated .thumb-status {
  color: #c7fff0;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(199, 255, 240, .20);
}

.app-authenticated .fallback-reel i {
  background: linear-gradient(180deg, #7c5cff, #2458ff 50%, #23d2c5);
  box-shadow: 0 16px 38px rgba(36, 88, 255, .22);
}

.app-authenticated .fallback-dots b {
  background: #23d2c5;
}

.app-authenticated .fallback-dots b:nth-child(2) { background: #facc15; }
.app-authenticated .fallback-dots b:nth-child(3) { background: #fb4d7a; }
.app-authenticated .fallback-dots b:nth-child(4) { background: #3b82ff; }

.app-authenticated .create-studio-premium {
  gap: 26px;
}

.app-authenticated .setup-section-title > span {
  color: #dbe8ff;
  background: linear-gradient(135deg, #2458ff, #7c5cff);
  box-shadow: 0 12px 28px rgba(36, 88, 255, .24);
}

.app-authenticated .setup-section-title p {
  color: #91a3bd;
}

.app-authenticated .workflow-tile,
.app-authenticated .option-section,
.app-authenticated .check-tile,
.app-authenticated .upload-side-card,
.app-authenticated .rights-box {
  border-color: rgba(95, 128, 205, .20);
  background: rgba(6, 15, 30, .72);
  color: #e8f0ff;
}

.app-authenticated .workflow-tile.selected {
  border-color: rgba(59, 130, 255, .70);
  background:
    radial-gradient(circle at 82% 16%, rgba(124, 92, 255, .20), transparent 8rem),
    linear-gradient(135deg, rgba(36, 88, 255, .20), rgba(5, 13, 27, .82));
  box-shadow: inset 0 0 0 1px rgba(80, 117, 255, .22), 0 18px 38px rgba(36, 88, 255, .18);
}

.app-authenticated .workflow-icon {
  color: #8db3ff;
}

.app-authenticated .source-note,
.app-authenticated .rights-box,
.app-authenticated .creator-status-pills .demo {
  color: #ffd6a5;
  border-color: rgba(251, 191, 36, .28);
  background: rgba(146, 64, 14, .16);
}

.app-authenticated .check-tile input,
.app-authenticated .rights-box input {
  accent-color: #2458ff;
}

.app-authenticated .estimate-credits {
  color: #fff;
}

.app-authenticated .estimate-list {
  color: #b6c3d7;
}

.app-authenticated .submit-generation:disabled {
  color: rgba(219, 232, 255, .62);
  background: rgba(68, 88, 125, .48);
  border-color: rgba(116, 136, 170, .22);
  box-shadow: none;
}

.app-authenticated .sidebar-credit-card {
  border-color: rgba(95, 128, 205, .24);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, .18), transparent 38%),
    linear-gradient(180deg, rgba(10, 22, 44, .92), rgba(5, 13, 27, .92));
}

.app-authenticated .sidebar-credit-card span {
  color: #dbe8ff;
  background: rgba(36, 88, 255, .20);
}

.app-authenticated .sidebar-credit-card small {
  color: #91a3bd;
}

.app-authenticated .clip-card,
.app-authenticated .library-asset-card {
  border-radius: 20px;
}

.app-authenticated .clip-card.is-selected,
.app-authenticated .library-asset-card.is-selected,
.app-authenticated .dashboard-project-card:hover,
.app-authenticated .project-card:hover {
  border-color: rgba(59, 130, 255, .72);
  box-shadow: 0 0 0 1px rgba(59, 130, 255, .22), 0 24px 64px rgba(0, 0, 0, .36);
}

.app-authenticated .clip-actions .button,
.app-authenticated .clip-card .button,
.app-authenticated .library-asset-card .button {
  color: #dbe8ff;
  background: rgba(10, 21, 42, .88);
  border-color: rgba(118, 148, 205, .28);
  box-shadow: none;
}

.app-authenticated .clip-actions .button.download,
.app-authenticated .clip-card .button.download,
.app-authenticated .library-asset-card .button.download {
  color: #cfe0ff;
  background: rgba(36, 88, 255, .16);
  border-color: rgba(59, 130, 255, .42);
}

.app-authenticated .frame-breadcrumb {
  color: #dbe8ff;
}

.app-authenticated .frame-breadcrumb span {
  color: #73849f;
}

@media (max-width: 1180px) {
  .app-authenticated .studio-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .app-authenticated .studio-ready-strip {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
  }
}

/* Project review regression fixes: preserve the three-column shell and restore colored AI dots. */
.app-authenticated .asset-review-shell {
  grid-template-columns: 74px 270px minmax(0, 1fr);
}

.app-authenticated .asset-review-shell .frame-asset-sidebar {
  grid-column: 1 / span 2;
  grid-template-columns: 74px 270px;
}

.app-authenticated .asset-review-shell .workspace {
  grid-column: 3;
  min-width: 0;
  padding-left: clamp(24px, 2.4vw, 42px);
  padding-right: clamp(20px, 2.2vw, 38px);
}

.app-authenticated .asset-review-shell .frame-breadcrumb-bar {
  margin-left: clamp(-42px, -2.4vw, -24px);
  margin-right: clamp(-38px, -2.2vw, -20px);
  padding-left: clamp(24px, 2.4vw, 42px);
  padding-right: clamp(20px, 2.2vw, 38px);
}

.app-authenticated .asset-review-shell .topline {
  overflow: visible;
  margin-top: 22px;
}

.app-authenticated .asset-review-shell .topline h1 {
  max-width: min(920px, 100%);
  color: #fff;
  font-size: clamp(3rem, 4.7vw, 5.1rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.app-authenticated .viewer-signal-track {
  padding: 14px 18px 12px;
  border-top: 1px solid rgba(95, 128, 205, .20);
  background: linear-gradient(180deg, rgba(4, 10, 22, .96), rgba(8, 16, 31, .96));
}

.app-authenticated .moment-rail {
  height: 44px;
  border: 1px solid rgba(95, 128, 205, .22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 50%, rgba(36, 88, 255, .18), transparent 16rem),
    linear-gradient(180deg, rgba(22, 34, 57, .94), rgba(10, 19, 35, .94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.18);
}

.app-authenticated .timeline-playhead {
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 0 4px rgba(47, 99, 255, .16), 0 0 20px rgba(47, 99, 255, .32);
}

.app-authenticated .moment-dot {
  top: 50%;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  padding: 0 !important;
  border: 2px solid rgba(255,255,255,.96) !important;
  border-radius: 999px !important;
  transform: translate(-50%, -50%) !important;
  box-shadow: 0 0 0 3px rgba(2, 7, 19, .82), 0 0 16px currentColor !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.app-authenticated .moment-dot.active,
.app-authenticated .moment-dot.selected {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  box-shadow: 0 0 0 6px rgba(47,99,255,.22), 0 0 22px currentColor !important;
}

.app-authenticated .moment-dot span {
  bottom: calc(100% + 10px);
  color: #f8fbff;
  background: rgba(4, 10, 22, .96);
  border: 1px solid rgba(125,157,255,.24);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.app-authenticated .moment-dot:hover span,
.app-authenticated .moment-dot:focus-visible span {
  display: block;
}

.app-authenticated .moment-dot.moment-tone-angry,
.app-authenticated .moment-tone-angry { background: #ef4444; color: #ef4444; }
.app-authenticated .moment-dot.moment-tone-tense,
.app-authenticated .moment-tone-tense { background: #b91c1c; color: #b91c1c; }
.app-authenticated .moment-dot.moment-tone-happy,
.app-authenticated .moment-tone-happy { background: #22c55e; color: #22c55e; }
.app-authenticated .moment-dot.moment-tone-controversial,
.app-authenticated .moment-tone-controversial { background: #facc15; color: #facc15; }
.app-authenticated .moment-dot.moment-tone-funny,
.app-authenticated .moment-tone-funny { background: #f97316; color: #f97316; }
.app-authenticated .moment-dot.moment-tone-sad,
.app-authenticated .moment-tone-sad { background: #3b82f6; color: #3b82f6; }
.app-authenticated .moment-dot.moment-tone-fear,
.app-authenticated .moment-tone-fear { background: #8b5cf6; color: #8b5cf6; }
.app-authenticated .moment-dot.moment-tone-suspense,
.app-authenticated .moment-tone-suspense { background: #6366f1; color: #6366f1; }
.app-authenticated .moment-dot.moment-tone-exciting,
.app-authenticated .moment-tone-exciting { background: #ec4899; color: #ec4899; }
.app-authenticated .moment-dot.moment-tone-impressive,
.app-authenticated .moment-tone-impressive { background: #06b6d4; color: #06b6d4; }
.app-authenticated .moment-dot.moment-tone-surprising,
.app-authenticated .moment-tone-surprising { background: #38bdf8; color: #38bdf8; }
.app-authenticated .moment-dot.moment-tone-curious,
.app-authenticated .moment-tone-curious { background: #0ea5e9; color: #0ea5e9; }
.app-authenticated .moment-dot.moment-tone-relatable,
.app-authenticated .moment-tone-relatable { background: #84cc16; color: #84cc16; }
.app-authenticated .moment-dot.moment-tone-authority,
.app-authenticated .moment-tone-authority { background: #14b8a6; color: #14b8a6; }
.app-authenticated .moment-dot.moment-tone-educational,
.app-authenticated .moment-tone-educational { background: #2dd4bf; color: #2dd4bf; }
.app-authenticated .moment-dot.moment-tone-neutral,
.app-authenticated .moment-tone-neutral { background: #94a3b8; color: #94a3b8; }

.app-authenticated .signal-legend i {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(2,7,19,.45);
}

@media (max-width: 1180px) {
  .app-authenticated .asset-review-shell {
    grid-template-columns: 1fr;
  }

  .app-authenticated .asset-review-shell .frame-asset-sidebar,
  .app-authenticated .asset-review-shell .workspace {
    grid-column: 1;
  }

  .app-authenticated .asset-review-shell .frame-asset-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Production contrast pass: keep the dark mockup look, but make every control readable. */
.app-authenticated .review-workspace-grid .review-panel,
.app-authenticated .asset-review-shell .review-panel,
.app-authenticated .asset-review-shell .custom-short-panel,
.app-authenticated .asset-review-shell .source-summary-panel,
.app-authenticated .asset-review-shell .share-state-card,
.app-authenticated .asset-review-shell .selected-clip-panel,
.app-authenticated .asset-review-shell .export-state-panel,
.app-authenticated .asset-review-shell .account-export-panel,
.app-authenticated .asset-review-shell .watermark-panel {
  color: #f8fbff;
  border: 1px solid rgba(102, 138, 255, .24);
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 99, 255, .12), transparent 16rem),
    linear-gradient(180deg, rgba(9, 19, 37, .96), rgba(5, 12, 24, .96));
  box-shadow: 0 20px 54px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255,255,255,.04);
}

.app-authenticated .review-panel h3,
.app-authenticated .custom-short-panel strong,
.app-authenticated .source-summary-panel h3,
.app-authenticated .summary-signal-list strong,
.app-authenticated .competitive-coverage strong,
.app-authenticated .share-state-card h3,
.app-authenticated .selected-clip-panel h3 {
  color: #f8fbff;
}

.app-authenticated .review-panel p,
.app-authenticated .custom-short-panel p,
.app-authenticated .source-summary-panel p,
.app-authenticated .competitive-coverage small,
.app-authenticated .share-state-card p,
.app-authenticated .selected-clip-panel p,
.app-authenticated .timeline-caption,
.app-authenticated .time-preview {
  color: #aebbd0;
}

.app-authenticated .review-panel label,
.app-authenticated .custom-short-panel label,
.app-authenticated .status-select label,
.app-authenticated .selected-options label {
  color: #c7d2e5;
}

.app-authenticated .comment-form textarea,
.app-authenticated .status-select select,
.app-authenticated .selected-options select,
.app-authenticated .custom-range-controls input,
.app-authenticated .custom-short-panel input,
.app-authenticated .custom-short-panel select {
  color: #f8fbff;
  background: rgba(2, 7, 19, .72);
  border-color: rgba(126, 153, 198, .30);
}

.app-authenticated .comment-form textarea::placeholder {
  color: #7f8da4;
}

.app-authenticated .asset-metadata-panel dl div,
.app-authenticated .selected-clip-details div,
.app-authenticated .comment-item {
  color: #f8fbff;
  border: 1px solid rgba(126, 153, 198, .22);
  background: rgba(9, 19, 37, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.app-authenticated .asset-metadata-panel dt,
.app-authenticated .selected-clip-details dt {
  color: #8fa1bb;
}

.app-authenticated .asset-metadata-panel dd,
.app-authenticated .selected-clip-details dd {
  color: #f8fbff;
}

.app-authenticated .share-state-card {
  border-color: rgba(126, 153, 198, .24);
}

.app-authenticated .toggle-row {
  color: #c7d2e5;
}

.app-authenticated .toggle-row input,
.app-authenticated .review-panel input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: #2f63ff;
}

.app-authenticated .custom-duration,
.app-authenticated .range-guidance span,
.app-authenticated .summary-signal-list span,
.app-authenticated .competitive-coverage span {
  color: #dbe8ff;
  border-color: rgba(79, 128, 255, .32);
  background: rgba(47, 99, 255, .14);
}

.app-authenticated .custom-duration {
  color: #a7f3d0;
  background: rgba(20, 83, 45, .34);
  border: 1px solid rgba(74, 222, 128, .28);
}

.app-authenticated .range-guidance strong {
  color: #fbbf24;
}

.app-authenticated .custom-range-actions .button.ghost,
.app-authenticated .review-panel .button.ghost,
.app-authenticated .share-state-card .button.ghost {
  color: #dbe8ff;
  background: rgba(12, 24, 46, .92);
  border-color: rgba(126, 153, 198, .30);
}

.app-authenticated .custom-range-actions .button,
.app-authenticated .review-panel .button,
.app-authenticated .custom-short-panel .button {
  color: #fff;
}

.app-authenticated .review-panel .button:disabled,
.app-authenticated .share-state-card .button:disabled {
  color: #7f8da4;
  background: rgba(12, 24, 46, .45);
  border-color: rgba(126, 153, 198, .16);
  box-shadow: none;
}

.app-authenticated .empty-render-card,
.app-authenticated .source-summary-panel {
  color: #f8fbff;
}

/* Functional generated-clip toolbar controls. */
.asset-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.frame-asset-toolbar .asset-toolbar-actions .button {
  min-height: 38px;
  padding: 9px 13px;
  font-size: .9rem;
  cursor: pointer;
}

.frame-asset-toolbar .asset-toolbar-actions .button[aria-pressed="true"] {
  color: #0f766e;
  border-color: rgba(20, 184, 166, .34);
  background: rgba(20, 184, 166, .10);
}

.asset-search-control {
  display: grid;
  gap: 6px;
  min-width: min(100%, 310px);
}

.asset-search-control span {
  color: #64748b;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.asset-search-control input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  color: #0f172a;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.asset-search-control input::placeholder {
  color: #94a3b8;
}

.clip-card[hidden] {
  display: none !important;
}

.shorts-panel.compact-clip-grid .clips {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shorts-panel.compact-clip-grid .clip-preview {
  min-height: 220px;
}

.shorts-panel.hide-clip-fields .clip-intel,
.shorts-panel.hide-clip-fields .generated-clip-actions,
.shorts-panel.hide-clip-fields .score-reason {
  display: none;
}

.app-authenticated .asset-review-shell .asset-search-control {
  color: #dbe8ff;
  border-color: rgba(126, 153, 198, .24);
  background: rgba(7, 16, 31, .86);
}

.app-authenticated .asset-review-shell .asset-search-control span {
  color: #9fb1cf;
}

.app-authenticated .asset-review-shell .asset-search-control input {
  color: #f8fbff;
  border-color: rgba(126, 153, 198, .28);
  background: rgba(2, 7, 19, .72);
}

.app-authenticated .asset-review-shell .asset-search-control input::placeholder {
  color: #75859d;
}

.app-authenticated .asset-review-shell .frame-asset-toolbar .asset-toolbar-actions .button[aria-pressed="true"] {
  color: #dbe8ff;
  border-color: rgba(79, 128, 255, .44);
  background: rgba(47, 99, 255, .22);
}

/* Restore readable signal icons on AI moment cards. */
.moment-time {
  gap: 5px;
}

.moment-signal-logo {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  font-size: .95rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.02em;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.moment-clock {
  display: block;
  color: #fff;
  font-weight: 950;
}

.app-authenticated .moment-time {
  width: 88px;
  min-height: 92px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
}

.app-authenticated .moment-time small {
  color: rgba(255,255,255,.82);
}
