:root {
  --tx-sidebar-width: 398px;
  --tx-bg: #0c1428;
  --tx-bg-2: #111b34;
  --tx-panel: rgba(255, 255, 255, 0.075);
  --tx-panel-strong: rgba(255, 255, 255, 0.13);
  --tx-border: rgba(255, 255, 255, 0.13);
  --tx-border-strong: rgba(78, 151, 255, 0.8);
  --tx-text: #f8fbff;
  --tx-muted: #99a8c4;
  --tx-subtle: #6d7b99;
  --tx-blue: #2e8cff;
  --tx-cyan: #26d9ff;
  --tx-green: #4ee0a5;
  --tx-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}
.creator-stop { margin-top: 20px; padding: 7px 18px; color: #aebbd1; background: rgba(21,38,68,.75); border: 1px solid rgba(132,155,198,.38); border-radius: 6px; cursor: pointer; }
.creator-stop:hover { color: #fff; border-color: rgba(126,157,220,.75); background: rgba(35,56,94,.9); }

/* Full-screen video creation workspace. The legacy application remains mounted
   below as a same-origin execution surface, but is never shown to the user. */
body { overflow: auto; background: #f5f7fb; color: #172033; }
.creator-app { position: relative; z-index: 20; display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: #f5f7fb; }
.tx-video-shell { position: fixed !important; z-index: -1 !important; inset: 0 !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.tx-model-frame { visibility: hidden !important; width: 1280px !important; height: 900px !important; }
.creator-nav { position: sticky; top: 0; height: 100vh; padding: 26px 18px; background: #fff; border-right: 1px solid #e6eaf2; }
.creator-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; color: #141b2d; text-decoration: none; }
.creator-brand-mark { position: relative; display: block; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border-radius: 8px; }
.creator-brand-mark::after { position: absolute; z-index: 2; inset: -25px; content: ""; background: linear-gradient(135deg,transparent 38%,rgba(255,255,255,.78) 49%,transparent 60%); transform: translate(-90%,-70%) rotate(4deg); animation: creator-brand-shine 5s ease-in-out infinite; pointer-events: none; }
@keyframes creator-brand-shine { 0%,28% { transform: translate(-90%,-70%) rotate(4deg); opacity: 0; } 42% { opacity: .9; } 62%,100% { transform: translate(90%,70%) rotate(4deg); opacity: 0; } }
.creator-brand img { display: block; width: 48px; height: 48px; object-fit: contain; }
.creator-brand span { display: grid; }.creator-brand strong { font-size: 23px; }.creator-brand small { color: #8490a5; font-size: 11px; }
.creator-nav nav { display: grid; gap: 8px; }.creator-nav nav p { margin: 14px 12px 4px; color: #929caf; font-size: 12px; }
.creator-nav nav button,.creator-nav-link { display: grid; grid-template-columns: 32px 1fr; gap: 1px 10px; width: 100%; padding: 12px; text-align: left; text-decoration: none; color: #4e596e; background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.creator-nav nav button > span,.creator-nav-link > span { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; color: #56637a; background: #f2f4f8; border-radius: 6px; }.creator-nav nav button b,.creator-nav-link b { font-size: 14px; }.creator-nav nav button small,.creator-nav-link small { color: #9aa3b3; font-size: 11px; }
.creator-nav nav button:hover,.creator-nav nav button.is-active,.creator-nav-link:hover { color: #315eff; background: #f2f5ff; border-color: #b8c7ff; }.creator-nav nav button.is-active > span { color: #fff; background: #4268ff; }
.creator-account-area { position: absolute; right: 18px; bottom: 20px; left: 18px; display: grid; gap: 8px; }.creator-membership { display: grid; gap: 5px; padding: 12px; background: #f1f5ff; border: 1px solid #e1e8fb; border-radius: 7px; }.creator-membership b { color: #315eff; font-size: 12px; }.creator-membership span { color: #8290a9; font-size: 10px; }.creator-membership.is-active { background: #f3f0ff; }.creator-account { display: grid; grid-template-columns: 36px 1fr 12px; align-items: center; gap: 9px; padding: 9px; color: #273047; text-decoration: none; background: #fff; border: 1px solid #e4e8ef; border-radius: 7px; }.creator-account i { display: grid; width: 36px; height: 36px; overflow: hidden; place-items: center; color: #fff; font-style: normal; background: #4268ff; border-radius: 50%; }.creator-account i img { width: 100%; height: 100%; object-fit: cover; }.creator-account span { display: grid; min-width: 0; }.creator-account b { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }.creator-account small { margin-top: 3px; color: #929caf; font-size: 10px; }.creator-account em { color: #9ca5b4; font-style: normal; }
.creator-main { min-width: 0; padding: 0 34px 50px; }.creator-topbar { display: flex; align-items: center; justify-content: space-between; height: 82px; }.creator-topbar h1 { margin: 0; font-size: 20px; }.creator-topbar p { margin: 4px 0 0; color: #929caf; font-size: 12px; }.creator-topbar button { padding: 9px 15px; color: #4d5a70; background: #fff; border: 1px solid #dfe4ed; border-radius: 6px; cursor: pointer; }
.creator-intro { padding: 20px 28px; background: linear-gradient(100deg,#f7f9ff,#eef1ff); border: 1px solid #e6eafa; border-radius: 8px 8px 0 0; }.creator-intro h2 { margin: 0; font-size: 25px; }.creator-intro p { margin: 7px 0 0; color: #8590a5; font-size: 13px; }
.creator-workspace { display: grid; grid-template-columns: minmax(500px, 1.18fr) minmax(360px, .82fr); align-items: start; gap: 20px; padding: 22px; background: #fff; border: 1px solid #e6eafa; border-top: 0; border-radius: 0 0 8px 8px; box-shadow: 0 12px 36px rgba(34,48,78,.06); }
.creator-form { min-width: 0; }.creator-mode-tabs { display: flex; gap: 24px; margin-bottom: 17px; border-bottom: 1px solid #edf0f5; }.creator-mode-tabs button { padding: 0 4px 12px; color: #8791a4; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }.creator-mode-tabs button.is-active { color: #315eff; border-color: #315eff; }
.creator-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }.creator-prompt-wrap { position: relative; }.creator-prompt-wrap textarea { width: 100%; min-height: 142px; padding: 15px 16px 42px; resize: vertical; color: #273044; line-height: 1.7; background: #fbfcfe; border: 1px solid #dfe4ed; border-radius: 7px; outline: none; }.creator-prompt-wrap textarea:focus { border-color: #6f8cff; box-shadow: 0 0 0 3px rgba(68,105,255,.09); }.creator-prompt-tools { position: absolute; top: -38px; right: 0; display: flex; gap: 6px; }.creator-prompt-tools button { min-width: 30px; height: 29px; padding: 0 9px; color: #315eff; background: #edf2ff; border: 0; border-radius: 5px; cursor: pointer; }.creator-prompt-tools button[hidden] { display: none; }.creator-prompt-tools #creatorClear { color: #7f8999; background: #f0f2f6; font-size: 18px; }.creator-prompt-wrap > span { position: absolute; right: 12px; bottom: 15px; color: #a0a9b8; font-size: 11px; }
.creator-settings { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 10px; margin-top: 16px; }.creator-settings label { min-width: 0; }.creator-settings label > span { display: block; margin: 0 0 6px 2px; color: #7e899c; font-size: 11px; }.creator-settings select { width: 100%; height: 43px; padding: 0 10px; color: #263046; background: #fff; border: 1px solid #dfe4ed; border-radius: 6px; outline: none; }
.creator-reference-head { display: flex; justify-content: space-between; margin-top: 17px; font-size: 12px; }.creator-reference-head small { color: #a0a9b8; }.creator-reference-head button { color: #8791a4; background: none; border: 0; cursor: pointer; }.creator-reference-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }.creator-reference-list { display: flex; flex: 1; gap: 10px; margin-top: 9px; min-height: 82px; }.creator-add-reference,.creator-reference-item { position: relative; display: grid; flex: 0 0 82px; place-items: center; width: 82px; height: 82px; overflow: hidden; background: #fafbfe; border: 1px dashed #cfd6e3; border-radius: 6px; }.creator-add-reference { color: #8e99ac; cursor: pointer; }.creator-add-reference b { font-size: 25px; font-weight: 300; }.creator-add-reference span { font-size: 10px; }.creator-reference-item img { width: 100%; height: 100%; object-fit: cover; }.creator-reference-item button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; color: #fff; background: rgba(20,25,35,.7); border: 0; border-radius: 50%; cursor: pointer; }
.creator-generate { display: flex; flex: 0 0 190px; align-items: center; justify-content: center; gap: 11px; min-height: 58px; padding: 12px 20px; color: #fff; background: linear-gradient(100deg,#3267ff,#9e42f5); border: 0; border-radius: 7px; box-shadow: 0 9px 20px rgba(77,82,235,.22); cursor: pointer; }.creator-generate:disabled { opacity: .55; cursor: wait; }.creator-generate > b { font-size: 20px; }.creator-generate > span { display: grid; text-align: left; font-weight: 700; }.creator-generate small { margin-top: 2px; font-size: 9px; font-weight: 400; opacity: .75; }.creator-status { display: none; }
.creator-preview { position: relative; display: grid; align-self: start; contain: layout paint size; min-width: 0; width: 100%; min-height: 440px !important; height: 440px !important; max-height: 440px !important; overflow: hidden !important; place-items: center; background: #f1f3f7; border: 1px solid #e1e5ec; border-radius: 7px; }.creator-preview > div { display: none; text-align: center; }.creator-preview.is-empty .creator-preview-empty,.creator-preview.is-generating .creator-generating,.creator-preview.is-error .creator-error { display: grid; justify-items: center; }.creator-preview.is-result .creator-result { display: grid; }.creator-preview-empty > span { display: grid; width: 56px; height: 56px; place-items: center; color: #8794a9; background: #fff; border-radius: 50%; box-shadow: 0 8px 24px rgba(30,40,60,.1); }.creator-preview h3 { margin: 17px 0 6px; font-size: 16px; }.creator-preview p { margin: 0; color: #929caf; font-size: 12px; }.creator-loader { display: flex; gap: 8px; }.creator-loader i { width: 12px; height: 12px; background: #4268ff; border-radius: 50%; animation: creatorPulse 1.1s infinite ease-in-out; }.creator-loader i:nth-child(2){animation-delay:.16s}.creator-loader i:nth-child(3){animation-delay:.32s}@keyframes creatorPulse{0%,80%,100%{transform:scale(.55);opacity:.35}40%{transform:scale(1);opacity:1}}.creator-progress-track { width: 220px; height: 4px; margin-top: 22px; overflow: hidden; background: #dfe4ee; border-radius: 4px; }.creator-progress-track span { display: block; width: 38%; height: 100%; background: #4268ff; animation: creatorProgress 2.4s infinite ease-in-out; }@keyframes creatorProgress{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}
.creator-result { position: absolute; inset: 0; grid-template-rows: minmax(0,1fr) 48px; width: auto; height: auto; overflow: hidden; }.creator-result video { position: relative; z-index: 2; display: block; width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; background: #0d0f14; }.creator-result-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 0 14px; background: rgba(10,22,42,.98); border-top: 1px solid rgba(126,152,200,.24); }.creator-result-footer p { overflow: hidden; color: #9caecc; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }.creator-result-footer a { flex: 0 0 auto; padding: 7px 10px; color: #a9c4ff; font-size: 12px; text-decoration: none; background: transparent; border: 0; cursor: pointer; }.creator-result-footer a:hover { color: #d7e4ff; }.creator-result > button { display: none; }.creator-error > span { display: grid; width: 44px; height: 44px; place-items: center; color: #fff; background: #e85c63; border-radius: 50%; font-weight: 800; }
.creator-reverse-link[hidden] { display: none !important; }.creator-reverse-link { display: grid; gap: 7px; margin-top: 16px; }.creator-reverse-link label { color: #edf3ff; font-size: 12px; font-weight: 700; }.creator-reverse-link input { width: 100%; height: 42px; padding: 0 12px; color: #e7eeff; background: rgba(4,13,28,.48); border: 1px solid rgba(125,155,208,.34); border-radius: 6px; outline: none; }.creator-reverse-link input:focus { border-color: #477cff; box-shadow: 0 0 0 3px rgba(65,112,255,.14); }.creator-reverse-link input::placeholder { color: #667894; }.creator-reverse-link small { color: #8395b3; font-size: 11px; }.creator-reverse-mode .creator-settings,.creator-reverse-mode .creator-settings label,.creator-reverse-mode .creator-mobile-select,.creator-reverse-mode .creator-reference-head { display: none !important; }.creator-reference-item video { width: 100%; height: 100%; object-fit: cover; background: #050b16; }
.creator-video-modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(1,5,12,.88); backdrop-filter: blur(8px); }.creator-video-modal video { display: block; width: min(92vw,1500px); height: min(88vh,900px); object-fit: contain; background: #000; }.creator-video-modal button { position: fixed; top: 20px; right: 24px; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; color: #fff; font-size: 28px; background: rgba(32,43,66,.9); border: 1px solid rgba(160,180,220,.35); border-radius: 6px; cursor: pointer; }
.creator-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 3px; }.creator-actions > div { display: flex; align-items: center; gap: 14px; }.creator-actions button { border: 0; cursor: pointer; }.creator-actions > div button { padding: 10px 13px; color: #315eff; background: #eef2ff; border-radius: 6px; }.creator-actions > div span { color: #909aab; font-size: 11px; }.creator-actions > button { display: flex; align-items: center; gap: 11px; min-width: 190px; justify-content: center; padding: 12px 20px; color: #fff; background: linear-gradient(100deg,#3267ff,#9e42f5); border-radius: 7px; box-shadow: 0 9px 20px rgba(77,82,235,.22); }.creator-actions > button:disabled { opacity: .55; cursor: wait; }.creator-actions > button b { font-size: 20px; }.creator-actions > button span { display: grid; text-align: left; font-weight: 700; }.creator-actions > button small { margin-top: 2px; font-size: 9px; font-weight: 400; opacity: .75; }
.creator-records { margin-top: 24px; }.creator-records header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 13px; }.creator-records h2 { margin: 0; font-size: 18px; }.creator-records header p { margin: 4px 0 0; color: #9aa3b2; font-size: 11px; }.creator-records header button { min-height: 28px; padding: 5px 10px; color: #9eb0ce; font-size: 11px; background: rgba(30,57,103,.35); border: 1px solid rgba(118,151,211,.28); border-radius: 5px; cursor: pointer; }.creator-records header button:hover { color: #d7e4ff; border-color: rgba(99,145,240,.55); }.creator-record-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,350px)); align-items: start; justify-content: start; gap: 14px; width: 100%; }.creator-record { width: 350px; max-width: 100%; overflow: hidden; background: #fff; border: 1px solid #e3e7ee; border-radius: 7px; }.creator-record-media { position: relative; isolation: isolate; display: grid; width: 100%; height: 350px; place-items: center; overflow: hidden; color: #8994a8; background: #eef1f6; }.creator-record-media video,.creator-record-media img { position: relative; z-index: 3; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; pointer-events: auto; background: #050b16; }.creator-record-body { position: relative; z-index: 1; padding: 12px; }.creator-record-heading { display: grid; grid-template-columns: minmax(0,1fr) 24px; align-items: center; gap: 7px; margin-bottom: 7px; }.creator-record-body h3 { min-width: 0; margin: 0; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }.creator-record-delete { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; color: #8491a7; font-size: 17px; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }.creator-record-delete:hover { color: #fff; background: #d94e5c; }.creator-record-body p { margin: 0; color: #8791a4; font-size: 10px; line-height: 1.55; }.creator-record-empty { grid-column: 1/-1; width: 100%; padding: 34px; color: #9aa3b2; text-align: center; background: #fff; border: 1px dashed #dce1ea; border-radius: 7px; }
.creator-record-media.is-portrait { height: 350px; aspect-ratio: auto; }.creator-record-media.is-portrait video { z-index: 10; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }.creator-record-media video::-webkit-media-controls { z-index: 20; }.creator-record-media video::-webkit-media-controls-enclosure,.creator-record-media video::-webkit-media-controls-panel { z-index: 21; display: flex !important; opacity: 1 !important; }
.creator-record-player { position: absolute; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 28px minmax(0,1fr) auto 28px 28px; align-items: center; gap: 7px; min-height: 42px; padding: 6px 8px; color: #fff; background: rgba(0,0,0,.88); box-shadow: 0 -10px 22px rgba(0,0,0,.22); }.creator-record-player button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; color: #fff; font-size: 14px; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }.creator-record-player button:hover { background: rgba(255,255,255,.15); }.creator-record-player input { width: 100%; min-width: 40px; height: 4px; accent-color: #6f9cff; cursor: pointer; }.creator-record-player time { min-width: 68px; color: #eef4ff; font-size: 10px; text-align: center; white-space: nowrap; }
@media(max-width:1100px){.creator-app{grid-template-columns:210px minmax(0,1fr)}.creator-main{padding-inline:20px}.creator-workspace{grid-template-columns:1fr}.creator-preview{min-height:360px}.creator-settings{grid-template-columns:repeat(3,1fr)}.creator-record-grid{grid-template-columns:repeat(auto-fill,minmax(280px,350px));justify-content:start}}
@media(max-width:720px){.creator-app{display:block}.creator-nav{position:relative;height:auto;padding:15px}.creator-nav nav,.creator-account-area{display:none}.creator-brand{padding:0}.creator-main{padding:0 12px 35px}.creator-topbar{height:68px}.creator-intro{padding:17px}.creator-intro h2{font-size:21px}.creator-workspace{padding:14px}.creator-settings{grid-template-columns:repeat(2,1fr)}.creator-reference-row{align-items:stretch;flex-direction:column}.creator-generate{width:100%}.creator-record-grid{grid-template-columns:1fr}}

/* Keep the creation form dense and prevent the desktop flex basis from
   becoming a tall button when the mobile reference row turns vertical. */
.creator-settings select { font-size: 14px; }
.creator-mobile-nav { display: none; }
@media (max-width: 720px) {
  html,
  body,
  .creator-app,
  .creator-main,
  .creator-workspace,
  .creator-form { width: 100%; max-width: 100vw; min-width: 0; }
  html,
  body,
  .creator-app { overflow-x: hidden; }
  .creator-main { padding-bottom: 92px; }
  .creator-workspace { grid-template-columns: minmax(0, 1fr); }
  .creator-settings,
  .creator-settings label,
  .creator-settings select { min-width: 0; width: 100%; }
  .creator-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-settings select { font-size: 14px; }
  .creator-generate {
    flex: 0 0 auto;
    width: min(100%, 260px);
    min-height: 54px;
    max-height: 54px;
    align-self: center;
    margin-inline: auto;
    padding: 8px 16px;
  }
  .creator-generate > b { font-size: 17px; }
  .creator-generate > span { font-size: 14px; }
  .creator-mobile-nav {
    position: fixed;
    z-index: 140;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 68px;
    padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    background: rgba(5, 11, 25, 0.98);
    border-top: 1px solid rgba(80, 154, 255, 0.18);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.34);
  }
  .creator-mobile-nav a {
    display: grid;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: rgba(215, 225, 247, 0.72);
    font-size: 10px;
    letter-spacing: 0;
    text-decoration: none;
  }
  .creator-mobile-nav a span { font-size: 20px; line-height: 1; }
  .creator-mobile-nav a b { overflow: hidden; max-width: 100%; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
  .creator-mobile-nav a.is-active { color: #4f9cff; }
}

body:has(.creator-app) { overflow: auto; color: #172033; background: #f5f7fb; }
.creator-app,.creator-app h1,.creator-app h2,.creator-app h3,.creator-app label,.creator-reference-head { color: #172033; }
.creator-generate small { font-size: 11px; }
.creator-guide-original { padding: 18px 22px 24px; }.creator-guide-original .tx-tip-list { display: grid; gap: 10px; }.creator-guide-original .tx-tip-card { grid-template-columns: 42px minmax(0,1fr); gap: 20px; min-height: 70px; padding: 10px 14px; background: rgba(5,15,30,.48); border-color: rgba(125,151,198,.22); }.creator-guide-original .tx-tip-card h2 { color: #e9f0ff; font-size: 14px; }.creator-guide-original .tx-tip-card p { color: #91a2be; font-size: 11px; }.creator-guide-original .tx-tip-icon { width: 42px; height: 42px; }.creator-guide-original .tx-tip-icon img { width: 42px; height: 42px; }.creator-guide-original .tx-tip-index { display: none; }

/* Video studio dark theme */
body:has(.creator-app) { color: #edf3ff; background: #07101f; }
.creator-app { color: #edf3ff; background: radial-gradient(ellipse at 55% 12%, #132449 0%, #091423 45%, #060d19 100%); }
.creator-nav { background: rgba(5, 15, 30, .82); border-color: rgba(129, 160, 220, .16); box-shadow: 10px 0 30px rgba(0,0,0,.12); }.creator-brand { color: #f5f8ff; }.creator-brand small { color: #8292ae; }
.creator-nav nav p { color: #71809b; }.creator-nav nav button,.creator-nav-link { color: #b2c0d7; transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }.creator-nav nav button > span,.creator-nav-link > span { color: #a3b4ce; background: rgba(137,158,195,.1); transition: color .2s ease, background .2s ease, transform .2s ease; }.creator-nav nav button:hover,.creator-nav-link:hover { color: #ecf3ff; background: rgba(42,92,210,.13); border-color: rgba(81,134,255,.36); transform: translateX(3px); }.creator-nav nav button.is-active { color: #f5f8ff; background: linear-gradient(90deg,rgba(31,91,228,.27),rgba(19,39,90,.12)); border-color: #286df7; box-shadow: inset 3px 0 #66a2ff, 0 0 20px rgba(37,103,247,.14); transform: translateX(3px); }.creator-nav nav button.is-active > span { color: #fff; background: #3374ff; transform: scale(1.06); }.creator-nav-link:hover > span { color: #fff; background: #3c65ca; }
.creator-membership,.creator-account { background: rgba(12,27,53,.76); border-color: rgba(120,152,211,.2); }.creator-membership b { color: #8caeff; }.creator-membership span,.creator-account small { color: #8193b3; }.creator-membership.is-active { background: rgba(57,36,116,.33); }.creator-account { color: #e8efff; }.creator-account i { background: linear-gradient(135deg,#395eea,#8452e9); }
.creator-main { background: transparent; }.creator-topbar { justify-content: flex-end; }.creator-topbar h1,.creator-intro h2,.creator-app h1,.creator-app h2,.creator-app h3,.creator-app label,.creator-reference-head { color: #edf3ff; }.creator-topbar p,.creator-intro p { color: #8ea0bf; }.creator-topbar button { color: #e8efff; background: rgba(12,27,53,.65); border-color: #2e69d9; box-shadow: 0 0 14px rgba(43,96,225,.16); }.creator-intro { position: relative; overflow: hidden; background-color: #0d1730; background-image: linear-gradient(90deg,rgba(8,17,37,.9),rgba(8,17,37,.18)),url("./images/bg.jpg"); background-repeat: no-repeat; background-position: left center,right center; background-size: 100% 100%,auto 100%; border-color: rgba(68,118,234,.55); box-shadow: inset 0 0 40px rgba(35,66,149,.16); }.creator-intro::after { display: none; }
.creator-workspace { background: rgba(12,24,45,.83); border-color: rgba(124,151,204,.22); box-shadow: 0 18px 46px rgba(0,0,0,.27); }.creator-mode-tabs { border-color: rgba(130,157,206,.16); }.creator-mode-tabs button { color: #91a1bd; }.creator-mode-tabs button.is-active { color: #6f9cff; border-color: #4c80ff; text-shadow: 0 0 14px rgba(76,128,255,.55); }.creator-prompt-wrap textarea { color: #e7eeff; background: rgba(4,13,28,.48); border-color: rgba(125,155,208,.34); }.creator-prompt-wrap textarea::placeholder { color: #667894; }.creator-prompt-wrap textarea:focus::placeholder { color: transparent; }.creator-prompt-wrap textarea:focus { border-color: #477cff; box-shadow: 0 0 0 3px rgba(65,112,255,.14); }.creator-prompt-tools button { color: #91b1ff; background: rgba(41,81,170,.2); border: 1px solid rgba(88,129,230,.21); }.creator-prompt-tools #creatorClear { color: #aebbd1; background: rgba(113,130,161,.13); }.creator-prompt-tools button.is-loading { color: #c9d9ff; cursor: wait; }.creator-mini-spinner { display: inline-block; width: 10px; height: 10px; margin-right: 3px; border: 2px solid rgba(196,215,255,.3); border-top-color: #a9c2ff; border-radius: 50%; animation: creatorSpin .7s linear infinite; }@keyframes creatorSpin { to { transform: rotate(360deg); } }
.creator-settings select { color: #e6eeff; background: rgba(4,13,28,.48); border-color: rgba(125,155,208,.34); }.creator-settings select option { color: #e6eeff; background: #101d33; }.creator-reference-head small,.creator-reference-head button { color: #8395b3; }.creator-add-reference,.creator-reference-item { background: rgba(6,16,32,.35); border-color: rgba(139,166,215,.52); }.creator-add-reference { color: #8da7d8; }.creator-generate { background: linear-gradient(105deg,#226dff,#8c3ee8); box-shadow: 0 10px 22px rgba(42,75,234,.32), inset 0 1px rgba(255,255,255,.22); }
.creator-preview { background: rgba(7,16,32,.64); border-color: rgba(126,152,200,.3); }.creator-preview-empty > span { color: #b2c3e0; background: rgba(99,124,173,.18); box-shadow: 0 0 0 11px rgba(93,121,179,.09); }.creator-preview p,.creator-records header p { color: #8394b0; }.creator-progress-track { background: rgba(114,139,189,.22); }.creator-progress-track span { background: #4c80ff; }.creator-record { background: rgba(11,25,48,.85); border-color: rgba(125,151,198,.24); }.creator-record-media { color: #8b9dbb; background: rgba(5,15,30,.65); }.creator-record-body p,.creator-records header button { color: #8496b4; }.creator-record-empty { color: #91a2bd; background: rgba(9,22,43,.55); border-color: rgba(125,151,198,.3); }
.creator-guide-modal { position: fixed; z-index: 99; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,7,16,.7); backdrop-filter: blur(8px); }.creator-guide-dialog { width: min(680px,100%); max-height: min(780px,90vh); overflow: auto; color: #eaf1ff; background: #101d33; border: 1px solid rgba(91,137,255,.55); border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.48); }.creator-guide-dialog header { display: grid; grid-template-columns: 42px 1fr 32px; align-items: center; gap: 12px; padding: 22px 24px; border-bottom: 1px solid rgba(125,151,198,.2); }.creator-guide-dialog header > span { display: grid; width: 38px; height: 38px; place-items: center; color: #b7ccff; background: rgba(57,99,216,.26); border-radius: 7px; }.creator-guide-dialog h2 { margin: 0; color: #f1f5ff; font-size: 19px; }.creator-guide-dialog header p { margin: 4px 0 0; color: #8799b8; font-size: 12px; }.creator-guide-dialog header button { width: 30px; height: 30px; padding: 0; color: #bdc9dd; font-size: 22px; background: transparent; border: 0; cursor: pointer; }.creator-guide-list { display: grid; gap: 10px; padding: 20px 24px 24px; }.creator-guide-list article { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 13px; background: rgba(4,14,29,.48); border: 1px solid rgba(127,155,205,.18); border-radius: 6px; }.creator-guide-list article > b { display: grid; width: 26px; height: 26px; place-items: center; color: #dce7ff; font-size: 12px; background: #315fc4; border-radius: 5px; }.creator-guide-list h3 { margin: 1px 0 5px; color: #e6eeff; font-size: 14px; }.creator-guide-list p { margin: 0; color: #91a2be; font-size: 12px; line-height: 1.6; }

/* Mobile selects use a compact in-page sheet instead of the browser's oversized native chooser. */
.creator-mobile-select,
.creator-mobile-picker { display: none; }

@media (max-width: 720px) {
  body.creator-picker-open { overflow: hidden; }

  .creator-settings > label > select { display: none; }

  .creator-mobile-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 42px;
    padding: 0 11px;
    overflow: hidden;
    color: #e8efff;
    text-align: left;
    background: rgba(5, 16, 33, .78);
    border: 1px solid rgba(115, 156, 234, .34);
    border-radius: 7px;
    box-shadow: inset 0 1px rgba(255,255,255,.035);
    cursor: pointer;
  }

  .creator-mobile-select:active { border-color: #568cff; background: rgba(20, 48, 94, .78); }
  .creator-mobile-select:disabled { opacity: .48; cursor: default; }
  .creator-mobile-select-value { overflow: hidden; font-size: 13px; font-weight: 550; line-height: 1; white-space: nowrap; text-overflow: ellipsis; }
  .creator-mobile-select > i { flex: 0 0 auto; width: 7px; height: 7px; border-right: 1.5px solid #9ab7ee; border-bottom: 1.5px solid #9ab7ee; transform: rotate(45deg) translateY(-2px); }

  .creator-mobile-picker[hidden] { display: none; }
  .creator-mobile-picker {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: block;
  }

  .creator-mobile-picker-backdrop { position: absolute; inset: 0; background: rgba(2, 7, 17, .7); backdrop-filter: blur(4px); }
  .creator-mobile-picker-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(68dvh, 540px);
    overflow: hidden;
    background: #0b1730;
    border: 1px solid rgba(87, 139, 242, .48);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 54px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.08);
    animation: creatorPickerRise .18s ease-out;
  }

  @keyframes creatorPickerRise { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

  .creator-mobile-picker-sheet header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 30px;
    align-items: center;
    gap: 8px;
    padding: 19px 18px 13px;
    border-bottom: 1px solid rgba(126, 158, 211, .16);
  }

  .creator-mobile-picker-handle { position: absolute; top: 7px; left: 50%; width: 32px; height: 3px; background: rgba(186, 205, 239, .34); border-radius: 3px; transform: translateX(-50%); }
  .creator-mobile-picker-sheet header p { margin: 0; color: #f1f5ff; font-size: 15px; font-weight: 650; }
  .creator-mobile-picker-sheet header small { display: block; margin-top: 3px; color: #8497ba; font-size: 11px; }
  .creator-mobile-picker-sheet header button { width: 30px; height: 30px; padding: 0; color: #aac0e8; font-size: 21px; line-height: 1; background: rgba(115, 146, 205, .11); border: 1px solid rgba(138, 166, 220, .18); border-radius: 50%; cursor: pointer; }
  .creator-mobile-picker-options { display: grid; gap: 7px; max-height: calc(min(68dvh, 540px) - 88px); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .creator-mobile-picker-option { display: grid; grid-template-columns: minmax(0,1fr) 23px; align-items: center; gap: 10px; width: 100%; min-height: 45px; padding: 9px 11px; color: #dce7fb; text-align: left; background: rgba(22, 40, 73, .58); border: 1px solid rgba(122, 153, 207, .17); border-radius: 8px; cursor: pointer; }
  .creator-mobile-picker-option > span { min-width: 0; }.creator-mobile-picker-option b { display: block; overflow: hidden; font-size: 13px; font-weight: 560; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }.creator-mobile-picker-option small { display: block; overflow: hidden; margin-top: 3px; color: #8194b7; font-size: 10px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
  .creator-mobile-picker-option > i { width: 19px; height: 19px; border: 1.5px solid rgba(177, 199, 235, .55); border-radius: 50%; }
  .creator-mobile-picker-option[aria-selected="true"] { color: #f1f6ff; background: rgba(38, 91, 188, .32); border-color: #4d8cff; box-shadow: inset 0 0 18px rgba(55, 121, 255, .14); }
  .creator-mobile-picker-option[aria-selected="true"] > i { position: relative; border-color: #63b9ff; background: #238bff; box-shadow: 0 0 12px rgba(35, 139, 255, .55); }
  .creator-mobile-picker-option[aria-selected="true"] > i::after { position: absolute; top: 4px; left: 6px; width: 5px; height: 8px; content: ""; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(40deg); }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body:has(.creator-app) .creator-generate small { font-size: 11px; }

body {
  overflow: hidden;
  color: var(--tx-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f7f8fb;
}

button,
select {
  font: inherit;
}

.tx-video-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.tx-page-transition {
  position: fixed;
  z-index: 8;
  inset: 0 0 0 var(--tx-sidebar-width);
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #0f1014;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease, visibility 0s linear 900ms;
}

.tx-page-transition.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 120ms ease, visibility 0s linear 0s;
}

.tx-page-transition.is-fading {
  opacity: 0;
  visibility: visible;
  transition: opacity 1200ms ease;
}

.tx-loading-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  letter-spacing: 0;
}

.tx-loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.13);
  border-bottom-color: #00d5e9;
  border-radius: 999px;
  animation: tx-loading-spin 860ms linear infinite;
}

.tx-loading-text {
  line-height: 1;
}

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

.tx-model-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.tx-model-frame.is-hidden {
  visibility: hidden;
}

.tx-home-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 46px 56px 56px calc(var(--tx-sidebar-width) + 64px);
  overflow: auto;
  color: #172033;
  background:
    radial-gradient(circle at 28% 18%, rgba(76, 128, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
}

.tx-home-panel.is-hidden {
  display: none;
}

.tx-home-content {
  width: min(1040px, 100%);
  padding: 46px 36px 36px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(225, 233, 246, 0.9);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(61, 89, 132, 0.13);
  backdrop-filter: blur(10px);
}

.tx-home-head {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 22px;
  margin: 0 18px 32px;
}

.tx-home-badge {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
}

.tx-home-badge img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.tx-home-content h1 {
  margin: 0;
  color: #061c46;
  font-size: 34px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.tx-home-head p {
  margin: 4px 0 0;
  color: #5f6f8c;
  font-size: 17px;
  line-height: 1.15;
}

.tx-tip-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.tx-tip-card {
  display: grid;
  grid-template-columns: 70px 30px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 11px 20px;
  background: rgba(248, 251, 255, 0.72);
  border: 1px solid #dbe8fb;
  border-radius: 8px;
}

.tx-tip-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
}

.tx-tip-icon img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.tx-tip-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #347cff, #5b96ff);
  border-radius: 7px;
}

.tx-tip-card h2 {
  margin: 0;
  color: #061c46;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.tx-tip-card p {
  margin: 4px 0 0;
  color: #27364f;
  font-size: 14px;
  line-height: 1.15;
}

.tx-flow-panel {
  margin-top: 30px;
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 242, 0.88));
  border: 1px solid #f0e5bd;
  border-radius: 10px;
  box-shadow: inset 0 0 34px rgba(250, 194, 76, 0.08);
}

.tx-flow-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 46px;
  color: #12213b;
}

.tx-flow-title h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 850;
  line-height: 1.1;
}

.tx-flow-title-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, #7656ff, #8c5bff);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(108, 80, 232, 0.2);
}

.tx-flow-title-star {
  color: #906bff;
  font-size: 30px;
  line-height: 1;
}

.tx-flow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.tx-flow-step {
  position: relative;
  display: grid;
  min-height: 176px;
  padding: 42px 12px 18px;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--flow-bg), rgba(255, 255, 255, 0.94));
  border: 1px solid var(--flow-border);
  border-radius: 14px;
}

.tx-flow-step:not(:last-child)::after {
  position: absolute;
  right: -14px;
  top: 50%;
  z-index: 2;
  content: "›";
  color: var(--flow-arrow);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-52%);
}

.tx-flow-step-1 {
  --flow-bg: #f7f4ff;
  --flow-border: #ded6fb;
  --flow-main: #6b45f3;
  --flow-arrow: #c7bffc;
}

.tx-flow-step-2 {
  --flow-bg: #f3f9ff;
  --flow-border: #d8e8fb;
  --flow-main: #168de9;
  --flow-arrow: #9fd9e9;
}

.tx-flow-step-3 {
  --flow-bg: #f5fff9;
  --flow-border: #d6efe1;
  --flow-main: #19bd75;
  --flow-arrow: #b9e6c7;
}

.tx-flow-step-4 {
  --flow-bg: #fffaf0;
  --flow-border: #f2dfb9;
  --flow-main: #ff9a11;
  --flow-arrow: #f7c068;
}

.tx-flow-step-5 {
  --flow-bg: #fff6fb;
  --flow-border: #f2d4e4;
  --flow-main: #f03b93;
  --flow-arrow: #f5aecb;
}

.tx-flow-step-6 {
  --flow-bg: #f7f5ff;
  --flow-border: #ded8f6;
  --flow-main: #6655e9;
  --flow-arrow: #c7bffc;
}

.tx-flow-number {
  position: absolute;
  top: -17px;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 850;
  background: var(--flow-main);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(39, 88, 180, 0.18);
  transform: translateX(-50%);
}

.tx-flow-step h3 {
  margin: 0;
  color: #0d1d3a;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.tx-flow-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-top: 16px;
  color: var(--flow-main);
  font-size: 38px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.88);
  background: color-mix(in srgb, var(--flow-main) 13%, #fff);
  border-radius: 12px;
}

.tx-flow-button-demo {
  display: grid;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 12px;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  background: linear-gradient(135deg, #8b5cf6, #6a48e7);
  border-radius: 7px;
  box-shadow: 0 12px 24px rgba(107, 77, 226, 0.2);
}

.tx-director-button {
  font: inherit;
}

.tx-flow-help {
  position: relative;
  display: grid;
  grid-template-columns: minmax(148px, 1fr) 34px minmax(210px, 1.35fr) 24px minmax(170px, 1fr) 24px minmax(150px, 0.9fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 106px;
  margin-top: 24px;
  padding: 26px 20px 18px;
  color: #101f3d;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(255, 248, 226, 0.9));
  border: 1px solid #f1e2ad;
  border-radius: 9px;
  cursor: default;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tx-flow-help:hover {
  border-color: #f1e2ad;
  box-shadow: none;
  transform: none;
}

.tx-flow-help-badge {
  position: absolute;
  left: 18px;
  top: -17px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  background: linear-gradient(135deg, #ffb12a, #ff8b10);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 143, 22, 0.2);
}

.tx-flow-help-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #142342;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
}

.tx-flow-help-text {
  display: block;
  min-width: 0;
  width: auto;
  height: auto;
  color: #142342;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
  background: transparent;
  border-radius: 0;
}

.tx-flow-help-item > span:first-child {
  display: inline-grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 850;
  background: linear-gradient(135deg, #8d63ff, #704eed);
  border-radius: 9px;
}

.tx-flow-help-director > span:first-child {
  background: linear-gradient(135deg, #39c56d, #26a94e);
}

.tx-flow-help-extract > span:first-child {
  background: linear-gradient(135deg, #70a7ff, #4b82e8);
}

.tx-flow-help-send > span:first-child {
  background: linear-gradient(135deg, #8d63ff, #6a50e8);
}

.tx-flow-help-or {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #5b4b21;
  font-size: 16px;
  font-weight: 850;
  background: #fff4c9;
  border-radius: 999px;
  transform: translateX(-8px);
}

.tx-flow-help-arrow {
  color: #f0c65c;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.tx-sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  width: var(--tx-sidebar-width);
  padding: 26px 14px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(70, 132, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #111a30 0%, #0b1326 48%, #0b1326 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--tx-shadow);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  isolation: isolate;
}

.tx-sidebar::before {
  position: absolute;
  right: -58px;
  top: 8px;
  z-index: 0;
  width: 250px;
  height: 150px;
  content: "";
  background:
    radial-gradient(ellipse at 54% 52%, rgba(13, 96, 220, 0.12), rgba(7, 18, 37, 0.5) 70%, rgba(7, 18, 37, 0.9) 100%),
    url("images/sjdbj.jpg") center / cover no-repeat;
  border-radius: 24px;
  box-shadow: 0 0 42px rgba(26, 120, 255, 0.2);
  opacity: 0.78;
  -webkit-mask-image: radial-gradient(ellipse at 54% 52%, #000 42%, rgba(0, 0, 0, 0.72) 58%, transparent 78%);
  mask-image: radial-gradient(ellipse at 54% 52%, #000 42%, rgba(0, 0, 0, 0.72) 58%, transparent 78%);
  pointer-events: none;
}

.tx-sidebar > * {
  position: relative;
  z-index: 1;
}

.tx-brand-logo::after {
  position: absolute;
  inset: -18px;
  content: "";
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.68) 48%, transparent 61%);
  transform: translateX(-95%) rotate(8deg);
  animation: tx-logo-shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tx-logo-shine {
  0%,
  28% {
    transform: translateX(-95%) rotate(8deg);
    opacity: 0;
  }

  42% {
    opacity: 0.9;
  }

  62%,
  100% {
    transform: translateX(95%) rotate(8deg);
    opacity: 0;
  }
}

.tx-sidebar::-webkit-scrollbar {
  width: 7px;
}

.tx-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.tx-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.tx-brand-logo {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.tx-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tx-brand-copy {
  display: grid;
  gap: 4px;
}

.tx-logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  background: linear-gradient(135deg, #19d4ff 0%, #6d5cff 48%, #1af0a7 100%);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 117, 255, 0.38);
}

.tx-logo-text {
  font-size: 33px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
}

.tx-logo-text span {
  color: #5a7cff;
}

.tx-logo-subtitle {
  color: rgba(216, 225, 244, 0.64);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.tx-section {
  margin-top: 14px;
}

.tx-section-title {
  display: block;
  margin: 0 0 8px 4px;
  color: #d7def1;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.tx-model-section {
  margin-top: 0;
}

.tx-model-list {
  display: grid;
  gap: 8px;
}

.tx-model-list:not(.is-open) .tx-model-button:not(.is-active):not(.tx-model-placeholder) {
  display: none;
}

.tx-model-list.is-open .tx-model-placeholder,
.tx-model-list.has-selection .tx-model-placeholder {
  display: none;
}

.tx-model-button {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 6px 8px;
  color: var(--tx-text);
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.tx-model-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(105, 167, 255, 0.44);
}

.tx-model-button.is-active {
  background: linear-gradient(135deg, rgba(37, 117, 255, 0.42), rgba(59, 130, 246, 0.22));
  border-color: var(--tx-border-strong);
  box-shadow: inset 0 0 0 1px rgba(80, 159, 255, 0.26), 0 10px 28px rgba(30, 110, 255, 0.18);
}

.tx-model-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--icon-a), var(--icon-b));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.tx-model-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.tx-model-name {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-model-subtitle {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #aeb9d4;
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-check {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: transparent;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.tx-model-button.is-active .tx-check {
  color: #fff;
  background: #277fff;
}

.tx-model-list:not(.is-open) .tx-model-button.is-active .tx-check {
  color: transparent;
  background: transparent;
}

.tx-model-list:not(.is-open) .tx-model-button.is-active .tx-check::before {
  display: block;
  width: 9px;
  height: 9px;
  content: "";
  border-right: 2px solid #c8d8f8;
  border-bottom: 2px solid #c8d8f8;
  transform: rotate(45deg) translateY(-3px);
}

.tx-model-list.is-open .tx-model-button.is-active .tx-check {
  color: #fff;
  background: #277fff;
}

.tx-model-placeholder .tx-check {
  color: transparent;
  background: transparent;
}

.tx-model-placeholder .tx-check::before {
  display: block;
  width: 9px;
  height: 9px;
  content: "";
  border-right: 2px solid #c8d8f8;
  border-bottom: 2px solid #c8d8f8;
  transform: rotate(45deg) translateY(-3px);
}

.tx-model-placeholder-icon {
  font-size: 18px;
  background: linear-gradient(135deg, #247bff, #3ac8ff);
}

.tx-director-model-button {
  margin-top: 8px;
  background: rgba(35, 50, 79, 0.92);
  border-color: rgba(92, 147, 232, 0.52);
}

#generationTypeSection[hidden] {
  display: none;
}

.tx-segment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tx-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  color: #e3e9f8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tx-segment:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(88, 164, 255, 0.7);
  box-shadow: 0 8px 18px rgba(29, 124, 255, 0.14);
  transform: translateY(-1px);
}

.tx-segment:not(:disabled):active {
  transform: translateY(1px);
}

.tx-segment {
  gap: 6px;
  font-size: 12px;
}

.tx-ratio-icon {
  display: block;
  width: 15px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.tx-segment[data-ratio="9:16"] .tx-ratio-icon {
  width: 10px;
  height: 16px;
}

.tx-segment[data-ratio="1:1"] .tx-ratio-icon {
  width: 13px;
  height: 13px;
}

.tx-segment.is-active {
  color: #fff;
  background: rgba(37, 117, 255, 0.36);
  border-color: rgba(64, 145, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(80, 159, 255, 0.14);
}

.tx-segment:disabled {
  color: rgba(212, 222, 244, 0.42);
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.045);
}

.tx-select {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 10px;
  color: #edf3ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  outline: none;
}

.tx-select:focus {
  border-color: rgba(73, 153, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(46, 140, 255, 0.14);
}

.tx-select option {
  color: #111827;
}

.tx-info {
  display: none;
  padding: 12px 10px;
  min-height: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.tx-info .tx-section-title {
  margin-left: 0;
}

.tx-info p {
  margin: 0;
  color: #c7d2e9;
  font-size: 11px;
  line-height: 1.65;
}

.tx-status {
  display: grid;
  gap: 10px;
  min-height: 20px;
  margin-top: 12px;
  padding: 0 4px;
  color: var(--tx-muted);
  font-size: 11px;
  line-height: 1.45;
}

.tx-status > #statusText {
  display: none;
}

.tx-tips-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  color: #b9c6dd;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tx-tips-button:hover {
  color: #e2ebff;
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.16);
}

.tx-copy-button {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #1d7cff, #30c4ff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(29, 124, 255, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.tx-copy-button:hover {
  border-color: rgba(255, 255, 255, 0.42);
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(29, 124, 255, 0.34);
}

.tx-copy-button:disabled,
.tx-copy-button:disabled:hover {
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
  filter: none;
  transform: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.tx-copy-button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 7px 18px rgba(29, 124, 255, 0.22);
}

.tx-duration-control {
  width: 100%;
}

.tx-duration-number {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 34px;
  padding: 0 10px 0 0;
  overflow: hidden;
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
}

.tx-duration-number input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  color: #edf3ff;
  background: transparent;
  border: 0;
  outline: none;
}

.tx-duration-number span {
  color: #aeb9d4;
  font-size: 12px;
}

.tx-mobile-prompt-section {
  display: block;
}

.tx-mobile-prompt-box {
  position: relative;
  min-height: 180px;
  padding: 10px 34px 28px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.tx-mobile-prompt-box textarea {
  width: 100%;
  min-height: 136px;
  resize: none;
  color: #edf3ff;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  background: transparent;
  border: 0;
  outline: none;
}

.tx-mobile-prompt-box textarea::placeholder {
  color: rgba(214, 226, 255, 0.42);
}

.tx-prompt-magic {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #cfe2ff;
  font-size: 18px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(43, 146, 255, 0.62));
  transition: color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.tx-prompt-magic:hover {
  color: #fff;
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 0 12px rgba(43, 146, 255, 0.88));
}

.tx-prompt-magic.has-prompt {
  color: #79ddff;
  background: rgba(0, 132, 255, 0.24) !important;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(69, 177, 255, 0.5), 0 0 18px rgba(24, 157, 255, 0.95), 0 0 34px rgba(0, 89, 255, 0.58);
  text-shadow: 0 0 10px rgba(98, 222, 255, 0.95);
  animation: tx-prompt-magic-glow 1.8s ease-in-out infinite;
}

@keyframes tx-prompt-magic-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(27, 151, 255, 0.95));
  }

  50% {
    filter: drop-shadow(0 0 22px rgba(44, 214, 255, 1));
  }
}

.tx-prompt-clear {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  background: rgba(203, 211, 225, 0.38);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.tx-prompt-clear:hover {
  background: rgba(203, 211, 225, 0.62);
  transform: scale(1.06);
}

.tx-prompt-undo {
  position: absolute;
  right: 10px;
  bottom: 36px;
  display: none;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  color: #d8e8ff;
  font-size: 14px;
  line-height: 1;
  background: rgba(45, 134, 255, 0.32);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tx-prompt-undo.is-visible {
  display: grid;
}

.tx-prompt-undo:hover {
  background: rgba(45, 134, 255, 0.58);
  box-shadow: 0 0 12px rgba(45, 160, 255, 0.55);
  transform: scale(1.06);
}

.tx-mobile-prompt-meta {
  position: absolute;
  left: 10px;
  right: 34px;
  bottom: 9px;
  overflow: hidden;
  color: rgba(197, 213, 244, 0.52);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-mobile-menu-button,
.tx-mobile-model-button,
.tx-mobile-bottom-nav,
.tx-mobile-director-bar {
  display: none;
}

@media (max-height: 780px) {
  .tx-sidebar {
    padding-top: 18px;
  }

  .tx-brand {
    margin-bottom: 14px;
  }

  .tx-model-button {
    min-height: 48px;
  }

  .tx-model-icon {
    width: 30px;
    height: 30px;
  }

  .tx-section {
    margin-top: 10px;
  }
}

@media (max-width: 1200px) {
  .tx-home-panel {
    padding-right: 28px;
    padding-left: calc(var(--tx-sidebar-width) + 28px);
  }

  .tx-home-content {
    padding: 32px 26px;
  }

  .tx-flow-title h2 {
    font-size: 28px;
  }

  .tx-flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }

  .tx-flow-step:nth-child(3)::after {
    display: none;
  }

  .tx-flow-help {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .tx-flow-help-or,
  .tx-flow-help-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --tx-sidebar-width: 100vw;
  }

  body {
    overflow: hidden;
    background: #0b1326;
  }

  .tx-video-shell {
    background: #0b1326;
  }

  .tx-model-frame {
    z-index: 1;
  }

  .tx-page-transition {
    z-index: 20;
    inset: 0;
    background: #0b1326;
  }

  .tx-sidebar {
    z-index: 12;
    width: 100vw;
    padding: 12px 34px 88px;
    border-right: 0;
    transform: translateX(0);
    transition: transform 260ms ease;
    isolation: isolate;
    background:
      radial-gradient(circle at 78% 8%, rgba(31, 115, 255, 0.34), transparent 18%),
      radial-gradient(circle at 22% 14%, rgba(23, 214, 255, 0.2), transparent 16%),
      linear-gradient(180deg, #071225 0%, #081225 48%, #050b17 100%);
  }

  .tx-sidebar::before {
    display: none;
  }

  .tx-sidebar > * {
    position: relative;
    z-index: 1;
  }

  body.is-mobile-app .tx-sidebar {
    transform: translateX(-102%);
  }

  body.is-mobile-tips .tx-sidebar {
    transform: translateX(-102%);
  }

  body.is-mobile-director .tx-sidebar {
    transform: translateX(-102%);
  }

  .tx-brand {
    min-height: 92px;
    margin-bottom: 0;
    padding: 0 0px;
    gap: 14px;
    position: relative;
    transform: translate(-10px, -10px);
  }

  .tx-brand::after {
    position: absolute;
    right: -60px;
    top: -2px;
    width: 250px;
    height: 150px;
    content: "";
    background:
      radial-gradient(ellipse at 54% 52%, rgba(13, 96, 220, 0.12), rgba(7, 18, 37, 0.5) 70%, rgba(7, 18, 37, 0.9) 100%),
      url("images/sjdbj.jpg") center / cover no-repeat;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 0 42px rgba(26, 120, 255, 0.2);
    opacity: 0.86;
    transform: none;
    -webkit-mask-image: radial-gradient(ellipse at 54% 52%, #000 42%, rgba(0, 0, 0, 0.72) 58%, transparent 78%);
    mask-image: radial-gradient(ellipse at 54% 52%, #000 42%, rgba(0, 0, 0, 0.72) 58%, transparent 78%);
    pointer-events: none;
  }

  .tx-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .tx-logo-text {
    font-size: 30px;
    text-shadow: 0 0 20px rgba(62, 128, 255, 0.28);
  }

  .tx-logo-subtitle {
    font-size: 12px;
  }

  .tx-section {
    margin-top: 10px;
  }

  .tx-mobile-control-card {
    display: block;
    margin: -8px -11px 0;
    padding: 4px 11px 12px;
    background: rgba(4, 12, 28, 0.64);
    border: 1px solid rgba(35, 116, 255, 0.22);
    border-radius: 18px;
    box-shadow: inset 0 0 34px rgba(31, 111, 255, 0.14), 0 20px 48px rgba(0, 0, 0, 0.24);
  }

  .tx-mobile-control-card > .tx-section {
    transform: translateY(-5px);
  }

  .tx-section-title {
    position: relative;
    margin: 0 0 9px;
    padding-left: 14px;
    color: #d7def1;
    font-size: 15px;
    font-weight: 560;
    transform: translateX(-1px);
  }

  .tx-section-title::before {
    position: absolute;
    left: 2px;
    top: 1px;
    width: 3px;
    height: 18px;
    content: "";
    background: #1188ff;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(17, 136, 255, 0.8);
  }

  .tx-model-section,
  .tx-section:not(.tx-model-section) {
    position: relative;
  }

  .tx-model-section {
    padding-top: 10px;
  }

  .tx-model-section::before {
    display: none;
  }

  .tx-model-list {
    gap: 8px;
  }

  .tx-director-model-button {
    display: none;
  }

  .tx-model-list:not(.is-open) .tx-model-button:not(.is-active):not(.tx-model-placeholder) {
    display: none;
  }

  .tx-model-button {
    min-height: 62px;
    grid-template-columns: 48px 1fr 24px;
    padding: 8px 12px;
    background: rgba(11, 25, 50, 0.78);
    border-color: rgba(37, 135, 255, 0.36);
    border-radius: 14px;
    box-shadow: inset 0 0 20px rgba(24, 105, 255, 0.08);
  }

  .tx-model-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .tx-model-name {
    font-size: 17px;
    line-height: 1.15;
  }

  .tx-model-subtitle {
    margin-top: 4px;
    font-size: 12px;
  }

  .tx-check {
    width: 20px;
    height: 20px;
    color: transparent;
    background: transparent;
  }

  .tx-check::before {
    display: block;
    width: 10px;
    height: 10px;
    content: "";
    border-right: 2px solid #c8d8f8;
    border-bottom: 2px solid #c8d8f8;
    transform: rotate(45deg) translateY(-3px);
  }

  .tx-model-button.is-active .tx-check {
    color: transparent;
    background: transparent;
  }

  .tx-model-list.is-open .tx-model-button .tx-check {
    display: grid;
    place-items: center;
    color: transparent;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }

  .tx-model-list.is-open .tx-model-button .tx-check::before {
    display: none;
  }

  .tx-model-list.is-open .tx-model-button.is-active .tx-check {
    color: #fff;
    background: #277fff;
  }

  .tx-segment {
    min-height: 42px;
    color: #d7def1;
    font-size: 15px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
  }

  .tx-segment.is-active {
    color: #d7def1;
  }

  .tx-select,
  .tx-duration-number {
    height: 43px;
    padding-left: 14px;
    color: #d7def1;
    font-size: 17px;
    background: rgba(11, 25, 50, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 11px;
  }

  .tx-duration-number input {
    height: 41px;
    color: #d7def1;
    font-size: 17px;
  }

  .tx-duration-number span {
    color: #d7def1;
  }

  .tx-info {
    display: none;
  }

  .tx-mobile-prompt-section {
    display: block;
  }

  .tx-mobile-prompt-box {
    position: relative;
    min-height: 128px;
    padding: 14px 34px 34px 14px;
    background: rgba(8, 21, 46, 0.86);
    border: 1px solid rgba(25, 128, 255, 0.58);
    border-radius: 12px;
    box-shadow: inset 0 0 26px rgba(19, 126, 255, 0.1), 0 0 28px rgba(13, 108, 255, 0.14);
  }

  .tx-mobile-prompt-box textarea {
    width: 100%;
    min-height: 72px;
    resize: none;
    color: #d7def1;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.38;
    background: transparent;
    border: 0;
    outline: none;
  }

  .tx-mobile-prompt-box textarea::placeholder {
    color: rgba(214, 226, 255, 0.44);
  }

  .tx-prompt-magic {
    position: absolute;
    right: 10px;
    top: 14px;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #cfe2ff;
    font-size: 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(43, 146, 255, 0.72));
  }

  .tx-prompt-clear {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    padding: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    background: rgba(203, 211, 225, 0.62);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
  }

  .tx-mobile-prompt-meta {
    position: absolute;
    left: 14px;
    right: 34px;
    bottom: 12px;
    overflow: hidden;
    color: rgba(197, 213, 244, 0.5);
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tx-copy-button {
    min-height: 44px;
    margin-top: 2px;
    font-size: 17px;
    border-radius: 11px;
    background: linear-gradient(135deg, #1096ff, #004cf6);
    box-shadow: 0 12px 34px rgba(20, 112, 255, 0.35);
  }

  .tx-copy-button::before {
    content: "✦ ";
  }

  .tx-status {
    display: none;
  }

  .tx-home-panel {
    z-index: 13;
    display: block;
    padding: 18px 12px 104px;
    color: #172033;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  }

  .tx-home-panel.is-hidden {
    display: none;
  }

  .tx-home-content {
    width: 100%;
    min-height: calc(100vh - 36px);
    padding: 22px 14px 18px;
    border-radius: 8px;
  }

  .tx-home-head {
    grid-template-columns: 52px 1fr;
    gap: 12px;
    margin: 0 2px 18px;
  }

  .tx-home-badge,
  .tx-home-badge img {
    width: 50px;
    height: 50px;
  }

  .tx-home-content h1 {
    font-size: 23px;
    line-height: 1.18;
  }

  .tx-home-head p {
    font-size: 13px;
    line-height: 1.25;
  }

  .tx-tip-list {
    gap: 9px;
  }

  .tx-tip-card {
    grid-template-columns: 42px 25px 1fr;
    gap: 9px;
    min-height: 0;
    padding: 10px 9px;
  }

  .tx-tip-icon,
  .tx-tip-icon img {
    width: 38px;
    height: 38px;
  }

  .tx-tip-index {
    width: 24px;
    height: 24px;
    font-size: 13px;
    border-radius: 6px;
  }

  .tx-tip-card h2 {
    font-size: 14px;
    line-height: 1.25;
  }

  .tx-tip-card p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
  }

  .tx-flow-panel {
    margin-top: 14px;
    padding: 16px 10px 12px;
    border-radius: 8px;
  }

  .tx-flow-title {
    gap: 8px;
    margin-bottom: 38px;
  }

  .tx-flow-title h2 {
    font-size: 20px;
  }

  .tx-flow-title-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
    border-radius: 8px;
  }

  .tx-flow-title-star {
    font-size: 20px;
  }

  .tx-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 8px;
  }

  .tx-flow-step {
    min-height: 118px;
    padding: 28px 8px 10px;
    border-radius: 10px;
  }

  .tx-flow-step:not(:last-child)::after,
  .tx-flow-step:nth-child(3)::after {
    display: none;
  }

  .tx-flow-number {
    top: -13px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .tx-flow-step h3 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
  }

  .tx-flow-icon {
    width: 42px;
    height: 42px;
    margin-top: 8px;
    font-size: 25px;
    border-radius: 8px;
  }

  .tx-flow-button-demo {
    min-height: 34px;
    margin-top: 8px;
    padding: 0 8px;
    font-size: 10px;
  }

  .tx-flow-help {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    margin-top: 20px;
    padding: 28px 10px 10px;
    border-radius: 8px;
  }

  .tx-flow-help-badge {
    left: 10px;
    top: -14px;
    min-height: 26px;
    padding: 0 12px;
    font-size: 13px;
  }

  .tx-flow-help-item {
    grid-template-columns: 34px 1fr;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
  }

  .tx-flow-help-magic {
    position: relative;
    margin-bottom: 10px;
    padding: 10px 10px 10px 8px;
    background: rgba(124, 92, 255, 0.08);
    border: 1px solid rgba(132, 103, 255, 0.18);
    border-radius: 8px;
  }

  .tx-flow-help-magic::before,
  .tx-flow-help-director::before {
    position: absolute;
    left: 8px;
    top: -10px;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    background: linear-gradient(135deg, #8d63ff, #704eed);
    border-radius: 999px;
  }

  .tx-flow-help-magic::before {
    content: "方法一";
  }

  .tx-flow-help-director {
    position: relative;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(236, 184, 72, 0.55);
  }

  .tx-flow-help-director::before {
    content: "方法二";
    top: -11px;
    background: linear-gradient(135deg, #ffb12a, #ff8b10);
  }

  .tx-flow-help-director,
  .tx-flow-help-extract,
  .tx-flow-help-send {
    padding-right: 8px;
    padding-left: 8px;
  }

  .tx-flow-help-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
  }

  .tx-flow-help-item > span:first-child {
    width: 34px;
    height: 34px;
    font-size: 17px;
    border-radius: 7px;
  }

  .tx-flow-help-or,
  .tx-flow-help-arrow {
    display: none;
  }

  .tx-mobile-model-button {
    min-height: 42px;
    margin-top: 14px;
    padding: 0 12px;
    font-size: 12px;
  }

  .tx-mobile-model-button {
    display: none;
  }

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

  .tx-mobile-menu-button span {
    display: block;
    width: 13px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }

  body.is-mobile-app .tx-mobile-menu-button {
    display: none;
  }

  body.is-mobile-tips .tx-mobile-menu-button {
    display: none;
  }

  .tx-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    height: 70px;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    background: rgba(5, 11, 25, 0.98);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(80, 154, 255, 0.16);
    backdrop-filter: blur(14px);
  }

  body.is-mobile-home .tx-mobile-bottom-nav,
  body.is-mobile-app .tx-mobile-bottom-nav,
  body.is-mobile-tips .tx-mobile-bottom-nav {
    display: grid;
  }

  body.is-mobile-director .tx-mobile-bottom-nav {
    display: none;
  }

  .tx-mobile-nav-item {
    display: grid;
    place-items: center;
    gap: 0;
    min-width: 0;
    color: rgba(215, 225, 247, 0.72);
    font-size: 11px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .tx-mobile-nav-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #d4e2ff;
    font-size: 21px;
    border-radius: 50%;
  }

  .tx-mobile-nav-item > span:last-child,
  .tx-mobile-director-action > span:last-child {
    transform: translateY(-4px);
  }

  .tx-mobile-nav-item.is-active {
    color: #12c8ff;
  }

  .tx-mobile-nav-item.is-active .tx-mobile-nav-icon {
    color: #13d7ff;
    background: rgba(21, 136, 255, 0.22);
    box-shadow: 0 0 22px rgba(22, 139, 255, 0.52);
  }

  .tx-mobile-director-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 14;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    height: 66px;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    background: rgba(5, 11, 25, 0.98);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(80, 154, 255, 0.16);
  }

  body.is-mobile-director .tx-mobile-director-bar {
    display: grid;
  }

  .tx-mobile-director-action {
    display: grid;
    place-items: center;
    gap: 0;
    min-width: 0;
    padding: 0;
    color: rgba(215, 225, 247, 0.78);
    font-size: 11px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .tx-mobile-director-action .tx-mobile-nav-icon {
    width: 32px;
    height: 32px;
    color: #d4e2ff;
    font-size: 20px;
  }

  .tx-mobile-director-action:active,
  .tx-mobile-director-action:hover {
    color: #12c8ff;
  }

  .tx-mobile-director-action:active .tx-mobile-nav-icon,
  .tx-mobile-director-action:hover .tx-mobile-nav-icon {
    color: #13d7ff;
    background: rgba(21, 136, 255, 0.18);
    box-shadow: 0 0 18px rgba(22, 139, 255, 0.42);
  }

  body.is-mobile-director .tx-model-frame,
  body.is-mobile-app .tx-model-frame {
    height: calc(100% - 70px);
  }

  @media (max-height: 740px) {
    .tx-sidebar {
      padding-top: 8px;
      padding-bottom: 76px;
    }

    .tx-brand {
      min-height: 78px;
      transform: translate(-10px, -8px);
    }

    .tx-brand-logo {
      width: 46px;
      height: 46px;
    }

    .tx-logo-text {
      font-size: 26px;
    }

    .tx-logo-subtitle {
      font-size: 11px;
    }

    .tx-sidebar::before {
      display: none;
    }

    .tx-model-section {
      padding-top: 12px;
    }

    .tx-section {
      margin-top: 8px;
    }

    .tx-section-title {
      margin-bottom: 7px;
      font-size: 14px;
    }

    .tx-model-button {
      min-height: 56px;
    }

    .tx-segment {
      min-height: 38px;
    }

    .tx-select,
    .tx-duration-number {
      height: 39px;
      font-size: 16px;
    }

    .tx-duration-number input {
      height: 37px;
      font-size: 16px;
    }

    .tx-mobile-prompt-box {
      min-height: 112px;
      padding: 12px 32px 30px 12px;
    }

    .tx-mobile-prompt-box textarea {
      min-height: 60px;
      font-size: 13px;
    }

    .tx-copy-button {
      min-height: 40px;
      font-size: 16px;
    }

    .tx-mobile-bottom-nav {
      height: 62px;
    }
  }
}
