:root {
  color-scheme: dark;
  --bg: #100f09;
  --panel: #12130f;
  --panel-2: #171814;
  --panel-3: #1e1f1b;
  --line: #2c2d27;
  --line-soft: #23241f;
  --text: #f5f4ef;
  --muted: #9a9a91;
  --muted-2: #6e6f67;
  --cream: #f3f1e9;
  --ink: #10110e;
  --accent: #b6f23a;
  --accent-soft: rgba(182, 242, 58, 0.12);
  --cyan: #4cc9f0;
  --danger: #ff6b6b;
  --topbar: 45px;
  --sidebar-expanded: 256px;
  --sidebar: var(--sidebar-expanded);
  --sidebar-item-inset: 14px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-synthesis: none;
}

/* Resolve the public-home shell before the deferred application starts. */
html[data-entry-view="landing"] body:not(.landing-mode) > :is(.topbar, .sidebar, .mobile-shade) { display: none; }
html[data-entry-view="landing"] body:not(.landing-mode) > .content { margin-left: 0; padding-top: 0; }
html[lang="en"]:not([data-i18n-ready]) body > :is(.topbar, .sidebar) { visibility: hidden; }

/* 20261002 pricing and credits final overrides. */
body.account-mode .sidebar { width: 232px; }
body.account-mode .content { margin-left: 232px; }
body.account-mode .account-brand { min-height: 58px; padding: 0 18px; font-size: 17px; }
body.account-mode .account-brand img { width: 28px; height: 31px; }
body.account-mode .account-nav { gap: 5px; padding: 10px 12px; }
body.account-mode .account-nav small { margin: 16px 8px 7px; font-size: 13px; }
body.account-mode .account-nav a { min-height: 42px; gap: 11px; padding: 0 12px; border-radius: 7px; font-size: 15px; }
body.account-mode .account-nav svg { width: 18px; height: 18px; }
body.account-mode .account-sidebar-user { gap: 10px; padding: 14px 16px; }
body.account-mode .account-sidebar-user img { width: 34px; height: 34px; }
body.account-mode .account-sidebar-user strong { font-size: 13px; }
body.account-mode .account-sidebar-user small { font-size: 11px; }
body.account-mode .account-topbar { height: 64px; padding: 0 30px; font-size: 14px; }
body.account-mode .account-page-inner { padding: 42px 56px 78px; }
body.account-mode .account-page-inner > h1 { margin-bottom: 30px; font-size: 32px; line-height: 40px; }
body.account-mode .account-title-row h1 { font-size: 32px; line-height: 40px; }

.pricing-page > main { width: min(1320px, calc(100% - 64px)); padding-top: 84px; }
.pricing-page .landing-section-heading h1 { font-size: 36px; }
.pricing-page .landing-section-heading p { font-size: 15px; }
.pricing-cards { gap: 20px; }
.pricing-card { min-height: 610px; padding: 34px 28px 24px; }
.pricing-card h2 { font-size: 25px; }
.pricing-card > p { font-size: 14px; }
.plan-price { margin: 52px 0 26px; }
.plan-price strong { font-size: 46px; }
.pricing-card ul { gap: 16px; padding: 24px 0; font-size: 14px; line-height: 1.45; }
.pricing-card li { gap: 11px; }
.pricing-card li svg { width: 18px; height: 18px; }
.pricing-card > button { min-height: 48px; font-size: 15px; }

.pricing-security-panel { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr); align-items: center; gap: 30px; margin-top: 42px; padding: 26px 30px; border: 1px solid #30342d; border-radius: 10px; background: #151714; }
.pricing-security-copy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pricing-security-copy > svg { flex: 0 0 auto; width: 28px; height: 28px; color: #b8f000; }
.pricing-security-copy div { display: grid; gap: 5px; }
.pricing-security-copy strong { color: #f1f2ed; font-size: 18px; line-height: 1.2; }
.pricing-security-copy span { color: #989b94; font-size: 13px; line-height: 1.5; }
.pricing-payment-logos { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.pricing-payment-logo { min-width: 78px; height: 42px; display: grid; place-items: center; padding: 7px 11px; border: 1px solid #343731; border-radius: 7px; background: #f4f4f0; }
.pricing-payment-logo img { display: block; width: auto; max-width: 94px; height: 27px; object-fit: contain; }
.pricing-faq { margin-top: 78px; padding-bottom: 30px; }
.pricing-faq .landing-section-heading h2 { font-size: 28px; }
.pricing-faq .landing-section-heading p { margin-top: 8px; color: #9a9c95; font-size: 14px; }
.pricing-faq .faq-list { max-width: 920px; margin-top: 26px; }
.pricing-faq .faq-list summary { min-height: 66px; padding-inline: 26px; font-size: 15px; }
.pricing-faq .faq-list details p { margin: -2px 30px 22px 0; padding-left: 26px; font-size: 14px; line-height: 1.7; }

.credits-account { max-width: 1380px; padding-bottom: 92px; }
.credit-balance-grid { gap: 18px; }
.credit-balance-card { min-height: 124px; padding: 22px 24px; gap: 13px; }
.credit-balance-card > span { font-size: 14px; }
.credit-balance-card strong { font-size: 32px; }
.credit-current-plan { margin: 28px 0 0; font-size: 14px; }
.credits-packs-section { margin-top: 38px; }
.account-section-heading { margin-bottom: 18px; }
.account-section-heading h2 { font-size: 23px; }
.account-section-heading p { font-size: 13px; }
.credit-pack-grid { gap: 18px; }
.credit-pack-card { min-height: 336px; padding: 28px 26px 24px; }
.credit-pack-name h3 { font-size: 18px; }
.credit-pack-price { padding: 22px 0 14px; }
.credit-pack-price strong { font-size: 38px; }
.credit-pack-card > p { font-size: 14px; }
.credit-pack-card ul { gap: 9px; margin: 32px 0 22px; font-size: 13px; }
.credit-pack-card button { height: 46px; font-size: 15px; }
.credits-account .pricing-security-panel { margin-top: 38px; }
.credits-ledger-section { margin-top: 42px; }
.credits-ledger-section .account-table-wrap { font-size: 14px; }

.pricing-dialog { width: min(980px, calc(100vw - 48px)); height: min(760px, calc(100dvh - 48px)); }
.pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 38px 40px; }
.pricing-dialog .pricing-picker h2 { font-size: 30px; }
.pricing-dialog .pricing-picker > p { font-size: 14px; }
.pricing-dialog .plan-detail h3 { font-size: 54px; }
.pricing-dialog .plan-detail ul { gap: 16px; font-size: 14px; }
.pricing-dialog .pricing-provider-note { min-height: 36px; font-size: 13px; }

@media (max-width: 900px) {
  body.account-mode .account-nav a { min-height: 44px; font-size: 15px; }
  .pricing-page > main { width: min(100% - 40px, 1320px); }
  .pricing-security-panel { grid-template-columns: 1fr; }
  .pricing-payment-logos { justify-content: flex-start; }
}
@media (max-width: 767px) {

  body.account-mode .sidebar, body.account-mode.sidebar-collapsed .sidebar { width: min(304px, 86vw); }
}
@media (max-width: 700px) {
  body.account-mode .account-topbar { height: 62px; padding-inline: 18px; }
  body.account-mode .account-page-inner { padding: 30px 18px 54px; }
  body.account-mode .account-page-inner > h1, body.account-mode .account-title-row h1 { font-size: 29px; line-height: 36px; }
  .pricing-page > main { width: calc(100% - 24px); padding-top: 42px; }
  .pricing-page .landing-section-heading h1 { font-size: 30px; }
  .pricing-card { padding: 26px 22px 22px; }
  .pricing-card h2 { font-size: 23px; }
  .plan-price { margin: 36px 0 22px; }
  .plan-price strong { font-size: 42px; }
  .pricing-security-panel { gap: 22px; margin-top: 30px; padding: 22px 18px; }
  .pricing-security-copy strong { font-size: 17px; }
  .pricing-payment-logos { gap: 8px; }
  .pricing-payment-logo { min-width: 64px; height: 36px; padding: 5px 7px; }
  .pricing-payment-logo img { max-width: 74px; height: 22px; }
  .pricing-faq { margin-top: 54px; }
  .pricing-faq .landing-section-heading h2 { font-size: 24px; }
  .pricing-faq .faq-list summary { min-height: 58px; padding-inline: 18px; font-size: 14px; }
  .pricing-faq .faq-list details p { padding-left: 18px; font-size: 13px; }
  .credit-balance-card { min-height: 112px; padding: 20px; }
  .credit-balance-card strong { font-size: 29px; }
  .credit-pack-card { min-height: 0; padding: 24px 20px 20px; }
  .credit-pack-price strong { font-size: 34px; }
  .credits-account .pricing-security-panel { margin-top: 30px; }
  .pricing-dialog { width: 100vw; height: 100dvh; }
  .pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 28px 22px; }
  .pricing-dialog .plan-detail h3 { font-size: 42px; }
}

/* Keep native video controls inside the source-sized player, not the workspace. */
.result-focus.is-video {
  container-type: size;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.result-focus.is-video .result-media-frame {
  position: relative;
  width: min(100cqw, calc(100cqh * var(--result-media-ratio, 1.777778)));
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100cqh;
  aspect-ratio: var(--result-media-ratio, 16 / 9);
  border-radius: 16px;
  background: #000;
}
.result-focus.is-video .result-main-media {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}
.account-asset-grid .asset-media > video { object-fit: contain; }
.asset-media > video:focus-visible { outline: 2px solid #ecece8; outline-offset: -3px; }
video.managed-video::-webkit-media-controls { opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
video.managed-video.media-controls-visible::-webkit-media-controls,
video.managed-video:focus-visible::-webkit-media-controls,
video.managed-video:fullscreen::-webkit-media-controls { opacity: 1; pointer-events: auto; }
@media (hover: none) { video.managed-video::-webkit-media-controls { opacity: 1; pointer-events: auto; } }
.video-expand-button {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 58px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(18,19,16,.78);
  color: #fff;
  cursor: pointer;
}
.video-expand-button svg { width: 14px; height: 14px; }
.video-expand-button:hover { background: #353632; }
.video-playback-dialog {
  position: fixed;
  width: min(1024px, calc(100vw - 48px), calc(min(780px, 100dvh - 64px) * var(--dialog-video-ratio, 1.777778)));
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 64px);
  aspect-ratio: var(--dialog-video-ratio, 16 / 9);
  padding: 0;
  border: 1px solid #353632;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
}
.video-playback-dialog::backdrop { background: rgba(0,0,0,.8); }
.video-dialog-frame { position: absolute; inset: 0; }
.video-dialog-frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
.video-dialog-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(18,19,16,.82); color: #fff; cursor: pointer; }
.video-dialog-close svg { width: 19px; height: 19px; }
.video-dialog-error { position: absolute; z-index: 2; inset: 35% 12px auto; padding: 16px; border-radius: 8px; background: #23241f; color: #fff; text-align: center; }

/* FINAL 20261002 parity cascade */
.pricing-page > main { width: min(1201px, calc(100% - 64px)); padding-top: 70px; }
.pricing-page .landing-section-heading { text-align: center; }
.pricing-page .landing-section-heading h1 { font-size: 32px; }
.pricing-page .landing-section-heading p { max-width: 680px; margin: 8px auto 0; font-size: 15px; line-height: 1.6; }
.pricing-annual-offer { display: grid; justify-items: center; gap: 5px; margin: 26px auto 0; color: #a4a7a0; text-align: center; }
.pricing-annual-offer strong { color: #f3f4ee; font-size: 12px; text-transform: uppercase; }
.pricing-annual-offer strong::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: #b3f000; }
.pricing-annual-offer span { color: #d8dad3; font-size: 14px; }
.pricing-annual-offer small { max-width: 640px; color: #7e817a; font-size: 12px; }
.pricing-controls { align-items: center; justify-content: center; gap: 18px; margin: 28px 0 24px; }
.pricing-controls > div:first-child { margin: 0; }
.pricing-controls > div:first-child button { min-width: 94px; height: 36px; font-size: 13px; }
.pricing-period-control { display: inline-flex; align-items: center; gap: 9px; color: #a8aba4; font-size: 13px; white-space: nowrap; }
.pricing-period-control span:last-child { color: #f3f4ee; }
.pricing-period-control button { width: 36px; height: 20px; position: relative; border: 0; border-radius: 999px; background: #656860; cursor: pointer; }
.pricing-period-control button::after { content: ""; width: 14px; height: 14px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; }
.pricing-period-control button.on { background: #b3f000; }
.pricing-period-control button.on::after { transform: translateX(16px); }
.pricing-one-time-label { color: #a8aba4; font-size: 13px; }
.pricing-cards, .credit-pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pricing-card { min-height: 630px; padding: 24px 24px 22px; border-radius: 12px; background: #15191d; }
.pricing-card h2 { font-size: 20px; }
.pricing-card > p { min-height: 40px; font-size: 13px; line-height: 1.55; }
.plan-price { margin: 42px 0 20px; }
.plan-price strong { font-size: 36px; }
.pricing-card ul { gap: 11px; padding: 19px 0; font-size: 13px; }
.pricing-card li { min-height: 22px; gap: 9px; color: #f0f1eb; }
.pricing-card li svg { width: 17px; height: 17px; color: #f0f1eb; }
.pricing-card li.is-unavailable { color: #666a65; }
.pricing-card li.is-unavailable svg { color: #656963; }
.pricing-security-panel { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; margin: 38px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; }
.pricing-payment-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pricing-payment-logo { width: 72px; min-width: 72px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
.pricing-payment-logo img { width: 72px; max-width: 72px; height: 32px; object-fit: contain; }
body.account-mode .sidebar { width: 204px; }
body.account-mode .content { margin-left: 204px; }
body.account-mode .account-page-inner { padding: 40px 32px 76px; }
.credits-account { max-width: none; }
.credit-balance-card { min-height: 82px; padding: 15px 16px; gap: 9px; }
.credit-pack-grid { gap: 16px; }
.credit-pack-card { min-height: 270px; padding: 24px; border-radius: 8px; }
.credit-pack-name h3 { font-size: 16px; }
.credit-pack-price { padding: 18px 0 10px; }
.credit-pack-price strong { font-size: 29px; }
.credit-pack-credit { display: flex; align-items: baseline; justify-content: space-between; color: #aeb1aa; font-size: 12px; }
.credit-pack-credit b { color: #eceee8; font-size: 14px; }
.credit-pack-card ul { gap: 8px; margin: 18px 0; color: #f0f1eb; font-size: 12px; }
.credit-pack-card li { display: flex; align-items: center; gap: 8px; min-height: 19px; }
.credit-pack-card li svg { width: 15px; height: 15px; color: #f0f1eb; }
.credit-pack-card li.is-unavailable { color: #666a65; }
.credit-pack-card li.is-unavailable svg { color: #656963; }
.pricing-dialog { width: min(980px, calc(100vw - 32px)); height: min(688px, calc(100dvh - 32px)); max-height: min(688px, calc(100dvh - 32px)); }
.pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 34px 40px; }
.pricing-dialog .pricing-period-control, .pricing-dialog .pricing-one-time-label { margin-left: auto; }
.pricing-dialog .plan-detail h3 { font-size: 52px; }
.pricing-dialog .plan-detail li { display: flex; align-items: center; gap: 9px; color: #d7d9d2; }
.pricing-dialog .plan-detail li svg { width: 18px; height: 18px; color: #f0f1eb; }
.pricing-dialog .plan-detail li.is-unavailable { color: #666a65; }
.pricing-dialog .plan-detail li.is-unavailable svg { color: #656963; }
.pricing-dialog .plan-detail li::before { content: none !important; }
.pricing-provider-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; color: #6f756d; font-size: 11px; }
.pricing-provider-note i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #00a875; }
@media (max-width: 900px) { .pricing-cards, .credit-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.account-mode .account-page-inner { padding: 32px 24px 64px; } }
@media (max-width: 767px) {
 body.account-mode .sidebar { width: min(304px, 86vw); }
 body.account-mode .content { margin-left: 0; }
}
@media (max-width: 620px) { .pricing-page > main { width: calc(100% - 24px); padding-top: 40px; } .pricing-cards, .credit-pack-grid { grid-template-columns: 1fr; } .pricing-card { min-height: 0; } .pricing-controls { flex-wrap: wrap; } .pricing-security-panel { align-items: flex-start; } .pricing-payment-logos { justify-content: flex-start; } .pricing-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; } .pricing-dialog .pricing-layout { grid-template-columns: 1fr; overflow-y: auto; } .pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 28px 22px; } }

/* 20261002 SeaVid parity final cascade. */
.pricing-page > main { width: min(1201px, calc(100% - 64px)); padding-top: 70px; }
.pricing-page .landing-section-heading { text-align: center; }
.pricing-page .landing-section-heading h1 { font-size: 32px; letter-spacing: 0; }
.pricing-page .landing-section-heading p { max-width: 680px; margin: 8px auto 0; color: #a4a7a0; font-size: 15px; line-height: 1.6; }
.pricing-annual-offer { display: grid; justify-items: center; gap: 5px; margin: 26px auto 0; color: #a4a7a0; text-align: center; }
.pricing-annual-offer strong { color: #f3f4ee; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pricing-annual-offer strong::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: #b3f000; }
.pricing-annual-offer span { color: #d8dad3; font-size: 14px; }
.pricing-annual-offer small { max-width: 640px; color: #7e817a; font-size: 12px; line-height: 1.5; }
.pricing-controls { align-items: center; justify-content: center; gap: 18px; margin: 28px 0 24px; }
.pricing-controls > div:first-child { margin: 0; }
.pricing-controls > div:first-child button { min-width: 94px; height: 36px; font-size: 13px; }
.pricing-period-control { display: inline-flex; align-items: center; gap: 9px; color: #a8aba4; font-size: 13px; white-space: nowrap; }
.pricing-period-control span:last-child { color: #f3f4ee; }
.pricing-period-control button { width: 36px; height: 20px; position: relative; border: 0; border-radius: 999px; background: #656860; cursor: pointer; }
.pricing-period-control button::after { content: ""; width: 14px; height: 14px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.pricing-period-control button.on { background: #b3f000; }
.pricing-period-control button.on::after { transform: translateX(16px); }
.pricing-period-control button:disabled { cursor: not-allowed; opacity: .8; }
.pricing-one-time-label { color: #a8aba4; font-size: 13px; }
.pricing-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pricing-card { min-height: 630px; padding: 24px 24px 22px; border-radius: 12px; background: #15191d; }
.pricing-card h2 { font-size: 20px; }
.pricing-card > p { min-height: 40px; font-size: 13px; line-height: 1.55; }
.pricing-card > em { top: -11px; right: 20px; padding: 5px 8px; font-size: 9px; }
.plan-price { margin: 42px 0 20px; }
.plan-price strong { font-size: 36px; }
.plan-credit { padding-bottom: 16px; }
.pricing-card ul { gap: 11px; padding: 19px 0; font-size: 13px; }
.pricing-card li { min-height: 22px; align-items: center; gap: 9px; color: #f0f1eb; }
.pricing-card li svg { width: 17px; height: 17px; flex: 0 0 auto; color: #f0f1eb; }
.pricing-card li.is-unavailable { color: #666a65; }
.pricing-card li.is-unavailable svg { color: #656963; }
.pricing-card > button { min-height: 44px; font-size: 13px; }
.pricing-security-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; margin: 38px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; }
.pricing-security-label { color: #b2b4ae; font-size: 13px; }
.pricing-payment-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pricing-payment-logo { width: 72px; min-width: 72px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; background: transparent; }
.pricing-payment-logo img { width: 72px; max-width: 72px; height: 32px; object-fit: contain; }
.pricing-faq { margin-top: 64px; }
.pricing-faq .landing-section-heading h2 { font-size: 26px; }
.pricing-faq .landing-section-heading p { font-size: 14px; }
body.account-mode .sidebar { width: 204px; }
body.account-mode .content { margin-left: 204px; }
body.account-mode .account-page-inner { padding: 40px 32px 76px; }
.credits-account { max-width: none; }
.credit-balance-grid { gap: 16px; }
.credit-balance-card { min-height: 82px; padding: 15px 16px; gap: 9px; }
.credit-balance-card > span { font-size: 12px; }
.credit-balance-card strong { font-size: 20px; }
.credit-current-plan { margin-top: 22px; font-size: 12px; }
.credits-packs-section { margin-top: 28px; }
.account-section-heading { margin-bottom: 18px; }
.account-section-heading h2 { font-size: 22px; }
.account-section-heading p { font-size: 12px; }
.credit-pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.credit-pack-card { min-height: 270px; padding: 24px; border-radius: 8px; }
.credit-pack-name h3 { font-size: 16px; }
.credit-pack-price { padding: 18px 0 10px; }
.credit-pack-price strong { font-size: 29px; }
.credit-pack-credit { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #aeb1aa; font-size: 12px; }
.credit-pack-credit b { color: #eceee8; font-size: 14px; font-weight: 600; }
.credit-pack-card ul { gap: 8px; margin: 18px 0 18px; color: #f0f1eb; font-size: 12px; line-height: 1.4; }
.credit-pack-card li { display: flex; align-items: center; gap: 8px; min-height: 19px; }
.credit-pack-card li svg { width: 15px; height: 15px; flex: 0 0 auto; color: #f0f1eb; }
.credit-pack-card li.is-unavailable { color: #666a65; }
.credit-pack-card li.is-unavailable svg { color: #656963; }
.credit-pack-card button { height: 38px; font-size: 13px; }
.pricing-dialog { width: min(980px, calc(100vw - 32px)); height: min(688px, calc(100dvh - 32px)); max-height: min(688px, calc(100dvh - 32px)); }
.pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 34px 40px; }
.pricing-dialog .pricing-picker h2 { font-size: 30px; }
.pricing-dialog .pricing-picker > p { margin: 8px 0 18px; font-size: 13px; }
.pricing-dialog .pricing-period-control { margin-left: auto; }
.pricing-dialog .pricing-one-time-label { margin-left: auto; }
.pricing-dialog .plan-detail h3 { font-size: 52px; }
.pricing-dialog .plan-detail ul { gap: 14px; font-size: 13px; }
.pricing-dialog .plan-detail li { display: flex; align-items: center; gap: 9px; color: #d7d9d2; }
.pricing-dialog .plan-detail li svg { width: 18px; height: 18px; flex: 0 0 auto; color: #f0f1eb; }
.pricing-dialog .plan-detail li.is-unavailable { color: #666a65; }
.pricing-dialog .plan-detail li.is-unavailable svg { color: #656963; }
.pricing-dialog .plan-detail li::before { content: none !important; }
.pricing-provider-note { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 24px; margin-top: 10px; color: #6f756d; font-size: 11px; }
.pricing-provider-note i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #00a875; }
@media (max-width: 900px) { .pricing-cards, .credit-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pricing-page > main { width: min(100% - 40px, 1201px); } body.account-mode .account-page-inner { padding: 32px 24px 64px; } }
@media (max-width: 767px) {
 body.account-mode .sidebar { width: min(304px, 86vw); }
 body.account-mode .content { margin-left: 0; }
}
@media (max-width: 620px) { .pricing-page > main { width: calc(100% - 24px); padding-top: 40px; } .pricing-cards, .credit-pack-grid { grid-template-columns: 1fr; } .pricing-card { min-height: 0; } .pricing-controls { flex-wrap: wrap; } .pricing-security-panel { align-items: flex-start; } .pricing-payment-logos { justify-content: flex-start; } .pricing-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; } .pricing-dialog .pricing-layout { grid-template-columns: 1fr; overflow-y: auto; } .pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 28px 22px; } .pricing-dialog .plan-detail h3 { font-size: 40px; } }

/* 20261002 SeaVid parity pass: one final rule set after legacy overrides. */
.pricing-page > main { width: min(1201px, calc(100% - 64px)); padding-top: 70px; }
.pricing-page .landing-section-heading { text-align: center; }
.pricing-page .landing-section-heading h1 { font-size: 32px; letter-spacing: 0; }
.pricing-page .landing-section-heading p { max-width: 680px; margin: 8px auto 0; color: #a4a7a0; font-size: 15px; line-height: 1.6; }
.pricing-annual-offer { display: grid; justify-items: center; gap: 5px; margin: 26px auto 0; color: #a4a7a0; text-align: center; }
.pricing-annual-offer strong { color: #f3f4ee; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pricing-annual-offer strong::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: #b3f000; }
.pricing-annual-offer span { color: #d8dad3; font-size: 14px; }
.pricing-annual-offer small { max-width: 640px; color: #7e817a; font-size: 12px; line-height: 1.5; }
.pricing-controls { align-items: center; justify-content: center; gap: 18px; margin: 28px 0 24px; }
.pricing-controls > div:first-child { margin: 0; }
.pricing-controls > div:first-child button { min-width: 94px; height: 36px; font-size: 13px; }
.pricing-controls > div:first-child button.active { background: #303238; color: #fff; }
.pricing-period-control { display: inline-flex; align-items: center; gap: 9px; color: #a8aba4; font-size: 13px; white-space: nowrap; }
.pricing-period-control span:last-child { color: #f3f4ee; }
.pricing-period-control button { width: 36px; height: 20px; position: relative; border: 0; border-radius: 999px; background: #656860; cursor: pointer; }
.pricing-period-control button::after { content: ""; width: 14px; height: 14px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.pricing-period-control button.on { background: #b3f000; }
.pricing-period-control button.on::after { transform: translateX(16px); }
.pricing-period-control button:disabled { cursor: not-allowed; opacity: .8; }
.pricing-one-time-label { color: #a8aba4; font-size: 13px; }
.pricing-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pricing-card { min-height: 630px; padding: 24px 24px 22px; border-radius: 12px; background: #15191d; }
.pricing-card h2 { font-size: 20px; }
.pricing-card > p { min-height: 40px; font-size: 13px; line-height: 1.55; }
.pricing-card > em { top: -11px; right: 20px; padding: 5px 8px; font-size: 9px; }
.plan-price { margin: 42px 0 20px; }
.plan-price strong { font-size: 36px; }
.plan-credit { padding-bottom: 16px; }
.pricing-card ul { gap: 11px; padding: 19px 0; font-size: 13px; }
.pricing-card li { min-height: 22px; align-items: center; gap: 9px; color: #f0f1eb; }
.pricing-card li svg { width: 17px; height: 17px; flex: 0 0 auto; color: #f0f1eb; }
.pricing-card li.is-unavailable { color: #666a65; }
.pricing-card li.is-unavailable svg { color: #656963; }
.pricing-card > button { min-height: 44px; font-size: 13px; }
.pricing-security-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; margin: 38px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; }
.pricing-security-label { color: #b2b4ae; font-size: 13px; }
.pricing-payment-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pricing-payment-logo { width: 72px; min-width: 72px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; background: transparent; }
.pricing-payment-logo img { width: 72px; max-width: 72px; height: 32px; object-fit: contain; }
.pricing-faq { margin-top: 64px; }
.pricing-faq .landing-section-heading h2 { font-size: 26px; }
.pricing-faq .landing-section-heading p { font-size: 14px; }

/* Account credits mirror SeaVid's dense four-column purchase grid. */
body.account-mode .sidebar { width: 204px; }
body.account-mode .content { margin-left: 204px; }
body.account-mode .account-page-inner { padding: 40px 32px 76px; }
.credits-account { max-width: none; }
.credit-balance-grid { gap: 16px; }
.credit-balance-card { min-height: 82px; padding: 15px 16px; gap: 9px; }
.credit-balance-card > span { font-size: 12px; }
.credit-balance-card strong { font-size: 20px; }
.credit-current-plan { margin-top: 22px; font-size: 12px; }
.credits-packs-section { margin-top: 28px; }
.account-section-heading { margin-bottom: 18px; }
.account-section-heading h2 { font-size: 22px; }
.account-section-heading p { font-size: 12px; }
.credit-pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.credit-pack-card { min-height: 270px; padding: 24px; border-radius: 8px; }
.credit-pack-name h3 { font-size: 16px; }
.credit-pack-price { padding: 18px 0 10px; }
.credit-pack-price strong { font-size: 29px; }
.credit-pack-credit { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #aeb1aa; font-size: 12px; }
.credit-pack-credit b { color: #eceee8; font-size: 14px; font-weight: 600; }
.credit-pack-card ul { gap: 8px; margin: 18px 0 18px; color: #f0f1eb; font-size: 12px; line-height: 1.4; }
.credit-pack-card li { display: flex; align-items: center; gap: 8px; min-height: 19px; }
.credit-pack-card li svg { width: 15px; height: 15px; flex: 0 0 auto; color: #f0f1eb; }
.credit-pack-card li.is-unavailable { color: #666a65; }
.credit-pack-card li.is-unavailable svg { color: #656963; }
.credit-pack-card button { height: 38px; font-size: 13px; }

/* The upgrade dialog keeps SeaVid's 60/40 split and compact 688px frame. */
.pricing-dialog { width: min(980px, calc(100vw - 32px)); height: min(688px, calc(100dvh - 32px)); max-height: min(688px, calc(100dvh - 32px)); }
.pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 34px 40px; }
.pricing-dialog .pricing-picker h2 { font-size: 30px; }
.pricing-dialog .pricing-picker > p { margin: 8px 0 18px; font-size: 13px; }
.pricing-dialog .pricing-tabs { align-items: center; }
.pricing-dialog .pricing-period-control { margin-left: auto; }
.pricing-dialog .pricing-period-control button { width: 36px; height: 20px; }
.pricing-dialog .pricing-one-time-label { margin-left: auto; }
.pricing-dialog .plan-detail h3 { font-size: 52px; }
.pricing-dialog .plan-detail ul { gap: 14px; font-size: 13px; }
.pricing-dialog .plan-detail li { display: flex; align-items: center; gap: 9px; color: #d7d9d2; }
.pricing-dialog .plan-detail li svg { width: 18px; height: 18px; flex: 0 0 auto; color: #f0f1eb; }
.pricing-dialog .plan-detail li.is-unavailable { color: #666a65; }
.pricing-dialog .plan-detail li.is-unavailable svg { color: #656963; }
.pricing-dialog .plan-detail li::before { content: none !important; }
.pricing-provider-note { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 24px; margin-top: 10px; color: #6f756d; font-size: 11px; }
.pricing-provider-note i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #00a875; }

@media (max-width: 900px) {
  .pricing-cards, .credit-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-page > main { width: min(100% - 40px, 1201px); }
  body.account-mode .account-page-inner { padding: 32px 24px 64px; }
}
@media (max-width: 767px) {

  body.account-mode .sidebar { width: min(304px, 86vw); }

  body.account-mode .content { margin-left: 0; }
}
@media (max-width: 620px) {
  .pricing-page > main { width: calc(100% - 24px); padding-top: 40px; }
  .pricing-cards, .credit-pack-grid { grid-template-columns: 1fr; }
  .pricing-card { min-height: 0; }
  .pricing-controls { flex-wrap: wrap; }
  .pricing-security-panel { align-items: flex-start; }
  .pricing-payment-logos { justify-content: flex-start; }
  .pricing-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; }
  .pricing-dialog .pricing-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 28px 22px; }
  .pricing-dialog .plan-detail h3 { font-size: 40px; }
}

/* Final parity overrides: the reference keeps payment methods as a compact footer row. */
.pricing-security-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 34px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.pricing-security-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.pricing-payment-logos {
  justify-content: center;
  gap: 9px;
}
.pricing-payment-logo {
  min-width: 58px;
  height: 30px;
  padding: 4px 8px;
  border-color: #2c2d27;
  border-radius: 5px;
}
.pricing-payment-logo img {
  max-width: 72px;
  height: 20px;
}
@media (max-width: 700px) {
  .pricing-security-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }
  .pricing-payment-logos {
    justify-content: flex-start;
    gap: 7px;
  }
  .pricing-payment-logo {
    min-width: 52px;
    height: 28px;
    padding-inline: 6px;
  }
  .pricing-payment-logo img {
    max-width: 64px;
    height: 18px;
  }
}

@media (min-width: 901px) {
  .pricing-cards.credit-pack-grid,
  .credit-pack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .pricing-cards.credit-pack-grid,
  .credit-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 20261002 SeaVid account scale and credit-card parity. */
body.account-mode .sidebar { width: 252px; }
body.account-mode .content { margin-left: 252px; }
body.account-mode .account-brand { min-height: 62px; padding-inline: 20px; font-size: 18px; }
body.account-mode .account-brand img { width: 31px; height: 34px; }
body.account-mode .account-nav { gap: 6px; padding: 14px 14px; }
body.account-mode .account-nav small { margin: 17px 9px 8px; font-size: 14px; }
body.account-mode .account-nav a { min-height: 45px; gap: 12px; padding-inline: 14px; border-radius: 8px; font-size: 16px; }
body.account-mode .account-nav svg { width: 19px; height: 19px; }

body.account-mode .account-sidebar-user img { width: 40px; height: 40px; }
body.account-mode .account-sidebar-user strong { font-size: 14px; }
body.account-mode .account-sidebar-user small { font-size: 12px; }
body.account-mode .account-topbar { height: 68px; padding-inline: 34px; font-size: 15px; }
body.account-mode .account-page-inner { padding: 48px 62px 92px; }
body.account-mode .account-page-inner > h1,
body.account-mode .account-title-row h1 { margin-bottom: 34px; font-size: 34px; line-height: 42px; }
.credits-account { max-width: 1440px; }
.credit-balance-grid { gap: 20px; }
.credit-balance-card { min-height: 136px; padding: 25px 28px; gap: 14px; }
.credit-balance-card > span { font-size: 15px; }
.credit-balance-card strong { font-size: 36px; }
.credit-current-plan { margin-top: 30px; font-size: 15px; }
.credits-packs-section { margin-top: 42px; }
.account-section-heading { margin-bottom: 21px; }
.account-section-heading h2 { font-size: 25px; }
.account-section-heading p { font-size: 14px; }
.credit-pack-grid { gap: 20px; }
.credit-pack-card { min-height: 360px; padding: 31px 29px 27px; }
.credit-pack-name h3 { font-size: 20px; }
.credit-pack-name span { font-size: 11px; }
.credit-pack-price { padding: 25px 0 16px; }
.credit-pack-price strong { font-size: 42px; }
.credit-pack-card > p { font-size: 15px; }
.credit-pack-card ul { gap: 11px; margin: 31px 0 24px; font-size: 14px; line-height: 1.45; }
.credit-pack-card button { height: 50px; font-size: 16px; }
.credits-ledger-section { margin-top: 50px; }
.credits-ledger-section .account-table-wrap { font-size: 15px; }

@media (max-width: 900px) {
  body.account-mode .account-page-inner { padding: 34px 24px 64px; }
  .credit-pack-card { min-height: 340px; }
}
@media (max-width: 767px) {

  body.account-mode .sidebar, body.account-mode.sidebar-collapsed .sidebar { width: min(304px, 86vw); }

  body.account-mode .content, body.account-mode.sidebar-collapsed .content { margin-left: 0; }
}

@media (max-width: 700px) {
  body.account-mode .account-page-inner { padding: 28px 16px 48px; }
  body.account-mode .account-page-inner > h1,
  body.account-mode .account-title-row h1 { margin-bottom: 28px; font-size: 31px; line-height: 38px; }
  .credit-balance-card { min-height: 118px; padding: 22px; }
  .credit-balance-card strong { font-size: 32px; }
  .credit-pack-card { min-height: 0; padding: 27px 22px 23px; }
  .credit-pack-price strong { font-size: 38px; }
  .credit-pack-card button { height: 48px; font-size: 15px; }
}

/* Keep the payment row as a compact SeaVid-style footer, without explanatory copy. */
.pricing-security-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 34px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.pricing-security-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.pricing-payment-logos {
  justify-content: center;
  gap: 9px;
}
.pricing-payment-logo {
  min-width: 58px;
  height: 30px;
  padding: 4px 8px;
  border-color: #2c2d27;
  border-radius: 5px;
}
.pricing-payment-logo img {
  max-width: 72px;
  height: 20px;
}

@media (max-width: 700px) {
  .pricing-security-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }
  .pricing-payment-logos {
    justify-content: flex-start;
    gap: 7px;
  }
  .pricing-payment-logo {
    min-width: 52px;
    height: 28px;
    padding-inline: 6px;
  }
  .pricing-payment-logo img {
    max-width: 64px;
    height: 18px;
  }
}

/* 20261002 pricing and credits fidelity: match the full-size SeaVid hierarchy. */
body.account-mode .sidebar { width: 232px; }
body.account-mode .content { margin-left: 232px; }
body.account-mode .account-brand { min-height: 58px; padding: 0 18px; font-size: 17px; }
body.account-mode .account-brand img { width: 28px; height: 31px; }
body.account-mode .account-nav { gap: 5px; padding: 10px 12px; }
.account-nav small { margin: 16px 8px 7px; font-size: 13px; }
.account-nav a { min-height: 42px; gap: 11px; padding: 0 12px; border-radius: 7px; font-size: 15px; }
.account-nav svg { width: 18px; height: 18px; }
body.account-mode .account-sidebar-user { gap: 10px; padding: 14px 16px; }
.account-sidebar-user img { width: 34px; height: 34px; }
.account-sidebar-user strong { font-size: 13px; }
.account-sidebar-user small { font-size: 11px; }
.account-topbar { height: 64px; padding: 0 30px; font-size: 14px; }
.account-page-inner { padding: 42px 56px 78px; }
.account-page-inner > h1 { margin-bottom: 30px; font-size: 32px; line-height: 40px; }
.account-title-row h1 { font-size: 32px; line-height: 40px; }

.pricing-page > main { width: min(1320px, calc(100% - 64px)); padding-top: 84px; }
.pricing-page .landing-section-heading h1 { font-size: 36px; }
.pricing-page .landing-section-heading p { font-size: 15px; }
.pricing-cards { gap: 20px; }
.pricing-card { min-height: 610px; padding: 34px 28px 24px; }
.pricing-card h2 { font-size: 25px; }
.pricing-card > p { font-size: 14px; }
.plan-price { margin: 52px 0 26px; }
.plan-price strong { font-size: 46px; }
.pricing-card ul { gap: 16px; padding: 24px 0; font-size: 14px; line-height: 1.45; }
.pricing-card li { gap: 11px; }
.pricing-card li svg { width: 18px; height: 18px; }
.pricing-card > button { min-height: 48px; font-size: 15px; }

.pricing-security-panel {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 30px;
  margin-top: 42px;
  padding: 26px 30px;
  border: 1px solid #30342d;
  border-radius: 10px;
  background: #151714;
}
.pricing-security-copy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pricing-security-copy > svg { flex: 0 0 auto; width: 28px; height: 28px; color: #b8f000; }
.pricing-security-copy div { display: grid; gap: 5px; }
.pricing-security-copy strong { color: #f1f2ed; font-size: 18px; line-height: 1.2; }
.pricing-security-copy span { color: #989b94; font-size: 13px; line-height: 1.5; }
.pricing-payment-logos { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.pricing-payment-logo { min-width: 78px; height: 42px; display: grid; place-items: center; padding: 7px 11px; border: 1px solid #343731; border-radius: 7px; background: #f4f4f0; }
.pricing-payment-logo img { display: block; width: auto; max-width: 94px; height: 27px; object-fit: contain; }
.pricing-faq { margin-top: 78px; padding-bottom: 30px; }
.pricing-faq .landing-section-heading h2 { font-size: 28px; }
.pricing-faq .landing-section-heading p { margin-top: 8px; color: #9a9c95; font-size: 14px; }
.pricing-faq .faq-list { max-width: 920px; margin-top: 26px; }
.pricing-faq .faq-list summary { min-height: 66px; padding-inline: 26px; font-size: 15px; }
.pricing-faq .faq-list details p { margin: -2px 30px 22px 0; padding-left: 26px; font-size: 14px; line-height: 1.7; }

.credits-account { max-width: 1380px; padding-bottom: 92px; }
.credit-balance-grid { gap: 18px; }
.credit-balance-card { min-height: 124px; padding: 22px 24px; gap: 13px; }
.credit-balance-card > span { font-size: 14px; }
.credit-balance-card strong { font-size: 32px; }
.credit-current-plan { margin: 28px 0 0; font-size: 14px; }
.credits-packs-section { margin-top: 38px; }
.account-section-heading { margin-bottom: 18px; }
.account-section-heading h2 { font-size: 23px; }
.account-section-heading p { font-size: 13px; }
.credit-pack-grid { gap: 18px; }
.credit-pack-card { min-height: 336px; padding: 28px 26px 24px; }
.credit-pack-name h3 { font-size: 18px; }
.credit-pack-price { padding: 22px 0 14px; }
.credit-pack-price strong { font-size: 38px; }
.credit-pack-card > p { font-size: 14px; }
.credit-pack-card ul { gap: 9px; margin: 32px 0 22px; font-size: 13px; }
.credit-pack-card button { height: 46px; font-size: 15px; }
.credits-account .pricing-security-panel { margin-top: 38px; }
.credits-ledger-section { margin-top: 42px; }
.credits-ledger-section .account-table-wrap { font-size: 14px; }

.pricing-dialog { width: min(980px, calc(100vw - 48px)); height: min(760px, calc(100dvh - 48px)); }
.pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 38px 40px; }
.pricing-dialog .pricing-picker h2 { font-size: 30px; }
.pricing-dialog .pricing-picker > p { font-size: 14px; }
.pricing-dialog .plan-detail h3 { font-size: 54px; }
.pricing-dialog .plan-detail ul { gap: 16px; font-size: 14px; }
.pricing-dialog .pricing-provider-note { min-height: 36px; font-size: 13px; }

@media (max-width: 900px) {
  body.account-mode .account-nav a { min-height: 44px; font-size: 15px; }
  .pricing-page > main { width: min(100% - 40px, 1320px); }
  .pricing-security-panel { grid-template-columns: 1fr; }
  .pricing-payment-logos { justify-content: flex-start; }
}
@media (max-width: 767px) {

  body.account-mode .sidebar,
  body.account-mode.sidebar-collapsed .sidebar { width: min(304px, 86vw); }
}

@media (max-width: 700px) {
  .account-topbar { height: 62px; padding-inline: 18px; }
  .account-page-inner { padding: 30px 18px 54px; }
  .account-page-inner > h1, .account-title-row h1 { font-size: 29px; line-height: 36px; }
  .pricing-page > main { width: calc(100% - 24px); padding-top: 42px; }
  .pricing-page .landing-section-heading h1 { font-size: 30px; }
  .pricing-card { padding: 26px 22px 22px; }
  .pricing-card h2 { font-size: 23px; }
  .plan-price { margin: 36px 0 22px; }
  .plan-price strong { font-size: 42px; }
  .pricing-security-panel { gap: 22px; margin-top: 30px; padding: 22px 18px; }
  .pricing-security-copy strong { font-size: 17px; }
  .pricing-payment-logos { gap: 8px; }
  .pricing-payment-logo { min-width: 64px; height: 36px; padding: 5px 7px; }
  .pricing-payment-logo img { max-width: 74px; height: 22px; }
  .pricing-faq { margin-top: 54px; }
  .pricing-faq .landing-section-heading h2 { font-size: 24px; }
  .pricing-faq .faq-list summary { min-height: 58px; padding-inline: 18px; font-size: 14px; }
  .pricing-faq .faq-list details p { padding-left: 18px; font-size: 13px; }
  .credit-balance-card { min-height: 112px; padding: 20px; }
  .credit-balance-card strong { font-size: 29px; }
  .credit-pack-card { min-height: 0; padding: 24px 20px 20px; }
  .credit-pack-price strong { font-size: 34px; }
  .credits-account .pricing-security-panel { margin-top: 30px; }
  .pricing-dialog { width: 100vw; height: 100dvh; }
  .pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 28px 22px; }
  .pricing-dialog .plan-detail h3 { font-size: 42px; }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

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

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

button {
  border: 0;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(16, 15, 9, 0.95);
  backdrop-filter: blur(14px);
}

.mobile-menu-button {
  display: none;
  margin-left: 8px;
}

.brand {
  width: 191px;
  flex: 0 0 191px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 700;
}

.brand b {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 23px;
  height: 27px;
  display: inline-block;
  flex: 0 0 28px;
  object-fit: contain;
  background: url("/static/flyvg-logo.svg") center / contain no-repeat;
}

span.brand-mark > span {
  display: none;
}

.auth-guest {
  display: none !important;
}

body.auth-guest-state .auth-logged {
  display: none !important;
}

body.auth-guest-state .auth-guest {
  display: inline-flex !important;
}

.login-button,
.register-button {
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.login-button {
  border: 1px solid var(--line);
  background: #242520;
}

.register-button {
  background: var(--cream);
  color: var(--ink);
}

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

.top-action-wrap {
  position: relative;
  display: flex;
}

.credit-button,
.top-round-button {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: #d7d6d0;
  cursor: pointer;
}

.credit-button {
  min-width: 64px;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #f5f4ef;
}

.credit-button svg {
  width: 16px;
  height: 16px;
}

.top-round-button {
  width: 32px;
  border-radius: 50%;
}

.top-actions .icon-button,
.top-actions .profile-button {
  color: #c9c8c5;
}

.top-round-button:hover,
.credit-button:hover {
  border-color: #52544b;
  background: var(--panel-2);
  color: var(--text);
}

.has-badge {
  position: relative;
}

.top-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: #5a5c54;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.top-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  width: 205px;
  display: none;
  overflow: hidden;
  border: 1px solid #34352f;
  border-radius: 6px;
  background: #12130f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
}

.top-popover.open {
  display: block;
}

.popover-title {
  padding: 13px 14px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 600;
}

.popover-empty {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.language-popover {
  width: 180px;
  padding: 7px;
}

.language-popover button,
.profile-popover > button,
.profile-popover > a {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 4px;
  background: transparent;
  color: #d4d3cc;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.language-popover button:hover,
.language-popover button.selected,
.profile-popover > button:hover,
.profile-popover > a:hover {
  background: #24251f;
  color: var(--text);
}

.language-popover button span {
  width: 19px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.language-popover button svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
  opacity: 0;
}

.language-popover button.selected svg {
  opacity: 1;
}

.profile-popover {
  width: 220px;
}

.profile-summary {
  display: grid;
  gap: 4px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
}

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

.profile-summary span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

.profile-popover > button,
.profile-popover > a {
  border-radius: 0;
}

.profile-popover > button svg,
.profile-popover > a svg {
  width: 16px;
  height: 16px;
}

.profile-popover > button b,
.profile-popover > a b {
  margin-left: auto;
  font-size: 12px;
}

.profile-menu-divider {
  height: 1px;
  margin: 5px 10px;
  background: var(--line-soft);
}

.profile-popover .logout-row {
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
  color: #ff5f5f;
}

.connection-badge {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(182, 242, 58, 0.75);
}

.icon-button,
.profile-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover,
.profile-button:hover {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.mobile-menu-button.icon-button {
  display: none;
}

.profile-button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: var(--topbar);
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: var(--bg);
  overflow: hidden;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  transition: width 180ms ease, transform 180ms ease;
}

body.sidebar-collapsed {
  --sidebar: 52px;
}

body.sidebar-collapsed .main-nav {
  padding-inline: 5px;
}

body.sidebar-collapsed .main-nav a {
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .main-nav a span {
  display: none;
}

body.sidebar-collapsed .sidebar-toggle {
  width: 52px;
  margin-inline: 0;
}

body.sidebar-collapsed .content {
  margin-left: 52px;
}

.sidebar-toggle {
  width: 52px;
  height: 43px;
  flex: 0 0 43px;
  align-self: flex-end;
  margin: 3px 0 1px;
  border-radius: 0;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  height: 45px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d8d7d1;
  font-size: 16px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

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

.main-nav a.active {
  border-color: #35372f;
  background: #1a1b17;
  color: var(--text);
}

.main-nav a.active svg {
  color: var(--accent);
}

.sidebar-bottom {
  margin-top: auto;
  flex-shrink: 0;
  padding: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans", "Helvetica Neue", Arial, Inter, "Segoe UI", Roboto, sans-serif;
}

.sidebar-upgrade {
  padding: 16px;
  border-top: 1px solid rgba(245, 244, 239, 0.12);
}

.community-compact {
  display: none;
}

body.sidebar-collapsed .sidebar-bottom {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 6px 13px;
}

body.sidebar-collapsed .sidebar-upgrade {
  padding: 0;
  border: 0;
}

body.sidebar-collapsed .community-panel {
  display: none;
}

body.sidebar-collapsed .community-compact {
  width: 38px;
  height: 38px;
  display: grid;
  border: 1px solid var(--line);
  background: #171814;
  color: var(--text);
}

body.sidebar-collapsed .sidebar-upgrade .upgrade-button {
  width: 38px;
  height: 38px;
}

body.sidebar-collapsed .sidebar-upgrade .upgrade-button span {
  display: none;
}

.community-panel {
  width: min(200px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 12px;
  border: 1px solid rgba(245, 244, 239, 0.12);
  border-radius: 8px;
  background: #15140f;
  color: #f5f4ef;
}

.community-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.community-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.community-panel button,
.community-panel a {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.community-panel button:hover,
.community-panel a:hover {
  text-decoration: underline;
}

.community-panel svg {
  width: 20px;
  height: 20px;
}

.storage-meter {
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}

.storage-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.meter-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-3);
}

.meter-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 400ms ease;
}

.upgrade-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(200px, 100%);
  margin-inline: auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #f5f4ef;
  color: #100f09;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  transition: transform .3s, background-color .3s;
}

.upgrade-button::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(#ff6b6b 0deg, #ffd166 18%, #06d6a0 52%, #118ab2 60%, #9b5de5 66%, #ff6b6b 100%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: blur(.4px);
  transition: filter .22s, padding .22s, opacity .22s, transform .22s;
}

.upgrade-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px;
  border-radius: inherit;
  background: conic-gradient(#ff6b6b 0deg, #ffd166 18%, #06d6a0 52%, #118ab2 60%, #9b5de5 66%, #ff6b6b 100%);
  pointer-events: none;
  filter: blur(10px);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .26s, filter .26s, transform .26s;
}

.upgrade-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 1;
}

.upgrade-button:hover::after {
  opacity: .35;
  filter: blur(12px);
  transform: scale(1.03);
}

.upgrade-button:active { transform: scale(.95); }
.upgrade-button::before { pointer-events: none; }
.upgrade-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000, transparent);
}
.upgrade-shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform .7s, opacity .7s;
}
.upgrade-button:hover .upgrade-shine::before { opacity: 1; transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  .upgrade-button, .upgrade-button::before, .upgrade-button::after, .upgrade-shine::before { transition: none; }
  .upgrade-shine { display: none; }
}

.content {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding-top: var(--topbar);
  padding-right: 8px;
  transition: margin-left 180ms ease;
}

.page {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--muted-2);
  font-size: 12px;
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
}

.page-heading {
  margin-bottom: 28px;
}

.page-heading h1,
.section-heading,
.hero-title {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  letter-spacing: 0;
}

.page-heading h1 {
  font-size: 34px;
  line-height: 1.25;
}

.page-heading p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.studio-page {
  width: 100%;
  min-height: calc(100vh - var(--topbar));
  padding: 0;
}

.studio-breadcrumb {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 12px;
}

.studio-shell {
  min-height: calc(100vh - var(--topbar) - 40px);
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 12px;
  padding: 0 12px 12px;
}

.studio-shell > *,
.field,
.segmented,
.resolution-row {
  min-width: 0;
}

.control-panel,
.preview-panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.control-panel {
  position: relative;
  display: flex;
  height: calc(100vh - var(--topbar) - 52px);
  min-height: 0;
  flex-direction: column;
  border-radius: 7px;
  overflow-y: auto;
  padding: 24px 22px 18px;
  scrollbar-color: #55564f transparent;
  scrollbar-width: thin;
}

.preview-panel {
  height: calc(100vh - var(--topbar) - 52px);
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  overflow: hidden;
}

.preview-stage {
  width: min(78%, 920px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3a3b35;
  border-radius: 7px;
  background: #292a27;
}

.preview-stage.portrait {
  width: min(48%, 470px);
  aspect-ratio: 9 / 16;
}

.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #a2a39d;
  text-align: center;
}

.preview-empty .preview-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #484a43;
  border-radius: 50%;
}

.preview-empty svg {
  width: 24px;
  height: 24px;
}

.preview-empty strong {
  color: #deddd7;
  font-size: 14px;
  font-weight: 500;
}

.preview-empty small {
  color: #777970;
  font-size: 12px;
}

.field {
  margin-bottom: 20px;
}

.field-label,
.field-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #c8c7c0;
  font-size: 13px;
  font-weight: 500;
}

.field-label small,
.field-row-label small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 400;
}

.required {
  color: #ff5757;
}

.model-select {
  width: 100%;
  height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #11120f;
  cursor: pointer;
}

.model-select:hover {
  border-color: #45473f;
}

.model-select .model-family-mark {
  width: 27px;
  height: 27px;
}

.model-select strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-select svg {
  width: 15px;
  color: var(--muted);
}

.prompt-box {
  position: relative;
}

.prompt-box textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #10110e;
  padding: 12px 13px 28px;
  color: var(--text);
  line-height: 1.55;
}

.prompt-box textarea:focus {
  border-color: #55584c;
}

.prompt-box textarea::placeholder {
  color: #696b62;
}

.char-count {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.upload-zone {
  position: relative;
  min-height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #10110e;
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: #5b5e51;
  background: #151611;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}

.upload-zone-content svg {
  width: 31px;
  height: 31px;
  color: #deddd7;
}

.upload-zone-content strong {
  color: #deddd7;
  font-size: 13px;
  font-weight: 500;
}

.upload-zone-content small {
  color: var(--muted-2);
  font-size: 10px;
}

.upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-overlay {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.upload-overlay button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(10, 10, 9, 0.8);
  cursor: pointer;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr));
  gap: 7px;
}

.segment {
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

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

.segment.active {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.ratio-shape {
  width: 22px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.ratio-shape.square {
  width: 15px;
  height: 15px;
}

.ratio-shape.portrait {
  width: 11px;
  height: 16px;
}

.resolution-row {
  display: flex;
  gap: 8px;
}

.resolution-row button {
  min-width: 82px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.resolution-row button.active {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cream);
}

.number-box {
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-size: 12px;
}

.toggle-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #c8c7c0;
  font-size: 13px;
}

.switch {
  width: 43px;
  height: 24px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #090a08;
  cursor: pointer;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform 150ms ease;
}

.switch.on {
  border-color: var(--cream);
  background: var(--cream);
}

.switch.on::after {
  background: var(--ink);
  transform: translateX(18px);
}

.radio-row {
  display: flex;
  gap: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.radio-dot {
  width: 15px;
  height: 15px;
  border: 1px solid #55584f;
  border-radius: 50%;
}

.radio-option.active {
  color: var(--text);
}

.radio-option.active .radio-dot {
  border: 4px solid var(--cream);
}

.generate-button {
  position: sticky;
  right: auto;
  bottom: 0;
  left: auto;
  height: 50px;
  width: 100%;
  min-height: 50px;
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  margin-top: auto;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.generate-button:hover:not(:disabled) {
  background: var(--accent);
}

.generate-button:active:not(:disabled) {
  transform: translateY(1px);
}

.generate-button .cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4d4f48;
  font-size: 12px;
}

.home-hero {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(13, 14, 11, 0.1) 0%, rgba(13, 14, 11, 0.72) 56%, rgba(13, 14, 11, 0.96) 100%),
    url("/static/media/reference/home-image/home-image-04.webp") center 40% / cover;
}

.hero-copy {
  width: min(560px, 52%);
  margin-left: auto;
  padding: 42px 72px 42px 24px;
}

.hero-title {
  margin-bottom: 10px;
  font-size: 32px;
}

.hero-copy p {
  margin: 0 0 24px;
  color: #b8b8b0;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.primary-button,
.secondary-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  background: var(--cream);
  color: var(--ink);
}

.primary-button:hover {
  background: var(--accent);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.section {
  margin-top: 34px;
}

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

.section-heading {
  font-size: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c7c6bf;
  font-size: 12px;
}

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

.tool-card {
  min-height: 122px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  transition: transform 150ms ease, border-color 150ms ease;
}

.tool-card:hover {
  border-color: #484a41;
  transform: translateY(-2px);
}

.tool-card svg {
  margin-bottom: 22px;
  color: var(--accent);
}

.tool-card strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.tool-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

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

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

.template-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.template-image img,
.gallery-item img,
.asset-media img,
.asset-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.template-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.template-card strong {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-card span {
  color: var(--muted);
  font-size: 10px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  height: 34px;
  padding: 0 13px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab-button.active {
  background: var(--panel-3);
  color: var(--text);
}

.gallery-grid {
  columns: 4 260px;
  column-gap: 12px;
}

.gallery-item {
  position: relative;
  margin: 0 0 12px;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.gallery-item img {
  aspect-ratio: var(--ratio, 4 / 5);
}

.gallery-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 48px 13px 13px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transition: opacity 150ms ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay strong {
  font-size: 12px;
  font-weight: 500;
}

.gallery-overlay span {
  color: #b6b6af;
  font-size: 10px;
}

.model-section + .model-section {
  margin-top: 34px;
}

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

.model-card {
  min-width: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.model-card:hover {
  border-color: #484a41;
  background: var(--panel-2);
}

.model-family-mark {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: var(--brand-color, #22231f);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.model-meta {
  min-width: 0;
}

.model-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-title-row strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--accent);
  color: #182008;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.model-meta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

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

.feature-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.feature-card:hover img {
  transform: scale(1.035);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 48%, rgba(0, 0, 0, 0.88));
}

.feature-card-info {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 15px;
  left: 16px;
}

.feature-card-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.feature-card-info span {
  display: block;
  margin-top: 4px;
  color: #c4c4be;
  font-size: 10px;
}

.feature-icon {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(10, 10, 9, 0.58);
  backdrop-filter: blur(8px);
}

.assets-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.assets-actions {
  display: flex;
  gap: 8px;
}

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

.asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.asset-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #090a08;
  color: var(--muted);
}

.asset-media svg {
  width: 30px;
  height: 30px;
}

.asset-info {
  padding: 11px 12px 12px;
}

.asset-info strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-info span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
}

.empty-state strong,
.empty-state p {
  display: block;
  margin: 0;
}

.empty-state p {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 11px;
}

.compact-empty {
  min-height: 210px;
}

.stage-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #090a08;
}

.audio-stage {
  aspect-ratio: 16 / 9;
}

.generate-button.busy {
  pointer-events: none;
  opacity: 0.82;
}

.generate-button.busy svg {
  animation: button-spin 0.9s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}


/* Asset deletion: SeaVid's in-page confirmation, isolated from card sizing. */
.asset-delete-dialog { position: fixed; inset: 50dvh auto auto 50vw; transform: translate(-50%, -50%); width: min(448px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: 0; padding: 24px; overflow: auto; border: 1px solid rgba(245,244,239,.05); border-radius: 8px; background: #15140f; color: #f5f4ef; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.asset-delete-dialog[open] { display: grid; gap: 16px; }
.asset-delete-dialog::backdrop { background: rgba(0,0,0,.8); }
.asset-delete-header { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.asset-delete-header h2 { margin: 0; font-family: "Noto Serif SC", "Noto Serif TC", "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: .2em; }
.asset-delete-header p { margin: 0; color: #c9c7c1; font-size: 14px; line-height: 20px; }
.asset-delete-actions { display: flex; justify-content: flex-end; gap: 20px; }
.asset-delete-actions button { height: 36px; padding: 8px 24px; border: 1px solid rgba(245,244,239,.12); border-radius: 6px; background: #15140f; color: #f5f4ef; font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; }
.asset-delete-actions button:hover { background: rgba(245,244,239,.08); }
.asset-delete-actions [data-action="confirm-asset-delete"] { border: 0; background: #f5f4ef; color: #15140f; font-weight: 600; }
.asset-delete-actions [data-action="confirm-asset-delete"]:hover { background: rgba(245,244,239,.9); }
.asset-delete-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #f5f4ef; opacity: .7; cursor: pointer; }
.asset-delete-close:hover { opacity: 1; }
.asset-delete-close svg { width: 16px; height: 16px; }
.asset-delete-dialog button:focus-visible { outline: 2px solid #a1a195; outline-offset: 2px; }

.modal {
  width: min(780px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid #3d3f37;
  border-radius: 7px;
  background: #12130f;
  color: var(--text);
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.compact-modal {
  width: min(520px, calc(100vw - 32px));
}

.dialog-close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  border-color: #4b4c45;
  border-radius: 50%;
}

.reward-dialog {
  width: min(512px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid #2e2d26;
  border-radius: 8px;
  background: #11100b;
}

.reward-dialog h2 {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 18px;
  line-height: 18px;
}

.reward-dialog > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.reward-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.reward-day {
  min-width: 0;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0e0f0c;
}

.reward-day span {
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.reward-day svg {
  width: 16px;
  height: 16px;
}

.reward-day b {
  font-size: 12px;
  line-height: 16px;
}

.reward-day.claimed {
  border-color: #77796d;
}

.reward-day.claimed svg {
  color: var(--accent);
}

.reward-status {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 12px;
  background: #1a1b17;
  color: var(--muted);
  font-size: 14px;
}

.reward-status strong {
  color: #d5d4cd;
  font-weight: 500;
}

.reward-feedback {
  margin: 16px 0 0;
  color: #c9c8c1;
  font-size: 14px;
  line-height: 20px;
}

.reward-button {
  height: 36px;
  display: block;
  margin: 16px 0 0 auto;
  padding: 0 18px;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pricing-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  border-color: #2f3135;
  background: #08090b;
}

.pricing-offer {
  height: 38px;
  display: grid;
  place-items: center;
  background: #f2f2f0;
  color: #111218;
  font-size: 11px;
  font-weight: 700;
}

.pricing-dialog .dialog-close {
  top: 5px;
  border: 0;
  background: #b7b8b6;
  color: white;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.9fr);
}

.pricing-picker,
.plan-detail {
  min-width: 0;
  padding: 30px 32px;
}

.pricing-picker {
  border-right: 1px solid #24262a;
}

.pricing-picker h2,
.plan-detail h3 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
}

.pricing-picker h2 {
  font-size: 28px;
}

.pricing-picker > p {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.pricing-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pricing-tabs > button:not(.mini-switch) {
  height: 34px;
  padding: 0 13px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.pricing-tabs > button.active {
  background: #303238;
  color: white;
}

.pricing-tabs > span {
  margin-left: auto;
}

.pricing-tabs > span,
.pricing-tabs > b {
  color: var(--muted);
  font-size: 10px;
}

.mini-switch {
  width: 34px;
  height: 19px;
  position: relative;
  border-radius: 999px;
  background: var(--accent);
}

.mini-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
}

.plan-option {
  width: 100%;
  min-height: 77px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px 15px;
  border: 1px solid #292b30;
  border-radius: 7px;
  background: #111318;
  color: #e9e8e4;
  text-align: left;
  cursor: pointer;
}

.plan-option.selected {
  border-color: #555860;
  background: #1a1c21;
}

.plan-radio {
  width: 14px;
  height: 14px;
  border: 1px solid #51545b;
  border-radius: 50%;
}

.plan-option.selected .plan-radio {
  border: 4px solid white;
}

.plan-option > span:nth-child(2) {
  display: grid;
  gap: 6px;
}

.plan-option strong {
  font-size: 12px;
}

.plan-option strong i {
  margin-left: 5px;
  padding: 2px 4px;
  border-radius: 2px;
  background: #fa2e75;
  color: white;
  font-size: 7px;
  font-style: normal;
}

.plan-option span small {
  color: var(--muted);
  font-size: 9px;
}

.plan-option > b {
  display: grid;
  justify-items: end;
  font-size: 19px;
}

.plan-option > b small {
  padding: 2px 4px;
  border-radius: 3px;
  background: #33353b;
  font-size: 7px;
}

.plan-option > b em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.choose-plan-button {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.plan-detail > span {
  font-size: 9px;
}

.plan-detail h3 {
  margin-top: 9px;
  font-size: 46px;
}

.plan-rule {
  width: 65px;
  height: 4px;
  margin: 10px 0 20px;
  border-radius: 999px;
  background: var(--cream);
}

.plan-detail ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c7c7c4;
  font-size: 11px;
}

.plan-detail li::before {
  content: "✓";
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border: 1px solid #3f4249;
  border-radius: 50%;
  color: white;
}

.modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
  background: #12130f;
}

.modal-header h2 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 21px;
}

.model-search {
  position: relative;
  margin: 16px 22px 8px;
}

.model-search svg {
  position: absolute;
  top: 11px;
  left: 12px;
  color: var(--muted);
}

.model-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  background: #0d0e0b;
  padding: 0 12px 0 38px;
}

.dialog-model-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 14px 22px 24px;
}

.dialog-model-item {
  min-width: 0;
  min-height: 61px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.dialog-model-item:hover,
.dialog-model-item.selected {
  border-color: #55584d;
  background: var(--panel-3);
}

.dialog-model-item > div:last-child {
  min-width: 0;
  text-align: left;
}

.dialog-model-item strong,
.dialog-model-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-model-item strong {
  font-size: 12px;
  font-weight: 500;
}

.dialog-model-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

#info-content {
  padding: 22px;
  color: #c9c8c1;
  font-size: 13px;
  line-height: 1.7;
}

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

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.info-row:last-child {
  border-bottom: 0;
}

.inline-feedback {
  width: min(720px, calc(100% - 32px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px auto;
  padding: 11px 13px;
  border: 1px solid rgba(126, 158, 93, .38);
  border-radius: 6px;
  background: rgba(72, 99, 50, .13);
  color: #d8e8c8;
}

form > .inline-feedback { width: 100%; margin: 0; }
.inline-feedback.error { border-color: rgba(216, 102, 102, .4); background: rgba(145, 42, 42, .13); color: #ffb4b4; }
.inline-feedback svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.inline-feedback strong { display: block; font-size: 13px; }
.inline-feedback span { display: block; margin-top: 2px; color: currentColor; font-size: 12px; line-height: 1.45; opacity: .82; }





.skeleton {
  overflow: hidden;
  background: #1b1c18;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.mobile-shade {
  display: none;
}

body.landing-mode .topbar,
body.landing-mode .sidebar,
body.landing-mode .mobile-shade {
  display: none;
}

body.landing-mode .content {
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
}

.landing-page {
  background: #0b0c09;
}

.landing-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.08), rgba(10, 9, 7, 0.18) 55%, rgba(10, 9, 7, 0.84)),
    #0b0c09;
}

.landing-nav {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 58px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  padding: 0 32px;
  color: white;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
}

.landing-brand b {
  color: var(--accent);
  font-size: 11px;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-links a,
.landing-links button {
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  cursor: pointer;
}

.landing-links a:hover,
.landing-links button:hover {
  color: white;
}

.landing-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.landing-account .top-round-button {
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
  background: rgba(20, 20, 18, 0.22);
}

.landing-avatar {
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: linear-gradient(145deg, #d2f2ff, #c4d37b);
  color: #172019;
  font-weight: 700;
  cursor: pointer;
}

.landing-copy {
  z-index: 2;
  width: min(720px, calc(100vw - 36px));
  margin-top: 6vh;
  color: white;
  text-align: center;
}

.landing-pill {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(37, 34, 31, 0.34);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.landing-copy h1 {
  margin: 22px 0 12px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 38px;
  letter-spacing: 0;
}

.landing-copy > p {
  width: min(610px, 100%);
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.65;
}

.landing-prompt {
  min-height: 165px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 3px double rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  background: rgba(42, 39, 36, 0.46);
  backdrop-filter: blur(18px);
  text-align: left;
}

.landing-prompt textarea {
  min-height: 92px;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 2px 7px;
  color: white;
}

.landing-prompt textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.landing-prompt > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-mode-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.landing-submit {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #171714;
  cursor: pointer;
}

.landing-examples {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.landing-examples span,
.landing-examples button {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.landing-examples button {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.landing-next {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 28px 90px;
  text-align: center;
}

.landing-next h2 {
  margin: 8px 0 28px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 30px;
}

.feature-hub {
  padding-bottom: 70px;
}

.feature-group + .feature-group {
  margin-top: 42px;
}

.feature-group .section-heading {
  margin-bottom: 17px;
  font-size: 26px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 14px;
}

.feature-tile {
  min-width: 0;
}

.feature-tile > div {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.feature-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.feature-tile:hover img {
  transform: scale(1.035);
}

.feature-tile strong,
.feature-tile > span {
  display: block;
}

.feature-tile strong {
  margin-top: 8px;
  font-size: 15px;
}

.feature-tile > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.feature-new {
  position: absolute;
  top: 0;
  right: 8px;
  padding: 5px 8px;
  border-radius: 0 0 5px 5px;
  background: #65665f;
  color: white;
  font-size: 9px;
}

.feature-detail-page {
  width: 100%;
  min-height: calc(100vh - var(--topbar));
}

.feature-breadcrumb {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 11px;
}

.feature-breadcrumb a:hover,
.feature-breadcrumb b {
  color: var(--text);
}

.feature-workbench {
  min-height: calc(100vh - var(--topbar) - 40px);
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 12px;
  padding: 0 12px 12px;
}

.feature-control-panel {
  position: relative;
  min-width: 0;
  height: calc(100vh - var(--topbar) - 52px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 22px 18px;
  scrollbar-color: #55564f transparent;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.feature-template-selector { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; margin: -2px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.feature-template-trigger { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.feature-template-trigger strong { font-size: 15px; font-weight: 600; }
.feature-template-trigger svg { width: 15px; height: 15px; color: var(--muted-2); }
.feature-template-trigger small { margin-left: 2px; color: var(--muted-2); font-size: 11px; font-weight: 400; }
.feature-template-menu { position: absolute; z-index: 20; top: 38px; left: 42px; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 14px 32px rgba(0,0,0,.3); }
.feature-template-menu a { padding: 9px 10px; border-radius: 5px; color: var(--text); font-size: 12px; text-decoration: none; }
.feature-template-menu a:hover, .feature-template-menu a:focus-visible { background: var(--panel-2); }
.feature-mode-switch { display: flex; align-items: center; gap: 9px; margin: -4px 0 14px; color: var(--muted); font-size: 12px; }
.feature-mode-switch button { width: 30px; height: 18px; padding: 0; border: 1px solid #55564f; border-radius: 999px; background: #22231e; color: var(--text); font-size: 10px; cursor: pointer; }
.feature-mode-switch button.on { border-color: var(--accent); background: var(--accent); color: #171812; }
.feature-mode-switch button span { display: block; width: 12px; height: 12px; margin-left: 2px; border-radius: 50%; background: #f4f3ee; transition: transform .15s ease; }
.feature-mode-switch button.on span { background: #171812; transform: translateX(12px); }

.feature-control-panel .generate-button {
  position: sticky;
  right: auto;
  bottom: 0;
  left: auto;
  width: 100%;
}

.feature-prompt textarea {
  min-height: 180px;
}

.feature-upload {
  min-height: 250px;
}

.feature-control-panel .generate-help { display: block !important; }
.effect-template-selector { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.effect-template-selector small { margin-left: auto; }
.feature-control-panel select { width: 100%; min-height: 38px; margin-top: 8px; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }

/* Feature inputs keep the SeaVid affordance inside the upload frame. */
.feature-upload-grid { display: grid; gap: 10px; }

.feature-upload-grid.is-shared { display: block; }
.feature-shared-input-field .field-label { display: flex; justify-content: space-between; align-items: center; }
.feature-upload-count { color: var(--muted-2); font-size: 12px; font-weight: 400; }
.feature-shared-wrap { min-width: 0; }
.feature-shared-zone { min-height: 250px; }
.feature-shared-zone.has-items .upload-zone-content { opacity: .18; }
.feature-shared-items { position: absolute; inset: 0; padding: 12px; pointer-events: none; }
.feature-shared-main { width: 100%; height: 190px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #11120f; color: var(--muted-2); }
.feature-shared-main img { width: 100%; height: 100%; display: block; object-fit: contain; }
.feature-shared-main svg { width: 26px; height: 26px; margin-bottom: 4px; }
.feature-shared-main strong { grid-row: 2; font-size: 12px; font-weight: 500; }
.feature-shared-strip { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 8px; }
.feature-shared-item { position: relative; width: 54px; height: 54px; overflow: hidden; border: 1px solid #4b4b43; border-radius: 6px; background: #11120f; pointer-events: auto; }
.feature-shared-item.active { border-color: var(--accent); }
.feature-shared-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.feature-shared-item button[data-action="feature-shared-select"] { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; }
.feature-shared-item button[data-action="remove-upload"] { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(9, 10, 8, .82); color: #fff; cursor: pointer; }
.feature-shared-item button[data-action="remove-upload"] svg { width: 11px; height: 11px; }
.feature-shared-add { width: 54px; height: 54px; display: grid; place-items: center; border: 1px dashed #66675e; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.feature-shared-add svg { width: 18px; height: 18px; }
.feature-upload-grid.is-multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-input-field { min-width: 0; }
.feature-input-field .field-label { align-items: center; }
.feature-upload-wrap { position: relative; min-width: 0; }
.feature-upload-info { width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #77786f; border-radius: 50%; background: transparent; color: #b8b8b0; font: 500 12px/1 "DM Sans", sans-serif; cursor: help; }
.feature-upload-info:hover { border-color: #e6e5dc; color: #f5f4ef; }
.feature-upload-wrap .feature-upload { width: 100%; }
.feature-upload-wrap .feature-upload-info { position: absolute; top: 10px; right: 10px; z-index: 4; }
.feature-control-panel .generate-help { display: none !important; }
.feature-detail-guide { display: none !important; }
.feature-preview > video { width: 100%; height: 100%; object-fit: contain; display: block; }
.feature-preview-empty, .feature-tile-empty-media { width: 100%; height: 100%; background: #0b0c09; }
.feature-editing-field .feature-prompt textarea { min-height: 112px; }
@media (max-width: 640px) {
  .feature-upload-grid.is-multiple { grid-template-columns: 1fr; }
}

.feature-preview-panel {
  height: calc(100vh - var(--topbar) - 52px);
  min-height: 0;
}

.feature-preview {
  position: relative;
  width: min(80%, 880px);
  max-width: 1024px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #353630;
  border-radius: 8px;
  background: #0b0c09;
}

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

.feature-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-preview > span {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(10, 10, 9, 0.6);
  color: white;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.feature-detail-guide {
  padding-top: 100px;
}

.content-page {
  max-width: 980px;
  padding-top: 78px;
  padding-bottom: 100px;
}

.content-page-hero {
  max-width: 720px;
  margin-bottom: 58px;
}

.content-page-hero h1 {
  margin: 8px 0 12px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 42px;
}

.content-page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.content-page-list {
  border-top: 1px solid var(--line);
}

.content-page-list article {
  min-height: 155px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.content-page-list article > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.content-page-list h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.content-page-list p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 0;
}

.blog-list article {
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.blog-list img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-list article > div {
  padding: 18px 18px 0;
}

.blog-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  font-size: 11px;
}

.guide-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 32px 80px;
}

.guide-intro,
.guide-section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.guide-intro h2,
.guide-section-heading h2,
.explore-links h2 {
  margin: 0 0 10px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 28px;
}

.guide-intro p,
.guide-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.guide-stories {
  display: grid;
  gap: 76px;
}

.guide-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.guide-story.reverse img {
  order: 2;
}

.guide-story img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 7px;
}

.guide-story h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.guide-story p {
  margin: 0 0 20px;
  color: #bebdb6;
  font-size: 13px;
  line-height: 1.75;
}

.guide-section {
  margin-top: 110px;
}

.guide-steps,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.guide-steps article,
.capability-grid article {
  min-height: 170px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-steps article:nth-child(3n),
.capability-grid article:nth-child(3n) {
  border-right: 0;
}

.guide-steps b {
  color: var(--accent);
  font-size: 11px;
}

.guide-steps h3,
.capability-grid h3 {
  margin: 16px 0 7px;
  font-size: 15px;
}

.guide-steps p,
.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.capability-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.capability-grid svg {
  padding: 8px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #292a25;
}

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

.related-tools a {
  min-height: 118px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.related-tools a > svg:last-child {
  width: 13px;
  margin-left: auto;
}

.related-tools span {
  display: grid;
  gap: 7px;
}

.related-tools small {
  color: var(--muted);
  font-size: 9px;
}

.related-tools strong {
  font-size: 13px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 18px;
  background: var(--panel);
}

.faq-list details + details {
  border-top: 1px solid var(--line-soft);
}

.faq-list summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}

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

.faq-list details[open] summary svg {
  transform: rotate(180deg);
}

.faq-list details p {
  margin: -3px 28px 17px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.explore-links {
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 16px;
  border-top: 1px solid var(--line-soft);
}

.explore-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explore-links a {
  min-width: 160px;
  max-width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  overflow-wrap: anywhere;
}

.explore-links a:hover { background: #000; color: #fff; }

.explore-links h2 {
  margin: 0;
  padding-bottom: 16px;
  font-family: "Noto Serif SC", "Noto Serif TC", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.compact-explore {
  margin-top: 32px;
}

.site-footer {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  gap: 40px;
  padding: 46px max(32px, calc((100vw - 1200px) / 2));
  border-top: 1px solid var(--line-soft);
  background: #0a0b08;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links strong,
.footer-brand > span {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.footer-links a,
.footer-brand a,
.footer-brand button {
  color: #bdbcb5;
  font-size: 10px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 30px;
  border-left: 1px solid var(--line-soft);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white !important;
  font-size: 23px !important;
}

.footer-brand p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.footer-brand button,
.footer-brand > a:not(.footer-logo) {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
}

.footer-legal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(5px);
}

.auth-overlay[hidden] { display: none; }
.auth-overlay-open { overflow: hidden; }

.footer-brand small {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 9px;
}

.auth-dialog {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 36px 40px 32px;
  border: 1px solid #363932;
  border-radius: 8px;
  background: #11120f;
  color: #f7f7f3;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(5px);
}

.auth-dialog .dialog-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-color: #3b3e37;
  background: #161713;
}

.auth-dialog-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.auth-logo {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  object-fit: contain;
}

.auth-dialog h2 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0;
}

.auth-dialog-header p {
  margin: 8px 0 0;
  color: #a8aaa2;
  font-size: 14px;
  line-height: 1.5;
}

.auth-dialog form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-label,
.auth-label-row {
  color: #e3e4de;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-dialog input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 1px solid #3a3d35;
  border-radius: 6px;
  outline: 0;
  background: #0b0c0a;
  color: #f7f7f3;
  padding: 0 14px;
  font-size: 15px;
  letter-spacing: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-dialog input::placeholder {
  color: #777a72;
}

.auth-dialog input:focus {
  border-color: #92b869;
  background: #0e100c;
  box-shadow: 0 0 0 3px rgba(145, 184, 105, .14);
}

.auth-field.has-error input {
  border-color: #d86666;
  box-shadow: 0 0 0 3px rgba(216, 102, 102, .1);
}

.auth-code-field,
.auth-confirm-field,
.auth-password-rule {
  display: none;
}

.auth-dialog.verification-mode .auth-code-field,
.auth-dialog.verification-mode .auth-confirm-field {
  display: grid;
}

.auth-dialog.verification-mode .auth-password-rule {
  display: block;
}

.auth-code-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 10px;
}

.auth-send-code {
  height: 50px;
  border: 1px solid #59654d;
  border-radius: 6px;
  background: #252b20;
  color: #f2f4ed;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.auth-send-code:hover:not(:disabled) {
  border-color: #94b96b;
  background: #303a28;
  color: #fff;
}

.auth-send-code:disabled {
  color: #8e9188;
  cursor: default;
  opacity: .7;
}

.auth-password-control {
  position: relative;
  display: block;
}

.auth-password-control input {
  padding-right: 52px;
}

.auth-password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #a6a99f;
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: #1c1e19;
  color: #f7f7f3;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-password-rule {
  margin: 0;
  color: #8f9289;
  font-size: 12px;
  line-height: 1.5;
}

.auth-forgot {
  display: none;
  border: 0;
  background: transparent;
  color: #b8d592;
  font-size: 13px;
  cursor: pointer;
}

.auth-dialog.login-mode .auth-forgot {
  display: inline;
}

.auth-forgot:hover {
  color: #d5edb7;
}

.auth-field-error {
  margin: 0;
  color: #ffabab;
  font-size: 13px;
  line-height: 1.45;
}

.auth-field-error[hidden] {
  display: none;
}

.auth-error {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(231, 101, 101, .4);
  border-radius: 6px;
  background: rgba(145, 42, 42, .13);
  color: #ffb4b4;
  font-size: 13px;
  line-height: 1.5;
}

.auth-consent {
  display: none;
  margin: -2px 0 0;
  color: #8f9289;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.auth-dialog.register-mode .auth-consent { display: block; }
.auth-consent a { color: #c7dfa9; text-decoration: underline; text-underline-offset: 3px; }
.auth-consent a:hover { color: #e4f3d1; }

.auth-error.success {
  border-color: rgba(133, 181, 96, .42);
  background: rgba(74, 111, 49, .15);
  color: #c9e9ad;
}

.auth-error[hidden] {
  display: none;
}

.turnstile-field {
  min-height: 0;
  padding-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8aaa2;
  font-size: 13px;
}

.turnstile-field[hidden] {
  display: none;
}

.turnstile-field > div,
.turnstile-field iframe {
  max-width: 100%;
}

.auth-submit {
  width: 100%;
  height: 50px;
  margin-top: 2px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.auth-switch {
  display: block;
  margin: 20px auto 0;
  border: 0;
  background: transparent;
  color: #b7b9b1;
  font-size: 14px;
  cursor: pointer;
}

.auth-switch:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .auth-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 30px 22px 24px;
  }

  .auth-logo {
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
  }

  .auth-dialog h2 {
    padding: 0 34px;
    font-size: 25px;
  }

  .auth-dialog-header {
    margin-bottom: 24px;
  }

  .auth-code-control {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .auth-send-code {
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  .studio-shell {
    grid-template-columns: 350px minmax(0, 1fr);
  }

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

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

  .landing-links {
    gap: 16px;
  }

  .explore-links > div {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --sidebar: 238px;
  }

  .brand {
    flex: 1;
    width: auto;
    border-right: 0;
    padding-left: 18px;
  }

  body.sidebar-collapsed {
    --sidebar: 238px;
  }

  body.sidebar-collapsed .main-nav {
    padding: 8px 18px;
  }

  body.sidebar-collapsed .main-nav a {
    justify-content: flex-start;
    padding: 0 14px;
  }

  body.sidebar-collapsed .main-nav a span,
  body.sidebar-collapsed .sidebar-bottom {
    display: initial;
  }

  .mobile-menu-button.icon-button {
    display: inline-grid;
    flex: 0 0 auto;
  }

  .sidebar .sidebar-toggle { display: none; }

  .sidebar {
    transform: translateX(-100%);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .mobile-shade {
    position: fixed;
    z-index: 35;
    inset: var(--topbar) 0 0;
    background: rgba(0, 0, 0, 0.6);
  }

  body.sidebar-open .mobile-shade {
    display: block;
  }

  .content,
  body.sidebar-collapsed .content {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    padding-right: 0;
  }

  .top-actions .connection-badge {
    display: none;
  }

  .page {
    padding: 22px 18px 48px;
  }

  .studio-shell {
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 10px 10px;
  }

  .feature-workbench {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 10px 10px;
  }

  .feature-control-panel,
  .feature-preview-panel {
    min-height: 580px;
  }

  .control-panel,
  .preview-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
  }

  .preview-panel {
    min-height: 480px;
  }

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

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

  .template-card:nth-child(n + 4) {
    display: none;
  }

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

  .hero-copy {
    width: 65%;
    padding-right: 32px;
  }

  .landing-nav {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .landing-links {
    display: none;
  }

  .feature-list,
  .related-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-brand {
    padding: 26px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .explore-links > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pricing-dialog {
    overflow: auto;
  }

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

  .pricing-picker {
    border-right: 0;
    border-bottom: 1px solid #24262a;
  }
}

@media (max-width: 620px) {
  .brand {
    gap: 8px;
    font-size: 17px;
  }

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

  .top-actions {
    padding-right: 8px;
  }

  .top-actions .credit-button,
  .top-actions > .top-round-button,
  .top-actions .has-badge {
    display: none;
  }

  .top-actions {
    gap: 4px;
  }

  .page-heading h1 {
    font-size: 28px;
  }

  .home-hero {
    width: 100%;
    min-width: 0;
    min-height: 390px;
    align-items: end;
    background-position: 38% center;
  }

  .home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 24%, rgba(13, 14, 11, 0.94) 82%);
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 24px;
  }

  .landing-hero {
    min-height: 90vh;
  }

  .landing-copy {
    margin-top: 48px;
  }

  .landing-copy h1 {
    font-size: 28px;
  }

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

  .landing-prompt {
    min-height: 150px;
  }

  .feature-control-panel {
    min-height: 540px;
    padding: 22px 18px 18px;
  }

  .feature-control-panel .generate-button {
    right: auto;
    bottom: 0;
    left: auto;
  }

  .feature-preview-panel {
    min-height: 420px;
  }

  .feature-preview {
    width: calc(100% - 28px);
  }

  .landing-examples {
    flex-wrap: wrap;
  }

  .landing-next {
    padding-inline: 18px;
  }

  .hero-title {
    font-size: 27px;
  }

  .tool-grid,
  .model-grid,
  .feature-grid,
  .asset-grid,
  .dialog-model-list {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .related-tools,
  .guide-story,
  .guide-steps,
  .capability-grid {
    grid-template-columns: 1fr;
  }

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

  .content-page-hero h1 {
    font-size: 32px;
  }

  .guide-page {
    padding: 72px 18px 60px;
  }

  .guide-story.reverse img {
    order: 0;
  }

  .guide-steps article,
  .capability-grid article {
    border-right: 0;
  }

  .capability-grid article:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .capability-grid article:last-child {
    border-bottom: 0;
  }

  .explore-links > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    padding: 40px 20px;
  }

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

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

  .template-card:nth-child(3) {
    display: none;
  }

  .gallery-grid {
    columns: 2 140px;
  }

  .studio-breadcrumb {
    padding: 0 14px;
  }

  .control-panel {
    padding: 20px 16px 86px;
  }

  .preview-panel {
    min-height: 380px;
  }

  .preview-stage {
    width: calc(100% - 28px);
  }

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

  .reward-dialog {
    padding: 20px 16px;
  }

  .reward-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .pricing-picker,
  .plan-detail {
    padding: 24px 18px;
  }

  .plan-option {
    padding: 11px;
  }

  .assets-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    font-size: 19px;
  }
}

/* 2026-09-25 high-fidelity SeaVidGen layout pass */
body {
  font-size: 16px;
}

/* Exact media behavior: model carousel + poster-first hover video tiles */
.model-carousel {
  position: relative;
  width: min(1500px, 100%);
  margin: 0 auto 48px;
}

.model-ribbon {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(20% - 3px);
  grid-template-columns: none;
  gap: 18px;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.model-ribbon::-webkit-scrollbar { display: none; }

.model-ribbon > a {
  min-width: 0;
  color: inherit;
  scroll-snap-align: start;
}

.model-ribbon > a img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid #272823;
  border-radius: 5px;
  object-fit: cover;
}

.model-ribbon > a strong {
  display: block;
  margin-top: 10px;
  color: #f0efe9;
  font-size: 14px;
}

.model-ribbon > a span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 31%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(10,11,9,.76);
  color: white;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.carousel-arrow:hover { background: rgba(35,36,31,.96); }
.carousel-arrow.previous { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-arrow svg { width: 18px; height: 18px; }

.masonry-item .video-poster,
.masonry-item video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.masonry-item video {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity .12s ease;
}

.masonry-item.is-playing video { opacity: 1; }

.feature-tile > div {
  position: relative;
  overflow: hidden;
}

.feature-tile > div > img,
.feature-tile > div > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-tile > div > video {
  opacity: 0;
  transition: opacity .12s ease;
}

.feature-tile.is-playing > div > video { opacity: 1; }

.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero-media,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-media { object-fit: cover; }
.home-hero-shade { background: linear-gradient(90deg, rgba(5,6,5,.9) 0%, rgba(6,7,6,.7) 48%, rgba(7,8,7,.22) 100%); }
.home-hero .hero-copy { position: relative; z-index: 2; }

@media (max-width: 1100px) {
  .model-ribbon { grid-auto-columns: calc((100% - 36px) / 3); }
}

@media (max-width: 620px) {
  .model-ribbon { grid-auto-columns: 82%; }
  .carousel-arrow { top: 36%; }
}

.landing-related,
.landing-capabilities {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 18px;
}

.landing-related > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.landing-related a {
  min-width: 0;
  color: inherit;
}

.landing-related img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid #272823;
  border-radius: 5px;
  object-fit: cover;
}

.landing-related strong,
.landing-related span { display: block; }
.landing-related strong { margin-top: 9px; font-size: 14px; }
.landing-related span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.landing-capabilities > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #282924;
  border-radius: 8px;
  background: #282924;
}

.landing-capabilities article {
  min-height: 190px;
  padding: 28px;
  background: #11120f;
}

.landing-capabilities article > svg {
  width: 23px;
  height: 23px;
  color: var(--accent);
}

.landing-capabilities h3 { margin: 21px 0 10px; font-size: 17px; }
.landing-capabilities p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.landing-cta {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 74px;
  padding: 70px 38px;
  border: 1px solid #292a25;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 0%, rgba(145,255,0,.1), transparent 45%), #10110e;
  text-align: center;
}

.landing-cta h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 30px;
}

.landing-cta p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.landing-cta a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .landing-related > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-capabilities > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .landing-related > div:last-child,
  .landing-capabilities > div:last-child { grid-template-columns: 1fr; }
}

/* Fixed desktop mosaic matching the reference homepage. */
.landing-masonry {
  width: min(1500px, 100%);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 92px;
  gap: 9px;
  columns: auto;
  margin: 0 auto;
}

.landing-masonry .masonry-item {
  width: auto;
  height: 100%;
  min-height: 0;
  grid-row: span var(--rows, 3);
  display: block;
  margin: 0;
}

.landing-masonry .masonry-item .video-poster,
.landing-masonry .masonry-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1400px) {
  .landing-masonry { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .landing-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 84px; }
}

@media (max-width: 620px) {
  .landing-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 76px; }
}

.landing-page {
  min-height: 100vh;
  background: #0a0b08;
}

.landing-hero {
  min-height: 100vh;
  background: #0b0c09;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 5, 4, .25), rgba(5, 6, 5, .15) 46%, rgba(5, 6, 5, .58) 78%, #0a0b08 100%);
}

.landing-nav {
  position: absolute;
  z-index: 20;
  height: 56px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9,10,8,.34);
  backdrop-filter: blur(8px);
}

.landing-brand {
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
}

.landing-brand .brand-mark {
  width: 25px;
  height: 30px;
}

.landing-links {
  height: 100%;
  gap: 7px;
}

.landing-links > a,
.landing-nav-item > button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border-radius: 6px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 500;
}

.landing-links > a:hover,
.landing-nav-item:hover > button {
  background: rgba(255,255,255,.08);
}

.landing-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.landing-nav-item > button svg {
  width: 13px;
  height: 13px;
}

.landing-dropdown {
  position: absolute;
  z-index: 40;
  top: 47px;
  left: 50%;
  width: 300px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  border: 1px solid #2d2e29;
  border-radius: 7px;
  background: #11120f;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  transition: .16s ease;
}

.landing-dropdown.wide {
  width: 520px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-nav-item:hover .landing-dropdown,
.landing-nav-item:focus-within .landing-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.landing-dropdown a {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: 5px;
  color: #e9e8e2;
  font-size: 13px;
}

.landing-dropdown a:hover {
  background: #20211d;
}

.landing-dropdown a svg {
  width: 15px;
  height: 15px;
  padding: 3px;
  border-radius: 4px;
  background: #2a2b26;
}

.landing-dropdown a span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.landing-dropdown a b {
  padding: 2px 5px;
  border-radius: 4px;
  background: #ff1762;
  color: white;
  font-size: 9px;
}

.landing-copy {
  z-index: 3;
  width: min(820px, calc(100vw - 40px));
  margin-top: 8vh;
}

.landing-pill {
  padding: 8px 15px;
  font-size: 12px;
}

.landing-copy h1 {
  margin: 24px 0 14px;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.22;
}

.landing-copy > p {
  width: min(690px, 100%);
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.75;
}

.landing-prompt {
  min-height: 182px;
  padding: 13px;
  border: 3px double rgba(255,255,255,.68);
  border-radius: 21px;
  background: rgba(35,34,31,.52);
}

.landing-prompt textarea {
  min-height: 104px;
  padding: 6px 9px;
  font-size: 15px;
  line-height: 1.6;
}

.landing-mode-menu {
  position: relative;
}

.landing-mode-menu summary {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}

.landing-mode-menu summary::-webkit-details-marker { display: none; }
.landing-mode-menu summary svg { width: 15px; height: 15px; }

.landing-mode-menu > div {
  position: absolute;
  z-index: 25;
  top: 41px;
  left: 0;
  width: 242px;
  display: grid;
  padding: 7px;
  border: 1px solid #363731;
  border-radius: 7px;
  background: #0e0f0d;
  box-shadow: 0 18px 45px rgba(0,0,0,.5);
}

.landing-mode-menu > div a {
  min-height: 37px;
  display: grid;
  grid-template-columns: 23px 1fr 16px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
}

.landing-mode-menu > div a:hover { background: #242520; }
.landing-mode-menu > div a svg { width: 15px; height: 15px; }

.landing-submit {
  width: 39px;
  height: 39px;
}

.landing-examples {
  margin-top: 16px;
}

.landing-examples span,
.landing-examples button {
  font-size: 11px;
}

.landing-showcase {
  padding: 54px 18px 0;
}

.model-ribbon {
  width: min(1500px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 48px;
}

.model-ribbon article {
  min-width: 0;
}

.model-ribbon img,
.model-ribbon video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid #272823;
  border-radius: 5px;
  object-fit: cover;
}

.model-ribbon strong {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.model-ribbon span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.landing-masonry {
  width: min(1500px, 100%);
  columns: 7 190px;
  column-gap: 9px;
  margin: 0 auto;
}

.masonry-item {
  position: relative;
  width: 100%;
  display: inline-block;
  margin-bottom: 9px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid #252621;
  border-radius: 4px;
  background: #11120f;
}

.masonry-item video,
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.landing-workflows,
.landing-steps,
.landing-faq {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 20px;
}

.landing-section-heading {
  max-width: 820px;
  margin: 0 auto 58px;
  text-align: center;
}

.landing-section-heading h1,
.landing-section-heading h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.25;
}

.landing-section-heading p {
  margin: 0;
  color: #aaa9a2;
  font-size: 15px;
  line-height: 1.75;
}

.workflow-row {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 58px;
  margin-bottom: 90px;
}

.workflow-row.reverse .workflow-media { order: 2; }
.workflow-row.reverse > div:last-child { order: 1; }

.workflow-media {
  overflow: hidden;
  border-radius: 10px;
}

.workflow-media img,
.workflow-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.workflow-row h3 {
  margin: 0 0 18px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 29px;
}

.workflow-row p {
  margin: 0 0 25px;
  color: #b0afa8;
  font-size: 15px;
  line-height: 1.8;
}

.workflow-row > div:last-child > a,
.landing-steps > a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.landing-steps > div:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 38px;
}

.landing-steps article {
  position: relative;
  min-height: 188px;
  padding: 30px 28px;
  border: 1px solid #282924;
  background: #11120f;
}

.landing-steps article + article { border-left: 0; }
.landing-steps article:first-child { border-radius: 8px 0 0 8px; }
.landing-steps article:last-child { border-radius: 0 8px 8px 0; }
.landing-steps article b { position: absolute; top: -17px; left: -1px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #33342e; border-radius: 50%; background: #0a0b08; }
.landing-steps article h3 { margin: 18px 0 12px; font-size: 18px; }
.landing-steps article p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.landing-steps > a { display: flex; width: fit-content; margin: 0 auto; }

.landing-faq { padding-bottom: 105px; }
.landing-faq .faq-list { max-width: 780px; }
.landing-faq .faq-list summary { min-height: 64px; font-size: 15px; }
.landing-faq .faq-list p { font-size: 13px; }

.landing-explore {
  margin-top: 0;
}

.site-footer {
  grid-template-columns: minmax(0, 3fr) minmax(310px, 1fr);
  padding-top: 58px;
  padding-bottom: 58px;
}

.footer-links strong,
.footer-brand > span { font-size: 12px; }
.footer-links a,
.footer-brand a,
.footer-brand button { font-size: 12px; line-height: 1.5; }
.footer-links > div { gap: 11px; }
.footer-brand p { font-size: 12px; }
.footer-brand small { font-size: 11px; }

.studio-breadcrumb { font-size: 13px; }
.control-panel { padding: 25px 22px 18px; }
.field-label,
.field-row-label { font-size: 14px; }
.model-select strong { font-size: 14px; }
.prompt-box textarea { font-size: 14px; line-height: 1.55; }
.segment,
.resolution-row button { font-size: 13px; }
.toggle-row { font-size: 14px; }

.generate-button {
  position: sticky;
  bottom: 0;
  z-index: 4;
  min-height: 50px;
  margin-top: auto;
  font-size: 15px;
  box-shadow: 0 -14px 28px var(--panel);
}

.generate-button .cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
}

.generate-button .cost svg { width: 14px; height: 14px; }

.preview-stage.sample-stage {
  width: min(72%, 930px);
  aspect-ratio: 16 / 9;
  background: #0b0c09;
}

.preview-sample {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-sample .stage-media {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  background: #0a0b08;
}

.preview-sample .stage-media.active { display: block; }
.preview-sample > span { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 5px; background: rgba(0,0,0,.62); color: #dddcd6; font-size: 11px; backdrop-filter: blur(8px); }
.preview-sample > span svg { width: 13px; height: 13px; }
.audio-sample { display: grid; place-items: center; align-content: center; gap: 20px; padding: 28px; }
.audio-sample .album-art { width: 180px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; }
.audio-sample .album-art img { width: 100%; height: 100%; object-fit: cover; }
.audio-wave { width: min(540px, 88%); height: 72px; display: flex; align-items: center; gap: 4px; }
.audio-wave i { height: var(--h); flex: 1; border-radius: 2px; background: linear-gradient(#c8ff55, #6d9e16); }

.feature-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.feature-tile > div { aspect-ratio: 16 / 9; }
.feature-tile img,
.feature-tile video { width: 100%; height: 100%; display: block; object-fit: cover; }
.feature-tile strong { margin-top: 11px; font-size: 15px; }
.feature-tile > span { margin-top: 4px; font-size: 12px; }

.feature-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #090a08;
}

.guide-story video {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 14px;
}

.model-card {
  min-width: 0;
  min-height: 51px;
  height: 51px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(245, 244, 239, 0.12);
  border-radius: 8px;
  background: #15140f;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.model-card:hover {
  border-color: #57594e;
  background: #171814;
}

.model-card .model-family-mark {
  position: static;
  z-index: auto;
}

.model-card .model-title-row strong { font-size: 12px; }
.model-card .model-meta small { font-size: 10px; }

.model-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #20211d;
}

.model-icon img {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
}

.models-page {
  width: 100%;
  max-width: none;
  padding: 27px 27px 64px;
}

.models-heading {
  margin: 0 auto 34px;
  text-align: center;
}

.models-heading h1 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 33px;
  line-height: 1.2;
}

.models-heading p {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.models-page .model-section + .model-section { margin-top: 31px; }
.models-page .section-header { margin-bottom: 14px; }
.models-page .section-heading { font-size: 22px; }

.pricing-page > .landing-nav,
.credits-page > .landing-nav {
  position: sticky;
  top: 0;
  background: rgba(10,11,8,.94);
}

.pricing-page > main,
.credits-page > main {
  width: min(1220px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 72px 0 90px;
}

.pricing-banner {
  min-height: 128px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 25px 30px;
  border: 1px solid #59102f;
  border-radius: 16px;
  background: linear-gradient(110deg, #2a0917, #180b13);
}

.pricing-banner > span { padding: 5px 8px; border-radius: 4px; background: #ff1261; font-size: 11px; font-weight: 700; }
.pricing-banner div { flex: 1; }
.pricing-banner strong { font-size: 18px; }
.pricing-banner p { margin: 7px 0 0; color: #b9aab0; font-size: 13px; }
.pricing-banner > b { font-size: 14px; }

.pricing-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 30px; }
.pricing-controls > div { display: flex; margin-right: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; }
.pricing-controls > div button, .pricing-controls > div a { height: 34px; display: inline-flex; align-items: center; padding: 0 17px; border-radius: 5px; background: transparent; color: inherit; font-size: 13px; text-decoration: none; }
.pricing-controls > div button.active, .pricing-controls > div a.active { background: #30312c; }

.pricing-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pricing-card { position: relative; min-height: 520px; display: flex; flex-direction: column; padding: 28px 24px 20px; border: 1px solid #242620; border-radius: 10px; background: #15181a; }
.pricing-card.featured { border-color: #4e5d32; box-shadow: inset 0 -4px 0 #b8ff00; }
.pricing-card > em { position: absolute; top: -13px; right: 30px; padding: 7px 12px; border-radius: 5px; background: #ff1261; font-size: 10px; font-style: normal; }
.pricing-card h2 { margin: 0 0 6px; font-size: 22px; }
.pricing-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.plan-price { display: flex; align-items: flex-end; gap: 8px; margin: 46px 0 22px; }
.plan-price strong { font-size: 38px; }
.plan-price span { margin-bottom: 7px; color: var(--muted); }
.plan-credit { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #292c2d; }
.plan-credit span { color: var(--muted); }
.pricing-card ul { display: grid; gap: 14px; padding: 21px 0; margin: 0; list-style: none; font-size: 13px; }
.pricing-card li { display: flex; align-items: center; gap: 9px; }
.pricing-card li svg { width: 16px; height: 16px; color: #aee900; }
.pricing-card > button { min-height: 43px; margin-top: auto; border-radius: 5px; background: var(--cream); color: var(--ink); font-weight: 600; }
.pricing-card.featured > button { background: #baff00; }
.payment-strip { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.payment-strip div { display: flex; gap: 8px; }
.payment-strip b { padding: 7px 11px; border-radius: 4px; background: #f5f5f2; color: #151515; font-size: 11px; }
.payment-strip small { margin-left: auto; color: var(--muted); }

.credit-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.credit-summary article { min-height: 170px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.credit-summary span { color: var(--muted); }
.credit-summary strong { margin: 22px 0 9px; font-size: 36px; }
.credit-summary small { color: var(--muted-2); }
.credit-ledger { margin-top: 22px; padding: 26px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.credit-ledger > div { display: flex; justify-content: space-between; align-items: center; }
.credit-ledger h2 { margin: 0; font-size: 20px; }
.credit-ledger a { color: var(--accent); }
.credit-ledger > p { margin: 55px 0; color: var(--muted); text-align: center; }

@media (max-width: 1100px) {
  .landing-nav { grid-template-columns: 1fr auto; padding: 0 20px; }
  .landing-links { display: none; }
  .model-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-ribbon article:nth-child(n+4) { display: none; }
  .landing-masonry { columns: 4 180px; }
  .model-grid, .pricing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .landing-nav { padding: 0 14px; }
  .landing-copy { margin-top: 5vh; }
  .landing-copy h1 { font-size: 30px; }
  .landing-copy > p { font-size: 14px; }
  .landing-prompt { min-height: 160px; }
  .landing-showcase { padding-inline: 10px; }
  .model-ribbon { grid-template-columns: 1fr; }
  .model-ribbon article:nth-child(n+2) { display: none; }
  .landing-masonry { columns: 2 140px; }
  .workflow-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 65px; }
  .workflow-row.reverse .workflow-media,
  .workflow-row.reverse > div:last-child { order: initial; }
  .landing-steps > div:nth-child(2) { grid-template-columns: 1fr; }
  .landing-steps article + article { border-left: 1px solid #282924; border-top: 0; }
  .landing-steps article:first-child,
  .landing-steps article:last-child { border-radius: 8px; }
  .feature-list, .model-grid, .pricing-cards, .credit-summary { grid-template-columns: 1fr; }
  .pricing-page > main, .credits-page > main { width: min(100% - 24px, 1220px); padding-top: 46px; }
  .pricing-banner { align-items: flex-start; flex-direction: column; }
  .payment-strip { align-items: flex-start; flex-direction: column; }
  .payment-strip small { margin-left: 0; }
}

/* Final homepage fidelity rules. Keep this block last: it replaces old prototypes above. */
.landing-showcase {
  padding: 54px 16px 0;
}

.model-carousel {
  width: 100%;
  max-width: none;
  margin: 0 auto 48px;
  overflow: hidden;
}

.model-ribbon {
  width: 100%;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(380px, 20vw, 500px);
  gap: 18px;
  margin: 0;
  overflow-x: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.model-ribbon > a {
  min-width: 0;
  color: inherit;
  scroll-snap-align: none;
}

.model-ribbon > a img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid #272823;
  border-radius: 5px;
  object-fit: cover;
}

.model-ribbon > a strong {
  display: block;
  margin-top: 10px;
  color: #f0efe9;
  font-size: 14px;
  line-height: 1.25;
}

.model-ribbon > a span {
  display: block;
  margin-top: 4px;
  color: #9d9d96;
  font-size: 12px;
  line-height: 1.4;
}

.carousel-arrow {
  top: 42%;
}

.landing-masonry {
  width: 100%;
  max-width: none;
  display: block;
  columns: 7;
  column-gap: 8px;
  margin: 0 auto;
}

.landing-masonry .masonry-item {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  grid-row: span var(--rows, 3);
  display: block;
  margin: 0 0 8px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid #252621;
  border-radius: 4px;
  background: #11120f;
  transform: translateZ(0);
}

.landing-masonry .masonry-item .video-poster,
.landing-masonry .masonry-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.landing-masonry .masonry-item .video-poster {
  position: static;
  height: auto;
}

.landing-masonry .masonry-item video {
  opacity: 0;
  transition: opacity 1s .5s;
  will-change: opacity;
}

.landing-masonry .masonry-item.is-playing video { opacity: 1; }

.feature-tile.static-tool > div > img { opacity: 1; }
.feature-tile.effect-loop > div > video { opacity: 1; }
.feature-tile.effect-loop > div { position: relative; }
.effect-use-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; background: linear-gradient(to top,rgba(255,255,255,.4),rgba(255,255,255,.15) 28%,transparent 60%); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.effect-use-overlay span { color: #fff; font-size: 16px; line-height: 24px; font-weight: 500; }
.feature-tile.effect-loop > div::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,transparent 30%,rgba(255,255,255,.32) 50%,transparent 70%); transform: translateX(-110%); }
.feature-tile.effect-loop:hover .effect-use-overlay { opacity: 1; transition-delay: .8s; }
.feature-tile.effect-loop:hover > div::after { transform: translateX(110%); transition: transform .7s ease .2s; }
.feature-tile.effect-loop:focus-visible .effect-use-overlay { opacity: 1; transition-delay: 0s; }
@media (hover: none) { .feature-tile.effect-loop .effect-use-overlay { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .feature-tile.effect-loop > div::after { display: none; } .effect-use-overlay { transition: none; } }

@media (max-width: 1535px) {
  .model-ribbon { grid-auto-columns: clamp(340px, 23vw, 440px); }
  .landing-masonry { columns: 4; }
}

@media (max-width: 1023px) {
  .model-ribbon { grid-auto-columns: 360px; }
}

@media (max-width: 767px) {
  .landing-showcase { padding-inline: 10px; }
  .landing-masonry { columns: 2; }
}

/* The reference carousel is a continuous media strip. Keep the track wider than
   its viewport so the animation can move by pixels without card-by-card jumps. */
.model-carousel { overflow: hidden; }
.model-ribbon {
  overflow: visible;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  user-select: none;
}
.model-ribbon > a { flex: 0 0 auto; }

@media (max-width: 639px) {
  .model-ribbon { grid-auto-columns: 78vw; }
}

/* Match SeaVid's readable content scale. The left navigation deliberately stays
   at its existing density; only the feature content and footer are enlarged. */
.feature-hub .feature-page-heading h1 { font-size: 41px; }
.feature-hub .feature-page-heading p { font-size: 15px; }
.feature-hub .feature-group .section-heading { font-size: 31px; }
.feature-hub .feature-tile strong { font-size: 18px; }
.feature-hub .feature-tile > span { font-size: 14px; }
.feature-hub .feature-new { padding: 6px 9px; font-size: 11px; }
.feature-hub .compact-explore h2 { font-size: 29px; }
.feature-hub .compact-explore a { min-height: 44px; padding: 11px 9px; font-size: 14px; }
.site-footer .footer-links strong,
.site-footer .footer-brand > span { font-size: 15px; }
.site-footer .footer-links a,
.site-footer .footer-brand a,
.site-footer .footer-brand button { font-size: 14px; }
.site-footer .footer-logo { font-size: 29px !important; }
.site-footer .footer-brand p { font-size: 14px; }
.site-footer .footer-brand small { font-size: 12px; }

@media (max-width: 700px) {
  .feature-hub .feature-page-heading h1 { font-size: 35px; }
  .feature-hub .feature-page-heading p { font-size: 14px; }
  .feature-hub .feature-group .section-heading { font-size: 27px; }
  .feature-hub .feature-tile strong { font-size: 16px; }
  .feature-hub .feature-tile > span { font-size: 13px; }
  .feature-hub .compact-explore h2 { font-size: 25px; }
  .feature-hub .compact-explore a { font-size: 13px; }
}

/* SeaVid-style feature page scale and sidebar control. */
.feature-hub {
  width: min(1040px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 29px 0 76px;
}

.feature-page-heading {
  margin: 0 0 36px;
  text-align: center;
}

.feature-page-heading h1 {
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 34px;
  line-height: 1.25;
}

.feature-page-heading p {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.feature-hub .feature-group .section-heading {
  margin-bottom: 16px;
  font-size: 26px;
}

.feature-hub .feature-list {
  gap: 18px;
}

.feature-hub .feature-tile strong {
  margin-top: 11px;
  font-size: 16px;
}

.feature-hub .feature-tile > span {
  margin-top: 4px;
  font-size: 12px;
}

.feature-hub .compact-explore {
  width: 100%;
  max-width: none;
  margin-top: 76px;
  padding-top: 38px;
}

.feature-hub .compact-explore h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.feature-hub .compact-explore > div {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.feature-hub .compact-explore a {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 10px 8px;
  font-size: 12px;
}

.sidebar-toggle {
  width: 32px;
  height: 34px;
  flex-basis: 34px;
  margin: 5px 8px 4px auto;
  border-radius: 4px;
  color: #a8a9a1;
}

.sidebar-toggle:hover {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.sidebar-toggle svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}

body.sidebar-collapsed .sidebar-toggle {
  width: 32px;
  margin-inline: auto;
}

.site-footer {
  grid-template-columns: minmax(0, 3.2fr) minmax(340px, 1fr);
  gap: 54px;
  padding-right: max(32px, calc((100vw - 1400px) / 2));
  padding-left: max(32px, calc((100vw - 1400px) / 2));
  padding-top: 68px;
  padding-bottom: 68px;
}

.footer-links {
  gap: 34px;
}

.footer-links strong,
.footer-brand > span {
  font-size: 13px;
}

.footer-links a,
.footer-brand a,
.footer-brand button {
  font-size: 13px;
  line-height: 1.5;
}

.footer-links > div {
  gap: 11px;
}

.footer-brand {
  padding-left: 36px;
}

.footer-logo {
  font-size: 26px !important;
}

.footer-brand p {
  font-size: 13px;
}

.footer-brand small {
  font-size: 11px;
}

@media (max-width: 1180px) {
  .feature-hub .compact-explore > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .feature-hub {
    width: min(100% - 28px, 1040px);
    padding-top: 24px;
  }

  .feature-page-heading h1 {
    font-size: 30px;
  }

  .feature-hub .compact-explore > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SeaVid reference scale: keep the same desktop proportions and the same
   readable system font used by the reference footer and feature catalogue. */
:root {
  --topbar: 57px;
  --sidebar: var(--sidebar-expanded);
  --account-sidebar: var(--sidebar-expanded);
}

.brand {
  width: 252px;
  flex-basis: 252px;
  gap: 12px;
  padding-inline: 34px;
  font-size: 20px;
}

.topbar .brand b {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.brand-mark {
  width: 28px;
  height: 32px;
  flex-basis: 28px;
}

.main-nav a {
  height: 45px;
  gap: 12px;
  padding: 0 var(--sidebar-item-inset);
  color: #f5f4ef;
  font-size: 16px;
}

.main-nav a span { font-size: inherit; line-height: 20px; }
.main-nav svg { width: 19px; height: 19px; flex-shrink: 0; }

.feature-hub,
.explore-links,
.site-footer,
.site-footer button,
.site-footer a {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans", "Helvetica Neue", Arial, Inter, "Segoe UI", Roboto, sans-serif;
}

.feature-hub {
  width: min(1280px, calc(100% - 48px));
  padding: 33px 0 76px;
}

.feature-page-heading {
  margin: 0 0 40px;
}

.feature-page-heading h1 {
  font-family: "Noto Serif SC", "Noto Serif TC", Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
}

.feature-page-heading p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  line-height: 24px;
}

.feature-hub .feature-group .section-heading {
  margin: 0 0 16px;
  font-family: "Noto Serif SC", "Noto Serif TC", Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.feature-hub .feature-list {
  column-gap: 16px;
  row-gap: 24px;
}

.feature-hub #ai-tools .feature-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-hub #ai-effects .feature-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-hub .feature-tile > div {
  border: 0;
  border-radius: 6px;
}

.feature-hub .feature-tile strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.feature-hub .feature-tile > span {
  margin-top: 0;
  color: #c9c8c5;
  font-size: 14px;
  line-height: 20px;
}

.feature-hub .feature-page-heading h1 {
  font-size: 36px;
}

.feature-hub .feature-page-heading p {
  font-size: 16px;
}

.feature-hub .feature-group + .feature-group {
  margin-top: 40px;
}

.feature-hub .feature-new {
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
}

.feature-hub .compact-explore {
  width: min(1440px, calc(100vw - var(--sidebar) - 18px));
  margin: 32px 0 0 50%;
  padding: 40px 16px;
  border-top: 1px solid var(--line-soft);
  transform: translateX(-50%);
}

.feature-hub .compact-explore h2 {
  margin: 0;
  padding-bottom: 16px;
  font-family: "Noto Serif SC", "Noto Serif TC", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.feature-hub .compact-explore > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-hub .compact-explore a {
  width: 160px;
  min-width: 160px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  flex: 0 0 160px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.feature-hub .compact-explore a:hover {
  background: #000;
  color: #fff;
}

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

.site-footer {
  width: 100%;
  display: block;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0d0e0b;
  color: #f2f1eb;
}

.site-footer-inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 48px 16px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
}

.footer-link-area {
  min-width: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 36px;
}

.footer-links > section {
  min-width: 0;
  display: block;
}

.footer-links strong,
.footer-brand-block > span,
.footer-meta strong {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.footer-links a,
.footer-meta a {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}

.footer-links strong + a,
.footer-meta strong + a {
  margin-top: 16px;
}

.footer-links a:hover,
.footer-meta a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-brand {
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 28px 0 28px 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-language-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  width: 160px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.footer-language-menu button {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-language-menu button:hover { background: var(--panel-2); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 32px !important;
  font-weight: 600;
  line-height: 32px;
}

.footer-logo .brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.footer-brand p {
  max-width: 304px;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}

.footer-brand button {
  width: fit-content;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}

.footer-brand button svg {
  width: 15px;
  height: 15px;
}

.footer-brand button svg:last-child {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact a,
.footer-contact button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
}

.site-footer .footer-contact button {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 300;
}

.footer-contact svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand small {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 300;
  line-height: 20px;
}

.site-footer .footer-links strong,
.site-footer .footer-brand-block > span,
.site-footer .footer-meta strong {
  font-size: 14px;
}

.site-footer .footer-logo {
  font-size: 32px !important;
  line-height: 32px;
}

.site-footer .footer-brand small {
  font-size: 13px;
}

@media (max-width: 1180px) {
  .feature-hub #ai-tools .feature-list,
  .feature-hub #ai-effects .feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-hub .compact-explore {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

}

@media (max-width: 767px) {
  :root {
    --topbar: 57px;
    --sidebar: 238px;
  }

  .brand {
    width: auto;
    flex-basis: auto;
    padding-inline: 18px;
    font-size: 18px;
  }

  body.sidebar-collapsed .community-panel { display: block; }
  body.sidebar-collapsed .community-compact { display: none; }
  body.sidebar-collapsed .sidebar-bottom { display: block; padding: 0; }
  body.sidebar-collapsed .sidebar-upgrade {
    padding: 16px;
    border-top: 1px solid rgba(245, 244, 239, 0.12);
  }
  body.sidebar-collapsed .sidebar-upgrade .upgrade-button { width: 100%; height: 40px; }
  body.sidebar-collapsed .sidebar-upgrade .upgrade-button span { display: inline; }
}

@media (max-width: 700px) {
  .feature-hub {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .feature-hub #ai-tools .feature-list,
  .feature-hub #ai-effects .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-hub .compact-explore {
    padding: 32px 0;
  }

  .feature-hub .compact-explore a {
    width: auto;
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
  }

}

@media (max-width: 1279px) {
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-link-area { order: 2; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { order: 1; align-self: stretch; padding: 0; border: 0; }
}

@media (max-width: 639px) {
  .footer-links { grid-template-columns: minmax(0, 1fr); }
}

/* SeaVid uses a five-column desktop grid for the four AI tool cards,
   leaving the final track empty so card widths stay aligned with AI effects. */
@media (min-width: 1536px) {
  .feature-hub #ai-tools .feature-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* The reference page places the footer directly after the exploration area. */
.feature-hub {
  padding-bottom: 0;
}

@media (min-width: 1536px) {
  .site-footer-grid {
    min-height: 603px;
  }
}

/* Measured workbench and creation surfaces. Keep shared landing styles intact. */
.measured-workbench, .creation-page, .models-page {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 24px;
}
.studio-breadcrumb {
  height: 17px;
  padding: 0 24px;
  gap: 4px;
  border: 0;
  font-size: 14px;
  line-height: 20px;
  color: #c9c8c5;
}
.studio-breadcrumb svg { width: 12px; height: 12px; }
.measured-workbench .studio-breadcrumb { align-items: flex-start; padding-top: 1px; }
.studio-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.measured-workbench .studio-shell {
  height: calc(100dvh - var(--topbar) - 17px);
  min-height: 0;
  grid-template-columns: 384px minmax(0, 1fr);
  gap: 12px;
  padding: 0 16px 14px 17px;
}
.measured-workbench { background: rgba(245, 244, 239, 0.08); }
.measured-workbench .control-panel {
  height: 100%;
  padding: 20px;
  overflow: visible;
  background: #15140f;
  display: flex;
  flex-direction: column;
}
.workbench-scroll { min-height: 0; flex: 1; overflow-y: auto; overflow-x: hidden; padding-right: 10px; scrollbar-width: thin; scrollbar-color: #4a4943 transparent; }
.workbench-field { padding: 8px 0; margin: 0; }
.workbench-field:has(.prompt-box) { padding-bottom: 14px; }
.measured-workbench .field-label { min-height: 20px; margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 20px; color: #c9c7c1; }
.measured-workbench .field-label small { font-size: 12px; line-height: 16px; font-weight: 400; }
.workbench-model-picker { position: relative; }
.measured-workbench .model-select { height: 48px; border-width: 2px; padding: 0 12px; gap: 8px; background: #11100b; }
.measured-workbench .model-select strong { font-size: 16px; line-height: 24px; font-weight: 500; }
.measured-workbench .model-select svg { width: 16px; height: 16px; }
.workbench-model-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.workbench-model-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; padding: 4px; border: 2px solid var(--line); border-radius: 6px; background: #11100b; box-shadow: 0 8px 16px #0005; max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
.workbench-model-dropdown[hidden] { display: none; }
.workbench-model-dropdown button { display: flex; align-items: center; gap: 8px; padding: 10px 8px; width: 100%; min-height: 56px; background: transparent; border-radius: 4px; text-align: left; cursor: pointer; }
.workbench-model-dropdown button:hover, .workbench-model-dropdown button:focus-visible { background: #25241e; outline: 1px solid #67655d; outline-offset: -1px; }
.workbench-model-dropdown button[aria-selected="true"] { background: #25241e; }
.workbench-model-dropdown button > span { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.workbench-model-dropdown strong { font-size: 14px; line-height: 20px; font-weight: 500; }
.workbench-model-dropdown small { color: #aaa89f; font-size: 12px; line-height: 16px; }
.measured-workbench .prompt-box textarea { display: block; min-height: 0; height: calc(var(--prompt-rows) * 26px + 26px); padding: 12px; padding-bottom: 26px; resize: none; font-size: 16px; line-height: 26px; background: #11100b; }
.measured-workbench .prompt-box textarea::placeholder { color: #a6a399; }
.measured-workbench .char-count { right: 12px; bottom: 8px; font-size: 12px; line-height: 16px; }
.workbench-options { display: flex; flex-wrap: wrap; gap: 8px; }
.workbench-options button { min-height: 44px; min-width: 80px; padding: 8px 12px; border: 1px solid #292820; border-radius: 6px; background: #11100b; color: #cac7bd; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; }
.workbench-options button.active { background: #f5f4ef; color: #11100b; border-color: #f5f4ef; }
.workbench-options button:hover:not(.active) { border-color: #77746a; color: #fff; }
.workbench-options.image-count-options button { flex: 0 0 48px; width: 48px; min-width: 48px; min-height: 38px; height: 38px; padding: 4px 12px; }
.workbench-options.ratio-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.workbench-options.ratio-options button { min-width: 0; min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 4px; font-size: 12px; line-height: 16px; }
.ratio-symbol { display: block; flex-shrink: 0; margin-bottom: 8px; border: 2px solid #77756d; border-radius: 4px; }
.active .ratio-symbol { border-color: #171610; }
.workbench-options.radio-options { gap: 16px; }
.workbench-options.radio-options button { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 36px; padding: 8px 0; border: 0; background: transparent; color: #c9c7be; }
.workbench-options.radio-options button.active { color: #f5f4ef; font-weight: 600; }
.radio-symbol { width: 16px; height: 16px; border: 2px solid #77756d; border-radius: 50%; }
.active .radio-symbol { border: 5px solid #f5f4ef; }
.workbench-range { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.workbench-range input[type="range"] { min-width: 0; flex: 1; height: 8px; accent-color: #f5f4ef; }
.workbench-range input[type="number"] { width: 64px; height: 36px; border: 1px solid #292820; border-radius: 6px; background: #11100b; padding: 4px 8px; font-size: 14px; }
.workbench-text { width: 100%; height: 36px; border: 1px solid #292820; border-radius: 6px; background: #11100b; padding: 4px 12px; }
.workbench-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 24px; }
.workbench-toggle > span { margin-left: auto; font-size: 12px; }
.workbench-toggle .switch { width: 44px; height: 24px; border: 1px solid #292820; background: #11100b; }
.workbench-toggle .switch::after { width: 20px; height: 20px; top: 1px; left: 1px; background: #f5f4ef; }
.workbench-toggle .switch.on { background: #f5f4ef; }
.workbench-toggle .switch.on::after { left: 21px; transform: none; background: #11100b; }
.workbench-core-heading { font-size: 12px; line-height: 16px; color: #b4b1a7; padding-top: 16px; }
.workbench-note { margin: 0 0 8px; font-size: 12px; line-height: 16px; color: #9f9b90; }
.workbench-mode-tabs { display: inline-flex; align-self: flex-start; margin: 8px 0; padding: 2px; border: 1px solid var(--line); border-radius: 20px; background: #23221c; }
.workbench-mode-tabs button { min-width: 78px; height: 32px; padding: 0 12px; border-radius: 16px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.workbench-mode-tabs button[aria-selected="true"] { background: #11100b; }
.workbench-upload-grid { display: grid; gap: 8px; }
.workbench-upload-grid.reference-upload { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px; min-height: 208px; border-radius: 8px; background: #1f1e19; }
.workbench-upload-grid.frame-upload { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.measured-workbench .upload-zone { min-height: 192px; border: 2px dashed #35332b; background: #171610; }
.measured-workbench .reference-upload .upload-zone { min-height: 160px; border: 1px solid #35332b; }
.measured-workbench .upload-zone-content { max-width: 100%; padding: 12px; text-align: center; }
.measured-workbench .upload-zone-content svg { width: 40px; height: 40px; }
.measured-workbench .reference-upload svg { width: 24px; height: 24px; }
.measured-workbench .upload-zone-content strong { font-size: 16px; font-weight: 500; line-height: 24px; white-space: normal; }
.measured-workbench .reference-upload strong { font-size: 14px; }
.workbench-upload-items { display: flex; flex-wrap: wrap; gap: 8px; }
.uploaded-item { position: relative; width: 96px; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.uploaded-item img, .uploaded-item video { width: 94px; height: 76px; object-fit: cover; display: block; }
.uploaded-item > span { display: block; font-size: 10px; line-height: 16px; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uploaded-item button { position: absolute; right: 2px; top: 2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: #111d; cursor: pointer; }
.uploaded-item button svg { width: 14px; height: 14px; }
/* Image-to-video: independent first/last frame previews; shared upload help overlay. */
.video-frame-field .workbench-upload-grid { gap:16px; }
.measured-workbench .video-frame-zone { position:relative; display:flex; height:192px; min-height:192px; border:1px solid rgba(245,244,239,.12); border-radius:12px; background:#100f09; overflow:hidden; touch-action:pan-y; cursor:pointer; }
.video-frame-zone > input { display:none; }
.video-frame-zone.has-image { cursor:default; }
.video-frame-zone .upload-zone-content { gap:16px; font-family:ui-sans-serif,system-ui,"Microsoft YaHei",sans-serif; }
.video-frame-zone .upload-zone-content[hidden] { display:none; }
.video-frame-zone .upload-preview { position:absolute; inset:0; width:100%; height:100%; border-radius:12px; object-fit:cover; }
.video-frame-zone .video-frame-info { position:absolute; top:8px; right:8px; z-index:20; width:24px; height:24px; background:#100f09cc; border-color:#f5f4ef16; color:#c9c8c5; }
.video-frame-zone .video-frame-info svg { width:14px; height:14px; }
.video-frame-zone .video-frame-info:hover { background:#f5f4ef14; border-color:#f5f4ef16; color:#f5f4ef; }
.video-frame-zone .video-frame-remove { position:absolute; left:12px; top:12px; z-index:20; width:32px; height:32px; display:grid; place-items:center; padding:0; border:1px solid #f5f4ef16; border-radius:50%; background:#100f09d9; color:#f5f4ef; cursor:pointer; }
.video-frame-zone .video-frame-remove[hidden] { display:none; }
.video-frame-zone .video-frame-remove svg { width:16px; height:16px; }
.video-frame-zone .video-frame-remove:hover { background:#28271f; }

.reference-tooltip[data-upload-help="compact"] .video-frame-help-title { font-weight:500; }

/* Image-to-image reference input: observed SeaVid stack; other uploads stay unchanged. */
.measured-workbench .image-reference-zone { position: relative; display: flex; height: 192px; min-height: 192px; border: 2px dashed rgba(245,244,239,.12); border-radius: 8px; background: rgba(245,244,239,.08); overflow: visible; touch-action: pan-y; transition: background-color .3s; }
.measured-workbench .image-reference-zone:hover { background: rgba(245,244,239,.12); }
.image-reference-zone input[type="file"] { display: none; }
.image-reference-zone [hidden] { display: none !important; }
.image-reference-empty { pointer-events: auto; position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; border: 0; background: transparent; cursor: pointer; }
.image-reference-preview { position: absolute; inset: 0; }
.image-reference-stack { position: absolute; width: 80%; height: 80%; left: 10%; top: 10%; }
.image-reference-stack img { position: absolute; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a; }
.image-reference-tools { position: absolute; left: 8px; top: 8px; z-index: 20; display: flex; align-items: center; gap: 8px; }
.image-reference-count { padding: 2px 8px; border-radius: 4px; background: #0009; color: #fff; font-size: 12px; line-height: 16px; }
.image-reference-tools button, .image-reference-clear { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #ffffff1a; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; box-shadow: 0 1px 2px #0000000d; cursor: pointer; transition: background-color .15s; }
.image-reference-tools button:hover, .image-reference-clear:hover { background: #000c; }
.image-reference-tools button:focus-visible, .image-reference-clear:focus-visible { outline: 2px solid #fff9; outline-offset: 2px; }
.image-reference-tools button:disabled { opacity: .5; cursor: default; }
.image-reference-tools button svg, .image-reference-clear svg { width: 16px; height: 16px; }
.image-reference-clear { position: absolute; right: 8px; top: 8px; z-index: 20; }
@media (max-width: 767px) { .image-reference-tools button, .image-reference-clear { width: 44px; height: 44px; } }
@media (max-width: 639px) { .measured-workbench .image-reference-zone { height: 144px; min-height: 144px; } }
.workbench-generate { flex: 0 0 auto; padding: 16px 0 12px; margin-top: 16px; border-top: 1px solid #28261f; }
.measured-workbench .generate-button { height: 48px; margin: 0; font-size: 16px; line-height: 24px; font-weight: 400; background: #aaa9a4; color: #11100b; }
.measured-workbench .cost:empty { display: none; }
.measured-workbench .preview-panel { height: 100%; background: #15140f; }
.measured-workbench .preview-stage { width: min(calc(100% - 64px), 1024px); max-height: calc(100% - 64px); border-radius: 16px; background: #11100b; }
.measured-workbench .studio-video-samples .stage-media { background: #11100b; object-fit: contain; }
.measured-workbench .preview-stage.sample-stage { aspect-ratio: 1024/520; }
.measured-workbench .preview-stage.sample-stage { position: relative; }
.measured-workbench .preview-stage > .preview-sample { position: absolute; inset: 0; min-width: 0; min-height: 0; }
.models-page { padding: 33px 33px 64px; }
.models-heading { margin: 0 auto 40px; }
.models-heading h1 { font: 700 36px/40px "Noto Serif SC", Georgia, serif; }
.models-heading p { margin-top: 8px; font-size: 16px; line-height: 24px; }
.models-page .section-heading { font: 600 24px/32px "Noto Serif SC", Georgia, serif; }
.models-page .section-header { margin-bottom: 16px; }
.models-page .model-section + .model-section { margin-top: 40px; }
.models-page .model-grid { gap: 16px; }
.models-page .model-card { height: 64px; min-height: 64px; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 8px; border-radius: 12px; }
.models-page .model-icon { width: 48px; height: 48px; border-radius: 12px; }
.models-page .model-icon img { width: 24px; height: 24px; }
.models-page .model-title-row strong { font-size: 14px; line-height: 20px; font-weight: 500; }
.models-page .model-meta small { font-size: 12px; line-height: 16px; }
.models-page .new-badge { font-size: 10px; line-height: 14px; padding: 0 6px; border-radius: 999px; background: #91d000; color: #fff; text-transform: none; }
.sidebar-toggle svg { width: 16px; height: 16px; stroke-width: 2; }
.creation-page { min-width: 0; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans", "Helvetica Neue", Arial, Inter, "Segoe UI", Roboto, sans-serif; }
.creation-inner { width: 80.5%; margin-inline: auto; padding: 17px 0 48px; }
.creation-banner { position: relative; overflow: hidden; width: 100%; height: 320px; border: 1px solid var(--line); border-radius: 6px; }
.creation-banner-track { width: 100%; height: 100%; display: flex; transition: transform 450ms ease; will-change: transform; }
.creation-banner-slide { position: relative; width: 100%; height: 100%; flex: 0 0 100%; min-width: 0; min-height: 0; display: grid; grid-template-columns: 46% minmax(0,1fr); overflow: hidden; background: #15140f; }
.creation-banner-slide > a { min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.creation-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creation-banner-copy { min-width: 0; height: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 28px 64px 28px 28px; }
.creation-banner-copy > div { flex: 1; min-width: 0; }
.creation-banner-copy h1 { margin: 0 0 4px; font: 600 24px/32px "Noto Serif SC", Georgia, serif; }
.creation-banner-copy p { margin: 0; font-size: 14px; line-height: 24px; color: #aaa79f; }
.creation-banner-copy button { display: flex; align-items: center; gap: 8px; max-width: 100%; width: max-content; padding: 8px 12px; background: #f5f4ef; color: #15140f; border-radius: 6px; font-size: 14px; line-height: 20px; cursor: pointer; }
.creation-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: #11100be6; border-radius: 6px; cursor: pointer; }
.creation-arrow.previous { left: 12px; }
.creation-arrow.next { right: 12px; }
.creation-arrow svg { width: 16px; height: 16px; }
.creation-banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.creation-banner-dots button { width: 6px; height: 6px; padding: 0; border-radius: 4px; background: #737169; cursor: pointer; }
.creation-banner-dots button.active { width: 20px; background: #f5f4ef; }
.creation-section { margin-top: 36px; }
.creation-banner + .creation-section { margin-top: 37px; }
.creation-section h2 { margin: 0 0 12px; font: 600 18px/28px "Noto Serif SC", Georgia, serif; }
.creation-tools { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.creation-tools > a { position: relative; height: 128px; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.creation-tools > a::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, #15140f, #15140ff2, transparent); }
.creation-tools img { position: absolute; top: 0; right: 0; width: 58%; height: 100%; object-fit: cover; opacity: .75; mask-image: linear-gradient(to right, transparent 0%, black 34%); }
.creation-tools a:hover img { opacity: .95; }
.creation-tools > a > div { position: relative; z-index: 1; }
.creation-tools strong { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 16px; font-weight: 600; }
.creation-tools strong span { min-width: 0; }
.creation-tools strong svg { width: 16px; height: 16px; }
.creation-tools strong .creation-tool-arrow { width: 14px; height: 14px; opacity: 0; transition: opacity 150ms, transform 150ms; }
.creation-tools a:hover .creation-tool-arrow { opacity: 1; transform: translateX(2px); }
.creation-tools p { max-width: 70%; margin: 8px 0 0; font-size: 12px; line-height: 20px; color: #d2cfc7; }
.creation-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.creation-section-heading h2 { margin: 0; }
.creation-section-heading > a { padding: 0 12px; font-size: 14px; line-height: 32px; }
.creation-templates { position: relative; }
.creation-template-track { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; }
.creation-template-track::-webkit-scrollbar { display: none; }
.creation-template-track > a { flex: 0 0 max(256px,12.5vw); width: max(256px,12.5vw); min-width: 0; }
.creation-template-media { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.creation-template-media img, .creation-template-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.creation-template-track h3 { margin: 8px 0 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.creation-template-track p { margin: 0; font-size: 14px; line-height: 20px; color: #aaa79f; }
.creation-templates .creation-arrow { top: 90px; width: 40px; height: 40px; }
.creation-templates .creation-arrow.previous { left: 8px; }
.creation-templates .creation-arrow.next { right: 8px; }
.creation-showcase { margin-top: 44px; }
.creation-showcase-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.creation-showcase-tabs button { height: 32px; padding: 6px 12px; font-size: 14px; line-height: 20px; border-radius: 6px; background: transparent; cursor: pointer; }
.creation-showcase-tabs button.active { background: #28261e; }
.creation-showcase-grid { columns: 4; column-gap: 12px; }
.creation-showcase-card { position: relative; margin: 0 0 12px; break-inside: avoid; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.creation-showcase-card > img { width: 100%; height: auto; display: block; transition: transform 300ms; }
.creation-showcase-card:hover > img { transform: scale(1.02); }
.creation-showcase-card > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 200ms; pointer-events: none; }
.creation-showcase-card.is-playing > video { opacity: 1; }
.creation-showcase-open { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; background: transparent; cursor: pointer; }
.creation-showcase-open:focus-visible { outline: 2px solid #f5f4ef; outline-offset: -2px; }
.creation-showcase-actions { position: absolute; inset: auto 0 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 40px 12px 12px; background: linear-gradient(to top,#000e,#000b,transparent); opacity: 0; visibility: hidden; transition: opacity 150ms; }
.creation-showcase-card:hover .creation-showcase-actions, .creation-showcase-card:focus-within .creation-showcase-actions { opacity: 1; visibility: visible; }
.explore-page { width: 100%; border: 1px solid var(--line); border-radius: 8px 8px 0 0; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif; font-size: 16px; line-height: 24px; }
.explore-inner { padding: 0 24px 24px; }
.explore-heading, .explore-showcase { width: min(100%,1750px); margin-inline: auto; }
.explore-showcase-grid { columns: 4; }
.explore-page .studio-breadcrumb { height: 20px; padding: 0; }
.explore-heading { margin: 4px auto 20px; }
.explore-heading h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 32px; }
.explore-heading p { margin: 4px 0 0; color: #aaa79f; font-size: 14px; line-height: 20px; }
.explore-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.explore-tabs button { height: 32px; padding: 0 12px; border-radius: 6px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; }
.explore-tabs button.active { background: #28261e; }
.creation-remix { display: flex; align-items: center; justify-content: center; min-width: 0; flex: 1; gap: 6px; height: 32px; padding: 0 10px; border-radius: 6px; background: #f5f4ef; color: #15140f; font-size: 14px; font-weight: 500; line-height: 20px; }
.creation-remix span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creation-remix svg { flex-shrink: 0; width: 16px; height: 16px; }
.creation-more, .creation-favorite, .creation-preview-back { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border-radius: 50%; background: #000a; color: #fff; cursor: pointer; }
.creation-more svg, .creation-favorite svg, .creation-preview-back svg { width: 20px; height: 20px; }
.creation-favorite { background: transparent; }
.creation-favorite:hover { background: #ffffff26; }
.creation-favorite[aria-pressed="true"] svg { fill: currentColor; }
.creation-more-menu { position: absolute; right: clamp(8px,calc(100% - 184px),60px); bottom: 58px; z-index: 3; width: 176px; max-width: calc(100% - 16px); padding: 4px; background: #15140f; color: #f5f4ef; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px #0008; }
.creation-more-menu button, .creation-more-menu a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; font-size: 14px; line-height: 20px; font-weight: 400; background: transparent; cursor: pointer; }
.creation-more-menu button:hover, .creation-more-menu a:hover { background: #28261e; }
.creation-more-menu svg { width: 16px; height: 16px; }
.creation-preview-dialog { position: fixed; inset: 0; width: calc(100vw - 32px); height: calc(100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: #0c0c0c; color: #f5f4ef; font-family: ui-sans-serif,system-ui,sans-serif; }
.creation-preview-dialog[open] { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,430px); }
.creation-preview-dialog::backdrop { background: #000c; }
.creation-preview-media { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; background: #000; }
.creation-preview-media video { width: auto; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.creation-preview-back { position: absolute; left: 16px; top: 16px; z-index: 2; }
.creation-preview-dialog aside { display: flex; flex-direction: column; min-height: 0; background: #15140f; border-left: 1px solid var(--line); }
.creation-preview-dialog aside > header { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.creation-preview-dialog h2 { margin: 0; font: 600 16px/24px "Noto Serif SC",Georgia,serif; }
.creation-preview-dialog header p { display: flex; gap: 12px; align-items: center; margin: 8px 0 0; font-size: 12px; line-height: 16px; }
.creation-preview-dialog header p svg { width: 14px; height: 14px; margin-right: -6px; }
.creation-preview-details { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; font-size: 14px; line-height: 24px; }
.creation-prompt-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.creation-prompt-heading h3 { margin: 0; font-size: 14px; line-height: 20px; }
.creation-prompt-heading button { display: grid; place-items: center; width: 32px; height: 32px; background: transparent; cursor: pointer; }
.creation-prompt-heading svg { width: 16px; height: 16px; }
.creation-preview-details > p { margin: 12px 0 0; color: #c2c0b9; white-space: pre-wrap; overflow-wrap: anywhere; }
.creation-preview-details dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.creation-preview-details dt { color: #c2c0b9; }
.creation-preview-details dd { margin: 0; text-align: right; }
.creation-preview-dialog aside > footer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.creation-preview-dialog footer .creation-remix { height: 36px; }
.creation-download { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; }
.creation-download svg { width: 16px; height: 16px; }
.creation-preview-dialog .creation-more-menu { top: 62px; bottom: auto; right: 20px; }
@media (max-width: 1023px) {
  .explore-showcase-grid { columns: 2; }
  .creation-preview-dialog[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0,48dvh) minmax(0,1fr); }
  .creation-preview-dialog aside { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 639px) {
  .explore-page { border: 0; border-radius: 0; }
  .explore-inner { padding: 12px 16px 16px; }
  .explore-page .studio-breadcrumb { height: 34px; }
  .explore-heading { margin-top: 29px; }
  .explore-page .explore-showcase-grid { columns: 1; }
  .creation-preview-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .creation-showcase-actions { gap: 4px; padding-inline: 8px; }
  .creation-showcase-actions .creation-more, .creation-showcase-actions .creation-favorite { width: 32px; height: 32px; flex-basis: 32px; }
  .creation-showcase-actions .creation-remix { padding-inline: 4px; font-size: 12px; }
  .creation-showcase-card .creation-more-menu { right: 8px; min-width: 0; width: calc(100% - 16px); }
}
.music-tag-tabs { display: flex; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.music-tag-tabs button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; background: transparent; font-size: 12px; cursor: pointer; }
.music-tag-tabs button.active { background: #f5f4ef; color: #11100b; }
.music-tag-tabs svg { width: 12px; height: 12px; }
.music-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.music-tags button { border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; font-size: 12px; line-height: 16px; background: #11100b; cursor: pointer; }
.music-tags button.active { background: #f5f4ef; color: #11100b; }
.measured-workbench .audio-stage { width: min(calc(100% - 48px),768px); aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.music-preview { width: 100%; }
.music-preview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.music-preview-heading h2 { margin: 0; font-size: 18px; line-height: 28px; font-weight: 600; }
.music-preview-heading p { margin: 4px 0 0; font-size: 14px; line-height: 20px; }
.music-preview-heading > span { padding: 4px 12px; font-size: 12px; line-height: 16px; border-radius: 20px; background: #2b2922; }
.music-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.music-preview-grid article { min-width: 0; }
.music-preview-cover { position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.music-preview-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.music-preview-cover button { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; background: #11100bdb; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.music-preview-cover button svg { width: 18px; height: 18px; fill: currentColor; }
.music-preview-title { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 10px; }
.music-preview-title strong { min-width: 0; font-size: 14px; line-height: 20px; }
.music-preview-title button { background: transparent; padding: 4px; cursor: pointer; }
.music-preview-title svg { width: 16px; height: 16px; }
.music-preview-grid article > p { margin: 4px 0 0; font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#music-preview-player { width: 100%; height: 36px; margin-top: 12px; }
@media (max-width:700px) {
  .music-preview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .measured-workbench .audio-stage { max-height: none; width: calc(100% - 24px); }
  .measured-workbench:has(.audio-stage) .preview-panel { min-height: 640px; }
}
@media (max-width: 1535px) {
  .creation-showcase-grid,
  .explore-page .explore-showcase-grid { columns: 3; }
}
@media (max-width: 1279px) {
  .creation-banner { height: 288px; }
  .creation-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1023px) {
  .creation-showcase-grid,
  .explore-page .explore-showcase-grid { columns: 2; }
  .creation-banner-copy { grid-template-columns: minmax(0,1fr); align-content: center; gap: 20px; padding: 24px; }
}
@media (max-width: 900px) {
  .measured-workbench .studio-shell { height: auto; grid-template-columns: 340px minmax(0,1fr); padding: 0 12px 12px; }
  .measured-workbench .control-panel, .measured-workbench .preview-panel { height: calc(100dvh - 88px); }
  .measured-workbench .preview-stage { width: calc(100% - 24px); }
  .models-page { padding-inline: 24px; }
  .models-page .model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {

  .creation-inner { width: calc(100% - 48px); padding-inline: 0; }
}
@media (max-width: 700px) {
  .studio-breadcrumb { height: 24px; padding: 0 14px; }
  .measured-workbench .studio-shell { display: flex; flex-direction: column; }
  .measured-workbench .control-panel { width: 100%; height: min(800px,calc(100dvh - 100px)); padding: 16px; }
  .measured-workbench .preview-panel { min-height: 280px; height: 360px; }
  .models-page { padding: 24px 14px; }
  .models-page .model-grid { grid-template-columns: 1fr; }
  .models-page .model-card { min-height: 64px; }
  .creation-inner { width: 100%; padding: 12px 14px 32px; }
  .creation-banner { height: 390px; }
  .creation-banner-slide { grid-template-columns: 1fr; grid-template-rows: 47% minmax(0,1fr); }
  .creation-banner-copy { align-items: flex-start; justify-content: center; padding: 12px 42px 24px 16px; gap: 12px; }
  .creation-banner-copy h1 { font-size: 20px; line-height: 28px; }
  .creation-banner-copy button { font-size: 12px; padding: 6px 10px; }
  .creation-tools > a { height: 120px; padding: 12px; }
  .creation-tools p { max-width: 100%; }
  .creation-template-track > a { flex-basis: 256px; width: 256px; }
  .creation-templates .creation-arrow { top: 72px; }
}
@media (max-width: 639px) {
  .creation-tools { grid-template-columns: minmax(0,1fr); }
  .creation-showcase-grid,
  .explore-page .explore-showcase-grid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .upgrade-button::before { animation: none; }
  .creation-banner-track { transition: none; }
}

/* Accounts and the landing navigation use the same compact workspace language. */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: flex !important; }
.profile-button img, .landing-avatar img { display: block; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.landing-avatar { display: grid; padding: 0; background: transparent; }
.landing-avatar img { width: 32px; height: 32px; }
.landing-popover-wrap { position: relative; }
.landing-popover-wrap .top-popover { top: calc(100% + 9px); }
.landing-language-popover { width: 142px; }
.landing-profile-popover { width: 230px; }
.landing-profile-popover > a, .landing-profile-popover > button { gap: 9px; }
.landing-profile-popover svg { width: 16px; height: 16px; }
.landing-nav { border-bottom: 0; background: transparent; backdrop-filter: none; }
.landing-links { transform: translateX(-26px); }
.landing-nav-item.open > button { background: rgba(255,255,255,.12); }
.landing-nav-item.open .landing-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.landing-model-dropdown { width: 640px; display: block; padding: 8px; }
.landing-nav-item .landing-model-dropdown { top: 40px; left: 0; transform: translateY(8px); }
.landing-nav-item:hover .landing-model-dropdown, .landing-nav-item:focus-within .landing-model-dropdown, .landing-nav-item.open .landing-model-dropdown { transform: translateY(0); }
.landing-menu-routes { display: flex; gap: 16px; align-items: center; padding: 8px 16px 16px; border-bottom: 1px solid #292a25; }
.landing-menu-routes a { flex: 1; white-space: nowrap; }
.landing-menu-label { margin: 16px 24px; color: #aaa9a3; font-size: 11px; }
.landing-menu-models { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px 40px; padding: 0 24px 20px; }
.landing-menu-models a { height: 27px; padding: 3px 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-copy { width: min(820px, calc(100vw - 32px)); margin-top: 1vh; }
.landing-copy h1 { margin: 19px 0 10px; font-size: 34px; line-height: 1.3; font-weight: 500; }
.landing-copy > p { margin-bottom: 24px; font-size: 16px; }
.landing-prompt { width: min(650px, 100%); margin-inline: auto; min-height: 164px; padding: 7px; border-width: 2px; border-radius: 20px; }
.landing-prompt textarea { min-height: 106px; padding: 11px 13px; font-size: 14px; }
.landing-examples { margin-top: 13px; }
.landing-examples span, .landing-examples button { font-size: 12px; }
.landing-mode-menu > div { min-width: 242px; }
.generate-button .cost { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; }
.generate-button .cost svg { width: 15px; height: 15px; }
.generate-button .cost.insufficient { color: #f36363; }

.account-page { min-height: calc(100vh - var(--topbar)); padding: 30px 44px; color: var(--text); }
.account-brand, .account-nav, .account-sidebar-user { display: none; }
body.account-mode .topbar, body.account-mode .sidebar-toggle, body.account-mode .main-nav, body.account-mode .sidebar-bottom { display: none; }
body.account-mode .sidebar { top: 0; width: 205px; border-right: 1px solid var(--line); }
body.account-mode .account-brand { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--text); font-size: 15px; font-weight: 700; }
.account-brand img { width: 22px; height: 26px; }
body.account-mode .account-nav { display: grid; gap: 3px; padding: 0 8px; }
.account-nav small { margin: 12px 4px 5px; color: var(--muted); font-size: 11px; }
.account-nav a { min-height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 5px; color: var(--text); font-size: 12px; }
.account-nav a.active, .account-nav a:hover { background: var(--panel-2); }
.account-nav svg { width: 14px; height: 14px; }
body.account-mode .account-sidebar-user { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-top: 1px solid var(--line); }
.account-sidebar-user img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.account-sidebar-user span { min-width: 0; display: grid; gap: 2px; }
.account-sidebar-user strong, .account-sidebar-user small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.account-sidebar-user small { color: var(--muted); font-size: 10px; }
body.account-mode .content { margin-left: 205px; padding: 0; transition: none; }
.account-page h1 { margin: 30px 0 22px; font-size: 24px; line-height: 1.4; }
.account-breadcrumb { color: var(--muted); font-size: 13px; }
.account-breadcrumb a { color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; max-width: 920px; }
.account-field { min-height: 60px; display: flex; flex-direction: column; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.account-field > label { color: var(--muted); font-size: 12px; }
.account-field > strong { font-size: 14px; font-weight: 400; }
.account-field input:not([type=file]) { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--text); }
.avatar-field { min-height: 108px; }
.avatar-field > div { display: flex; align-items: center; gap: 12px; }
.avatar-field img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avatar-field small { color: var(--muted); font-size: 11px; }
.upload-avatar, .profile-save button, .admin-page button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); color: var(--text); font-size: 13px; cursor: pointer; }
.profile-save { max-width: 920px; min-height: 50px; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.profile-save span { color: var(--muted); font-size: 12px; }
.profile-save button { background: #eee; color: #171714; }
.admin-page { max-width: 1200px; }
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.admin-tabs button { border: 0; border-radius: 0; background: transparent; }
.admin-tabs button.active { border-bottom: 2px solid var(--text); color: var(--text); }
.admin-search { display: grid; gap: 8px; max-width: 350px; margin: 20px 0; font-size: 13px; }
.admin-search input, .admin-model input, #grant-form input { min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--text); }
.admin-users { display: grid; gap: 6px; }
.admin-user { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-user img { width: 36px; height: 36px; border-radius: 50%; }
.admin-user > span { flex: 1; min-width: 0; display: grid; gap: 3px; }
.admin-user small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.admin-user b { min-width: 80px; font-size: 13px; }
#grant-form { display: grid; gap: 10px; max-width: 350px; margin: 16px 0; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
#grant-form[hidden] { display: none; }
#grant-form h2 { margin: 0; font-size: 18px; }
#grant-form label, .admin-model label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.admin-models { display: grid; gap: 5px; }
.admin-model { display: grid; grid-template-columns: minmax(150px,1fr) 90px 140px 95px 65px 60px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.admin-model > strong { font-size: 13px; }
.admin-model input { min-width: 0; width: 100%; }
.admin-model .admin-visible { display: flex; align-items: center; }
.admin-model .admin-visible input { width: auto; }
.provider-intro { max-width: 800px; line-height: 1.6; color: var(--muted); }
.provider-list { display: grid; gap: 0; margin-top: 20px; }
.provider-item { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.provider-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.provider-heading h2 { margin: 0 0 5px; font-size: 18px; }
.provider-heading a { color: var(--text); font-size: 13px; }
.provider-state { color: var(--muted); font-size: 13px; }
.provider-item > p { color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.provider-item form { display: flex; align-items: end; gap: 10px; max-width: 700px; }
.provider-item form label { display: grid; gap: 7px; flex: 1; min-width: 0; color: var(--muted); font-size: 13px; }
.provider-item input { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--text); }
.provider-actions { display: flex; gap: 10px; margin-top: 12px; }
.provider-actions button:disabled { opacity: .45; cursor: not-allowed; }
.provider-result { margin-top: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.provider-result details { max-width: 800px; color: var(--muted); }
.provider-result details p { max-height: 150px; overflow: auto; }
.admin-mode { background: #f5f6f7; color: #20282c; }
.admin-mode > .topbar, .admin-mode > .sidebar, .admin-mode > .mobile-shade { display: none !important; }
.admin-mode .content, .admin-mode.sidebar-collapsed .content { margin: 0; padding: 0; width: 100%; min-height: 100vh; }
.admin-workspace { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.admin-rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #1b2529; color: #e8eef0; border-right: 1px solid #344046; }
.admin-identity { min-height: 70px; display: flex; align-items: center; gap: 11px; padding: 0 22px; border-bottom: 1px solid #344046; font-size: 18px; font-weight: 700; }
.admin-identity img { width: 28px; height: 28px; object-fit: contain; }
.admin-identity b { display: block; font-size: 12px; font-weight: 500; color: #b5c6cb; }
.admin-tabs { display: grid; align-content: start; gap: 4px; padding: 22px 12px; border: 0; }
.admin-tabs small { padding: 0 12px 10px; color: #94a9af; font-size: 12px; }
.admin-tabs button { justify-content: flex-start; gap: 11px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #c3d1d5; text-align: left; font-size: 14px; }
.admin-tabs button svg { width: 18px; height: 18px; }
.admin-tabs button.active, .admin-tabs button:hover { background: #34494e; color: #fff; border: 0; }
.admin-rail-bottom { margin-top: auto; display: grid; gap: 12px; padding: 18px 22px; border-top: 1px solid #344046; }
.admin-rail-bottom a { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.admin-rail-bottom span { color: #94a9af; font-size: 12px; overflow-wrap: anywhere; }
.admin-main { min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 100px; padding: 18px 36px; border-bottom: 1px solid #dce2e3; background: #fff; }
.admin-top span { color: #5c7278; font-size: 12px; }
.admin-top h1 { margin: 6px 0 0; font-size: 24px; line-height: 1.3; }
.admin-top a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #425d64; }
.admin-page { max-width: 1300px; padding: 26px 36px 60px; color: #20282c; --text: #20282c; --muted: #607278; --line: #dce2e3; --panel: #fff; --panel-2: #eef2f3; }
.admin-page button { border-color: #cbd7da; background: #fff; color: #203037; }
.admin-page button:hover { background: #e8f0f1; }
.admin-page .admin-user, .admin-page .admin-model { min-height: 64px; border-bottom-color: #dce2e3; }
.admin-page .admin-search input, .admin-page .admin-model input, .admin-page #grant-form input, .admin-page .provider-item input { background: #fff; color: #20282c; border-color: #cbd7da; }
.admin-page #grant-form { background: #fff; border-color: #dce2e3; }
.admin-page .provider-heading a { color: #247282; }
.admin-gate { padding: 48px; }
.admin-gate a { display: inline-block; margin-right: 16px; color: #247282; }
.ledger-items { margin-top: 20px; }
.ledger-items > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger-items small { display: block; margin-top: 4px; color: var(--muted); }
@media (max-width: 760px) {
  body.account-mode .sidebar { display: none; }
  body.account-mode .content { margin-left: 0; }
  .landing-model-dropdown { width: min(640px, calc(100vw - 24px)); }
  .landing-menu-models { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .landing-copy h1 { font-size: 30px; }
  .account-page { padding: 20px 16px; }
  .profile-grid { grid-template-columns: 1fr; }
  .admin-model { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-model > strong { grid-column: 1 / -1; }
  .provider-heading, .provider-item form { flex-wrap: wrap; }
  .provider-item form label { flex-basis: 100%; }
  .admin-workspace { display: block; }
  .admin-rail { position: static; height: auto; }
  .admin-identity { min-height: 54px; }
  .admin-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px 12px; }
  .admin-tabs small, .admin-rail-bottom { display: none; }
  .admin-tabs button { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 57px; padding: 5px 3px; line-height: 1.2; font-size: 12px; text-align: center; }
  .admin-top { min-height: 72px; padding: 14px 18px; }
  .admin-top h1 { font-size: 20px; }
  .admin-page { padding: 18px 16px 40px; }
  .avatar-field > div { flex-wrap: wrap; }
}

.generation-result {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  width: 100%;
  min-height: 350px;
  padding: 24px;
  text-align: center;
}
.generation-result img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.generation-result video { max-width: 100%; max-height: 70vh; object-fit: contain; }
.generation-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; width: 100%; max-height: 72vh; overflow: auto; }
.generation-result-grid figure { display: grid; justify-items: center; gap: 8px; margin: 0; min-width: 0; }
.generation-result small { max-width: 100%; overflow-wrap: anywhere; color: #999; }
.generation-result a { color: #fff; text-decoration: underline; }

/* SeaVid-style production workbench: the preview follows the selected ratio,
   while the result view expands to hold progress, thumbnails and actions. */
.measured-workbench .generate-button {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(100deg, #f3a85d 0%, #ef6d83 44%, #8d7cf5 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(214, 104, 137, .24);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.measured-workbench .generate-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.24) 50%, transparent 80%);
  transform: translateX(-110%);
  transition: transform .55s ease;
}
.measured-workbench .generate-button:hover:not(:disabled) { filter: saturate(1.12) brightness(1.04); transform: translateY(-1px); box-shadow: 0 11px 26px rgba(214, 104, 137, .32); }
.measured-workbench .generate-button:hover:not(:disabled)::after { transform: translateX(110%); }
.measured-workbench .generate-button.busy { opacity: .82; transform: none; }
.measured-workbench .preview-stage { aspect-ratio: var(--preview-ratio, 16 / 9); transition: aspect-ratio .2s ease; }
.measured-workbench .preview-stage:has(.generation-result) { display: block; width: min(calc(100% - 40px), 1080px); height: calc(100% - 40px); max-height: none; aspect-ratio: auto; padding: 22px; overflow-y: auto; scrollbar-width: thin; }
.measured-workbench .preview-stage:has(.generation-result) > .preview-idle { position: static; }
.preview-idle { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; overflow: auto; }
.measured-workbench .preview-stage .preview-idle > .preview-sample { position: relative; inset: auto; }
.preview-idle > .preview-sample { position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; }
.generation-result { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; min-height: 100%; padding: 0; text-align: left; }
.result-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-status-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.result-status-title .status-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); color: #f5f4ef; }
.result-status-title strong { display: block; font-size: 18px; line-height: 24px; }
.result-status-title small { display: block; margin-top: 3px; color: #a8a69f; font-size: 13px; line-height: 18px; }
.result-job-id { color: #85837c; font: 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.generation-result.running .status-icon { color: #f5b26b; }
.generation-result.running .status-icon svg { animation: result-spin 1.2s linear infinite; }
.generation-result.success .status-icon { color: #89d69b; }
.generation-result.failed .status-icon { color: #f28a8a; }
.generation-result.uncertain .status-icon { color: #efc46c; }
@keyframes result-spin { to { transform: rotate(360deg); } }
.result-progress { width: 100%; height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.result-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f5a36b, #ed7090, #8a7df0); transition: width .45s ease; }
.result-media-frame { width: 100%; min-height: 260px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #0c0c0b; aspect-ratio: var(--preview-ratio, 16 / 9); }
.result-main-media { display: block; width: 100%; height: 100%; max-height: 62vh; object-fit: contain; }
.result-placeholder { display: grid; justify-items: center; gap: 9px; padding: 48px 20px; color: #a8a69f; text-align: center; }
.result-placeholder svg { width: 32px; height: 32px; color: #d9a170; }
.result-placeholder strong { color: #e7e4dc; font-size: 16px; }
.result-placeholder small, .result-error { color: #99978e; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.result-thumbnails { display: flex; gap: 9px; overflow-x: auto; padding: 1px 0 4px; }
.result-thumb { flex: 0 0 72px; width: 72px; height: 56px; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #131310; cursor: pointer; }
.result-thumb.active { border-color: #f0a071; box-shadow: 0 0 0 2px rgba(240,160,113,.23); }
.result-thumb img, .result-thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.result-action { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.055); color: #e8e6df; font-size: 13px; text-decoration: none; cursor: pointer; }
.result-action svg { width: 16px; height: 16px; }
.result-action:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.1); }
.result-action.primary { border-color: transparent; background: linear-gradient(100deg, #ee996d, #db6d8d); color: #fff; }
.result-action.danger { color: #f09b9b; }
.job-queue { width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.job-queue header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.job-queue header h3 { margin: 2px 0 0; color: #ebe8df; font-size: 14px; line-height: 20px; font-weight: 600; }
.job-queue header > span { color: #9b988e; font-size: 12px; }
.job-queue .eyebrow { color: #a8a39a; font-size: 10px; letter-spacing: .12em; }
.job-queue-list { display: grid; gap: 6px; }
.job-queue-item { width: 100%; min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid transparent; border-radius: 9px; background: rgba(255,255,255,.035); color: #d7d4cb; text-align: left; cursor: pointer; }
.job-queue-item:hover, .job-queue-item.active { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.job-queue-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); }
.job-queue-icon svg { width: 15px; height: 15px; }
.job-queue-icon.running { color: #efad74; }.job-queue-icon.success { color: #8fd6a0; }.job-queue-icon.failed { color: #ef8c8c; }.job-queue-icon.uncertain { color: #e7c36f; }
.job-queue-copy { min-width: 0; }.job-queue-copy strong, .job-queue-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-queue-copy strong { color: #e7e4dc; font-size: 12px; line-height: 18px; font-weight: 500; }.job-queue-copy small { color: #97948b; font-size: 11px; line-height: 16px; }
.job-queue-time { color: #8e8c84; font: 11px/16px ui-monospace, SFMono-Regular, Menlo, monospace; }
.asset-delete { margin-top: 7px; display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #b8a3a0; font-size: 12px; cursor: pointer; }
.asset-delete:hover { color: #f09898; }.asset-delete svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .measured-workbench .preview-stage:has(.generation-result) { width: calc(100% - 24px); height: calc(100% - 24px); padding: 14px; }
  .result-status-title strong { font-size: 16px; }
  .result-actions { gap: 7px; }.result-action { flex: 1 1 auto; }
}


/* 2026-09-28 SeaVid parity: production workspace, account assets, notifications */
.studio-breadcrumb {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px 7px;
  color: #8f918d;
  font-size: 14px;
  line-height: 20px;
  background: #1b1c1a;
}
.studio-breadcrumb a { color: #a9aaa6; text-decoration: none; }
.studio-breadcrumb a:hover { color: #f2f2ef; text-decoration: none; }
.studio-breadcrumb [aria-current="page"] { color: #e8e8e4; font-weight: 500; }
.studio-breadcrumb .breadcrumb-separator { display: inline-grid; place-items: center; color: #666864; }
.studio-breadcrumb .breadcrumb-separator svg { width: 13px; height: 13px; }

.measured-workbench { background: #1b1c1a; }
.measured-workbench .studio-shell {
  height: calc(100vh - 90px);
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(340px, 380px) 260px minmax(420px, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
  background: #1b1c1a;
}
.measured-workbench .control-panel,
.measured-workbench .job-column,
.measured-workbench .preview-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid #30322f;
  border-radius: 7px;
  background: #232522;
  box-shadow: none;
}
.measured-workbench .job-column { overflow: hidden; }
.job-queue-shell { height: 100%; display: flex; flex-direction: column; }
.job-queue-shell > header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #353734;
}
.job-queue-shell > header > div { display: grid; gap: 2px; }
.job-queue-shell > header h2 { margin: 0; color: #f0f0ec; font-size: 16px; line-height: 22px; font-weight: 600; }
.job-queue-shell > header span { color: #8c8e89; font-size: 12px; }
.job-queue-shell > header button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #a6a8a3; cursor: pointer; }
.job-queue-shell > header button:hover { background: #30322f; color: #f2f2ef; }
.job-queue-shell > header svg { width: 15px; height: 15px; }
.job-queue-list { flex: 1; min-height: 0; display: block; padding: 7px; overflow-y: auto; }
.job-queue-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  margin: 0 0 5px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #d7d8d3;
  text-align: left;
  cursor: pointer;
}
.job-queue-item:hover { background: #2b2d2a; }
.job-queue-item.active { border-color: #5e625c; background: #333632; }
.job-queue-icon, .job-queue-thumb { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; background: #191a18; }
.job-queue-thumb img, .job-queue-thumb video { width: 100%; height: 100%; object-fit: cover; }
.job-queue-icon svg { width: 17px; height: 17px; }
.job-queue-copy { min-width: 0; }
.job-queue-copy strong, .job-queue-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-queue-copy strong { color: #e8e8e4; font-size: 13px; line-height: 19px; font-weight: 500; }
.job-queue-copy small { color: #8e908b; font-size: 11px; line-height: 17px; }
.job-queue-time { color: #777a75; font-size: 10px; white-space: nowrap; }
.job-queue-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 20px; color: #858782; text-align: center; }
.job-queue-empty svg { width: 27px; height: 27px; }
.job-queue-empty strong { color: #c4c5c0; font-size: 13px; }
.job-queue-empty span { font-size: 11px; }

.measured-workbench .preview-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.preview-toolbar { min-height: 46px; display: flex; align-items: center; justify-content: flex-end; padding: 7px 10px; border-bottom: 1px solid #353734; }
.preview-mode-switch { display: flex; gap: 2px; padding: 3px; border-radius: 6px; background: #191a18; }
.preview-mode-switch button { height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: #92948f; font-size: 12px; cursor: pointer; }
.preview-mode-switch button.active { background: #383b37; color: #f0f0ed; }
.preview-mode-switch svg { width: 14px; height: 14px; }
.measured-workbench .preview-stage,
.measured-workbench .preview-stage:has(.generation-result) {
  flex: 1;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #171816;
  overflow: hidden;
  aspect-ratio: auto;
}
.generation-result { width: 100%; min-height: 0; display: flex; flex-direction: column; gap: 0; padding: 0; }
.result-workspace-head { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #2d2f2c; background: #20221f; }
.result-workspace-head > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.result-workspace-head .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #f1ab72; grid-row: 1 / 3; }
.generation-result.success .status-dot { background: #73ca88; }
.generation-result.failed .status-dot, .generation-result.uncertain .status-dot { background: #e37575; }
.result-workspace-head strong { color: #efefeb; font-size: 13px; line-height: 18px; font-weight: 600; }
.result-workspace-head small, .result-workspace-head > span { color: #858782; font-size: 11px; line-height: 16px; }
.result-focus { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 20px; overflow: hidden; background: #111210; }
.result-focus .result-main-media { min-width: 0; min-height: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 4px; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.result-floating-actions { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 5px; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(27,28,26,.9); backdrop-filter: blur(12px); }
.result-floating-actions button, .result-floating-actions a { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #deded9; cursor: pointer; }
.result-floating-actions button:hover, .result-floating-actions a:hover { background: #3b3e39; color: #fff; }
.result-floating-actions .danger:hover { background: #512d2d; color: #ff9d9d; }
.result-floating-actions svg { width: 16px; height: 16px; }
.result-nav { position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; margin-top: -18px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(20,21,19,.82); color: #fff; cursor: pointer; }
.result-nav.previous { left: 14px; }
.result-nav.next { right: 14px; }
.result-page { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 4px 9px; border-radius: 10px; background: rgba(20,21,19,.82); color: #dddeda; font-size: 11px; }
.result-grid { flex: 1; min-height: 240px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; margin: 0; padding: 16px; overflow-y: auto; border: 1px solid #30322f; border-radius: 16px; background: rgba(21,20,15,.3); }
.result-tile { position: relative; width: 100%; aspect-ratio: 16/9; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #343633; border-radius: 12px; background: #111210; cursor: pointer; }
.result-tile .result-main-media { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.result-tile > span { position: absolute; right: 7px; bottom: 7px; min-width: 22px; padding: 3px 6px; border-radius: 10px; background: rgba(0,0,0,.68); color: #fff; font-size: 10px; }
@media (min-width: 1280px) { .result-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 639px) { .result-grid { grid-template-columns: 1fr; } }
.generation-waiting { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: #aaa; text-align: center; }
.generation-waiting .waiting-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; background: #2b2d2a; color: #f0b47e; }
.generation-waiting.running .waiting-icon svg { animation: result-spin 1.2s linear infinite; }
.generation-waiting strong { color: #f0f0ec; font-size: 18px; }
.generation-waiting p { margin: 7px 0 18px; color: #9b9d98; font-size: 13px; }
.waiting-progress { width: min(360px, 80%); height: 4px; overflow: hidden; border-radius: 2px; background: #30322f; }
.waiting-progress span { display: block; height: 100%; border-radius: inherit; background: #e9a36c; transition: width .25s ease; }
.generation-waiting small { margin-top: 8px; color: #767974; }
.generation-waiting > button { margin-top: 16px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 15px; border: 1px solid #4b4e49; border-radius: 5px; background: #30322f; color: #f1f1ed; }

.measured-workbench .generate-button {
  height: 48px;
  margin: 0;
  border: 1px solid #ecece8;
  border-radius: 6px;
  background: #f3f3ef;
  color: #151613;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
}
.measured-workbench .generate-button::after { display: none; }
.measured-workbench .generate-button:hover:not(:disabled) { background: #fff; filter: none; transform: none; box-shadow: none; }
.measured-workbench .generate-button:disabled { border-color: #444642; background: #323431; color: #8c8e89; cursor: not-allowed; }
.generate-button .cost { margin-left: 4px; color: inherit; }
.generate-button .cost.insufficient { color: #f07f7f; }
.generate-help { display: block; margin-top: 7px; color: #7f817d; font-size: 11px; line-height: 16px; text-align: center; }

.creation-inner { width: auto; max-width: none; margin: 0; padding: 17px 26px 48px; }

body.account-mode .main-nav, body.account-mode .sidebar-bottom { display: none; }
body.account-mode .account-brand, body.account-mode .account-nav, body.account-mode .account-sidebar-user { display: flex; }
body.account-mode .account-nav { display: grid; gap: 4px; padding: 8px 10px; }
.account-nav small { margin: 14px 7px 4px; color: #858782; font-size: 12px; font-weight: 500; }
.account-nav a { min-height: 36px; gap: 10px; padding: 0 10px; border-radius: 6px; color: #c6c7c2; font-size: 14px; }
.account-nav a.active, .account-nav a:hover { background: #313330; color: #f2f2ee; }
.account-nav svg { width: 16px; height: 16px; }
.assets-account-page { max-width: none; min-height: 100dvh; padding: 0; background: #100f09; }
.account-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; color: #8f918d; font-size: 13px; }
.account-breadcrumb a { color: #a9aaa6; }
.account-breadcrumb svg { width: 13px; height: 13px; }
.account-page-heading h1 { margin: 0; color: #f0f0ec; font-size: 26px; line-height: 34px; letter-spacing: 0; }
.account-page-heading p { margin: 6px 0 0; color: #959792; font-size: 14px; }
.asset-category-tabs { display: flex; gap: 26px; margin: 28px 0 18px; border-bottom: 1px solid #343633; }
.asset-category-tabs button { position: relative; min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 1px; border: 0; background: transparent; color: #979994; font-size: 14px; cursor: pointer; }
.asset-category-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.asset-category-tabs button.active { color: #f0f0ec; }
.asset-category-tabs button.active::after { background: #f0f0ec; }
.asset-category-tabs b { min-width: 21px; padding: 1px 6px; border-radius: 10px; background: #30322f; color: #b2b4ae; font-size: 10px; font-weight: 500; }
.account-asset-grid .asset-card { overflow: hidden; border: 1px solid #333532; border-radius: 6px; background: #242623; }
.account-asset-grid .asset-media { position: relative; aspect-ratio: 1 / 1; background: #121310; }
.account-asset-grid .asset-media > img, .account-asset-grid .asset-media > video { width: 100%; height: 100%; object-fit: cover; }
.asset-card-actions { position: absolute; right: 8px; bottom: 8px; left: 8px; display: flex; justify-content: flex-end; gap: 5px; opacity: 0; transform: translateY(5px); transition: .16s ease; }
.asset-card:hover .asset-card-actions, .asset-card:focus-within .asset-card-actions { opacity: 1; transform: none; }
.asset-card-actions button, .asset-card-actions a { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: rgba(24,25,23,.9); color: #ecece8; font-size: 11px; cursor: pointer; }
.asset-card-actions svg { width: 14px; height: 14px; }
.account-asset-grid .asset-info { padding: 10px 11px 12px; }
.account-asset-grid .asset-info strong { color: #e2e3de; font-size: 13px; }
.account-asset-grid .asset-info span { margin-top: 4px; color: #858782; font-size: 10px; }
.account-assets-empty { min-height: 420px; border: 1px dashed #3a3c38; border-radius: 6px; background: #222421; }

.notification-popover {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  z-index: 120;
  width: min(480px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-left: 1px solid #373936;
  border-radius: 0;
  background: #1a1914;
  box-shadow: -18px 0 45px rgba(0,0,0,.28);
  overflow: hidden;
}
.notification-popover[open] { display: flex; flex-direction: column; }
.notification-popover::backdrop { background: rgba(0,0,0,.5); }
.notification-close { position: absolute; z-index: 1; top: 16px; right: 16px; width: 24px; height: 24px; border: 0; background: transparent; color: #a1a1aa; cursor: pointer; }
.notification-close svg { width: 16px; height: 16px; }
.notification-drawer-head { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #353734; }
.notification-drawer-head strong { color: #f0f0ec; font-size: 17px; }
.notification-drawer-head button { border: 0; background: transparent; color: #a5a7a2; font-size: 12px; cursor: pointer; }
.notification-drawer-head button:hover { color: #fff; }
.notification-tabs { height: 56px; flex: 0 0 56px; display: grid; grid-template-columns: 1fr 1fr; padding: 0 48px 0 0; border-bottom: 1px solid #353734; }
.notification-tabs button { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: #969893; font-size: 14px; cursor: pointer; }
.notification-tabs button::after { content: ""; position: absolute; right: 16px; bottom: -1px; left: 16px; height: 2px; background: transparent; }
.notification-tabs button.active { color: #f1f1ed; }
.notification-tabs button.active::after { background: #f1f1ed; }
.notification-content { flex: 1; min-height: 0; padding: 16px; overflow-y: auto; }
.notification-intro, .notification-intro-row p { margin: 0 0 16px; color: #a1a1aa; font-size: 14px; line-height: 20px; }
.notification-intro-row { display: flex; justify-content: space-between; gap: 12px; }
.notification-intro-row button { align-self: flex-start; border: 0; background: transparent; color: #e4e4e7; font-size: 12px; white-space: nowrap; cursor: pointer; }
.notification-news { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid #30322f; }
.notification-news-cover { width: 100%; aspect-ratio: 16/9; overflow: hidden; border: 1px solid #353734; border-radius: 6px; background: #111; }
.notification-news-cover img { width: 100%; height: 100%; object-fit: cover; }
.notification-news header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 8px; }
.notification-news strong { color: #f4f4f5; font-size: 16px; line-height: 24px; }
.notification-news time, .notification-item time { color: #71717a; font-size: 12px; }
.notification-news p { margin: 0 0 16px; color: #a1a1aa; font-size: 14px; line-height: 24px; }
.notification-news a { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 6px; background: #f5f4ef; color: #151515; font-size: 14px; font-weight: 500; }
.notification-item { position: relative; display: block; padding: 16px 0 16px 16px; }
.notification-item strong { display: block; color: #e4e4e7; font-size: 14px; line-height: 20px; font-weight: 500; }
.notification-item p { margin: 4px 0 8px; color: #a1a1aa; font-size: 14px; line-height: 20px; }
.notification-item.unread::before { content: ""; position: absolute; left: 0; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: #f4f4f5; }
.notification-empty { min-height: 280px; display: grid; place-content: center; justify-items: center; gap: 9px; color: #7e807b; }
.notification-empty svg { width: 28px; height: 28px; }
.notification-empty strong { font-size: 13px; font-weight: 500; }

.reward-day.current { border-color: #f5f4ef; background: #1d1c16; }
.reward-day.claimed svg { color: #34d399; }
.reward-button:disabled { opacity: .58; cursor: default; }

.settings-account-page { min-height: 100vh; padding: 0; background: #11120f; }
.account-topbar { height: 58px; display: flex; align-items: center; gap: 9px; padding: 0 24px; border-bottom: 1px solid #2d2f2c; color: #8f918c; font-size: 13px; }
.account-topbar button { width: 30px; height: 30px; display: grid; place-items: center; margin-right: 10px; border: 0; border-radius: 5px; background: transparent; color: #b7b8b3; cursor: pointer; }
.account-topbar button:hover { background: #282a27; color: #fff; }
.account-topbar button svg { width: 17px; height: 17px; }
.account-topbar > svg { width: 13px; height: 13px; }
.account-topbar strong { color: #dadbd6; font-weight: 500; }
.account-page-inner { padding: 34px 44px 60px; }
.account-page-inner > h1 { margin: 0 0 24px; color: #f1f1ed; font-size: 26px; line-height: 34px; font-weight: 600; }
.account-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8d8f8a; }
.account-loading svg { width: 18px; height: 18px; animation: result-spin 1.2s linear infinite; }
.billing-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.billing-summary article { min-height: 72px; display: grid; align-content: center; gap: 4px; padding: 14px 16px; border: 1px solid #30322f; border-radius: 8px; background: #171815; }
.billing-summary span { color: #8e908b; font-size: 12px; }
.billing-summary strong { color: #efefeb; font-size: 15px; }
.account-table-section { margin-top: 26px; }
.account-table-section h2 { margin: 0 0 12px; color: #ededE9; font-size: 19px; font-weight: 600; }
.account-table-wrap { overflow-x: auto; border: 1px solid #30322f; border-radius: 8px; background: #151613; }
.account-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.account-table-wrap th { height: 40px; padding: 0 14px; border-bottom: 1px solid #343633; background: #1d1e1a; color: #a9aaa5; text-align: left; font-weight: 500; white-space: nowrap; }
.account-table-wrap td { height: 66px; padding: 12px 14px; color: #d3d4cf; }
.account-table-wrap td[colspan] { text-align: center; color: #92948f; }
.account-table-pager { min-height: 44px; display: flex; align-items: center; gap: 9px; margin-top: 2px; color: #a4a6a1; font-size: 12px; }
.account-table-pager > button { display: inline-flex; align-items: center; gap: 3px; min-height: 31px; padding: 0 9px; border: 1px solid #2d2f2c; border-radius: 5px; background: transparent; color: #6f716d; }
.account-table-pager > button svg { width: 13px; height: 13px; }
.account-table-pager > b { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 5px; background: #f3f3ef; color: #151613; }
.account-table-pager > div { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.account-table-pager label { display: inline-flex; align-items: center; gap: 6px; }
.account-table-pager input { width: 90px; height: 31px; padding: 0 9px; border: 1px solid #30322f; border-radius: 5px; background: #141512; color: #e5e5e1; }
.account-table-pager select { height: 31px; padding: 0 28px 0 9px; border: 1px solid #30322f; border-radius: 5px; background: #141512; color: #e5e5e1; }
.account-table-pager > div button { height: 31px; padding: 0 10px; border: 0; border-radius: 5px; background: #f1f1ed; color: #151613; }
.security-card { max-width: 100%; display: grid; grid-template-columns: minmax(220px,1fr) repeat(3,minmax(170px,1fr)) auto; align-items: end; gap: 14px; padding: 20px; border: 1px solid #30322f; border-radius: 8px; background: #171815; }
.security-card > div { align-self: center; }
.security-card h2 { margin: 0; color: #efefeb; font-size: 16px; }
.security-card p { margin: 6px 0 0; color: #8e908b; font-size: 12px; }
.security-card label { display: grid; gap: 7px; color: #a8aaa5; font-size: 12px; }
.security-card input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #353734; border-radius: 5px; background: #11120f; color: #ecece8; }
.security-card button { height: 38px; padding: 0 16px; border: 0; border-radius: 5px; background: #f2f2ee; color: #151613; cursor: pointer; white-space: nowrap; }
.security-card button:disabled { opacity: .55; cursor: wait; }
.settings-notice { min-height: 52px; display: flex; align-items: center; padding: 0 16px; border: 1px solid #30322f; border-radius: 8px; background: #171815; color: #aaaCa7; font-size: 13px; }
.dashboard-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.dashboard-summary article { min-height: 104px; display: grid; align-content: center; gap: 8px; padding: 18px; border: 1px solid #30322f; border-radius: 8px; background: #171815; }
.dashboard-summary span { color: #8e908b; font-size: 12px; }
.dashboard-summary strong { color: #f1f1ed; font-size: 28px; font-weight: 600; }
.dashboard-recent { margin-top: 28px; }
.dashboard-recent > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dashboard-recent h2 { margin: 0; color: #ededE9; font-size: 19px; }
.dashboard-recent > div > a { display: inline-flex; align-items: center; gap: 5px; color: #aaaCa7; font-size: 12px; }
.dashboard-recent > div > a svg { width: 14px; height: 14px; }
.dashboard-assets { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.dashboard-assets a { aspect-ratio: 1/1; overflow: hidden; border: 1px solid #30322f; border-radius: 6px; background: #171815; }
.dashboard-assets img, .dashboard-assets video { width: 100%; height: 100%; display: block; object-fit: cover; }
.dashboard-empty { min-height: 180px; display: grid; place-items: center; border: 1px solid #30322f; border-radius: 8px; background: #171815; color: #858782; font-size: 13px; }
body.account-mode.sidebar-collapsed .sidebar { width: 52px; transform: none; overflow: hidden; }
body.account-mode.sidebar-collapsed .content { margin-left: 52px; }
body.account-mode.sidebar-collapsed .account-brand { padding-inline: 10px; overflow: hidden; white-space: nowrap; }
body.account-mode.sidebar-collapsed .account-brand img { flex-shrink: 0; }
body.account-mode.sidebar-collapsed .account-brand :is(strong,span),
body.account-mode.sidebar-collapsed .account-nav small,
body.account-mode.sidebar-collapsed .account-sidebar-user .account-sidebar-trigger > span { display: none; }
body.account-mode.sidebar-collapsed .account-nav { padding-inline: 4px; }
body.account-mode.sidebar-collapsed .account-nav a { justify-content: center; padding: 0; font-size: 0; gap: 0; }
body.account-mode.sidebar-collapsed .account-nav a svg { flex-shrink: 0; }
body.account-mode.sidebar-collapsed .account-sidebar-user { padding: 12px 6px; }
body.account-mode .account-page .profile-grid, body.account-mode .account-page .profile-save { max-width: none; }

@media (max-width: 1180px) {
  .measured-workbench .studio-shell { grid-template-columns: 330px 230px minmax(360px, 1fr); gap: 8px; padding-inline: 10px; }
  .creation-inner { padding-inline: 18px; }
}
@media (max-width: 900px) {
  .measured-workbench .studio-shell { height: auto; min-height: 0; display: flex; flex-direction: column; padding: 0 10px 12px; }
  .measured-workbench .job-column { min-height: 260px; max-height: 420px; }
  .measured-workbench .preview-panel { min-height: 520px; }
  .assets-account-page { padding: 0; }
  .account-page-inner { padding: 28px 24px 48px; }
  .security-card { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .security-card > div { grid-column: 1 / -1; }
}
@media (max-width: 767px) {

  .creation-inner { width: 100%; padding: 12px 12px 32px; }
}
@media (max-width: 700px) {
  .account-page-inner { padding: 24px 14px 40px; }
  .account-topbar { padding-inline: 14px; }
  .billing-summary, .security-card { grid-template-columns: 1fr; }
  .dashboard-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-table-pager { flex-wrap: wrap; }
  .account-table-pager > div { width: 100%; margin-left: 0; }
}

/* Strict SeaVid workbench parity. Idle is two columns; task states are three columns. */
.measured-workbench .studio-shell {
  height: calc(100dvh - var(--topbar) - 17px);
  min-height: 0;
  gap: 12px;
  padding: 0 16px 14px 17px;
  background: #1b1c1a;
}
.measured-workbench .studio-shell.no-job { grid-template-columns: 384px minmax(0, 1fr); }
.measured-workbench .studio-shell.has-job { grid-template-columns: 384px 264px minmax(0, 1fr); }
.measured-workbench .control-panel,
.measured-workbench .job-column,
.measured-workbench .preview-panel { border-color: #30322f; background: #15140f; }
.measured-workbench .preview-panel { height: 100%; }
.measured-workbench .studio-shell.no-job .preview-panel { display: grid; place-items: center; }
.measured-workbench .studio-shell.no-job .preview-stage {
  flex: none;
  width: min(calc(100% - 96px), 1024px);
  height: min(520px, calc(100% - 96px));
  max-height: 520px;
  padding: 0;
  border: 1px solid #30322f;
  border-radius: 16px;
  background: #11100b;
  overflow: hidden;
  aspect-ratio: auto;
}
.measured-workbench .studio-shell.no-job .preview-stage.sample-stage { aspect-ratio: auto; }
.measured-workbench .studio-shell.no-job .preview-idle,
.measured-workbench .studio-shell.no-job .preview-sample { width: 100%; height: 100%; overflow: hidden; }
.measured-workbench .studio-shell.no-job .preview-sample .stage-media { width: 100%; height: 100%; object-fit: contain; }
.measured-workbench .studio-shell.has-job .preview-panel { display: flex; flex-direction: column; }
.measured-workbench .studio-shell.has-job .preview-stage,
.measured-workbench .studio-shell.has-job .preview-stage:has(.generation-result) {
  flex: 1;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #11120f;
  overflow: hidden;
  aspect-ratio: auto;
}
.job-queue-shell > header {
  min-height: 74px;
  position: relative;
  display: block;
  padding: 14px 46px 10px 10px;
  border-bottom: 1px solid #2d2f2c;
}
.job-queue-shell > header .job-queue-clear { position: absolute; top: 13px; right: 10px; border: 1px solid #343633; background: #1b1c19; }
.job-queue-shell > header .job-queue-clear:disabled { opacity: .38; cursor: default; }
.job-queue-shell > header h2 { margin: 0 0 8px; font-size: 14px; line-height: 18px; }
.job-queue-counts { display: flex; gap: 6px; }
.job-queue-counts span { min-width: 29px; height: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 0 6px; border: 1px solid #2c2e2b; border-radius: 5px; color: #a1a39e; font-size: 10px; }
.job-queue-counts svg { width: 12px; height: 12px; }
.job-queue-list { padding: 9px; }
.job-queue-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 118px;
  padding: 9px;
  border: 1px solid #343633;
  border-radius: 8px;
  background: #171815;
}
.job-queue-item:hover, .job-queue-item.active { border-color: #555852; background: #1c1e1b; }
.job-card-head { min-height: 20px; display: flex; align-items: center; gap: 7px; padding-right: 0; }
.job-status { min-height: 20px; display: inline-flex; align-items: center; padding: 0 6px; border: 1px solid #3d403b; border-radius: 5px; color: #c4c6c1; font-size: 10px; line-height: 18px; }
.job-status.success { border-color: #245c38; background: #143923; color: #49d477; }
.job-status.failed, .job-status.uncertain { border-color: #653535; color: #ee8f8f; }
.job-card-head time { color: #a3a59f; font-size: 11px; }
.job-card-head .job-queue-thumb { width: 52px; height: 52px; flex: 0 0 52px; margin-left: auto; }
.job-queue-item > strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #f0f0ec; font-size: 13px; line-height: 19px; font-weight: 500; text-align: left; }
.job-card-meta { display: flex; align-items: center; justify-content: space-between; color: #a0a29d; font-size: 10px; }
.job-card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.job-card-meta svg { width: 12px; height: 12px; }
.job-card-progress { width: 100%; height: 5px; overflow: hidden; border-radius: 3px; background: #343632; }
.job-card-progress i { display: block; height: 100%; border-radius: inherit; background: #f3f3ef; }
.preview-toolbar {
  min-height: 74px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #2d2f2c;
  background: #15140f;
}
.preview-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.preview-summary h2 { flex: 0 0 100%; margin: 0 0 1px; color: #f0f0ec; font-size: 14px; line-height: 18px; font-weight: 600; }
.preview-status, .preview-date, .preview-count { min-height: 23px; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border: 1px solid #30322f; border-radius: 6px; color: #a9aba6; font-size: 10px; }
.preview-status.success { border-color: #245c38; background: #143923; color: #4bd57a; }
.preview-status svg, .preview-date svg, .preview-count svg { width: 12px; height: 12px; }
.preview-controls { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.preview-mode-switch { height: 34px; }
.preview-mode-switch button { width: 31px; height: 28px; justify-content: center; padding: 0; }
.preview-mode-switch button[title] { font-size: 0; }
.preview-pager { height: 34px; display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 6px; background: #191a18; }
.preview-pager button { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #b6b8b2; cursor: pointer; }
.preview-pager button:hover { background: #383b37; color: #fff; }
.preview-pager button:disabled { opacity: .35; cursor: default; }
.preview-pager button:disabled:hover { background: transparent; color: #b6b8b2; }
.preview-pager span { min-width: 38px; color: #d8d9d4; font-size: 11px; text-align: center; }
.preview-pager svg { width: 13px; height: 13px; }
.generation-result { width: 100%; height: 100%; min-height: 0; }
.generation-waiting { width: 100%; height: 100%; padding: 30px; }
.waiting-card { width: min(460px, calc(100% - 32px)); min-width: 0; padding: 20px 22px; border: 1px solid #383a36; border-radius: 8px; background: #151612; }
.waiting-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; }
.waiting-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #444640; border-radius: 50%; background: #30312d; color: #f3f3ef; }
.waiting-icon svg { width: 22px; height: 22px; }
.waiting-row > span:nth-child(2) { min-width: 0; }
.waiting-row strong, .waiting-row small { display: block; }
.waiting-row strong { color: #f1f1ed; font-size: 16px; line-height: 22px; }
.waiting-row small { color: #b0b1ad; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.waiting-row b { min-width: 42px; padding: 4px 8px; border: 1px solid #30322f; border-radius: 12px; color: #c1c2bd; font-size: 11px; font-weight: 500; text-align: center; }
.waiting-card .waiting-progress { width: 100%; height: 6px; margin-top: 18px; }
.waiting-card .waiting-progress span { background: #f3f3ef; }
.waiting-card > button { margin: 16px auto 0; }
.result-complete-shell { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; padding: 12px 12px 24px 24px; }
.result-complete-shell.is-grid { grid-template-rows: minmax(240px,1fr); }
.generation-result:has(.result-complete-shell) { overflow-y: auto; }
.result-focus { min-height: 240px; border: 1px solid #30322f; border-radius: 9px; background: #11120f; }
@media (min-width: 640px) {
  .result-complete-shell { grid-template-rows: minmax(320px,1fr) auto; }
  .result-complete-shell.is-grid { grid-template-rows: minmax(320px,1fr); }
  .result-focus, .result-grid { min-height: 320px; }
}
.result-focus .result-main-media { border-radius: 0; box-shadow: none; }
.result-floating-actions { top: 16px; right: 16px; bottom: auto; gap: 8px; padding: 0; border: 0; background: transparent; }
.result-floating-actions button, .result-floating-actions a { width: 36px; height: 36px; border: 1px solid #30322f; border-radius: 6px; background: rgba(5,5,4,.78); }
.result-thumbnails { min-height: 0; gap: 12px; padding: 12px; border: 1px solid #30322f; border-radius: 16px; background: #11120f; }
.result-thumb { position: relative; flex-basis: 168px; width: 168px; height: 95px; border-radius: 12px; }
.result-thumb span { position: absolute; left: 6px; bottom: 5px; min-width: 18px; padding: 1px 5px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 9px; }
.measured-workbench .generate-button { font-weight: 500; }
.generate-help { display: none !important; }
@media (max-width: 1180px) {
  .measured-workbench .studio-shell.has-job { grid-template-columns: minmax(300px, 34%) minmax(210px, 24%) minmax(0, 1fr); gap: 8px; padding-inline: 10px; }
  .measured-workbench .studio-shell.no-job { grid-template-columns: 330px minmax(360px, 1fr); gap: 8px; padding-inline: 10px; }
}
@media (max-width: 1100px) {
  .measured-workbench .studio-shell.has-job,
  .measured-workbench .studio-shell.no-job { height: auto; display: flex; flex-direction: column; padding: 0 10px 12px; }
  .measured-workbench .job-column { min-height: 260px; max-height: 420px; }
  .measured-workbench .preview-panel { min-height: 520px; }
  .waiting-card { width: min(460px, 90%); min-width: 0; }
}
/* Final measured alignment against the SeaVid idle workbench. */
.measured-workbench .studio-breadcrumb { height: 17px; align-items: flex-start; gap: 4px; padding: 1px 24px 0; background: #1b1c1a; font-size: 14px; line-height: 16px; }
body:has(.measured-workbench) .main-nav a.active { border-color: transparent; background: transparent; box-shadow: none; color: #f1f1ed; }
.workbench-core-heading { display: flex; align-items: center; gap: 7px; }
.workbench-core-heading svg { width: 14px; height: 14px; }
.generate-sparkle { color: #f0a158; font-size: 14px; line-height: 1; }
/* Task-state alignment fixes from the reference screenshots. */
.job-queue-shell > header > .job-queue-counts { display: flex; gap: 6px; }
body:has(.measured-workbench) .main-nav a.active svg { color: #f1f1ed; }


/* Asset cards and account danger zone parity */
.asset-card { position: relative; padding: 0; overflow: visible; background: transparent; border: 0; }
.asset-card .asset-media { position: relative; overflow: hidden; border: 1px solid #30322f; border-radius: 8px; background: #11120f; }
.asset-card .asset-media img, .asset-card .asset-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.asset-info { display: none !important; }
.asset-card-actions { top: 50% !important; right: 10px !important; bottom: auto !important; left: auto !important; display: flex !important; flex-direction: column !important; gap: 8px !important; justify-content: center !important; opacity: 0; transform: translate(6px, -50%) !important; pointer-events: none; }
.asset-card:hover .asset-card-actions, .asset-card:focus-within .asset-card-actions { opacity: 1; transform: translate(0, -50%) !important; pointer-events: auto; }
.asset-card-actions button, .asset-card-actions a { width: 36px !important; min-width: 36px !important; height: 36px !important; padding: 0 !important; display: grid !important; place-items: center !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 999px !important; background: rgba(18,19,16,.82) !important; color: #f3f3ef !important; box-shadow: 0 8px 22px rgba(0,0,0,.32); backdrop-filter: blur(12px); }
.asset-card-actions button:hover, .asset-card-actions a:hover { background: #f2f2ee !important; color: #151613 !important; }
.asset-card-actions svg { width: 17px !important; height: 17px !important; }
.security-auth-note { margin-bottom: 14px; }
.security-danger-card { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid rgba(239,68,68,.32); border-radius: 8px; background: rgba(69,10,10,.16); }
.security-danger-card h2 { margin: 0; color: #f5f5f1; font-size: 16px; font-weight: 600; }
.security-danger-card p { margin: 6px 0 0; color: #b6aaa6; font-size: 12px; }
.security-danger-button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 5px; background: #dc2626; color: #fff; cursor: pointer; white-space: nowrap; }
.security-danger-button:hover { background: #ef4444; }
.account-delete-dialog { width: min(420px, calc(100vw - 32px)); border: 1px solid #343633; border-radius: 10px; padding: 0; background: #171815; color: #eeeeea; box-shadow: 0 24px 80px rgba(0,0,0,.48); }
.account-delete-dialog::backdrop { background: rgba(0,0,0,.58); }
.account-delete-dialog form { position: relative; display: grid; gap: 14px; padding: 24px; }
.account-delete-dialog h2 { margin: 0; font-size: 20px; font-weight: 600; }
.account-delete-dialog p { margin: 0; color: #aaaCa7; font-size: 13px; line-height: 1.6; }
.account-delete-dialog label { display: grid; gap: 8px; color: #aaaCa7; font-size: 12px; }
.account-delete-dialog input { height: 40px; padding: 0 11px; border: 1px solid #353734; border-radius: 5px; background: #11120f; color: #eeeeea; }
.account-delete-dialog footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 2px; }
.account-delete-dialog footer button:first-child, .dialog-close { border: 1px solid #353734; background: transparent; color: #eeeeea; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; padding: 0; cursor: pointer; }
.account-delete-dialog footer button { height: 38px; padding: 0 15px; border-radius: 5px; cursor: pointer; }
@media (max-width: 700px) { .security-danger-card { align-items: stretch; flex-direction: column; } .security-danger-button { width: 100%; } }


/* Waffo application review: public pricing, legal and support pages */
.legal-page > .landing-nav { position: sticky; top: 0; background: rgba(10, 11, 8, .96); }
.legal-page > .content-page { width: min(1040px, calc(100% - 40px)); max-width: 1040px; margin: 0 auto; }
.legal-page .content-page-list article { min-height: 0; align-items: start; }
.legal-page .content-page-list p { max-width: 860px; font-size: 14px; line-height: 1.9; }
.legal-page .content-page-list h2 { font-size: 20px; }
.legal-support-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); }
.legal-support-note svg { width: 20px; color: var(--accent); }
.legal-support-note a, .pricing-review-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pricing-card > .pricing-contact-button { min-height: 43px; display: grid; place-items: center; margin-top: auto; border-radius: 5px; background: var(--cream); color: var(--ink); font-weight: 700; text-align: center; }
.pricing-card.featured > .pricing-contact-button { background: #baff00; }
.pricing-cards.credit-pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-review-note { align-items: center; padding: 18px 0 0; color: var(--muted); }
.pricing-review-note svg { flex: 0 0 auto; width: 20px; color: var(--accent); }
.pricing-controls > span { color: var(--muted); font-size: 13px; }
.pricing-card > button:disabled { opacity: .58; cursor: default; }
@media (max-width: 900px) { .pricing-cards.credit-pack-grid { grid-template-columns: 1fr; } }


/* FLYVG unified brand system: shared proportions across public, studio, account and auth surfaces. */
.brand-wordmark { display:inline-flex; align-items:baseline; gap:5px; white-space:nowrap; font-family:"DM Sans",Inter,ui-sans-serif,sans-serif; font-weight:800; line-height:1; letter-spacing:0; }
.brand-wordmark > strong, .brand-wordmark > span { color:inherit; font:inherit; letter-spacing:0; }
.brand-wordmark > b { color:#9fe66e; font:inherit; font-size:.95em; font-weight:800; letter-spacing:0; }
.brand .brand-wordmark { font-size:20px; }
.brand .brand-wordmark > b, .landing-brand .brand-wordmark > b, .footer-logo .brand-wordmark > b, .account-brand .brand-wordmark > b, .auth-brand-lockup .brand-wordmark > b { color:#b8f16f; font-size:.95em; }
.landing-brand .brand-wordmark { font-size:20px; }
.footer-logo .brand-wordmark { font-size:32px; }
.account-brand .brand-wordmark { font-size:15px; }
.auth-brand-lockup { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:18px; }
.auth-brand-lockup .auth-logo { width:48px; height:48px; margin:0; }
.auth-brand-lockup .brand-wordmark { color:#f7f8f4; font-size:24px; }
@media (max-width:720px) { .brand .brand-wordmark { font-size:18px; } .landing-brand .brand-wordmark { font-size:18px; } .footer-logo .brand-wordmark { font-size:28px; } }


/* 20260929 dashboard and asset parity */
.dashboard-status { color: #8fdaa0 !important; }
.dashboard-actions { margin-top: 30px; }
.dashboard-actions h2 { margin: 0 0 14px; color: #ededE9; font-size: 19px; font-weight: 600; }
.dashboard-actions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dashboard-actions a { min-height: 70px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid #30322f; border-radius: 8px; background: #171815; color: #e8e9e4; transition: border-color .16s ease, background .16s ease; }
.dashboard-actions a:hover { border-color: #494c47; background: #20211e; }
.dashboard-actions a > svg:first-child { width: 19px; height: 19px; color: #b9ef78; }
.dashboard-actions a > svg:last-child { width: 15px; height: 15px; color: #858782; }
.dashboard-actions a span { font-size: 14px; font-weight: 550; }

.account-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.asset-select-toggle { min-width: 68px; height: 34px; padding: 0 16px; border: 1px solid #3b3d39; border-radius: 7px; background: #262825; color: #dedfda; cursor: pointer; }
.asset-select-toggle:hover, .asset-select-toggle.active { border-color: #686b65; background: #333530; color: #fff; }
.asset-category-tabs { gap: 10px; margin: 24px 0 20px; border-bottom: 0; }
.asset-category-tabs button { min-height: 38px; gap: 8px; padding: 0 14px; border: 1px solid #333532; border-radius: 20px; background: #242623; }
.asset-category-tabs button::after { display: none; }
.asset-category-tabs button > svg { width: 15px; height: 15px; }
.asset-category-tabs button.active { border-color: #ecece8; background: #ecece8; color: #151613; }
.asset-category-tabs button.active b { background: #d5d6d0; color: #31322f; }
.asset-selection-bar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; margin: -4px 0 16px; padding: 0 14px; border: 1px solid #343633; border-radius: 8px; background: #242623; color: #dfe0db; font-size: 13px; }
.asset-selection-bar button { height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 6px; background: #efefeb; color: #151613; cursor: pointer; }
.asset-selection-bar button:disabled { opacity: .45; cursor: default; }
.asset-selection-bar svg { width: 14px; height: 14px; }
.account-asset-grid .asset-card { position: relative; border-radius: 10px; background: #171815; transition: border-color .16s ease, box-shadow .16s ease; }
.account-asset-grid .asset-card.selected { border-color: #b9ef78; box-shadow: 0 0 0 2px rgba(185,239,120,.22); }
.account-asset-grid .asset-media { aspect-ratio: var(--asset-ratio, 1 / 1); }
.account-asset-grid .asset-media > img, .account-asset-grid .asset-media > video { object-fit: cover; }
.asset-complete { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 14px; background: rgba(19,20,18,.84); color: #e8e9e4; font-size: 11px; opacity: 0; transition: opacity .16s ease; }
.asset-card-actions { top: 50%; right: 10px; bottom: auto; left: auto; flex-direction: column; transform: translate(6px,-50%); }
.asset-card:hover .asset-card-actions, .asset-card:focus-within .asset-card-actions { transform: translate(0,-50%); }
.asset-card:hover .asset-complete, .asset-card:focus-within .asset-complete { opacity: 1; }
.asset-card-actions button, .asset-card-actions a { width: 34px; min-width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.asset-selection-hit { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: flex-end; padding: 10px; border: 0; background: rgba(10,11,9,.12); color: #fff; cursor: pointer; }
.asset-selection-hit svg { width: 23px; height: 23px; border-radius: 50%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); }
.asset-card.selected .asset-selection-hit { background: rgba(185,239,120,.08); color: #b9ef78; }
@media (max-width: 700px) {
  .dashboard-actions > div { grid-template-columns: 1fr; }
  .account-page-heading { align-items: center; }
  .account-asset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
}


/* 20260930 SeaVid parity restoration: user-authorized scope only. */
.landing-page,
.landing-hero,
.landing-showcase { background-color: #0a0b08; }
.landing-showcase { border: 0; box-shadow: none; }
.landing-brand .brand-wordmark { font-size: 18px; line-height: 22px; letter-spacing: -.35px; }
.landing-links > a,
.landing-nav-item > button { padding-inline: 9px; font-size: 12px; }
.landing-dropdown a { height: 38px; font-size: 12px; }
.landing-menu-models a { font-size: 11px; }
.landing-dropdown a b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 16px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #79c900;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: 1px;
}
.model-ribbon strong { display: flex; align-items: center; }

.creation-inner {
  width: calc(100% - 48px);
  max-width: none;
  margin-inline: auto;
  padding: 17px 0 48px;
}
.creation-tools img { object-position: center 22%; }

.main-nav a { color: #f0f0eb; }
.main-nav a:hover,
.main-nav a.active { color: #fff; }


.notification-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #30322f;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.notification-item.unread { background: transparent; }

@media (max-width: 1180px) {
  .creation-inner { width: calc(100% - 36px); padding-inline: 0; }
}
@media (max-width: 900px) {
}
@media (max-width: 767px) {

  .creation-inner { width: 100%; padding: 12px 12px 32px; }
}


/* 20260930 SeaVid asset selection reconstruction. */
.assets-account-page .account-page-heading { display: block; }
body.account-mode .assets-account-page .account-topbar { height: 56px; padding: 0 24px; gap: 8px; border-bottom: 1px solid rgba(245,244,239,.12); background: #100f09; }
body.account-mode .assets-account-page .account-topbar > button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; margin-left: -4px; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; }
body.account-mode .assets-account-page .account-topbar > button:hover { background: rgba(245,244,239,.08); }
body.account-mode .assets-account-page .account-topbar > button:focus-visible { outline: 2px solid #a1a195; outline-offset: 2px; }
body.account-mode .assets-account-page .account-topbar > button svg { width: 16px; height: 16px; }
.account-topbar .account-header-divider { width: 1px; height: 16px; flex: 0 0 1px; margin: 0 8px; background: rgba(245,244,239,.12); }
body.account-mode .assets-account-page .account-topbar > span:not(.account-header-divider) { font-size: 14px; font-weight: 500; color: #c9c7c1; }
body.account-mode .assets-account-page .account-topbar > strong { font-size: 14px; font-weight: 400; color: #f5f4ef; }
body.account-mode .assets-account-page .account-topbar > svg { width: 14px; height: 14px; }
.assets-account-body { padding: 48px 56px 48px; }
.assets-account-page .account-page-heading h1 { font-size: 24px; line-height: 32px; margin: 0; }
.assets-account-page .account-page-heading p { font-size: 14px; line-height: 20px; margin-top: 4px; }
.assets-account-page .account-assets-empty { min-height: 320px; padding: 80px 0; border: 1px dashed rgba(245,244,239,.12); border-radius: 8px; background: #100f09; }
.assets-account-page .account-assets-empty .asset-empty-icon { display: grid; place-items: center; width: 98px; height: 98px; margin: 0 auto 16px; border: 1px solid rgba(245,244,239,.12); border-radius: 50%; background: #11100b; }
.assets-account-page .account-assets-empty .asset-empty-icon svg { width: 48px; height: 48px; margin: 0; }
.assets-account-page .account-assets-empty strong { display: block; color: #f5f4ef; font-size: 16px; font-weight: 500; line-height: 24px; }
.assets-account-page .account-assets-empty p { max-width: 320px; margin: 4px auto 0; color: #c9c7c1; font-size: 14px; line-height: 20px; }
@media (max-width: 1023px) { .assets-account-body { padding-inline: 40px; } }
@media (max-width: 767px) { body.account-mode .assets-account-page .account-topbar { padding-inline: 16px; } body.account-mode .assets-account-page .account-topbar > span:not(.account-header-divider), body.account-mode .assets-account-page .account-topbar > svg { display: none; } .assets-account-body { padding: 40px 32px; } }
/* The outer workbench includes its introduction and footer, as in SeaVid. */
@media (min-width: 768px) {
  body:not(.landing-mode):not(.account-mode):not(.admin-mode) .content:has(> .studio-page, > .feature-detail-page) {
    margin-top: var(--topbar); margin-right: 8px; margin-bottom: 8px;
    padding-top: 0; padding-right: 0;
    min-height: calc(100dvh - var(--topbar) - 8px);
    border: 1px solid rgba(245,244,239,.10); border-radius: 12px;
  }
}
.route-loading { display: grid; place-items: center; min-height: 180px; padding: 48px 24px; color: #9a9a91; font-size: 14px; }
body.admin-mode .route-loading { color: #66757c; }
.model-card { text-decoration: none; }
.asset-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 32px;
}
.asset-toolbar .asset-category-tabs {
  width: auto;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 8px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #24251f;
}
.asset-toolbar .asset-category-tabs button {
  min-width: 125px;
  height: 36px;
  min-height: 36px;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #8f918b;
  font-size: 14px;
  line-height: 18px;
}
.asset-toolbar .asset-category-tabs button::after { display: none; }
.asset-toolbar .asset-category-tabs button:hover { color: #dedfda; }
.asset-toolbar .asset-category-tabs button.active {
  border-color: transparent;
  background: rgba(245,244,239,.08);
  color: #f5f5f1;
}
.asset-toolbar .asset-category-tabs button > svg {
  width: 14px;
  height: 14px;
}
.asset-tab-count {
  color: #747670;
  font-size: 14px;
  font-weight: 400;
}
.asset-category-tabs button.active .asset-tab-count { color: #aeb0aa; }
.asset-toolbar .asset-select-toggle,
.asset-selection-actions button {
  height: 32px;
  min-width: 50px;
  padding: 0 14px;
  border: 1px solid #3a3c37;
  border-radius: 999px;
  background: transparent;
  color: #e2e3de;
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
  cursor: pointer;
}
.asset-toolbar .asset-select-toggle:hover,
.asset-selection-actions button:hover:not(:disabled) {
  border-color: #62645e;
  background: #252622;
  color: #fff;
}
.asset-selection-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
.asset-selection-actions strong {
  margin-right: 2px;
  color: #e7e8e3;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.asset-selection-actions a.asset-batch-download { min-width: 80px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #454741; border-radius: 999px; color: #f0f0eb; font-size: 12px; font-weight: 600; text-decoration: none; }
.asset-download-status { flex-basis: 100%; color: var(--muted); font-size: 12px; line-height: 1.4; }
.asset-selection-actions .asset-batch-download:disabled {
  border-color: #292b27;
  color: #686a65;
  cursor: default;
}
.asset-grid.account-asset-grid { display: block; columns: 1; column-gap: 24px; }
.account-asset-grid .asset-card { break-inside: avoid; margin: 0 0 24px; width: 100%; }
@media (min-width: 640px) { .asset-grid.account-asset-grid { columns: 2; } }
@media (min-width: 1024px) { .asset-grid.account-asset-grid { columns: 3; } }
@media (min-width: 1280px) { .asset-grid.account-asset-grid { columns: 4; } }
.account-asset-grid .asset-card .asset-media {
  border-radius: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.account-asset-grid .asset-card.selected .asset-media {
  border-color: #f5f5f1;
  box-shadow: 0 0 0 2px #f5f5f1;
}
.asset-selection-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #151613;
  cursor: pointer;
}
.asset-selection-hit:hover { background: rgba(255,255,255,.015); }
.asset-check-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34,36,32,.92);
  box-shadow: 0 2px 7px rgba(0,0,0,.28);
}
.asset-card.selected .asset-check-indicator { background: #f5f5f1; }
.asset-check-indicator svg {
  width: 17px;
  height: 17px;
  color: #171814;
  stroke-width: 2.5;
}

@media (max-width: 700px) {
  .assets-account-page { padding: 0; }
  .assets-account-page .account-breadcrumb { margin: 0 -18px 46px; gap: 11px; }
  .assets-account-page .account-breadcrumb > a,
  .assets-account-page .account-breadcrumb > span:first-of-type { display: none; }
  .assets-account-page .account-page-heading h1 { font-size: 24px; line-height: 32px; }
  .asset-toolbar { align-items: stretch; flex-direction: column; gap: 12px; margin: 22px 0 32px; }
  .asset-toolbar .asset-category-tabs { width: 100%; height: 44px; gap: 8px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
  .asset-toolbar .asset-category-tabs::-webkit-scrollbar { display: none; }
  .asset-toolbar .asset-category-tabs button { min-width: 125px; height: 36px; flex: 0 0 125px; padding-inline: 6px; }
  .asset-toolbar .asset-category-tabs button.active { border-color: transparent; }
  .asset-selection-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-left: 0; }
  .asset-selection-actions strong { flex: 0 0 100%; }
  .asset-toolbar .asset-select-toggle { align-self: flex-start; height: 36px; min-width: 62px; }
  .account-assets-empty { min-height: 324px; background: #1b1c19; }
  .account-assets-empty .asset-empty-icon { width: 96px; height: 96px; display: grid; place-items: center; margin: 0 auto 12px; border: 1px solid #343633; border-radius: 50%; background: #1f211e; }
  .account-assets-empty .asset-empty-icon svg { width: 40px; height: 40px; margin: 0; color: #f1f2ee; }
  .account-assets-empty strong { color: #f1f2ee; font-size: 16px; line-height: 24px; }
  .account-assets-empty p { color: #c5c7c1; font-size: 14px; line-height: 20px; }
    .asset-check-indicator { top: 8px; left: 8px; width: 25px; height: 25px; }
}


/* 20260930 SeaVid selection legacy reset. */
.account-asset-grid .asset-card.selected {
  border-color: transparent;
  box-shadow: none;
}
.account-asset-grid .asset-card.selected .asset-selection-hit {
  background: transparent;
  color: #151613;
}
.account-asset-grid .asset-card.selected .asset-selection-hit:hover {
  background: rgba(255,255,255,.015);
}


/* 20260930 SeaVid live-DOM homepage parity. */
.landing-page {
  background: #0a0b08;
}
.landing-hero {
  min-height: 100vh;
}
.hero-backdrop {
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), transparent 48%, rgba(0,0,0,.40)),
    rgba(0,0,0,.20);
}
.landing-nav {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  height: 56px;
  grid-template-columns: minmax(170px,1fr) auto minmax(170px,1fr);
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.landing-nav.scrolled {
  border-bottom-color: rgba(255,255,255,.09);
  background: rgba(10,11,8,.95);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
.landing-brand {
  gap: 8px;
}
.landing-brand .brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.landing-brand .brand-wordmark {
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
}
.landing-brand .brand-wordmark b {
  font-size: .62em;
}
.landing-links {
  gap: 4px;
  transform: none;
}
.landing-links > a,
.landing-nav-item > button {
  height: 36px;
  margin: 0 4px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.landing-nav-item > button svg {
  width: 14px;
  height: 14px;
}
.landing-dropdown {
  top: 48px;
  width: 480px;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
}
.landing-dropdown.wide {
  width: 680px;
}
.landing-model-dropdown {
  width: 780px;
  padding: 0;
}
.landing-dropdown a {
  min-height: 44px;
  height: auto;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.landing-dropdown a svg {
  width: 16px;
  height: 16px;
}
.landing-menu-routes a {
  min-height: 52px;
}
.landing-menu-label {
  font-size: 11px;
}
.landing-menu-models a {
  min-height: 28px;
  height: auto;
  padding: 0;
  font-size: 14px;
}
.landing-dropdown a b {
  min-width: 22px;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  background: #84cc16;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
}
.landing-copy {
  width: min(900px, calc(100vw - 32px));
  margin-top: 0;
}
.landing-pill {
  padding: 8px 16px;
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(0,0,0,.20);
}
.landing-copy h1 {
  max-width: 900px;
  margin: 24px auto 20px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
}
.landing-copy > p {
  width: min(768px, 100%);
  margin: 0 auto 40px;
  color: rgba(240,239,231,.84);
  font-size: 20px;
  line-height: 1.5;
}
.landing-prompt {
  width: 100%;
  max-width: 900px;
  min-height: 0;
  margin-inline: auto;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 24px;
  background: rgba(255,255,255,.15);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}
.landing-prompt > .landing-prompt-inner {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 16px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 20px;
  background: rgba(0,0,0,.35);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(20px);
}
.landing-prompt-inner textarea {
  min-height: 104px;
  padding: 0 4px;
  font-size: 16px;
  line-height: 24px;
}
.landing-prompt-inner > .landing-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
.landing-mode-menu summary {
  height: 36px;
  min-width: 156px;
  justify-content: space-between;
  border-color: rgba(255,255,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: 13px;
}
.landing-submit {
  width: 36px;
  height: 36px;
}
.landing-examples {
  margin-top: 16px;
  gap: 8px;
}
.landing-examples span {
  padding-inline: 4px;
  color: rgba(255,255,255,.40);
  font-size: 11px;
  letter-spacing: .18em;
}
.landing-examples button {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.70);
  font-size: 12px;
}
.landing-examples button:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}
.landing-showcase {
  border-top: 0;
  background: #0a0b08;
}

@media (max-width: 1200px) {
  .landing-brand .brand-wordmark { font-size: 20px; }
  .landing-links > a,
  .landing-nav-item > button { margin-inline: 1px; padding-inline: 9px; font-size: 13px; }
}
@media (max-width: 700px) {
  .landing-nav { padding-inline: 14px; }
  .landing-brand .brand-mark { width: 36px; height: 36px; }
  .landing-brand .brand-wordmark { font-size: 18px; }
  .landing-copy { width: min(100% - 24px, 900px); }
  .landing-pill { font-size: 12px; }
  .landing-copy h1 { margin-top: 18px; font-size: 30px; }
  .landing-copy > p { display: none; }
  .landing-prompt > .landing-prompt-inner { min-height: 164px; padding: 12px; }
  .landing-prompt-inner textarea { min-height: 92px; font-size: 14px; }
  .landing-mode-menu summary { min-width: 0; }
}

/* Waffo checkout entry */
.pricing-card > button.pricing-contact-button { width: 100%; border: 0; cursor: pointer; }
.pricing-card > button.pricing-contact-button:disabled { cursor: wait; opacity: .72; }
.payment-provider-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 28px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: #17181b;
  color: #f5f5f2;
  box-shadow: 0 28px 90px rgba(0,0,0,.62);
}
.payment-provider-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.payment-provider-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  color: #95979c;
  background: transparent;
}
.payment-provider-close:hover { color: #fff; background: rgba(255,255,255,.07); }
.payment-provider-header { padding-right: 30px; }
.payment-provider-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #b5b7ba;
  font-size: 12px;
  font-weight: 700;
}
.payment-provider-brand img { width: 24px; height: 24px; }
.payment-provider-header h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.payment-provider-header p { margin: 8px 0 0; color: #8e9095; font-size: 13px; line-height: 1.55; }
.payment-provider-options { display: grid; gap: 10px; margin-top: 24px; }
.payment-provider-option {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #34363b;
  border-radius: 8px;
  background: #111215;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.payment-provider-option:hover,
.payment-provider-option.selected { border-color: #73767d; background: #1d1e22; }
.payment-provider-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.payment-provider-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #101109;
  background: #d9ff63;
  font-size: 18px;
  font-weight: 900;
}
.payment-provider-copy { min-width: 0; display: grid; gap: 5px; }
.payment-provider-copy strong { color: #f5f5f2; font-size: 14px; }
.payment-provider-copy small { color: #8f9298; font-size: 11px; line-height: 1.4; }
.payment-provider-option > svg { width: 19px; height: 19px; color: #c7f34f; }
.payment-provider-security {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 15px 2px 0;
  color: #777a80;
  font-size: 11px;
  line-height: 1.45;
}
.payment-provider-security svg { flex: 0 0 auto; width: 14px; height: 14px; color: #a5ca3e; }
.payment-provider-continue {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  border: 0;
  border-radius: 7px;
  color: #11130b;
  background: #d4f65d;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.payment-provider-continue:hover { background: #defb77; }
.payment-provider-continue:disabled { cursor: wait; opacity: .68; }
.payment-provider-dialog.return-state .payment-provider-options { display: none; }
.payment-provider-dialog.return-state .payment-provider-security { margin-top: 24px; }
@media (max-width: 700px) {
  .payment-provider-dialog { width: calc(100vw - 24px); padding: 24px 20px 20px; border-radius: 12px; }
  .payment-provider-brand { margin-bottom: 18px; }
  .payment-provider-header h2 { font-size: 20px; }
  .payment-provider-option { min-height: 68px; padding-inline: 12px; }
  .payment-provider-copy small { white-space: normal; }
}

/* Live plan chooser and credits account */
.pricing-dialog {
  height: min(690px, calc(100dvh - 32px));
  max-height: none;
  padding: 0;
  color: #f4f4f0;
}
.pricing-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.pricing-dialog .pricing-layout { height: calc(100% - 38px); }
.pricing-dialog .pricing-picker { display: flex; flex-direction: column; overflow: hidden; }
.pricing-plan-options { min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.pricing-empty { padding: 28px 0; color: var(--muted); text-align: center; }
.pricing-dialog .choose-plan-button { flex: 0 0 auto; margin-top: 10px; border: 0; cursor: pointer; }
.pricing-dialog .choose-plan-button:disabled { cursor: not-allowed; opacity: .5; }
.pricing-provider-note {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #747872;
  font-size: 12px;
  text-align: center;
}
.pricing-provider-note svg { width: 15px; height: 15px; color: #7db900; }
.payment-currency-picker { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; margin-left: auto; color: #c9cbc5; font-size: 13px; white-space: nowrap; }
.payment-currency-picker select { min-width: 138px; height: 38px; padding: 0 28px 0 12px; border: 1px solid #454840; border-radius: 6px; background: #181a17; color: #f1f2ed; font: inherit; cursor: pointer; }
.pricing-dialog .payment-currency-picker { width: 100%; justify-content: space-between; margin: 10px 0 0; }
.payment-currency-note { display: block; margin-top: 4px; color: #a8aba4; font-size: 12px; }
.checkout-currency-note { display: block; color: #aeb1aa; font-size: 13px; line-height: 1.45; }
.pricing-card .checkout-currency-note { margin: -12px 0 12px; }
.credit-pack-card .checkout-currency-note { margin: 0 0 10px; }
.plan-option > b { gap: 3px; }
.plan-option > b em { font-weight: 400; }

.credits-account { width: 100%; padding-bottom: 72px; }
.account-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.account-title-row h1 { margin: 0; color: #f1f1ed; font-size: 26px; line-height: 34px; font-weight: 600; }
.account-title-row p { margin: 5px 0 0; color: #8e908b; font-size: 13px; }
.credits-billing-link {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #353734;
  border-radius: 7px;
  background: #1a1b18;
  color: #dfe0db;
  font-size: 12px;
  text-decoration: none;
}
.credits-billing-link:hover { border-color: #555950; background: #20211e; color: #f4f4ef; }
.credits-billing-link svg { width: 14px; height: 14px; }
.credit-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.credit-balance-card {
  min-width: 0;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 15px 16px;
  border: 1px solid #30322f;
  border-radius: 8px;
  background: #171815;
}
.credit-balance-card > span { color: #aaaca6; font-size: 12px; }
.credit-balance-card strong { color: #f3f3ee; font-size: 20px; line-height: 1; font-weight: 650; }
.credit-current-plan { margin: 22px 0 0; color: #a5a8a1; font-size: 12px; }
.credit-current-plan strong { color: #dfe0da; font-weight: 500; }
.credits-packs-section { margin-top: 26px; }
.credits-packs-section .account-section-heading > span { color: #858880; font-size: 11px; }
.credit-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.credit-pack-card {
  position: relative;
  min-width: 0;
  min-height: 272px;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid #30322f;
  border-radius: 8px;
  background: #161714;
}
.credit-pack-card.featured { border-color: #e4e5df; }
.credit-pack-name { min-width: 0; display: flex; align-items: center; gap: 7px; }
.credit-pack-name h3 { margin: 0; overflow: hidden; color: #efefea; font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.credit-pack-name span { padding: 2px 6px; border: 1px solid #dedfd9; border-radius: 5px; color: #e8e9e3; font-size: 9px; white-space: nowrap; }
.credit-pack-title { display: flex; align-items: center; gap: 12px; }
.credit-pack-title > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #22251e; color: #b3f000; }
.credit-pack-title svg { width: 17px; height: 17px; }
.credit-pack-title div { min-width: 0; display: grid; gap: 3px; }
.credit-pack-title strong { color: #efefea; font-size: 16px; }
.credit-pack-title small { color: #777a74; font-size: 11px; }
.credit-pack-price { display: flex; align-items: flex-end; gap: 10px; padding: 14px 0 10px; }
.credit-pack-price strong { color: #f4f4ef; font-size: 29px; line-height: 1; font-weight: 650; }
.credit-pack-price strong small { margin-right: 2px; font-size: 17px; }
.credit-pack-card > p { margin: 0; color: #c7c9c2; font-size: 12px; }
.credit-pack-card ul { display: grid; gap: 6px; margin: 26px 0 18px; padding: 0; color: #b8bab4; font-size: 11px; list-style: none; }
.credit-pack-card dl { margin: 0 0 18px; padding: 12px 0; border-top: 1px solid #2c2e2a; border-bottom: 1px solid #2c2e2a; }
.credit-pack-card dl div { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credit-pack-card dt { color: #7d8079; font-size: 11px; }
.credit-pack-card dd { margin: 0; color: #cfd0ca; font-size: 11px; }
.credit-pack-card button { width: 100%; height: 38px; margin-top: auto; border: 1px solid #dfe0db; border-radius: 7px; background: #e9e9e4; color: #171814; font-weight: 650; cursor: pointer; }
.credit-pack-card button:hover { border-color: #b3f000; background: #b3f000; }
.credit-pack-card button:disabled { cursor: wait; opacity: .55; }
.credits-empty { grid-column: 1 / -1; min-height: 110px; display: grid; place-items: center; margin: 0; border: 1px dashed #363834; border-radius: 8px; color: #858880; }
.credits-panel-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #393c35; border-radius: 7px; background: #20221d; color: #b3f000; }
.credits-panel-icon svg { width: 18px; height: 18px; }
.credits-ledger-section { margin-top: 30px; }
.account-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.account-section-heading h2 { margin: 0 0 4px; }
.account-section-heading p { margin: 0; color: #858880; font-size: 11px; }
.credits-ledger-section .account-table-wrap { border: 1px solid #30322f; border-radius: 8px; overflow: hidden; background: #151613; }
.credits-ledger-section table { min-width: 850px; }
.credits-ledger-section th:nth-child(1) { width: 140px; }
.credits-ledger-section th:nth-child(3), .credits-ledger-section th:nth-child(4) { width: 105px; }
.credits-ledger-section th:nth-child(5) { width: 100px; }
.credits-ledger-section th:nth-child(6) { width: 180px; }
.credits-ledger-section .account-table-wrap td { height: 48px; padding-top: 9px; padding-bottom: 9px; }
.credits-ledger-section .credit-delta { font-weight: 650; }
.credits-ledger-section .credit-delta.positive { color: #b3f000; }
.credits-ledger-section .credit-delta.negative { color: #ecece7; }
.credit-type-chip { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border: 1px solid #3b3e38; border-radius: 5px; background: #20211e; color: #c7c9c2; font-size: 10px; white-space: nowrap; }
.credit-source { display: block; color: #d9dad4; font-size: 12px; font-weight: 550; }
.credits-ledger-section td small { display: block; max-width: 290px; margin-top: 4px; overflow: hidden; color: #747871; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.credit-status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border: 1px solid #343733; border-radius: 5px; color: #c8cac3; font-size: 10px; white-space: nowrap; }
.credits-pagination { min-height: 54px; display: flex; align-items: center; justify-content: flex-end; gap: 17px; padding: 8px 12px; border: 1px solid #30322f; border-top: 0; border-radius: 0 0 8px 8px; background: #151613; color: #858880; font-size: 11px; }
.credits-page-buttons, .credits-pagination form, .credits-pagination label { display: flex; align-items: center; gap: 7px; }
.credits-page-buttons button { width: auto; height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid #353733; border-radius: 5px; background: #1d1e1b; color: #d5d6d0; cursor: pointer; }
.credits-page-buttons button:disabled { cursor: not-allowed; opacity: .35; }
.credits-page-buttons svg { width: 13px; height: 13px; }
.credits-page-buttons b { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 5px; background: #b3f000; color: #171913; font-size: 11px; }
.credits-pagination input { width: 48px; height: 28px; padding: 0 6px; border: 1px solid #353733; border-radius: 5px; background: #10110f; color: #dedfd9; text-align: center; }
.credits-pagination form button { height: 30px; padding: 0 10px; border: 1px solid #dedfd9; border-radius: 5px; background: #e5e6e0; color: #171814; cursor: pointer; }
.credits-pagination select { height: 28px; padding: 0 22px 0 8px; border: 1px solid #353733; border-radius: 5px; background: #10110f; color: #dedfd9; }

@media (max-width: 760px) {
  .pricing-dialog { width: 100vw; height: 100dvh; max-width: none; border: 0; border-radius: 0; }
  .pricing-dialog .pricing-layout { display: block; height: calc(100% - 38px); overflow-y: auto; }
  .pricing-dialog .pricing-picker { overflow: visible; border-right: 0; }
  .pricing-dialog .plan-detail { border-top: 1px solid #24262a; }
  .account-title-row { align-items: stretch; flex-direction: column; }
  .credits-billing-link { width: fit-content; }
  .credit-balance-grid, .credit-pack-grid { grid-template-columns: 1fr; }
  .credit-balance-card { min-height: 82px; }
  .credits-pagination { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; gap: 10px 14px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .credit-balance-grid, .credit-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-balance-card.total, .credit-pack-card:last-child { grid-column: span 2; }
}

/* Measured workspace geometry: controls stay separate from queue and preview. */
.measured-workbench .workbench-scroll { padding-right: 10px; }
.measured-workbench .studio-shell.has-job { grid-template-columns: 384px minmax(0, 1fr); }
.preview-workspace { min-width: 0; min-height: 0; height: 100%; display: flex; overflow: hidden; padding: 24px; border: 1px solid #30322f; border-radius: 7px; background: #15140f; }
.preview-workspace .job-column { width: 264px; flex: 0 0 264px; height: 100%; border: 0; border-right: 1px solid #30322f; border-radius: 0; }
.preview-workspace .preview-panel { flex: 1; align-items: stretch; border: 0; border-radius: 0; }
.preview-workspace .preview-toolbar { padding: 12px 12px 12px 16px; }
.preview-workspace .result-focus { padding: 0; border-radius: 16px; }
.preview-workspace .result-focus .result-main-media { object-fit: contain; }
@media (max-width: 1100px) {
  .preview-workspace { height: auto; flex-direction: column; padding: 12px; }
  .preview-workspace .job-column { width: 100%; flex: none; height: auto; max-height: 300px; border-right: 0; border-bottom: 1px solid #30322f; }
  .preview-workspace .preview-panel { flex: none; min-height: 480px; }
}

/* Idle examples use their source geometry, independently of generation controls. */
.measured-workbench .studio-shell.no-job .preview-stage.image-stage {
  aspect-ratio: auto;
}
.measured-workbench .studio-shell.no-job .preview-stage.video-stage {
  aspect-ratio: auto;
}

@media (max-width: 900px) {
  .measured-workbench .studio-shell.has-job,
  .measured-workbench .studio-shell.no-job {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 24px 18px;
    overflow: visible;
  }
  .measured-workbench .control-panel {
    width: 100%;
    height: min(58svh, 720px);
    max-height: min(58svh, 720px);
    min-height: 0;
    flex: 0 0 auto;
    overflow: hidden;
  }
  .measured-workbench .workbench-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 0;
  }
  .measured-workbench .job-column {
    width: 100%;
    min-height: 240px;
    max-height: 400px;
  }
  .measured-workbench .preview-panel {
    width: 100%;
    height: 42svh;
    min-height: 42svh;
  }
  .measured-workbench .studio-shell.has-job .preview-panel {
    height: max(480px, min(75svh, 760px));
    min-height: 480px;
  }
  .measured-workbench .studio-shell.no-job .preview-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 36px;
  }
  .measured-workbench .studio-shell.no-job .preview-stage {
    width: min(calc(100% - 72px), 760px);
    max-height: calc(42svh - 60px);
  }
  .measured-workbench .studio-shell.no-job .video-stage.sample-stage { aspect-ratio: auto; }
  .measured-workbench .workbench-generate { padding-bottom: 9px; }
  .measured-workbench .generate-button { height: 40px; min-height: 40px; flex-basis: 40px; }
  .result-complete-shell { min-height: 0; }
  .pricing-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .pricing-controls > div { width: 100%; margin-right: 0; }
  .pricing-controls > div button,
  .pricing-controls > div a { min-width: 0; flex: 1; justify-content: center; }
  .pricing-controls .payment-currency-picker { width: 100%; justify-content: space-between; margin-left: 0; }
  .credits-ledger-section .account-table-wrap { overflow-x: auto; overflow-y: hidden; }
}

@media (max-width: 620px) {
  .measured-workbench .studio-breadcrumb {
    height: 59px;
    align-items: center;
    padding: 0 12px;
    overflow: hidden;
    white-space: nowrap;
  }
  .measured-workbench .studio-shell.has-job,
  .measured-workbench .studio-shell.no-job { padding-inline: 24px; }
  .measured-workbench .control-panel { padding: 12px; }
  .workbench-options.ratio-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-toolbar {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }
  .preview-controls { width: 100%; justify-content: space-between; margin-top: 2px; }
  .measured-workbench .preview-panel { height: 42svh; min-height: 42svh; }
  .result-complete-shell { gap: 8px; padding: 8px; }
  .result-focus { padding: 8px; }
  .result-floating-actions { top: 8px; right: 8px; }
  .result-thumbnails { min-height: 0; padding: 8px; }
  .result-thumb { width: 132px; height: 75px; flex-basis: 132px; }
  .pricing-page > main { width: calc(100% - 20px); padding-top: 32px; }
  .pricing-banner { padding: 16px; }
  .pricing-card { min-height: 0; padding: 22px 18px 18px; }
  .pricing-card ul { gap: 11px; }
  .credits-account { padding-inline: 12px; }
  .account-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .credits-page-buttons { width: 100%; flex-wrap: wrap; }
  .credits-pagination form,
  .credits-pagination label { flex: 1 1 auto; }
}

.landing-mobile-menu-button,
.sidebar-auth-actions {
  display: none;
}

@media (max-width: 1279px) {
  .landing-links { display: none; }
  .landing-nav {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 14px;
  }

  .landing-mobile-menu-button.icon-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    background: rgba(20, 20, 18, .35);
  }

  .landing-brand { min-width: 0; }
  .landing-account { min-width: 0; }

  body.landing-mode.sidebar-open .sidebar {
    top: 56px;
    z-index: 61;
    width: min(300px, 84vw);
    display: flex;
    overflow-y: auto;
    transform: translateX(0);
  }

  body.landing-mode.sidebar-open .mobile-shade {
    z-index: 60;
    display: block;
    inset: 56px 0 0;
  }

  body.landing-mode.sidebar-open .landing-nav { z-index: 62; }

  .sidebar-auth-actions {
    gap: 8px;
    padding: 14px;
    border-top: 1px solid var(--line-soft);
  }

  body.auth-guest-state .sidebar-auth-actions { display: flex; }
  .sidebar-auth-actions button { flex: 1; min-width: 0; height: 40px; }
}

@media (max-width: 620px) {
  body.auth-guest-state .topbar .login-button,
  body.auth-guest-state .landing-account > .login-button { display: none !important; }

  .topbar .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 7px;
    padding-left: 8px;
  }

  .top-actions { gap: 5px; }
  .top-actions .register-button,
  .landing-account .register-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .landing-nav { gap: 6px; padding-inline: 12px; }
  .landing-brand { gap: 6px; }
  .landing-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .landing-brand .brand-wordmark { font-size: 17px; white-space: nowrap; }
  .landing-account { gap: 6px; }
}


@media (max-width: 620px) {
  .landing-nav {
    column-gap: 16px;
    padding-left: 16px;
    padding-right: 12px;
    background: linear-gradient(90deg, rgba(8, 9, 8, .70), rgba(8, 9, 8, .30));
    backdrop-filter: blur(8px);
  }
  .landing-brand .brand-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .landing-copy {
    width: calc(100% - 56px);
  }
  .landing-copy h1 {
    margin-top: 25px;
    margin-bottom: 60px;
    line-height: 1.26;
  }
  .landing-prompt {
    background: rgba(49, 29, 23, .45);
  }
  .landing-prompt > .landing-prompt-inner {
    background: rgba(24, 18, 16, .25);
  }
  .landing-mode-menu summary {
    width: 42px;
    min-width: 42px;
    justify-content: center;
    padding-inline: 0;
  }
  .landing-mode-menu summary span,
  .landing-mode-menu summary svg:last-child {
    display: none;
  }
  .landing-examples {
    justify-content: center;
  }
  .hero-backdrop {
    background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.13) 40%, rgba(0,0,0,.45) 78%, rgba(0,0,0,.62));
  }

  .creation-page .studio-breadcrumb {
    width: fit-content;
    height: 34px;
    align-items: center;
    gap: 5px;
    margin: 14px 16px 16px;
    padding: 0 12px;
    border: 1px solid #2b2a25;
    border-radius: 999px;
    background: #10100d;
  }
  .creation-page .studio-breadcrumb > :first-child,
  .creation-page .studio-breadcrumb > :nth-child(2) {
    display: none;
  }
  .creation-inner {
    padding: 12px 16px 32px;
  }
  .creation-banner {
    height: auto;
  }
  .creation-banner-track {
    height: auto;
  }
  .creation-banner-slide {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .creation-banner-slide > a {
    width: 100%;
    height: auto;
    aspect-ratio: 1.64;
  }
  .creation-banner-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    height: 200px;
    flex: 0 0 200px;
    padding: 20px;
  }
  .creation-banner-copy h1 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 32px;
  }
  .creation-banner-copy p {
    line-height: 24px;
  }
  .creation-banner-copy button {
    max-width: 100%;
    margin-top: 28px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .creation-banner-dots {
    bottom: 8px;
  }
  .creation-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .creation-tools > a {
    height: 144px;
    padding: 16px;
  }
  .creation-tools p {
    max-width: 68%;
  }
}

@media (max-width: 620px) and (max-height: 700px) {
  .landing-copy {
    transform: translateY(12px);
  }
  .landing-mode-menu > div {
    top: auto;
    bottom: 42px;
    max-height: min(238px, calc(100dvh - 80px));
    overflow-y: auto;
  }
}

.account-mobile-menu-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.account-mobile-menu-button:hover { background: var(--panel-3); }
.account-mobile-menu-button svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .assets-account-page .account-breadcrumb {
    align-items: center;
    min-height: 32px;
  }
  .account-mobile-menu-button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-right: 4px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #d4d5cf;
    cursor: pointer;
  }
  .account-mobile-menu-button svg {
    width: 17px;
    height: 17px;
  }
  body.account-mode .content,
  body.account-mode.sidebar-collapsed .content {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    padding: 0;
  }
  body.account-mode .sidebar,
  body.account-mode.sidebar-collapsed .sidebar {
    top: 0;
    z-index: 61;
    width: min(270px, 84vw);
    display: flex;
    transform: translateX(-100%);
  }
  body.account-mode.sidebar-open .sidebar,
  body.account-mode.sidebar-collapsed.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.account-mode .mobile-shade {
    z-index: 60;
    inset: 0;
  }
  body.account-mode.sidebar-open .mobile-shade {
    display: block;
  }
  .account-table-pager {
    flex-wrap: wrap;
  }
  .account-table-pager > div {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
}

.landing-mobile-scrim,
.landing-mobile-drawer {
  display: none;
}

@media (max-width: 1279px) {
  body.landing-menu-open { overflow: hidden; }
  .landing-page .landing-nav:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
  }
  body.landing-mode .landing-mobile-scrim {
    position: fixed;
    z-index: 63;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, .64);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  body.landing-mode .landing-mobile-drawer {
    position: fixed;
    z-index: 64;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(288px, calc(100vw - 16px));
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid #292a27;
    background: #12130f;
    color: #f3f3ef;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
  }
  body.landing-mode.landing-menu-open .landing-mobile-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.landing-mode.landing-menu-open .landing-mobile-drawer {
    transform: translateX(0);
    visibility: visible;
  }
  .landing-mobile-drawer-header {
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid #2a2b27;
  }
  .landing-mobile-drawer-header a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f3f3ef;
    font-size: 16px;
  }
  .landing-mobile-drawer-header img { width: 32px; height: 32px; }
  .landing-mobile-drawer-header b { color: #b8f16f; }
  .landing-mobile-drawer-header button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #b8b9b3;
    cursor: pointer;
  }
  .landing-mobile-drawer-header button svg { width: 17px; height: 17px; }
  .landing-mobile-drawer-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 16px 24px;
  }
  .landing-mobile-group { padding: 14px 0; }
  .landing-mobile-group + .landing-mobile-group { border-top: 1px solid #292a27; }
  .landing-mobile-group h2 { margin: 0 0 5px; font-size: 14px; line-height: 22px; font-weight: 650; }
  .landing-mobile-routes { display: grid; margin-left: 14px; }
  .landing-mobile-routes a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 7px 0;
    color: #eeeef0;
    font-size: 15px;
    line-height: 22px;
  }
  .landing-mobile-models { display: grid; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #292a27; }
  .landing-mobile-models > span { margin-bottom: 2px; color: #9e9f9a; font-size: 12px; }
  .landing-mobile-models a { display: flex; align-items: center; gap: 6px; min-height: 21px; color: #aeb0aa; font-size: 14px; line-height: 20px; }
  .landing-mobile-routes a:hover,
  .landing-mobile-models a:hover { color: #fff; }
  .landing-mobile-new { padding: 1px 6px; border-radius: 999px; background: #84cc16; color: #fff; font-size: 10px; line-height: 14px; }
  .landing-mobile-drawer-footer { flex: 0 0 56px; display: flex; align-items: center; padding: 8px 12px; border-top: 1px solid #292a27; }
  .landing-mobile-drawer-footer a,
  .landing-mobile-drawer-footer button {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #33352f;
    border-radius: 6px;
    background: #1c1d19;
    color: #eeeef0;
    font-size: 14px;
    cursor: pointer;
  }
}

/* 20261002 pricing and credits end-of-file fidelity overrides. */
body.account-mode .sidebar { width: 252px; }
body.account-mode .content { margin-left: 252px; }
body.account-mode .account-brand { min-height: 62px; padding: 0 20px; font-size: 18px; }
body.account-mode .account-brand img { width: 31px; height: 34px; }
body.account-mode .account-nav { gap: 6px; padding: 14px 14px; }
body.account-mode .account-nav small { margin: 17px 9px 8px; font-size: 14px; }
body.account-mode .account-nav a { min-height: 45px; gap: 12px; padding: 0 var(--sidebar-item-inset); border-radius: 8px; font-size: 16px; }
body.account-mode .account-nav svg { width: 19px; height: 19px; }
body.account-mode .account-sidebar-user { display: block; padding: 8px; }
.account-sidebar-trigger { display: flex; align-items: center; gap: 8px; width: 100%; height: 48px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.account-sidebar-trigger:hover, .account-sidebar-trigger[aria-expanded="true"] { background: rgba(245,244,239,.08); }
.account-sidebar-trigger > span { display: grid; flex: 1; min-width: 0; }
.account-sidebar-trigger > span > :is(strong,small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.account-mode .account-sidebar-user .account-sidebar-trigger > img { width: 32px; height: 32px; flex-shrink: 0; }
.account-sidebar-trigger > svg { width: 16px; height: 16px; flex-shrink: 0; }
.account-sidebar-popover { display: none; position: fixed; top: auto; left: calc(var(--account-sidebar) + 4px); right: auto; bottom: 8px; width: 224px; min-width: 224px; background: #15140f; border-radius: 6px; }
.account-sidebar-popover.open { display: block; }
.sidebar-profile-summary { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid rgba(245,244,239,.12); }
.sidebar-profile-summary img { width: 32px; height: 32px; border-radius: 50%; }
.sidebar-profile-summary > span { min-width: 0; display: grid; }
.sidebar-profile-summary strong { font-size: 14px; }
.sidebar-profile-summary small { font-size: 12px; color: #c9c7c1; }
.account-sidebar-popover .sidebar-language-row > button { width: 100%; min-height: 32px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.account-sidebar-popover .sidebar-language-row > button > svg { width: 16px; height: 16px; }
.account-sidebar-popover .sidebar-language-row > button > svg:last-child { margin-left: auto; }
.account-sidebar-popover .sidebar-language-row > button:hover { background: rgba(245,244,239,.08); }
.account-sidebar-popover .footer-language-menu { position: absolute; left: calc(100% + 4px); right: auto; top: auto; bottom: 35px; }
body.account-mode.sidebar-collapsed .account-sidebar-popover { left: 56px; }
body.account-mode.sidebar-collapsed .account-sidebar-trigger { justify-content: center; padding: 0; }
body.account-mode.sidebar-collapsed .account-sidebar-trigger > svg { display: none; }
@media (max-width: 767px) { .account-sidebar-popover, body.account-mode.sidebar-collapsed .account-sidebar-popover { left: 8px; bottom: 68px; } .account-sidebar-popover .footer-language-menu { left: 0; bottom: 100%; } }
body.account-mode .account-sidebar-user img { width: 40px; height: 40px; }
body.account-mode .account-sidebar-user strong { font-size: 14px; }
body.account-mode .account-sidebar-user small { font-size: 12px; }
body.account-mode .account-topbar { height: 68px; padding: 0 34px; font-size: 15px; }
body.account-mode .account-page-inner { padding: 48px 62px 92px; }
body.account-mode .account-page-inner > h1 { margin-bottom: 34px; font-size: 34px; line-height: 42px; }
body.account-mode .account-title-row h1 { font-size: 34px; line-height: 42px; }

.pricing-page > main { width: min(1320px, calc(100% - 64px)); padding-top: 84px; }
.pricing-page .landing-section-heading h1 { font-size: 36px; }
.pricing-page .landing-section-heading p { font-size: 15px; }
.pricing-cards { gap: 20px; }
.pricing-card { min-height: 610px; padding: 34px 28px 24px; }
.pricing-card h2 { font-size: 25px; }
.pricing-card > p { font-size: 14px; }
.plan-price { margin: 52px 0 26px; }
.plan-price strong { font-size: 46px; }
.pricing-card ul { gap: 16px; padding: 24px 0; font-size: 14px; line-height: 1.45; }
.pricing-card li { gap: 11px; }
.pricing-card li svg { width: 18px; height: 18px; }
.pricing-card > button { min-height: 48px; font-size: 15px; }
.pricing-security-panel { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr); align-items: center; gap: 30px; margin-top: 42px; padding: 26px 30px; border: 1px solid #30342d; border-radius: 10px; background: #151714; }
.pricing-security-copy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pricing-security-copy > svg { flex: 0 0 auto; width: 28px; height: 28px; color: #b8f000; }
.pricing-security-copy div { display: grid; gap: 5px; }
.pricing-security-copy strong { color: #f1f2ed; font-size: 18px; line-height: 1.2; }
.pricing-security-copy span { color: #989b94; font-size: 13px; line-height: 1.5; }
.pricing-payment-logos { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.pricing-payment-logo { min-width: 78px; height: 42px; display: grid; place-items: center; padding: 7px 11px; border: 1px solid #343731; border-radius: 7px; background: #f4f4f0; }
.pricing-payment-logo img { display: block; width: auto; max-width: 94px; height: 27px; object-fit: contain; }
.pricing-faq { margin-top: 78px; padding-bottom: 30px; }
.pricing-faq .landing-section-heading h2 { font-size: 28px; }
.pricing-faq .landing-section-heading p { margin-top: 8px; color: #9a9c95; font-size: 14px; }
.pricing-faq .faq-list { max-width: 920px; margin-top: 26px; }
.pricing-faq .faq-list summary { min-height: 66px; padding-inline: 26px; font-size: 15px; }
.pricing-faq .faq-list details p { margin: -2px 30px 22px 0; padding-left: 26px; font-size: 14px; line-height: 1.7; }
.credits-account { max-width: 1440px; padding-bottom: 92px; }
.credit-balance-grid { gap: 20px; }
.credit-balance-card { min-height: 136px; padding: 25px 28px; gap: 14px; }
.credit-balance-card > span { font-size: 15px; }
.credit-balance-card strong { font-size: 36px; }
.credit-current-plan { margin: 30px 0 0; font-size: 15px; }
.credits-packs-section { margin-top: 42px; }
.account-section-heading { margin-bottom: 21px; }
.account-section-heading h2 { font-size: 25px; }
.account-section-heading p { font-size: 14px; }
.credit-pack-grid { gap: 20px; }
.credit-pack-card { min-height: 360px; padding: 31px 29px 27px; }
.credit-pack-name h3 { font-size: 20px; }
.credit-pack-name span { font-size: 11px; }
.credit-pack-price { padding: 25px 0 16px; }
.credit-pack-price strong { font-size: 42px; }
.credit-pack-card > p { font-size: 15px; }
.credit-pack-card ul { gap: 11px; margin: 31px 0 24px; font-size: 14px; line-height: 1.45; }
.credit-pack-card button { height: 50px; font-size: 16px; }
.credits-account .pricing-security-panel { margin-top: 38px; }
.credits-ledger-section { margin-top: 42px; }
.credits-ledger-section .account-table-wrap { font-size: 14px; }
.pricing-dialog { width: min(980px, calc(100vw - 48px)); height: min(760px, calc(100dvh - 48px)); }
.pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 38px 40px; }
.pricing-dialog .pricing-picker h2 { font-size: 30px; }
.pricing-dialog .pricing-picker > p { font-size: 14px; }
.pricing-dialog .plan-detail h3 { font-size: 54px; }
.pricing-dialog .plan-detail ul { gap: 16px; font-size: 14px; }
.pricing-dialog .pricing-provider-note { min-height: 36px; font-size: 13px; }

@media (max-width: 767px) {
  body.account-mode .sidebar, body.account-mode.sidebar-collapsed .sidebar { width: min(304px, 86vw); }
  body.account-mode .account-nav a { min-height: 44px; font-size: 15px; }
  .pricing-page > main { width: min(100% - 40px, 1320px); }
  .pricing-security-panel { grid-template-columns: 1fr; }
  .pricing-payment-logos { justify-content: flex-start; }
}
@media (max-width: 700px) {
  body.account-mode .account-topbar { height: 62px; padding-inline: 18px; }
  body.account-mode .account-page-inner { padding: 34px 24px 64px; }
  body.account-mode .account-page-inner > h1, body.account-mode .account-title-row h1 { margin-bottom: 28px; font-size: 31px; line-height: 38px; }
  .pricing-page > main { width: calc(100% - 24px); padding-top: 42px; }
  .pricing-page .landing-section-heading h1 { font-size: 30px; }
  .pricing-card { padding: 26px 22px 22px; }
  .pricing-card h2 { font-size: 23px; }
  .plan-price { margin: 36px 0 22px; }
  .plan-price strong { font-size: 42px; }
  .pricing-security-panel { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; padding: 22px 18px; }
  .pricing-security-copy strong { font-size: 17px; }
  .pricing-payment-logos { gap: 8px; }
  .pricing-payment-logo { min-width: 64px; height: 36px; padding: 5px 7px; }
  .pricing-payment-logo img { max-width: 74px; height: 22px; }
  .pricing-faq { margin-top: 54px; }
  .pricing-faq .landing-section-heading h2 { font-size: 24px; }
  .pricing-faq .faq-list summary { min-height: 58px; padding-inline: 18px; font-size: 14px; }
  .pricing-faq .faq-list details p { padding-left: 18px; font-size: 13px; }
  .credit-balance-card { min-height: 118px; padding: 22px; }
  .credit-balance-card strong { font-size: 32px; }
  .credit-pack-card { min-height: 0; padding: 27px 22px 23px; }
  .credit-pack-price strong { font-size: 38px; }
  .credit-pack-card button { height: 48px; font-size: 15px; }
  .pricing-dialog { width: 100vw; height: 100dvh; }
  .pricing-dialog .pricing-picker, .pricing-dialog .plan-detail { padding: 28px 22px; }
  .pricing-dialog .plan-detail h3 { font-size: 42px; }
}
:root .music-results { width:100%; align-self:start; padding:24px; }
.music-results audio,.asset-audio audio { width:100%; min-width:0; }
.music-result-cover { position:relative; overflow:hidden; display:grid; place-items:center; height:128px; background:#1f2025; border-radius:12px; }
.music-result-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.music-result-cover img[hidden] { display:none; }
.music-result-fallback { display:grid; place-items:center; gap:4px; color:#a1a1aa; }
.music-result-fallback svg { width:40px; height:40px; }
.music-result-fallback small { font-size:11px; letter-spacing:.08em; }
.music-results pre { white-space:pre-wrap; font:inherit; max-height:220px; overflow:auto; }
.asset-kind-audio .asset-media { aspect-ratio: auto; }
.asset-audio { width:100%; display:flex; flex-direction:column; min-width:0; }
.asset-audio .music-result-cover { width:100%; height:auto; aspect-ratio:1; border-radius:0; }
.asset-audio .asset-music-title { padding:12px 12px 4px; font-size:14px; line-height:20px; }
.asset-music-cover.wb-music-cover { display: block; position: relative; width: 100%; height: auto; aspect-ratio: 1; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: transparent; cursor: pointer; }
.asset-music-cover.wb-music-cover > .music-result-cover { width: 100%; height: 100%; }
.asset-music-cover:focus-visible { outline: 2px solid #f5f4ef; outline-offset: -3px; }
.asset-music-cover > .asset-music-play { position: absolute; inset: 0; display: grid; place-items: center; background: #11100b33; color: #f5f4ef; }
.asset-music-play svg { width: 44px; height: 44px; padding: 14px; border-radius: 50%; background: #11100bd9; }
.wb-music-player > .music-result-cover { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 6px; }
@media (max-width: 767px) { .wb-music-player > .music-result-cover { width: 56px; height: 56px; flex-basis: 56px; } }
.asset-kind-audio .asset-card-actions { top:8px; bottom:auto; }
.asset-kind-video .asset-card-actions { top:8px; bottom:auto; }
.account-asset-grid .asset-media > video { object-fit:contain; }
/* Community panel remains in the DOM for later reuse; currently no users are provisioned. */
.sidebar-bottom .community-panel,
.sidebar-bottom .community-compact {
  display: none !important;
}
