        :root {
            --bg: #edf6f5;
            --panel: rgba(255, 255, 255, 0.72);
            --panel-strong: rgba(255, 255, 255, 0.86);
            --panel-border: rgba(116, 145, 170, 0.22);
            --text: #20364a;
            --text-soft: #5e768d;
            --brand-a: #7c8ef5;
            --brand-b: #58c5bf;
            --brand-c: #7fce99;
            --danger: #ef4444;
        }
        * { box-sizing: border-box; }
        body {
            margin: 0;
            min-height: 100dvh;
            font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
            color: var(--text);
            background: linear-gradient(145deg, #eef5fb 0%, #e9f7f5 46%, #f3f8f2 100%);
            overflow-x: hidden;
        }
        button, input, textarea, select { font: inherit; }
        button { letter-spacing: 0; }
        .app { min-height: 100vh; }
        .page-shell { width: min(1540px, 100%); margin: 0 auto; padding: 22px; }
        .topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
        .brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
        .brand-mark {
            width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px;
            color: #fff; background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
            box-shadow: 0 18px 38px rgba(124, 142, 245, 0.22); font-size: 22px; font-weight: 800;
        }
        .brand strong { display: block; font-size: 26px; line-height: 1.2; }
        .brand small { display: block; margin-top: 6px; color: var(--text-soft); font-size: 14px; }
        .topnav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
        .topnav a {
            min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px;
            border-radius: 999px; border: 1px solid rgba(116,145,170,.18); background: rgba(255,255,255,.76);
            color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700;
            box-shadow: 0 9px 22px rgba(110,142,167,.09); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
        }
        .topnav a:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(110,142,167,.14); }
        .topnav .image-link { color: #c2413d; border-color: rgba(225,88,74,.2); }
        .topnav .image-link.active { background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(225,88,74,.13); }
        .topnav .music-link { color: #b63f84; border-color: rgba(236,72,153,.18); }
        .topnav .video-link { color: #3f67bd; border-color: rgba(20,184,166,.18); }
        .topnav .dubbing-link { color: #4d78b8; border-color: rgba(88,197,191,.2); }
        .topnav .agent-link { color: #4257c6; border-color: rgba(79,70,229,.18); }
        .topnav .workspace-link { color: #166b66; border-color: rgba(16,185,129,.18); }

        .topnav .active { color: #5265c9; border-color: #b8c5fc; background: #f5f7ff; }
        .account-row, .summary, .toolbar, .card-head, .card-footer, .result-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
        .account-row { margin: 26px 0 16px; }
        .account-row h1 { margin: 0 0 6px; font-size: 23px; }
        .muted, .account-row p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.7; }
        .wallet { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--panel-strong); border: 1px solid var(--panel-border); border-radius: 18px; }
        .wallet strong { color: #375e75; font-size: 18px; }
        .wallet a { color: #5265c9; text-decoration: none; font-weight: 700; }
        .panel, .asset-card { background: linear-gradient(180deg, var(--panel-strong), var(--panel)); border: 1px solid var(--panel-border); box-shadow: 0 20px 48px rgba(110,142,167,.11); border-radius: 22px; }
        .toolbar { padding: 16px 20px; margin-bottom: 22px; }
        .toolbar-left, .toolbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
        button, .download { min-height: 40px; padding: 9px 17px; border: 1px solid var(--panel-border); border-radius: 999px; background: #fff; color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
        button:hover, .download:hover { border-color: #99aaaF; }
        button:disabled { opacity: .45; cursor: not-allowed; }
        .primary, .download { border: 0; color: #fff; background: linear-gradient(100deg, var(--brand-a), var(--brand-b)); box-shadow: 0 8px 20px rgba(124,142,245,.18); }
        .danger { color: #b94d50; background: #fff9f9; }
        .select-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
        input[type=checkbox] { width: 17px; height: 17px; accent-color: #768aeb; cursor: pointer; }
        .selection-cost { font-size: 13px; color: var(--text-soft); }
        .selection-cost strong { color: var(--text); }
        .summary { margin-bottom: 14px; color: var(--text-soft); font-size: 13px; }
        .summary p { margin: 0; }
        .asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
        .asset-card { min-width: 0; padding: 19px; transition: border-color .18s; }
        .asset-card.selected { border-color: rgba(124,142,245,.6); }
        .card-head { margin-bottom: 16px; gap: 6px; }
        .card-head h2 { display: inline; margin: 0; font-size: 16px; }
        .status { padding: 5px 9px; border-radius: 999px; background: #edf2f7; color: var(--text-soft); font-size: 11px; }
        .status[data-status=generating] { background: #edf0ff; color: #5363b7; }
        .status[data-status=success] { background: #e6f5ed; color: #357456; }
        .status[data-status=error] { background: #fceced; color: #b34950; }
        .delete-card { padding: 0; min-height: 30px; width: 30px; border: 0; background: transparent; font-size: 22px; font-weight: 400; color: #8a9aaa; }
        fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
        .field { margin-bottom: 14px; }
        .field label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #405e74; font-weight: 700; font-size: 12px; }
        .counter { color: #8295a5; font-weight: 400; font-size: 11px; }
        select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--panel-border); border-radius: 13px; background: rgba(255,255,255,.9); color: var(--text); padding: 11px; outline: none; font-size: 13px; }
        select { text-overflow: ellipsis; }
        textarea { min-height: 116px; resize: vertical; line-height: 1.7; }
        select:focus, textarea:focus { border-color: #88c8cc; box-shadow: 0 0 0 3px rgba(88,197,191,.13); }
        :focus-visible { outline: 2px solid #637de2; outline-offset: 3px; }
        .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .card-footer { padding-bottom: 16px; gap: 8px; }
        .price { color: var(--text-soft); font-size: 11px; }
        .price strong { color: #375e75; font-size: 15px; }
        .preview { min-height: 220px; display: grid; place-items: center; overflow: hidden; padding: 14px; border-radius: 16px; background: rgba(238,244,247,.7); border: 1px solid rgba(116,145,170,.12); }
        .preview img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; }
        .placeholder { text-align: center; color: #8295a5; font-size: 12px; line-height: 1.8; }
        .placeholder-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 10px; color: #778dda; border-radius: 15px; border: 1px solid #d5def4; background: linear-gradient(140deg, #e6eafb, #def1ef); font-size: 22px; }
        .result-actions { margin-top: 12px; font-size: 11px; color: var(--text-soft); }
        .download { padding: 8px 13px; min-height: 34px; font-size: 12px; }
        .card-error { color: #ae424a; background: #fff0f0; padding: 10px; border-radius: 10px; margin: 0 0 12px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
        .notice { margin-bottom: 16px; padding: 13px 17px; border-radius: 14px; background: #fff4e4; color: #885a28; font-size: 13px; line-height: 1.7; }
        [hidden] { display: none !important; }
        .empty-board { grid-column: 1 / -1; padding: 80px 20px; text-align: center; color: var(--text-soft); }
        .spinner { width: 30px; height: 30px; margin: 0 auto 12px; border: 3px solid #d8e4ef; border-top-color: #58c5bf; border-radius: 50%; animation: spin .8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .footer-note { margin: 22px 0; color: var(--text-soft); text-align: center; font-size: 12px; }
        @media (min-width: 1700px) { .page-shell { width: min(1840px, 100%); } .asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
        @media (max-width: 1120px) { .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .topnav { justify-content: flex-start; } }
        @media (max-width: 640px) { .page-shell { padding: 14px; } .brand strong { font-size: 23px; } .brand small { font-size: 12px; } .asset-grid { grid-template-columns: 1fr; } .toolbar { padding: 14px; } .toolbar-actions { width: 100%; } .toolbar-actions button { flex: 1; } .topnav { gap: 7px; } .topnav a { padding: 8px 11px; min-height: 36px; font-size: 12px; } .wallet { width: 100%; justify-content: space-between; } }
