/* ===== Layout.style.css ===== */

/* 页头工具导航独立定域，避免继承通用链接和原生 disclosure 外观。 */
.desktop-nav.popular-tools-nav { overflow: visible; }
.desktop-nav .popular-tools { position: relative; flex-shrink: 0; }
.desktop-nav .popular-tools-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 7px;
  color: #c8ccd4;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.desktop-nav .popular-tools-trigger::-webkit-details-marker { display: none; }
.desktop-nav .popular-tools-trigger::marker { content: ''; }
.desktop-nav .popular-tools-trigger > svg { flex-shrink: 0; }
.desktop-nav .popular-tools-chevron { color: #9ba39a; transition: transform 160ms ease; }
.desktop-nav .popular-tools[open] .popular-tools-chevron { transform: rotate(180deg); }
.desktop-nav .popular-tools-trigger:hover,
.desktop-nav .popular-tools[open] > .popular-tools-trigger { color: #edf2e9; background: #ffffff0a; }
.desktop-nav .popular-tools:has([aria-current="page"]) > .popular-tools-trigger { color: var(--accent); }
.desktop-nav .popular-tools-links {
  position: absolute;
  inset: calc(100% + 12px) 0 auto auto;
  z-index: var(--z-menu);
  display: grid;
  width: 260px;
  max-width: calc(100vw - 32px);
  gap: 4px;
  padding: 7px;
  border: 1px solid #ffffff1c;
  border-radius: 13px;
  background: #1b1e1b;
  box-shadow: 0 16px 36px #090c0a66;
}
.desktop-nav .popular-tools:not([open]) > .popular-tools-links { display: none; }
.desktop-nav .popular-tools-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px;
  border-radius: 8px;
  color: #e3e8df;
  font-size: 13px;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
}
.desktop-nav .popular-tools-link:hover,
.desktop-nav .popular-tools-link[aria-current="page"] { color: var(--accent); background: #d5eb9e0c; }
.desktop-nav .popular-tools-art {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 38px;
  border: 1px solid #d5eb9e1c;
  border-radius: 8px;
  color: #cbdcaa;
  background: #2b3326;
}
.desktop-nav .popular-tools-art--performance { color: #dac9ac; background: #343027; border-color: #dac9ac1c; }
.desktop-nav .popular-tools-link > svg:last-child { margin-left: auto; color: #929d8d; }
.desktop-nav .popular-tools-trigger:focus-visible,
.desktop-nav .popular-tools-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .desktop-nav .popular-tools-trigger,
  .desktop-nav .popular-tools-link,
  .desktop-nav .popular-tools-chevron { transition: none; }
}


/* ===== Home.style.css ===== */

  .generator-section {
    padding-top: 48px;
    scroll-margin-top: 95px;
  }
  .generator-heading {
    text-align: center;
    margin: 0 auto 34px;
  }
  .generator-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aeb4a7;
    font-size: 11px;
    margin-bottom: 15px;
  }
  .generator-kicker > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }
  h1 {
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.055em;
    line-height: 1.12;
    font-weight: 600;
    margin: 0 0 15px;
  }
  .generator-heading p {
    color: #9ca19c;
    max-width: 620px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.75;
    text-wrap: pretty;
  }
  .home-creation-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .home-editor,
  .home-preview {
    background: #191b1c;
    border: 1px solid #ffffff10;
    border-radius: 14px;
    min-width: 0;
    overflow: hidden;
  }
  .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 17px;
    border-bottom: 1px solid var(--border);
  }
  .panel-heading h2 {
    font-size: 16px;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 600;
  }
  .panel-heading :global(svg) {
    color: var(--accent);
  }
  .editor-content {
    padding: 18px 20px 0;
  }
  .creation-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: #111313;
    border: 1px solid #ffffff09;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
  }
  .creation-modes button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    border-radius: 5px;
    color: #92988f;
    min-height: 34px;
    font-size: 11px;
  }
  .creation-modes button.active {
    background: #30352b;
    color: #e0edc3;
  }
  .home-field {
    display: grid;
    gap: 9px;
    margin-bottom: 19px;
  }
  .home-field label,
  .field-label-row label {
    font-size: 12px;
    font-weight: 500;
    color: #d3d7d0;
  }
  .field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .field-label-row button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #a7b199;
    font-size: 10px;
  }
  textarea {
    width: 100%;
    resize: vertical;
    min-height: 108px;
    max-height: 250px;
    background: #121414;
    border: 1px solid #ffffff13;
    border-radius: 8px;
    color: var(--text);
    padding: 12px;
    font: inherit;
    font-size: 12px;
    line-height: 1.75;
  }
  textarea::placeholder {
    color: #72796f;
  }
  .model-select label {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .model-select label small {
    font-size: 9px;
    letter-spacing: 0.06em;
    color: #858f7a;
  }
  .select-wrap {
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ffffff13;
    border-radius: 8px;
    background: #202321;
    padding: 0 11px;
  }
  .select-wrap > :global(svg) {
    color: #b5bfa9;
    flex-shrink: 0;
    pointer-events: none;
  }
  .select-wrap :global(.select-trigger) {
    border: 0;
    background: transparent;
    padding-inline: 0;
    flex: 1;
  }
  .home-settings {
    border-top: 1px solid var(--border);
  }
  .home-settings summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 12px;
    color: #c1c8b9;
  }
  .home-settings summary span {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .home-settings summary small {
    font-size: 10px;
    color: #858d7f;
  }
  .home-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding-bottom: 15px;
  }
  .home-setting-field {
    display: grid;
    gap: 7px;
    min-width: 0;
  }
  .home-settings-grid label {
    display: grid;
    gap: 7px;
    font-size: 11px;
    color: #aab19f;
  }
  .home-generate-area {
    border-top: 1px solid var(--border);
    padding: 14px 20px 15px;
  }
  .cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;
    color: #959e8d;
    font-size: 10px;
    margin-bottom: 10px;
  }
  .cost-row strong {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--accent);
    font-weight: 500;
  }
  .generate-button {
    width: 100%;
    min-height: 42px;
    font-size: 12px;
    border-radius: 7px;
  }
  .generate-button > :global(svg):last-child {
    margin-left: auto;
  }
  .generate-button > :global(svg):first-child {
    margin-right: auto;
  }
  .full-editor-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
    color: #c5cabb;
    font-size: 11px;
  }
  .permission-note {
    font-size: 9px;
    color: #7d8776;
    line-height: 1.8;
    text-align: center;
    margin: 12px 0 0;
  }
  .permission-note a {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .home-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px dashed #ffffff24;
    background: #131514;
    border-radius: 9px;
    min-height: 139px;
    justify-content: center;
    color: #c3cabb;
    padding: 15px;
  }
  .home-upload > span {
    display: grid;
    place-items: center;
    background: #282f22;
    border-radius: 9px;
    color: var(--accent);
    width: 39px;
    height: 39px;
  }
  .home-upload strong {
    font-weight: 500;
    font-size: 12px;
  }
  .home-upload small {
    font-size: 10px;
    color: #848f7b;
  }
  .home-upload.dragging {
    border-color: var(--accent);
    background: #252c1c;
  }
  .home-reference {
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    height: 150px;
    background: #121414;
  }
  .home-reference img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .home-reference button {
    position: absolute;
    top: 7px;
    right: 7px;
    background: #111d;
    color: white;
  }
  .home-error {
    color: var(--danger);
    font-size: 11px;
    line-height: 1.65;
    margin: 10px 0;
    overflow-wrap: anywhere;
  }
  .credit-link {
    color: var(--accent);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
  }
  .preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    min-height: 66px;
  }
  .preview-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .preview-tabs button {
    border: 0;
    background: none;
    color: #93998e;
    border-radius: 7px;
    min-height: 34px;
    padding: 8px 11px;
    font-size: 11px;
  }
  .preview-tabs button.active {
    background: #2b3222;
    color: #daebb9;
  }
  .preview-toolbar > a {
    display: flex;
    gap: 5px;
    align-items: center;
    color: #949d8b;
    font-size: 10px;
    white-space: nowrap;
  }
  .example-panel,
  .creations-panel {
    padding: 20px;
  }
  .home-preview-stage {
    aspect-ratio: 16/9;
    position: relative;
    background: #0c0e0d;
    border-radius: 9px;
    overflow: hidden;
  }
  .creations-stage {
    min-height: 300px;
  }
  .home-preview-stage > video,
  .home-preview-stage > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .home-preview-stage > img {
    object-fit: cover;
  }
  .preview-media-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #10140edb;
    color: #d6decf;
    border: 1px solid #ffffff19;
    font-size: 9px;
    pointer-events: none;
  }
  .example-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 16px 0 19px;
  }
  .example-description > span {
    display: grid;
    gap: 6px;
  }
  .example-description strong {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .example-description small {
    font-size: 10px;
    color: #8d9686;
    line-height: 1.65;
    max-width: 400px;
  }
  .example-description button {
    background: none;
    border: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: 10px;
    white-space: nowrap;
    padding: 5px 0;
  }
  .example-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .example-picker button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px;
    border: 1px solid #ffffff0e;
    background: #141615;
    border-radius: 7px;
    text-align: left;
  }
  .example-picker button.chosen {
    border-color: #bfdc8370;
    background: #23281f;
  }
  .example-picker img,
  .film-thumb {
    width: 48px;
    height: 43px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .film-thumb {
    display: grid;
    place-items: center;
    background: #39412f;
    color: var(--accent);
  }
  .example-picker button > span:last-child {
    display: grid;
    gap: 5px;
    min-width: 0;
  }
  .example-picker small {
    font-size: 9px;
    color: #7e8975;
  }
  .example-picker strong {
    font-size: 10px;
    font-weight: 500;
    color: #c7cfbf;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .preview-footnote {
    display: flex;
    align-items: center;
    gap: 7px;
    border-top: 1px solid var(--border);
    padding: 13px 20px;
    color: #7e8975;
    font-size: 10px;
  }
  .preview-footnote > span:last-child {
    margin-left: auto;
    font-size: 9px;
  }
  .home-demo-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    color: #849077;
    margin: 18px auto 0;
    line-height: 1.65;
    text-align: center;
  }
  .home-demo-note > span {
    width: 5px;
    height: 5px;
    background: #8eaa68;
    border-radius: 50%;
  }
  .home-demo-note strong {
    font-weight: 500;
    color: #b3bea7;
  }
  .home-task-state {
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
  }
  .task-symbol {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid #d5eb9e23;
    background: #252b1f;
    color: var(--accent);
    border-radius: 16px;
    margin-bottom: 18px;
  }
  .home-task-state h3 {
    font-size: 20px;
    letter-spacing: -0.04em;
    font-weight: 500;
    margin: 0 0 11px;
  }
  .home-task-state p {
    font-size: 12px;
    color: #8d9980;
    max-width: 340px;
    line-height: 1.8;
    margin: 0 0 18px;
  }
  .home-task-state .button {
    font-size: 11px;
    min-height: 35px;
  }
  .home-result-play {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: #0c0e0d;
  }
  .home-result-play > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
  }
  .home-result-play > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    background: #101810a8;
    color: var(--accent);
  }
  .creation-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    font-size: 12px;
    color: #bbc6af;
  }
  .creation-result-meta > a {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #9cae89;
  }
  .creation-result-meta small {
    display: block;
    max-width: 250px;
    font-size: 10px;
    color: #839377;
  }
  .home-task-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 16px;
  }
  .home-task-list button {
    display: flex;
    gap: 6px;
    align-items: center;
    background: #111410;
    border: 1px solid #ffffff0e;
    border-radius: 6px;
    padding: 10px;
    color: #a6b698;
    font-size: 10px;
  }
  .home-task-list button.selected {
    border-color: #bcd78366;
  }
  .home-task-list small {
    margin-left: auto;
    font-size: 9px;
    color: #77876a;
  }
  @media (min-width: 1450px) {
    .home-creation-grid {
      grid-template-columns: 355px minmax(0, 1fr);
    }
    .generator-section {
      padding-top: 55px;
    }
  }
  @media (max-width: 1050px) {
    .home-creation-grid {
      grid-template-columns: 310px minmax(0, 1fr);
      gap: 14px;
    }
    .example-panel,
    .creations-panel {
      padding: 15px;
    }
    .example-picker img,
    .film-thumb {
      width: 32px;
      height: 36px;
    }
    .example-description {
      align-items: flex-start;
    }
    .preview-toolbar {
      padding-inline: 15px;
    }
    .home-task-state h3 {
      font-size: 18px;
    }
  }
  @media (max-width: 760px) {
    .generator-section {
      padding-top: 30px;
    }
    .generator-heading {
      margin-bottom: 25px;
    }
    .generator-heading p {
      font-size: 12px;
      max-width: 470px;
    }
    .generator-kicker {
      font-size: 10px;
      margin-bottom: 12px;
    }
    .home-creation-grid {
      grid-template-columns: 1fr;
    }
    .generator-heading h1 {
      font-size: 34px;
    }
    .home-task-state {
      min-height: 210px;
    }
    .example-description {
      gap: 10px;
    }
    .example-description strong {
      font-size: 11px;
    }
    .example-description small {
      font-size: 9px;
    }
    .home-demo-note {
      font-size: 9px;
    }
    .home-task-state h3 {
      font-size: 17px;
    }
    .home-task-state p {
      font-size: 11px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    :global(.spin) {
      animation: none;
    }
  }


/* ===== HomeSections.style.css ===== */

  .home-sections {
    --section-accent: var(--accent, #d5f590);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .content-section {
    padding: 70px 0;
    border-top: 1px solid #ffffff0c;
    scroll-margin-top: 100px;
  }
  .section-intro {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 34px;
  }
  h2 {
    font-size: clamp(25px, 2.65vw, 37px);
    line-height: 1.22;
    font-weight: 550;
    letter-spacing: -1.15px;
    margin-bottom: 14px;
  }
  .section-intro p,
  .feature-copy > p,
  .final-section p {
    color: #9b9d98;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0;
  }
  h3 {
    letter-spacing: -0.35px;
    font-size: 17px;
    font-weight: 550;
    line-height: 1.4;
  }
  .overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .overview-item {
    padding: 24px 22px;
    border: 1px solid #ffffff12;
    background: #151614;
    border-radius: 12px;
  }
  .outline-icon {
    display: inline-flex;
    color: var(--section-accent);
    margin-bottom: 20px;
  }
  .overview-item h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .overview-item p,
  .step p {
    color: #9b9d98;
    line-height: 1.8;
    font-size: 12px;
    margin: 0;
  }
  .inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 18px;
  }
  .inspiration-card {
    border: 0;
    padding: 0;
    background: none;
    text-align: left;
    min-width: 0;
  }
  .inspiration-image {
    position: relative;
    overflow: hidden;
    border-radius: 11px;
    aspect-ratio: 1.6;
    background: #1b1d19;
  }
  .inspiration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
  }
  .inspiration-card:hover img {
    transform: scale(1.035);
  }
  .photo-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #10120ed6;
    border: 1px solid #ffffff20;
    padding: 5px 8px;
    border-radius: 5px;
    color: #e6e8e0;
    font-size: 9px;
  }
  .image-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border: 1px solid #ffffff33;
    background: #11140edb;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
  }
  .inspiration-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px 0;
  }
  .inspiration-caption h3 {
    margin: 0;
    font-size: 14px;
  }
  .inspiration-caption > span {
    color: #8f9289;
    font-size: 10px;
  }
  .section-note {
    color: #898d83;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
    margin: 21px auto 0;
    max-width: 860px;
  }
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-top: 9px;
  }
  .step {
    border-top: 1px solid #3a3e32;
    padding: 22px 0 0;
  }
  .step-number {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--section-accent);
  }
  .step h3 {
    margin: 17px 0 12px;
  }
  .inline-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: none;
    border: 0;
    padding: 0;
    color: var(--section-accent);
    font-size: 12px;
    line-height: 1.6;
  }
  .inline-link:hover {
    color: #edfcd4;
  }
  .centered-link {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 28px auto 0;
  }
  .features-section {
    display: grid;
    gap: 56px;
  }
  .feature-row {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    align-items: center;
    gap: 70px;
  }
  .feature-row.reverse .feature-visual {
    order: 2;
  }
  .feature-row.reverse .feature-copy {
    order: 1;
  }
  .feature-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1b1d19;
  }
  .feature-visual > img {
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
  }
  .visual-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    background: #151811d9;
    color: #e2e7db;
    border: 1px solid #ffffff26;
    border-radius: 6px;
    font-size: 10px;
    padding: 7px 10px;
  }
  .section-kicker {
    display: block;
    color: var(--section-accent);
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 15px;
  }
  .feature-copy h2 {
    max-width: 430px;
    font-size: clamp(25px, 2.7vw, 37px);
  }
  .feature-copy > p {
    font-size: 13px;
  }
  .feature-copy ul {
    list-style: none;
    padding: 0;
    margin: 23px 0;
    display: grid;
    gap: 12px;
  }
  .feature-copy li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #babeb1;
    font-size: 12px;
    line-height: 1.6;
  }
  .feature-copy li :global(svg) {
    flex-shrink: 0;
    color: var(--section-accent);
    margin-top: 1px;
  }
  .plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: auto;
  }
  .plan-summary {
    border: 1px solid #ffffff19;
    border-radius: 12px;
    background: #151614;
    padding: 26px;
  }
  .plan-summary h3 {
    margin-bottom: 24px;
  }
  .plan-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 20px;
  }
  .plan-price strong {
    font-size: 36px;
    font-weight: 550;
    letter-spacing: -1px;
  }
  .plan-price span {
    font-size: 11px;
    color: #969b8f;
  }
  .plan-credits {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #b6bdad;
    font-size: 11px;
    line-height: 1.6;
  }
  .plan-credits :global(svg) {
    margin-right: 3px;
    color: var(--section-accent);
  }
  .plan-credits strong {
    font-weight: 600;
    color: #e2e8db;
  }
  .plan-link {
    border: 1px solid #ffffff23;
    border-radius: 7px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 12px;
    font-size: 11px;
    margin-top: 23px;
  }
  .plan-link:hover {
    border-color: #b7ce8d;
    color: var(--section-accent);
  }
  .faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #ffffff18;
  }
  .faq-list details {
    border-bottom: 1px solid #ffffff18;
  }
  .faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    line-height: 1.5;
    padding: 22px 0;
  }
  .faq-list summary :global(svg) {
    flex-shrink: 0;
    color: #8f9487;
    transition: transform 0.2s ease;
  }
  .faq-list details[open] summary :global(svg) {
    transform: rotate(180deg);
  }
  .faq-list details > p {
    margin: 0 35px 23px 0;
    color: #9b9d98;
    font-size: 13px;
    line-height: 1.9;
  }
  .guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
  }
  .guide-card {
    overflow: hidden;
    border: 1px solid #ffffff14;
    background: #151614;
    border-radius: 12px;
  }
  .guide-card:hover {
    border-color: #748653;
  }
  .guide-card > img {
    width: 100%;
    height: 175px;
    object-fit: cover;
  }
  .guide-card > div {
    padding: 22px;
  }
  .guide-kind {
    color: #9ba48c;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    margin-bottom: 14px;
  }
  .guide-card h3 {
    font-size: 16px;
    margin: 0 0 10px;
  }
  .guide-card p {
    color: #969d8d;
    font-size: 12px;
    line-height: 1.8;
    min-height: 44px;
    margin-bottom: 20px;
  }
  .theme-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .theme-list button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #ffffff17;
    border-radius: 8px;
    padding: 17px 18px;
    color: #cdd3c2;
    font-size: 12px;
    background: #171915;
    text-align: left;
  }
  .theme-list button:hover {
    border-color: #798b56;
    background: #1c2116;
    color: var(--section-accent);
  }
  .theme-list :global(svg) {
    flex-shrink: 0;
  }
  .final-section {
    padding: 66px 20px 82px;
    text-align: center;
  }
  .final-section > :global(svg) {
    color: var(--section-accent);
    margin: 0 auto 21px;
  }
  .final-section h2 {
    margin-bottom: 13px;
  }
  .primary-action {
    display: inline-flex;
    align-items: center;
    gap: 23px;
    padding: 13px 20px;
    border-radius: 8px;
    background: var(--section-accent);
    border: 1px solid transparent;
    color: #17200b;
    margin-top: 26px;
    font-size: 13px;
    font-weight: 600;
  }
  .primary-action:hover {
    background: #e3fbb2;
  }
  @media (max-width: 1000px) {
    .home-sections {
      padding: 0 24px;
    }
    .overview-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-row {
      gap: 35px;
    }
    .feature-copy h2 {
      font-size: 29px;
    }
    .plan-summary {
      padding: 22px 18px;
    }
    .plan-price strong {
      font-size: 30px;
    }
    .guide-card > div {
      padding: 18px;
    }
    .guide-card > img {
      height: 145px;
    }
  }
  @media (max-width: 680px) {
    .home-sections {
      padding: 0 18px;
    }
    .content-section {
      padding: 45px 0;
    }
    .section-intro {
      margin-bottom: 25px;
    }
    h2 {
      font-size: 26px;
      letter-spacing: -0.7px;
    }
    .section-intro p {
      font-size: 12px;
    }
    .overview-grid {
      gap: 10px;
    }
    .overview-item {
      padding: 18px 14px;
    }
    .overview-item h3 {
      font-size: 13px;
    }
    .overview-item p {
      font-size: 11px;
    }
    .inspiration-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px 11px;
    }
    .inspiration-image {
      aspect-ratio: 1.1;
    }
    .photo-label {
      top: 8px;
      left: 8px;
      font-size: 8px;
      padding: 4px 5px;
    }
    .image-arrow {
      width: 28px;
      height: 28px;
      right: 9px;
      bottom: 9px;
    }
    .inspiration-caption {
      display: block;
      padding-top: 10px;
    }
    .inspiration-caption h3 {
      font-size: 12px;
      margin-bottom: 4px;
    }
    .inspiration-caption > span {
      font-size: 10px;
    }
    .steps-grid {
      grid-template-columns: 1fr;
      gap: 23px;
    }
    .step {
      padding-top: 17px;
    }
    .step h3 {
      font-size: 16px;
      margin: 10px 0 8px;
    }
    .step p {
      font-size: 12px;
    }
    .feature-row {
      grid-template-columns: 1fr;
      gap: 25px;
    }
    .feature-row.reverse .feature-visual,
    .feature-row.reverse .feature-copy {
      order: initial;
    }
    .features-section {
      gap: 45px;
    }
    .feature-visual > img {
      aspect-ratio: 1.5;
    }
    .feature-copy h2 {
      font-size: 28px;
    }
    .plan-grid,
    .guides-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .plan-summary {
      padding: 22px;
    }
    .plan-summary h3 {
      margin-bottom: 16px;
    }
    .plan-price {
      margin-bottom: 12px;
    }
    .plan-price strong {
      font-size: 34px;
    }
    .plan-link {
      margin-top: 18px;
    }
    .faq-list summary {
      font-size: 13px;
      padding: 19px 0;
    }
    .faq-list details > p {
      font-size: 12px;
      margin-right: 16px;
    }
    .guide-card > img {
      height: 170px;
    }
    .guide-card p {
      min-height: 0;
    }
    .theme-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .theme-list button {
      padding: 14px 12px;
      font-size: 11px;
    }
    .final-section {
      padding: 48px 0 60px;
    }
    .final-section p {
      font-size: 12px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .inspiration-image img,
    .faq-list summary :global(svg) {
      transition: none;
    }
  }


/* ===== Pricing.style.css ===== */

  .pricing-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 128px 32px 90px;
  }
  .pricing-heading {
    max-width: 650px;
  }
  .pricing-heading h1 {
    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 550;
    line-height: 1.06;
    letter-spacing: -2.8px;
    margin: 20px 0;
  }
  .pricing-heading > p {
    color: #a8afba;
    font-size: 15px;
    line-height: 1.7;
  }
  .plan-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 38px 0 27px;
    flex-wrap: wrap;
  }
  .billing-switch {
    display: inline-flex;
    gap: 4px;
    background: #171a1f;
    border: 1px solid #2e3239;
    padding: 4px;
    border-radius: 10px;
  }
  .billing-switch button {
    border: 0;
    background: none;
    color: #a8afba;
    padding: 10px 25px;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
  }
  .billing-switch .active {
    color: #f4f5f7;
    background: #30343b;
  }
  .demo-disclosure {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #929ba8;
    line-height: 1.6;
  }
  .demo-disclosure > span {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .price-plan {
    border: 1px solid #30333a;
    border-radius: 16px;
    padding: 27px 25px 32px;
    background: #15171b;
    min-width: 0;
  }
  .price-plan.featured {
    border-color: #d5eb9e66;
    background: #d5eb9e07;
  }
  .plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 26px;
  }
  .plan-number {
    font-size: 10px;
    color: #777f8a;
  }
  .recommended {
    font-size: 9px;
    color: var(--accent);
    background: #d5eb9e12;
    border: 1px solid #d5eb9e55;
    border-radius: 5px;
    padding: 5px 7px;
  }
  .price-plan h2 {
    font-size: 23px;
    letter-spacing: -0.6px;
    font-weight: 500;
    margin: 26px 0 24px;
  }
  .price {
    display: flex;
    gap: 7px;
    align-items: baseline;
  }
  .price strong {
    font-weight: 550;
    font-size: 45px;
    letter-spacing: -1.9px;
    line-height: 1;
  }
  .price > span {
    font-size: 11px;
    color: #949ba7;
  }
  .billing-term {
    font-size: 11px;
    color: #8d95a2;
    min-height: 17px;
    margin: 12px 0 24px;
  }
  .price-plan > .button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
  }
  .plan-benefits {
    border-top: 1px solid #ffffff14;
    margin-top: 26px;
    padding-top: 21px;
  }
  .plan-benefits p {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.6;
    color: #b3bac4;
    margin: 0 0 14px;
  }
  .plan-benefits :global(svg) {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
  }
  .plan-benefits .credit-benefit {
    display: block;
    color: #c5cbd3;
  }
  .credit-benefit strong {
    font-weight: 600;
    color: #f4f5f7;
  }
  .plan-benefits .expiry-term {
    color: #7e8794;
    font-size: 10px;
  }
  .pricing-note {
    font-size: 10px;
    color: #78828f;
    max-width: 900px;
    line-height: 1.8;
    margin: 20px 0 0;
  }
  .credit-packs {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 45px;
    padding: 38px 0;
    border-block: 1px solid #282c32;
    margin-top: 50px;
    align-items: center;
  }
  .credit-packs h2 {
    font-size: 23px;
    letter-spacing: -0.6px;
    font-weight: 500;
    margin: 12px 0;
  }
  .credit-packs p {
    font-size: 12px;
    color: #929ba8;
    margin: 0;
  }
  .pack-options {
    display: grid;
    gap: 14px;
  }
  .pack {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .pack > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .pack strong {
    font-size: 15px;
    font-weight: 500;
  }
  .pack span {
    font-size: 12px;
    color: #a8afba;
  }
  .pack .button {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .pricing-faq {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 70px;
    margin-top: 78px;
  }
  .pricing-faq h2 {
    font-size: 30px;
    max-width: 250px;
    letter-spacing: -0.9px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 17px;
  }
  .pricing-faq details {
    border-bottom: 1px solid #2c3037;
  }
  .pricing-faq details:first-child {
    border-top: 1px solid #2c3037;
  }
  .pricing-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
    line-height: 1.5;
    padding: 23px 0;
  }
  .pricing-faq summary::-webkit-details-marker {
    display: none;
  }
  .pricing-faq summary :global(svg) {
    flex-shrink: 0;
    color: #8e97a4;
  }
  .pricing-faq details[open] summary :global(svg) {
    transform: rotate(180deg);
  }
  .pricing-faq details p {
    color: #919aa7;
    font-size: 12px;
    line-height: 1.85;
    margin: 0 24px 23px 0;
  }
  .load-failure {
    padding: 24px;
    border: 1px solid #864c35;
    border-radius: 12px;
    color: #f8b092;
    font-size: 13px;
  }
  .checkout-dialog {
    position: relative;
    width: min(470px, calc(100% - 28px));
    max-height: calc(100dvh - 32px);
    padding: 36px;
    border: 1px solid #3a3e46;
    border-radius: 19px;
    background: #171a1f;
    color: #f4f5f7;
    box-shadow: 0 35px 100px #0009;
  }
  .checkout-dialog::backdrop {
    background: #050608c9;
    backdrop-filter: blur(6px);
  }
  .dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9da6b2;
    cursor: pointer;
    padding: 5px;
  }
  .checkout-icon {
    width: 50px;
    height: 50px;
    background: #d5eb9e12;
    display: grid;
    place-items: center;
    color: var(--accent);
    border-radius: 12px;
    margin-bottom: 25px;
  }
  .checkout-dialog > .eyebrow {
    font-size: 10px;
  }
  .checkout-dialog h2 {
    font-size: 29px;
    letter-spacing: -0.9px;
    font-weight: 500;
    line-height: 1.1;
    margin: 12px 0;
  }
  .checkout-dialog > p {
    font-size: 12px;
    line-height: 1.7;
  }
  .order-summary {
    border-block: 1px solid #2d323b;
    margin: 27px 0;
  }
  .order-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    font-size: 12px;
  }
  .order-summary dt {
    color: #8c96a5;
    flex-shrink: 0;
  }
  .order-summary dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .order-summary .order-id {
    font-size: 10px;
    font-family: monospace;
    color: #b4bdca;
  }
  .order-summary .order-total {
    border-top: 1px solid #2d323b;
    padding: 21px 0;
  }
  .order-total dd {
    font-size: 22px;
    font-weight: 550;
  }
  .confirm-payment {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    font-size: 12px;
  }
  .checkout-note {
    font-size: 10px !important;
    color: #818b99;
    margin: 18px 0 0;
  }
  .form-error {
    color: #ffaf91;
    font-size: 12px;
  }
  @media (max-width: 900px) {
    .pricing-page {
      padding: 118px 24px 65px;
    }
    .price-plan {
      padding: 23px 18px;
    }
    .price strong {
      font-size: 36px;
    }
    .recommended {
      font-size: 8px;
      padding: 4px;
    }
    .pricing-faq {
      gap: 35px;
    }
    .credit-packs {
      gap: 25px;
    }
    .billing-switch button {
      padding: 9px 19px;
    }
  }
  @media (max-width: 640px) {
    .pricing-page {
      padding: 102px 19px 60px;
    }
    .pricing-heading h1 {
      font-size: 44px;
      letter-spacing: -1.8px;
    }
    .pricing-grid {
      grid-template-columns: 1fr;
    }
    .price-plan {
      padding: 25px;
    }
    .price-plan h2 {
      margin: 18px 0;
    }
    .price strong {
      font-size: 42px;
    }
    .price-plan.featured {
      order: -1;
    }
    .plan-toolbar {
      margin-top: 28px;
      gap: 8px;
    }
    .demo-disclosure {
      font-size: 10px;
    }
    .credit-packs,
    .pricing-faq {
      grid-template-columns: 1fr;
      gap: 26px;
    }
    .pricing-faq {
      margin-top: 55px;
    }
    .pricing-faq h2 {
      max-width: none;
      font-size: 27px;
    }
    .checkout-dialog {
      padding: 30px 24px;
    }
    .recommended {
      font-size: 10px;
    }
    .plan-benefits p {
      font-size: 12px;
    }
  }


/* ===== Account.style.css ===== */

  .account-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 42px 80px;
  }
  .account-heading h1 {
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -1.7px;
    font-weight: 500;
    line-height: 1.15;
    margin: 17px 0;
  }
  .account-heading > p {
    font-size: 13px;
    line-height: 1.7;
  }
  .account-links {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #2a2e35;
    margin: 34px 0 0;
  }
  .account-links a {
    font-size: 12px;
    color: #919aa8;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
  }
  .account-links a.active {
    color: #f4f5f7;
    border-color: var(--accent);
  }
  .settings-section {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 60px;
    padding: 38px 0;
    border-bottom: 1px solid #282c32;
  }
  .section-label :global(svg) {
    color: #9da6b3;
    margin-bottom: 13px;
  }
  .section-label h2 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 0 0 10px;
  }
  .section-label p {
    font-size: 12px;
    line-height: 1.7;
    color: #7e8998;
    max-width: 220px;
    margin: 0;
  }
  .section-content {
    min-width: 0;
  }
  .section-content h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 14px;
  }
  .section-content > p {
    color: #9aa4b2;
    font-size: 12px;
    line-height: 1.85;
  }
  .profile-avatar {
    width: 56px;
    height: 56px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d5eb9e15;
    color: var(--accent);
    font-size: 17px;
    border: 1px solid #d5eb9e40;
    margin-bottom: 25px;
  }
  .profile-avatar span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #0d0f12;
    bottom: 0;
    right: 2px;
  }
  .profile-fields {
    margin: 0;
  }
  .profile-fields > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
    font-size: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #22262d;
  }
  .profile-fields dt {
    color: #818c9a;
  }
  .profile-fields dd {
    margin: 0;
    color: #d1d6de;
    overflow-wrap: anywhere;
  }
  .section-content > .detail-note {
    font-size: 10px;
    color: #707d8d;
    margin: 17px 0 0;
  }
  .session-row {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .device-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    background: #1c2026;
    border: 1px solid #303741;
    border-radius: 10px;
    color: #b6beca;
    flex-shrink: 0;
  }
  .session-row > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .session-row strong {
    font-size: 12px;
    font-weight: 500;
  }
  .session-row > div > span {
    font-size: 11px;
    color: #818d9d;
  }
  .session-badge {
    margin-left: auto;
    font-size: 9px;
    color: #b4bea9;
    border: 1px solid #404a3b;
    background: #232920;
    padding: 4px 7px;
    border-radius: 5px;
    white-space: nowrap;
  }
  .security-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px;
  }
  .security-actions .button {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .text-action,
  .inline-link {
    font-size: 11px;
    color: #a7b1bf;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    border: none;
    background: none;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
  }
  .privacy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0;
    text-decoration: none;
    color: #a7b1bf;
    font-size: 12px;
  }
  .privacy-row > span {
    display: flex;
    gap: 13px;
    align-items: center;
  }
  .signed-out {
    text-align: center;
    padding: 65px 0 45px;
    max-width: 400px;
    margin: auto;
  }
  .large-icon {
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 1px solid #353b44;
    color: var(--accent);
    background: #d5eb9e08;
  }
  .signed-out h2 {
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.7px;
    line-height: 1.25;
  }
  .signed-out p {
    color: #8e9aa9;
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 25px;
  }
  .signed-out .button {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    font-size: 12px;
  }
  .security-dialog {
    position: relative;
    width: min(430px, calc(100% - 28px));
    border: 1px solid #3a3e46;
    background: #171a1f;
    color: #f4f5f7;
    padding: 32px;
    border-radius: 17px;
    max-height: calc(100dvh - 30px);
  }
  .security-dialog::backdrop {
    background: #050608c9;
    backdrop-filter: blur(5px);
  }
  .security-dialog > :global(svg) {
    color: #ffa679;
  }
  .security-dialog h2 {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.6px;
    margin: 24px 0 15px;
  }
  .security-dialog p {
    color: #a4aebc;
    font-size: 12px;
    line-height: 1.8;
  }
  .dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
  }
  .dialog-actions .button {
    font-size: 11px;
  }
  .dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #939dab;
    cursor: pointer;
    padding: 4px;
  }
  @media (max-width: 768px) {
    .account-page {
      padding: 32px 25px 60px;
    }
    .settings-section {
      gap: 30px;
      grid-template-columns: 0.75fr 1.25fr;
    }
    .profile-fields > div {
      grid-template-columns: 1fr;
      gap: 7px;
    }
    .security-actions {
      gap: 18px;
    }
    .session-row {
      flex-wrap: wrap;
    }
    .session-badge {
      margin-left: 0;
    }
  }
  @media (max-width: 500px) {
    .account-page {
      padding: 29px 19px 55px;
    }
    .account-heading h1 {
      font-size: 32px;
      letter-spacing: -1.1px;
    }
    .account-links {
      gap: 24px;
    }
    .settings-section {
      grid-template-columns: 1fr;
      gap: 25px;
      padding: 30px 0;
    }
    .section-label p {
      max-width: none;
    }
    .section-label :global(svg) {
      margin-bottom: 10px;
    }
    .profile-fields > div {
      grid-template-columns: 110px minmax(0, 1fr);
      gap: 12px;
    }
    .session-badge {
      margin-left: auto;
    }
    .session-row {
      gap: 12px;
    }
    .security-actions {
      gap: 22px;
    }
    .security-dialog {
      padding: 28px 24px;
    }
  }


/* ===== LoginDialog.style.css ===== */

  .login-dialog {
    width: min(850px, calc(100% - 32px));
    padding: 0;
    max-height: calc(100dvh - 36px);
    overflow: auto;
    border: 1px solid #373a40;
    border-radius: 20px;
    background: #171a1f;
    color: #f4f5f7;
    box-shadow: 0 28px 100px #0009;
  }
  .login-dialog[open] {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }
  .login-dialog::backdrop {
    background: #050608c9;
    backdrop-filter: blur(7px);
  }
  .close-dialog {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #ffffff20;
    border-radius: 50%;
    color: #c3c6cc;
    background: #171a1f;
    cursor: pointer;
    z-index: 1;
  }
  .login-art {
    padding: 30px;
    background: #111315;
    display: flex;
    align-items: stretch;
    min-height: 480px;
  }
  .film-frame {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #ffffff20;
    padding: 26px;
    color: var(--accent);
    background: radial-gradient(ellipse at 50% 46%, #d5eb9e3b, transparent 70%);
  }
  .film-frame > span {
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-top: 16px;
    color: #a9a9ac;
  }
  .frame-line {
    height: 1px;
    background: #ffffff20;
    margin: 28px 0;
  }
  .film-frame strong {
    font-size: 39px;
    font-weight: 500;
    letter-spacing: -1.7px;
    line-height: 1.12;
    color: #f6f3ef;
  }
  .art-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 42px;
  }
  .art-caption span {
    font-size: 8px;
    letter-spacing: 0.14em;
    color: #98999c;
  }
  .login-content {
    padding: 58px 38px 36px;
  }
  .login-content h2 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin: 17px 0;
  }
  .login-content > p {
    font-size: 13px;
    line-height: 1.7;
  }
  .demo-login {
    margin: 26px 0 18px;
    padding: 15px 0;
    border-block: 1px solid #ffffff12;
  }
  .demo-login p {
    font-size: 12px;
    line-height: 1.65;
    color: #a8afba;
    margin: 10px 0 0;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
  }
  .login-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }
  .login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #7f8793;
    font-size: 11px;
    margin-top: 24px;
  }
  .login-divider::before,
  .login-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #ffffff18;
  }
  .login-button :global(svg:last-child) {
    margin-left: auto;
  }
  .login-button :global(svg:first-child) {
    margin-right: auto;
  }
  .terms-note {
    margin: 25px 0 0;
    color: #7f8793;
    font-size: 10px !important;
    line-height: 1.75;
  }
  .terms-note a {
    color: #c0c5cd;
    text-underline-offset: 3px;
  }
  .draft-note {
    font-size: 11px !important;
    color: #929ba8;
    margin-top: 20px;
  }
  .copy-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 11px;
    cursor: pointer;
  }
  .form-error {
    color: #ffae91;
    background: #44261d;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
  }
  @media (max-width: 640px) {
    .login-dialog[open] {
      display: block;
      width: min(440px, calc(100% - 24px));
    }
    .login-art {
      display: none;
    }
    .login-content {
      padding: 53px 25px 28px;
    }
    .login-content h2 {
      font-size: 30px;
    }
  }


/* ===== TrendCreator.style.css ===== */

  .trend-creator {
    width: 100%;
    margin: 0 auto;
    padding: 16px 0 64px;
  }
  .creator-heading {
    max-width: 720px;
    margin-bottom: 28px;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b4baa9;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
  }
  .eyebrow > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }
  .creator-heading h1 {
    font-size: clamp(32px, 4.3vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.055em;
    margin: 16px 0 14px;
    font-weight: 550;
  }
  .creator-heading > p {
    max-width: 550px;
    color: #a8aca6;
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
  }
  .mode-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 17px;
    margin-bottom: 22px;
    border: 1px solid #d5eb9e24;
    border-radius: 10px;
    color: #b7bdb0;
    background: #d5eb9e05;
  }
  .mode-notice > :global(svg) {
    color: var(--accent);
    margin-top: 1px;
  }
  .mode-notice p {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
  }
  .mode-notice strong {
    color: #e0e5d9;
    font-weight: 550;
    margin-right: 9px;
  }
  .creator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    gap: 22px;
    align-items: start;
  }
  .editor-panel,
  .preview-panel {
    border: 1px solid #ffffff13;
    background: #141517;
    border-radius: 14px;
    min-width: 0;
    overflow: hidden;
  }
  .panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 19px 24px;
    border-bottom: 1px solid #ffffff0c;
    color: #a6ada0;
  }
  .panel-heading h2 {
    color: #e9eae6;
    font-size: 14px;
    font-weight: 550;
    letter-spacing: -0.02em;
    margin: 0;
  }
  .editor-fields {
    padding: 24px;
  }
  .field {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .field-title,
  legend {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #d5d8d1;
    margin-bottom: 11px;
    padding: 0;
  }
  .template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .template-choice,
  .resolution-choice {
    position: relative;
    cursor: pointer;
    min-width: 0;
  }
  .template-choice > input,
  .resolution-choice > input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }
  .template-content {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid #ffffff16;
    background: #ffffff02;
    border-radius: 9px;
    min-height: 125px;
    transition:
      background 0.15s ease,
      border-color 0.15s ease;
  }
  .template-choice:hover .template-content,
  .resolution-choice:hover .resolution-content {
    border-color: #ffffff38;
  }
  .template-choice.chosen .template-content {
    background: #d5eb9e06;
    border-color: #d5eb9e8c;
  }
  .template-choice input:focus-visible + .template-content,
  .resolution-choice input:focus-visible + .resolution-content {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
  .template-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
  }
  .template-index {
    font-size: 10px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #7b8179;
  }
  .chosen .template-index {
    color: #c7d7af;
  }
  .radio-mark {
    width: 16px;
    height: 16px;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #18210e;
  }
  .chosen .radio-mark {
    background: var(--accent);
    border-color: var(--accent);
  }
  .template-content > strong {
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -0.025em;
    color: #e2e5dc;
  }
  .template-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #9da396;
    margin-top: 7px;
    line-height: 1.4;
    flex-wrap: wrap;
  }
  .field-note {
    color: #8e958a;
    font-size: 10px;
    line-height: 1.7;
    margin: 9px 0 0;
  }
  .source-note {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .upload-area {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 13px;
    padding: 19px 15px;
    border: 1px dashed #ffffff28;
    border-radius: 9px;
    background: #ffffff02;
    min-height: 88px;
  }
  .upload-area:hover:not(:disabled) {
    border-color: #d5eb9e7a;
    background: #d5eb9e04;
  }
  .upload-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--accent);
    background: #d5eb9e0b;
    border-radius: 9px;
    flex-shrink: 0;
  }
  .upload-area > span:nth-child(2) {
    flex: 1;
    min-width: 0;
  }
  .upload-area strong {
    display: block;
    color: #e1e4da;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
  }
  .upload-area small {
    display: block;
    color: #858e80;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 4px;
  }
  .upload-area > :global(svg) {
    color: #6e7768;
  }
  .portrait-ready {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #ffffff03;
    border: 1px solid #ffffff16;
    border-radius: 9px;
  }
  .portrait-ready img {
    width: 64px;
    height: 72px;
    object-fit: cover;
    border-radius: 5px;
  }
  .portrait-ready > div {
    flex: 1;
    min-width: 0;
  }
  .portrait-ready strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d2dfbb;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
  }
  .quiet-link {
    background: none;
    padding: 0;
    border: 0;
    color: #bbc3ae;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .icon-control {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff18;
    border-radius: 7px;
    background: #ffffff03;
    color: #b1b9a7;
  }
  .icon-control:hover:not(:disabled) {
    background: #ffffff09;
    color: #eef2e7;
    border-color: #ffffff36;
  }
  .remove-photo {
    align-self: flex-start;
  }
  .resolution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .resolution-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 13px 6px;
    border: 1px solid #ffffff18;
    border-radius: 8px;
    background: #ffffff02;
  }
  .resolution-content strong {
    font-size: 13px;
    font-weight: 550;
    color: #dce1d5;
  }
  .resolution-content small {
    font-size: 9px;
    color: #858e7c;
  }
  .resolution-choice.chosen .resolution-content {
    background: #d5eb9e09;
    border-color: #d5eb9e8c;
  }
  .resolution-choice.chosen strong {
    color: var(--accent);
  }
  .fixed-audio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #ffffff13;
    border-radius: 8px;
    color: #b7c3aa;
  }
  .fixed-audio > div {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
  }
  .fixed-audio strong {
    font-size: 12px;
    font-weight: 500;
    color: #dce2d3;
  }
  .fixed-audio small {
    font-size: 9px;
    color: #939e88;
  }
  .audio-note {
    margin-bottom: 23px;
  }
  .target-note {
    margin-bottom: 17px;
    padding-left: 11px;
    border-left: 2px solid #d5eb9e74;
  }
  .target-note > span {
    display: block;
    color: #8e9983;
    font-size: 10px;
    margin-bottom: 5px;
  }
  .target-note p {
    color: #c5cebb;
    font-size: 11px;
    line-height: 1.7;
    margin: 0;
  }
  .fixed-prompt {
    border-top: 1px solid #ffffff0b;
    border-bottom: 1px solid #ffffff0b;
    margin-bottom: 20px;
  }
  .fixed-prompt summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #a7b39a;
    font-size: 11px;
  }
  .fixed-prompt summary :global(svg) {
    transition: transform 0.16s ease;
  }
  .fixed-prompt[open] summary :global(svg) {
    transform: rotate(180deg);
  }
  .prompt-detail {
    padding: 0 0 15px;
  }
  .prompt-explanation {
    color: #7f8b73;
    font-size: 10px;
    line-height: 1.7;
    margin-bottom: 10px;
  }
  .prompt-copy {
    font-size: 11px;
    line-height: 1.9;
    color: #b3bea6;
    margin: 0;
    overflow-wrap: anywhere;
    user-select: text;
  }
  .consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
  }
  .consent-label input {
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: var(--accent);
  }
  .consent-label > span {
    flex: 1;
    color: #a9b09f;
    font-size: 10px;
    line-height: 1.75;
  }
  .consent-label > :global(svg) {
    color: #69775d;
    margin-top: 1px;
  }
  .quote-area {
    padding: 20px 24px 22px;
    background: #0f10117a;
    border-top: 1px solid #ffffff0c;
  }
  .quote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    min-height: 26px;
  }
  .quote-row > span {
    color: #9fa894;
    font-size: 10px;
    line-height: 1.5;
  }
  .quote-row > strong {
    font-size: 21px;
    line-height: 1.2;
    color: #e5eddb;
    font-weight: 550;
    white-space: nowrap;
  }
  .quote-row small {
    margin-left: 5px;
    font-size: 9px;
    color: #87947b;
    font-weight: 400;
  }
  .credit-balance {
    color: #869278;
    font-size: 10px;
    margin: 0 0 12px;
  }
  .create-button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    font-size: 12px;
    border-radius: 8px;
  }
  .create-button > :global(svg:last-child) {
    margin-left: auto;
  }
  .create-button > :global(svg:first-child:not(:last-child)) {
    margin-right: 3px;
  }
  .create-button::before {
    content: '';
    width: 17px;
    margin-right: auto;
  }
  .action-note {
    color: #9da88f;
    margin: 10px 0 0;
    font-size: 10px;
    line-height: 1.65;
  }
  .quote-note {
    font-size: 9px;
    line-height: 1.7;
    color: #717d65;
    margin: 10px 0 0;
  }
  .field-error {
    color: #e5a3a0;
    font-size: 11px;
    line-height: 1.7;
    margin: 10px 0;
    overflow-wrap: anywhere;
  }
  .field-error a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .result-column {
    min-width: 0;
  }
  .history-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #a9b49b;
    flex-shrink: 0;
  }
  .history-link:hover {
    color: var(--accent);
  }
  .preview-stage {
    width: 100%;
    min-width: 0;
    min-height: 310px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 25px;
    background: #101113;
  }
  .preview-stage video {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: contain;
    background: #070808;
  }
  .close-preview {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #101113e6;
    z-index: 1;
  }
  .empty-state,
  .task-state {
    width: 100%;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 310px;
  }
  .empty-state {
    min-height: 0;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .empty-frame {
    width: 96px;
    height: 66px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b755f;
    margin-bottom: 23px;
    border: 1px solid #ffffff0c;
    border-radius: 4px;
  }
  .frame-corner {
    position: absolute;
    width: 17px;
    height: 17px;
    border-color: #d5eb9e59;
    border-style: solid;
  }
  .frame-corner.one {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
    border-radius: 4px 0 0 0;
  }
  .frame-corner.two {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
    border-radius: 0 0 4px 0;
  }
  .empty-state h3,
  .task-state h3 {
    font-size: 18px;
    font-weight: 500;
    color: #dce1d5;
    letter-spacing: -0.035em;
    line-height: 1.4;
    margin: 0 0 10px;
  }
  .empty-state > p,
  .task-state > p {
    color: #828d75;
    font-size: 11px;
    line-height: 1.8;
    margin: 0;
    max-width: 285px;
  }
  .empty-meta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #69775c;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
  }
  .empty-meta > span {
    color: #3f4938;
  }
  .stage-symbol {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b58f;
    margin-bottom: 15px;
  }
  .sample-badge {
    color: #9dab8c;
    border: 1px solid #d5eb9e26;
    border-radius: 4px;
    padding: 4px 7px;
    font-size: 8px;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
  }
  .task-selection {
    font-size: 10px;
    color: #a3b091;
    margin-bottom: 10px;
    line-height: 1.6;
  }
  .preview-button {
    margin-top: 20px;
    min-height: 36px;
    padding: 8px 13px;
    font-size: 11px;
  }
  .sample-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 13px 19px;
    margin: 0;
    border-top: 1px solid #ffffff0b;
    color: #929e83;
    font-size: 10px;
    line-height: 1.75;
    background: #d5eb9e03;
  }
  .sample-disclosure > :global(svg) {
    margin-top: 2px;
  }
  .preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 13px 19px;
    border-top: 1px solid #ffffff0b;
  }
  .waiting-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #7c8870;
  }
  .format-label {
    font-size: 9px;
    color: #69775b;
  }
  .task-details {
    flex: 1;
    min-width: 0;
  }
  .task-details > span {
    font-size: 9px;
    display: block;
    color: #6f7c62;
    margin-bottom: 3px;
  }
  .task-details > code {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    color: #939f84;
  }
  .task-actions {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .download-button {
    min-height: 32px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 10px;
  }
  .preview-error {
    margin: 12px 19px;
  }
  .workflow {
    padding: 28px 7px 0;
  }
  .workflow-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #718164;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 10px;
  }
  .workflow h2 {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.35;
    margin: 0 0 21px;
    color: #d3dcc9;
  }
  .workflow ol {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .workflow li {
    display: flex;
    gap: 15px;
    padding: 0 0 20px;
  }
  .workflow li:last-child {
    padding-bottom: 0;
  }
  .step-number {
    font-size: 10px;
    color: #8a9c78;
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
    width: 19px;
    flex-shrink: 0;
  }
  .workflow h3 {
    color: #becab2;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.4;
    margin: 0 0 4px;
  }
  .workflow li p {
    color: #77876a;
    font-size: 10px;
    line-height: 1.75;
    margin: 0;
    max-width: 350px;
  }
  .workflow-note {
    border-top: 1px solid #ffffff0b;
    padding-top: 16px;
    color: #6e7c62;
    font-size: 9px;
    line-height: 1.85;
    margin: 20px 0 0;
  }
  fieldset:disabled .template-choice,
  fieldset:disabled .resolution-choice {
    cursor: not-allowed;
  }
  fieldset:disabled .template-content,
  fieldset:disabled .resolution-content {
    opacity: 0.55;
  }
  :global(.spin) {
    animation: trend-spin 0.9s linear infinite;
  }
  @keyframes trend-spin {
    to {
      transform: rotate(360deg);
    }
  }
  @media (min-width: 1400px) {
    .trend-creator {
      padding-top: 20px;
    }
  }
  @media (max-width: 1000px) {
    .trend-creator {
      padding-top: 16px;
    }
    .creator-grid {
      gap: 16px;
      grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    }
    .panel-heading {
      padding: 18px;
    }
    .editor-fields {
      padding: 20px 18px;
    }
    .quote-area {
      padding: 18px;
    }
    .template-content {
      padding: 12px 10px;
    }
    .template-content > strong {
      font-size: 12px;
    }
    .template-meta {
      font-size: 9px;
    }
    .preview-stage {
      padding: 25px 18px;
    }
    .preview-footer {
      padding: 12px;
      gap: 8px;
    }
    .task-details > code {
      max-width: 100px;
    }
  }
  @media (max-width: 800px) {
    .creator-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .creator-heading {
      max-width: 580px;
    }
    .creator-heading h1 {
      font-size: clamp(32px, 6vw, 44px);
    }
    .template-content {
      min-height: 120px;
      padding: 15px;
    }
    .template-content > strong {
      font-size: 14px;
    }
    .template-meta {
      font-size: 10px;
    }
    .editor-fields {
      padding: 23px;
    }
    .quote-area {
      padding: 20px 23px;
    }
    .panel-heading {
      padding: 20px 23px;
    }
    .preview-stage {
      min-height: 280px;
      aspect-ratio: 16/8;
    }
    .workflow {
      padding: 28px 5px 0;
    }
    .workflow ol {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 24px;
      row-gap: 21px;
    }
    .workflow li {
      padding: 0;
    }
    .task-details > code {
      max-width: 220px;
    }
  }
  @media (max-width: 480px) {
    .trend-creator {
      padding: 12px 0 44px;
    }
    .creator-heading {
      margin-bottom: 22px;
    }
    .creator-heading h1 {
      margin-top: 14px;
      font-size: 32px;
    }
    .creator-heading > p {
      font-size: 12px;
      line-height: 1.85;
    }
    .eyebrow {
      font-size: 9px;
      letter-spacing: 0.06em;
    }
    .mode-notice {
      padding: 12px;
      gap: 8px;
      border-radius: 8px;
      margin-bottom: 18px;
    }
    .mode-notice p {
      font-size: 10px;
    }
    .mode-notice strong {
      display: block;
      margin-bottom: 2px;
    }
    .editor-panel,
    .preview-panel {
      border-radius: 11px;
    }
    .panel-heading {
      min-height: 59px;
      padding: 18px;
    }
    .panel-heading h2 {
      font-size: 13px;
    }
    .editor-fields {
      padding: 19px 17px;
    }
    .template-grid {
      gap: 8px;
    }
    .template-content {
      min-height: 117px;
      padding: 12px;
    }
    .template-content > strong {
      font-size: 12px;
    }
    .template-meta {
      font-size: 9px;
      gap: 4px;
    }
    .template-top {
      margin-bottom: 20px;
    }
    .field {
      margin-bottom: 23px;
    }
    .upload-area {
      padding: 15px 12px;
      gap: 10px;
    }
    .upload-area > :global(svg:last-child) {
      display: none;
    }
    .upload-area strong {
      font-size: 11px;
    }
    .upload-area small {
      font-size: 9px;
    }
    .resolution-grid {
      gap: 6px;
    }
    .resolution-content {
      padding: 12px 4px;
    }
    .resolution-content small {
      font-size: 8px;
    }
    .fixed-audio {
      padding: 12px 11px;
      gap: 9px;
    }
    .fixed-audio > div {
      gap: 4px;
    }
    .fixed-audio strong {
      font-size: 11px;
    }
    .fixed-audio small {
      font-size: 8px;
    }
    .quote-area {
      padding: 18px 17px;
    }
    .quote-row {
      align-items: flex-start;
    }
    .quote-row > span {
      max-width: 165px;
    }
    .quote-row > strong {
      font-size: 19px;
    }
    .quote-row small {
      display: block;
      text-align: right;
      margin: 4px 0 0;
    }
    .preview-stage {
      min-height: 295px;
      padding: 27px 20px;
    }
    .empty-state h3,
    .task-state h3 {
      font-size: 17px;
    }
    .sample-disclosure {
      padding: 12px 15px;
      font-size: 9px;
    }
    .preview-footer {
      padding: 12px 15px;
    }
    .task-details > code {
      max-width: 125px;
    }
    .download-button {
      font-size: 9px;
      padding-inline: 8px;
      gap: 5px;
    }
    .workflow h2 {
      font-size: 22px;
    }
    .workflow ol {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .workflow li {
      gap: 13px;
    }
    .workflow li p {
      font-size: 11px;
    }
  }


/* ===== Workspace.style.css ===== */

  .workspace-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 40px 48px;
  }
  .workspace-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .workspace-heading .eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b0aaa5;
    margin-bottom: 8px;
  }
  .live-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
  }
  h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0 0 8px;
    font-weight: 550;
  }
  .workspace-heading p {
    font-size: 13px;
    margin: 0;
  }
  .workspace-pill {
    font-size: 10px;
    letter-spacing: 0.08em;
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 8px 11px;
    color: #a9a39d;
  }
  .demo-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
    line-height: 1.6;
    color: #948d85;
    margin: 0 0 18px;
  }
  .demo-note :global(svg) {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 1px;
  }
  .demo-note strong {
    font-weight: 500;
    color: var(--accent);
  }
  .creation-grid {
    display: grid;
    grid-template-columns: 368px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .editor {
    overflow: hidden;
    background: #161719;
    border: 1px solid #2b2c2e;
    border-radius: 13px;
  }
  .mode-tabs {
    display: flex;
    padding: 7px;
    border-bottom: 1px solid #292a2c;
    gap: 4px;
  }
  .mode-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    border: 0;
    background: none;
    color: #8e8f93;
    font-size: 12px;
    padding: 12px 2px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
  }
  .mode-tabs button.active {
    color: var(--accent);
    background: #d5eb9e12;
  }
  .mode-tabs button.active :global(svg) {
    color: var(--accent);
  }
  .editor-body {
    padding: 21px 21px 14px;
  }
  .field {
    margin-bottom: 20px;
  }
  .field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: #d3d0cd;
    margin-bottom: 9px;
  }
  .field-label :global(svg) {
    color: #8d837a;
  }
  .prompt-wrap {
    border: 1px solid #353334;
    background: #111214;
    border-radius: 9px;
    overflow: hidden;
  }
  .prompt-wrap:focus-within {
    border-color: var(--accent);
  }
  .prompt-wrap textarea {
    display: block;
    width: 100%;
    min-height: 142px;
    resize: vertical;
    border: 0;
    outline: none;
    background: transparent;
    color: #ede9e5;
    padding: 13px;
    font: inherit;
    font-size: 12px;
    line-height: 1.8;
    box-sizing: border-box;
  }
  .prompt-wrap textarea::placeholder {
    color: #66666a;
  }
  .prompt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 11px 10px;
    gap: 6px;
  }
  .prompt-footer > span {
    font-size: 8px;
    color: #646466;
    white-space: nowrap;
  }
  .inspiration {
    border: 0;
    background: none;
    padding: 0;
    color: var(--accent);
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
  }
  .small-badge {
    font-size: 8px;
    letter-spacing: 0.05em;
    color: var(--accent);
    border: 1px solid #d5eb9e35;
    border-radius: 3px;
    padding: 1px 4px;
  }
  .model-select {
    position: relative;
    display: flex;
    align-items: center;
  }
  .settings-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: 0;
    color: #d3d0cd;
    padding: 0 0 13px;
    font-size: 11px;
    cursor: pointer;
  }
  .settings-toggle :global(svg) {
    color: #8a8581;
  }
  .settings-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 10px;
  }
  .settings-grid .field {
    margin: 0 0 8px;
  }
  .settings-grid label {
    font-size: 10px;
    color: #8c8b8d;
    margin-bottom: 8px;
    display: block;
  }
  .generate-area {
    border-top: 1px solid #292a2c;
    padding: 17px 21px 12px;
    background: #18191b;
  }
  .credit-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
  }
  .cost-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: #85817e;
    font-size: 10px;
    line-height: 1.5;
  }
  .cost-row strong {
    color: #d5c6ba;
    white-space: nowrap;
    font-size: 13px;
    display: flex;
    gap: 4px;
    align-items: center;
  }
  .cost-row small {
    font-size: 9px;
    font-weight: 400;
  }
  .cost-row strong :global(svg) {
    color: var(--accent);
  }
  .generate-button {
    width: 100%;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    font-size: 12px;
    font-weight: 600;
  }
  .generate-button > :global(svg):last-child {
    margin-left: auto;
  }
  .generate-button > :global(svg):first-child {
    margin-right: auto;
  }
  .draft-note {
    font-size: 8px;
    line-height: 1.6;
    color: #656568;
    margin: 10px 0 0;
    text-align: center;
  }
  .result-panel {
    overflow: hidden;
    background: #141517;
    border: 1px solid #2a2b2d;
    border-radius: 13px;
  }
  .result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 19px;
    border-bottom: 1px solid #292a2c;
    min-height: 50px;
    box-sizing: border-box;
  }
  .result-top > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #beb9b5;
  }
  .result-top :global(svg) {
    color: #8d8782;
  }
  .resolution-label {
    font-size: 9px;
    color: #646369;
    letter-spacing: 0.03em;
  }
  .status-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    padding: 4px 7px;
    color: #e0ad80;
    background: #33261e;
    border: 1px solid #4b3525;
  }
  .status-pill.success {
    color: #9cb59e;
    background: #1f2b23;
    border-color: #344738;
  }
  .status-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
  }
  .preview-stage {
    height: 365px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #101113;
  }
  .empty-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: saturate(0.6) blur(1px);
  }
  .stage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #121315de, #14151792 50%, #11121466);
  }
  .empty-result {
    position: relative;
    text-align: center;
    padding: 30px;
    max-width: 340px;
  }
  .film-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1px solid #d5eb9e55;
    background: #d5eb9e66;
    border-radius: 20px;
    margin: 0 auto 22px;
    color: var(--accent);
  }
  .empty-result h2 {
    font-size: 22px;
    font-weight: 450;
    letter-spacing: -0.5px;
    margin: 0 0 9px;
    color: #e8e2dc;
  }
  .empty-result p {
    color: #89857f;
    font-size: 11px;
    line-height: 1.8;
    margin: 0;
  }
  .stage-tag {
    font-size: 7px;
    letter-spacing: 0.16em;
    color: #827260;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 34px;
  }
  .stage-tag span {
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
  }
  .result-bottom {
    min-height: 57px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    border-top: 1px solid #292a2c;
    font-size: 9px;
    color: #77747a;
    gap: 12px;
  }
  .result-bottom > span,
  .result-bottom .muted {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .result-bottom small {
    display: block;
    font-size: 8px;
    color: #b78c62;
    margin-top: 5px;
  }
  .result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .icon-button {
    background: none;
    border: 0;
    border-radius: 5px;
    color: #a7a09a;
    display: grid;
    place-items: center;
    padding: 7px;
    cursor: pointer;
  }
  .icon-button:hover {
    background: #282623;
    color: #f5ece3;
  }
  .compact {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 10px;
    gap: 5px;
  }
  .section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 1px 13px;
  }
  .section-row h2 {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.1px;
    margin: 0;
    color: #c6c0ba;
  }
  .section-row a {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 9px;
    color: #93867a;
  }
  .section-row > :global(svg) {
    color: #746457;
  }
  .recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .recent-card {
    position: relative;
    aspect-ratio: 1.45;
    overflow: hidden;
    border: 1px solid #33302c;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: #1c1d1e;
    text-align: left;
  }
  .recent-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
  }
  .recent-card:hover img {
    transform: scale(1.06);
  }
  .recent-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0a0a0ad9, transparent 75%);
  }
  .recent-card strong {
    position: absolute;
    left: 12px;
    bottom: 13px;
    right: 28px;
    font-size: 10px;
    color: #e1dad1;
    font-weight: 450;
  }
  .recent-play {
    position: absolute;
    right: 9px;
    bottom: 10px;
    width: 20px;
    height: 20px;
    background: #ffffff16;
    border: 1px solid #ffffff33;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #e8dfd5;
  }
  .recent-status {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 8px;
    backdrop-filter: blur(8px);
    background: #151615a6;
    padding: 4px 6px;
    border-radius: 4px;
    color: #e7ded2;
  }
  .result-art {
    border: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    background: #141517;
    cursor: pointer;
  }
  .result-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .result-art:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0009, transparent 50%);
  }
  .play-circle {
    width: 64px;
    height: 64px;
    border: 1px solid #ffffff65;
    background: #f8f1df20;
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: white;
  }
  .preview-caption {
    position: absolute;
    bottom: 20px;
    left: 21px;
    z-index: 1;
    color: #eee8dc;
    font-size: 12px;
  }
  .generation-state {
    padding: 25px;
    text-align: center;
    max-width: 320px;
  }
  .generation-orbit {
    display: grid;
    place-items: center;
    border: 1px solid #d5eb9e66;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    color: var(--accent);
    background: radial-gradient(circle, #d5eb9e40, transparent);
    margin: 0 auto 23px;
    animation: pulse 2.5s ease-in-out infinite;
  }
  .generation-state h2 {
    font-size: 21px;
    font-weight: 450;
    margin: 0 0 10px;
    color: #e6d8ca;
  }
  .generation-state p {
    font-size: 11px;
    color: #87817d;
    line-height: 1.7;
  }
  .task-id {
    font-family: monospace;
    font-size: 8px;
    color: #615b56;
  }
  .upload-zone {
    width: 100%;
    border: 1px dashed #4c4239;
    background: #1c1a18;
    border-radius: 8px;
    padding: 21px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #b8a89a;
  }
  .upload-zone.dragging,
  .upload-zone:hover {
    border-color: var(--accent);
    background: #d5eb9e0a;
  }
  .upload-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: #d5eb9e12;
    border-radius: 10px;
    color: var(--accent);
  }
  .upload-zone strong {
    font-size: 11px;
    font-weight: 450;
  }
  .upload-zone small {
    font-size: 9px;
    color: #746b64;
  }
  .reference-preview {
    height: 130px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #454035;
  }
  .reference-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .reference-preview button {
    position: absolute;
    top: 7px;
    right: 7px;
    background: #111b;
    border: 1px solid #fff3;
    color: white;
    border-radius: 5px;
    padding: 4px;
    cursor: pointer;
  }
  .reference-preview > span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: #17271ce0;
    color: #a2c0a9;
    padding: 4px 6px;
    display: flex;
    gap: 4px;
    align-items: center;
    border-radius: 4px;
    font-size: 9px;
  }
  .inline-error {
    font-size: 10px;
    line-height: 1.65;
    color: #dba47c;
    background: #3b251c66;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
  }
  .inline-error p {
    margin: 4px 0;
  }
  .text-button {
    border: 0;
    background: none;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-size: 10px;
    padding: 3px 0;
  }
  :global(.spin) {
    animation: spin 1.3s linear infinite;
  }
  :global(.rotate) {
    transform: rotate(-90deg);
  }
  .preview-modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    background: #000c;
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    padding: 24px;
  }
  .preview-modal {
    width: min(900px, 100%);
    background: #171719;
    border: 1px solid #39332e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 100px #0009;
  }
  .preview-modal header,
  .preview-modal footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 12px;
  }
  .preview-modal video {
    display: block;
    width: 100%;
    max-height: 65vh;
    background: #090909;
  }
  .preview-modal footer .button {
    font-size: 11px;
    padding: 10px 16px;
    gap: 7px;
  }
  .preview-modal footer .muted {
    font-size: 10px;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes pulse {
    50% {
      box-shadow: 0 0 35px #d5eb9e22;
      border-color: #d5eb9e99;
    }
  }
  @media (min-width: 1600px) {
    .preview-stage {
      height: 430px;
    }
  }
  @media (max-width: 1250px) {
    .workspace-page {
      padding: 27px 25px 40px;
    }
    .creation-grid {
      grid-template-columns: 330px minmax(0, 1fr);
      gap: 16px;
    }
    .editor-body {
      padding: 18px 17px 12px;
    }
    .generate-area {
      padding: 16px 17px 12px;
    }
    .preview-stage {
      height: 350px;
    }
    .workspace-pill {
      display: none;
    }
  }
  @media (max-width: 1000px) {
    .workspace-page {
      padding: 26px 23px;
    }
    .creation-grid {
      grid-template-columns: 310px minmax(0, 1fr);
    }
    .empty-result {
      padding: 20px 15px;
    }
    .empty-result h2 {
      font-size: 19px;
    }
    .prompt-footer {
      flex-wrap: wrap;
    }
    .prompt-footer > span {
      margin-left: auto;
    }
    .recent-card strong {
      font-size: 9px;
      left: 8px;
      bottom: 10px;
    }
    .recent-grid {
      gap: 7px;
    }
    .result-top {
      padding: 14px 12px;
    }
    .result-bottom {
      padding: 10px 12px;
    }
    .stage-tag {
      font-size: 6px;
    }
    .workspace-heading h1 {
      font-size: 27px;
    }
  }
  @media (max-width: 760px) {
    .workspace-page {
      padding: 24px 16px 40px;
    }
    .workspace-heading {
      margin-bottom: 20px;
    }
    .workspace-heading h1 {
      font-size: 27px;
    }
    .workspace-heading p {
      font-size: 12px;
    }
    .creation-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .editor {
      order: 0;
    }
    .editor-body {
      padding: 19px;
    }
    .prompt-wrap textarea {
      min-height: 130px;
    }
    .generate-area {
      padding: 17px 19px 13px;
    }
    .draft-note {
      font-size: 9px;
    }
    .demo-note {
      font-size: 10px;
      margin-bottom: 16px;
    }
    .preview-stage {
      height: auto;
      aspect-ratio: 1.5;
    }
    .preview-stage:not(.has-result) {
      min-height: 300px;
      aspect-ratio: auto;
    }
    .empty-result {
      max-width: 300px;
    }
    .empty-result h2 {
      font-size: 22px;
    }
    .empty-result p {
      font-size: 12px;
    }
    .film-icon {
      width: 53px;
      height: 53px;
      margin-bottom: 17px;
    }
    .stage-tag {
      margin-top: 20px;
    }
    .recent-card {
      aspect-ratio: 1.15;
    }
    .recent-card strong {
      font-size: 10px;
    }
    .preview-modal-backdrop {
      padding: 12px;
    }
    .generation-orbit {
      height: 65px;
      width: 65px;
      margin-bottom: 15px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    :global(.spin),
    .generation-orbit {
      animation: none;
    }
    .recent-card img {
      transition: none;
    }
  }
