:root{--h5-ink:#17202a;--h5-muted:#64748b;--h5-line:#e2e8f0;--h5-soft:#f8fafc;--h5-dark:#10151b;--h5-red:#b91c1c;--h5-green:#0f766e}
body *{letter-spacing:0!important;text-shadow:none!important}
button,a,.detail-tab,.mine-entry-card,.quick-card,.plan-card,.task-card,.error-card{min-width:0;overflow-wrap:anywhere;word-break:break-word;hyphens:auto}
.task-desc,.task-card p,.notification-content,.order-benefit,.mine-state p,.share-url,.block,.shot,.prompt-copy,.case-body p,.guide-grid p{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.mine-entry-card b,.mine-entry-card em,.quick-card b,.quick-card em,.plan-title,.plan-desc{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.cinelo-bg-fade{background:linear-gradient(180deg,rgba(4,8,13,.18) 0%,rgba(4,8,13,.34) 48%,rgba(4,8,13,.76) 100%)!important}
.mobile-more{display:none}.panel,.card,.history-item,.plan-card,.download-card,.case-card,.mine-entry-card,.quick-card,.order-item{border-radius:8px!important}
#create .template-panel{min-height:340px!important;padding:92px 64px 18px!important}#create .template-panel h1{margin-bottom:12px!important;font-size:52px!important;line-height:1.02!important}#create .template-panel .lead{max-width:780px!important;margin-bottom:14px!important;font-size:16px!important;line-height:1.62!important}#create .template-panel .value-row{margin-bottom:0!important}
#create .compose-panel{max-width:960px!important;margin:0 auto 18px!important}.prompt-options{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important}.prompt-options .control-select{width:100%!important;min-width:0!important;max-width:none!important;padding:0 24px 0 8px!important;text-align:left!important;text-align-last:left!important}.tpls{margin-top:10px!important}.tpl{border-radius:8px!important;box-shadow:0 8px 22px rgba(0,0,0,.14)!important}.tpl span{right:auto!important;max-width:calc(100% - 20px)!important;padding:0!important;border-radius:0!important;background:transparent!important;color:#fff!important;font-size:14px!important;font-weight:900!important;line-height:1.25!important}
.history-hero,.pay-hero,.mine-hero,.download-hero{border-radius:8px!important;box-shadow:0 12px 30px rgba(0,0,0,.16)!important}

/* Projects */
#historySec{width:min(1120px,100%)!important;max-width:1120px!important}#historySec .history-hero{min-height:68px!important;padding:14px 16px!important}#historySec .history-panel{gap:10px!important}#historySec .history-tabs,#historySec .history-search,#historySec .history-pager{border-radius:8px!important;box-shadow:0 6px 18px rgba(15,23,42,.05)!important}#historySec .history-panel .history-item{border-radius:8px!important;box-shadow:0 8px 20px rgba(15,23,42,.07)!important}#historySec .history-panel .history-cover{border-radius:8px!important;box-shadow:none!important}#historySec .history-actions{display:flex!important;align-items:center!important;gap:7px!important}#historySec .history-actions .open-detail{flex:1 1 auto!important}.history-more{position:relative;flex:0 0 auto}.history-more summary{display:flex;width:34px;height:31px;align-items:center;justify-content:center;list-style:none;cursor:pointer;border:1px solid #dbe2ee;border-radius:7px;background:#f1f5f9;color:var(--h5-ink);font-weight:900}.history-more summary::-webkit-details-marker{display:none}.history-more>div{position:absolute;right:0;top:36px;z-index:20;display:grid;gap:6px;width:132px;padding:7px;border:1px solid var(--h5-line);border-radius:8px;background:#fff;box-shadow:0 14px 32px rgba(15,23,42,.18)}.history-more>div button{width:100%!important;margin:0!important}.history-more .danger{background:#fff1f2!important;color:var(--h5-red)!important;border:1px solid #fecdd3!important}
@media(min-width:901px){#historySec .history-panel{display:grid!important;grid-template-columns:auto minmax(320px,1fr)!important;grid-template-rows:auto auto auto!important}#historySec .history-tabs{grid-column:1!important;grid-row:1!important;grid-template-columns:repeat(4,minmax(70px,1fr))!important;margin:0!important;padding:5px!important}#historySec .history-search{grid-column:2!important;grid-row:1!important;grid-template-columns:minmax(240px,1fr) auto!important;margin:0!important;padding:5px!important}#historySec .history-search button{width:auto!important;min-width:72px!important}#historySec #history{grid-column:1/-1!important;grid-row:2!important}#historySec .history-pager{grid-column:1/-1!important;grid-row:3!important}}

/* Pricing */
#plansSec{width:min(1040px,100%)!important;max-width:1040px!important}.plan-quota-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}.plan-quota-summary>div{display:grid;gap:2px;min-width:0;padding:12px;border:1px solid var(--h5-line);border-radius:8px;background:rgba(255,255,255,.95);text-align:center}.plan-quota-summary b{color:var(--h5-ink);font-size:20px;line-height:1.15}.plan-quota-summary span{color:var(--h5-muted);font-size:12px;font-weight:800}.plan-type-tabs,.mine-filter-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:10px;padding:4px;border:1px solid var(--h5-line);border-radius:8px;background:rgba(255,255,255,.92)}.plan-type-tabs button,.mine-filter-tabs button{height:36px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--h5-muted)!important}.plan-type-tabs button.active,.mine-filter-tabs button.active{background:var(--h5-dark)!important;color:#fff!important}.plan-group{display:none}.plan-group.active{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.plan-group .pay-section-title{grid-column:1/-1;margin:0!important}#plans .card.plan-card{min-height:154px!important;margin:0!important;padding:14px!important;border-radius:8px!important;box-shadow:0 8px 22px rgba(15,23,42,.06)!important}#plans .quota-recommended{border:1px solid rgba(15,118,110,.5)!important}#plans .quota-recommend-tag{top:0!important;right:0!important;border-radius:0 8px 0 8px!important;background:var(--h5-green)!important;color:#fff!important}#plans .plan-buy{height:38px!important;border-radius:7px!important}#plans .business-card{margin-top:10px!important;box-shadow:none!important}

/* Account */
#plans>.plan-group,#plans>.business-card{grid-column:1/-1}
#mineSec{width:min(900px,100%)!important;max-width:900px!important;margin:0 auto!important}#mineSec .mine-hero{padding:16px!important}#mineSec .stat-grid{margin-top:10px!important}#mineSec .member-card{padding:12px!important;border-radius:8px!important}#mineSec .quota-main{padding:14px!important;border-radius:8px!important}#mineSec .quota-mini{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}#mineSec .quota-mini>div{min-height:72px!important;border-radius:8px!important}#mineSec .mine-main-block>input{height:40px;margin-top:7px;border-color:var(--h5-line);background:#fff}#mineSec .mine-entry-grid,#mineSec .action-panel .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}#mineSec .mine-entry-card,#mineSec .quick-card{min-height:68px!important;padding:11px!important;border:1px solid var(--h5-line)!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}#mineSec .mine-entry-card:before{display:none!important}.account-security-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.account-security-actions button{height:40px!important;border:1px solid var(--h5-line)!important;border-radius:7px!important;background:var(--h5-soft)!important;color:var(--h5-ink)!important}.account-security-actions .danger-account{border-color:#fecdd3!important;background:#fff1f2!important;color:var(--h5-red)!important}#mineSec.mine-detail-mode{max-width:820px!important}#mineSec .mine-detail{min-height:0!important;padding:14px!important;border-radius:8px!important;box-shadow:0 10px 26px rgba(15,23,42,.08)!important}#mineSec .mine-detail-head{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;margin:0 0 12px!important}#mineSec .mine-detail-head h2{text-align:center}#mineSec .mine-detail-head>div{width:auto!important;justify-content:flex-end!important}.mine-filter-tabs{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}#notificationFilters{grid-template-columns:repeat(2,minmax(0,1fr))}#mineSec .notification-unread{border-left:3px solid #14b8a6!important;background:#fff!important}#mineSec .order-item{margin-bottom:8px!important;padding:12px!important;border-radius:8px!important;box-shadow:none!important}.mine-state{display:grid;min-height:132px;place-items:center;align-content:center;gap:7px;padding:18px;border:1px dashed var(--h5-line);border-radius:8px;color:var(--h5-muted);text-align:center}.mine-state b{color:var(--h5-ink)}.mine-state p{margin:0;font-size:12px}.mine-state.error{border-color:#fecdd3;background:#fffafb}.order-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-title-row span{flex:0 0 auto;padding:3px 6px;border-radius:5px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:900}.order-amount{margin-top:5px;color:var(--h5-red);font-size:18px;font-weight:900}.order-benefit{margin:5px 0;color:#334155;font-size:13px;line-height:1.55}.order-no{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;color:#94a3b8;font-size:11px;word-break:break-all}.copy-order-no{flex:0 0 auto;height:28px!important;padding:0 8px!important;border:1px solid var(--h5-line)!important;border-radius:6px!important;background:var(--h5-soft)!important;color:var(--h5-ink)!important;font-size:11px!important}.feedback-panel label{display:block;margin:8px 0 5px;color:var(--h5-muted);font-size:12px;font-weight:900}.feedback-panel select{width:100%;height:40px;border:1px solid var(--h5-line);background:#fff}.feedback-count{text-align:right;color:#94a3b8;font-size:11px}#submitFeedback:disabled{opacity:.48;cursor:not-allowed}#mineSec .guide-hero{border-radius:8px!important}#mineSec .guide-grid{display:block!important}#mineSec .guide-grid>article{padding:13px 2px!important;border:0!important;border-bottom:1px solid var(--h5-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}

.feedback-hint{margin-top:4px;color:#b45309;font-size:12px;font-weight:700}

/* Cases and download */
#caseSec{width:min(1040px,100%);margin:0 auto}#caseSec .history-hero{background:linear-gradient(135deg,#10151b 0%,#17202a 100%)!important}#caseSec .history-brand h2{color:#fff!important}#caseSec .history-brand p{color:rgba(255,255,255,.76)!important}#caseSec .case-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}#caseSec .case-card{display:flex;min-height:100%;flex-direction:column;overflow:hidden;box-shadow:0 8px 22px rgba(15,23,42,.08)!important}#caseSec .case-card>img{aspect-ratio:16/9;height:auto!important;object-fit:cover}#caseSec .case-body{display:grid;grid-template-rows:auto auto auto 36px;flex:1;gap:7px}#caseSec .case-body>b{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}#caseSec .case-body>p{display:-webkit-box;min-height:0!important;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3}#caseSec .case-body>button{align-self:end;height:36px!important;border-radius:7px!important}#downloadSec .download-hero,#downloadSec .download-card{border-radius:8px!important}#downloadSec .download-card{min-height:390px!important;box-shadow:0 12px 30px rgba(15,23,42,.12)!important}#downloadSec .download-card img{border-radius:8px!important}.download-action{display:flex;min-width:150px;height:38px;align-items:center;justify-content:center;border-radius:7px;background:var(--h5-dark);color:#fff;font-size:13px;font-weight:900}

/* Project detail */
body.project-detail-mode #result{width:min(1120px,100%)!important;max-width:1120px!important;margin:0 auto!important}body.project-detail-mode .result-head{padding:14px!important;border-radius:8px!important;box-shadow:0 12px 30px rgba(0,0,0,.15)!important}body.project-detail-mode .result-title-row h2{font-size:20px!important;line-height:1.3!important}body.project-detail-mode .result-head .result-actions.compact-actions{grid-template-columns:minmax(0,1fr) 92px!important;margin-top:10px!important}body.project-detail-mode .result-head .result-actions.compact-actions button{height:38px!important;border-radius:7px!important}body.project-detail-mode #genAllImages,body.project-detail-mode #genAudio{display:none!important}body.project-detail-mode .detail-body{gap:10px!important;padding:12px!important;border-radius:8px!important;box-shadow:0 10px 26px rgba(15,23,42,.08)!important}body.project-detail-mode .web-detail-tabs{position:sticky;top:72px;z-index:12;margin:0!important;padding:4px!important;border:1px solid var(--h5-line);border-radius:8px!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px)}body.project-detail-mode .web-detail-tabs button{height:34px!important;border-radius:6px!important}body.project-detail-mode .card,body.project-detail-mode .shot,body.project-detail-mode .audio-box,body.project-detail-mode .video-box,body.project-detail-mode .video-output-card,body.project-detail-mode .voice-panel{border-radius:8px!important;box-shadow:none!important}body.project-detail-mode .video-output-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}body.project-detail-mode .video-output-card{padding:10px!important;border:1px solid var(--h5-line)!important;background:#fff!important}body.project-detail-mode .video-output-card video{display:block;width:100%!important;max-height:68vh!important;aspect-ratio:var(--project-video-ratio,9/16);border-radius:8px!important;background:#0b0f14!important;object-fit:contain!important}body.project-detail-mode .video-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-top:8px!important}body.project-detail-mode .video-actions>*{width:100%!important;min-width:0!important;height:34px!important;margin:0!important;border-radius:7px!important}

@media(max-width:900px){.plan-group.active{grid-template-columns:1fr}#caseSec .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:721px){#mineSec .stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}#mineSec .quota-main{grid-column:1!important;margin:0!important}#mineSec .quota-mini{grid-column:2!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}}
@media(max-width:720px){body{padding-bottom:74px}.page{padding:0 8px 88px!important}.site-topbar{top:8px!important;left:0!important;display:flex!important;height:42px!important;padding:0 10px!important;justify-content:space-between!important;transform:none!important;pointer-events:none!important}.site-logo{display:flex!important;width:max-content!important;height:38px!important;pointer-events:auto!important}.site-logo img{width:30px!important;height:30px!important;border-radius:7px!important}.site-logo span{font-size:14px!important}.site-links{position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;z-index:95!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;max-width:none!important;height:68px!important;margin:0!important;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;transform:none!important;border:0!important;border-top:1px solid rgba(255,255,255,.14)!important;border-radius:0!important;background:rgba(15,16,19,.94)!important;box-shadow:0 -8px 24px rgba(0,0,0,.2)!important;pointer-events:auto!important}.site-links a{display:flex!important;min-width:0!important;height:44px!important;padding:0 4px!important;border-radius:7px!important;font-size:12px!important}.site-links a:nth-child(4),.site-links a:nth-child(5){display:none!important}.site-links a.active{background:rgba(255,255,255,.12)!important;color:#fff!important}.mobile-more{position:fixed;top:10px;right:12px;z-index:96;display:block;pointer-events:auto}.mobile-more summary{display:flex;height:34px;align-items:center;padding:0 10px;list-style:none;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:rgba(16,21,27,.82);color:#fff;font-size:12px;font-weight:900;backdrop-filter:blur(14px)}.mobile-more summary::-webkit-details-marker{display:none}.mobile-more>div{position:absolute;right:0;top:39px;display:grid;width:116px;padding:5px;border:1px solid var(--h5-line);border-radius:8px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.2)}.mobile-more a{display:flex;height:38px;align-items:center;justify-content:center;border-radius:6px;color:var(--h5-ink);font-size:13px;font-weight:900;text-decoration:none}.tab-page:not(#create){padding-top:54px!important}#create .template-panel{min-height:350px!important;padding:70px 8px 12px!important}#create .template-panel h1{font-size:40px!important}#create .template-panel .lead{margin-bottom:10px!important;font-size:13px!important;line-height:1.58!important}#create .template-panel .value-row{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important}#create .template-panel .value-row span{min-width:0!important;height:26px!important;padding:0 3px!important;font-size:9.5px!important}#create .compose-panel{padding:10px!important}.prompt-card{padding:10px!important}.prompt-options{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important}.prompt-options .control-select{height:34px!important;padding:0 2px!important;font-size:9px!important}.tpls{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.tpl{height:96px!important}.tpl span{left:7px!important;bottom:7px!important;font-size:12px!important}#mineSec .quota-mini{grid-template-columns:repeat(2,minmax(0,1fr))!important}#mineSec .mine-entry-grid,#mineSec .action-panel .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#mineSec .mine-entry-card,#mineSec .quick-card{min-height:76px!important}#mineSec .mine-detail-head{grid-template-columns:auto minmax(0,1fr)!important}#mineSec .mine-detail-head>div{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%!important}#caseSec .case-grid{grid-template-columns:1fr!important}#downloadSec .download-card{min-height:0!important;padding:14px!important}#downloadSec .download-card img{width:136px!important;height:136px!important}body.project-detail-mode .site-logo,body.project-detail-mode .mobile-more{display:none!important}body.project-detail-mode .page{padding-top:8px!important}body.project-detail-mode .tab-page:not(#create){padding-top:0!important}body.project-detail-mode .web-detail-tabs{top:6px}body.project-detail-mode .result-head{padding:12px!important}body.project-detail-mode .detail-body{padding:8px!important}body.project-detail-mode .video-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:720px){.prompt-options{grid-template-columns:repeat(3,minmax(0,1fr))!important}.prompt-options .control-select{padding:0 20px 0 6px!important;font-size:10.5px!important}}
@media(max-width:380px){.site-logo span{display:none}#create .template-panel{min-height:342px!important;padding-top:62px!important}#create .template-panel h1{font-size:36px!important}.prompt-options .control-select{font-size:11px!important}}
.hidden{display:none!important}

/* Unified action color */
:root{--h5-action:#0f766e}
.font-segment button.active,.compose-mode button.active,.history-tabs button.active,.login-tabs button.active,.web-detail-tabs button.active,.plan-type-tabs button.active,.mine-filter-tabs button.active,.chip-row button.active{background:var(--h5-action)!important;border-color:var(--h5-action)!important;color:#fff!important}
body.project-detail-mode .screenplay-entry-btn,body.project-detail-mode #screenplayFlow{display:none!important}

/* Generation status text must stay readable on light cards. */
#resultEmpty .task-card,.task-box .task-card,.voice-generating-card,.screenplay-status-card{color:#17202a!important;-webkit-text-fill-color:#17202a!important}
#resultEmpty .task-card>div,.task-box .task-card>div,.voice-generating-card>div,.screenplay-status-top>div{min-width:0;color:#17202a!important;-webkit-text-fill-color:#17202a!important;opacity:1!important}
#resultEmpty .task-card b,.task-box .task-card b,.voice-generating-card b,.screenplay-status-top b{color:#111827!important;-webkit-text-fill-color:#111827!important;opacity:1!important}
#resultEmpty .task-card p,.task-box .task-card p,.voice-generating-card p,.screenplay-status-top p{color:#475569!important;-webkit-text-fill-color:#475569!important;opacity:1!important}
#resultEmpty .task-card em,.task-box .task-card em,.voice-progress-text,.screenplay-status-top strong,.screenplay-status-steps span.active{color:#1d4ed8!important;-webkit-text-fill-color:#1d4ed8!important;opacity:1!important}
.screenplay-status-steps,.screenplay-status-steps span{color:#64748b!important;-webkit-text-fill-color:#64748b!important;opacity:1!important}
.screenplay-character-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.screenplay-character-actions button,.character-asset-card button{border:1px solid #0f766e;border-radius:9px;padding:7px 10px;background:#fff;color:#0f766e;font-weight:800}.character-asset-tag{display:inline-block;margin-top:7px;border-radius:99px;padding:4px 8px;background:#ecfdf5;color:#0f766e;font-size:12px;font-style:normal}.character-asset-dialog{position:fixed;z-index:2000;inset:0;display:grid;place-items:center;padding:18px}.character-asset-dialog.hidden{display:none}.character-asset-mask{position:absolute;inset:0;background:rgba(15,23,42,.5)}.character-asset-dialog>section{position:relative;width:min(680px,100%);max-height:80vh;overflow:auto;border-radius:18px;background:#fff;padding:16px}.character-asset-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.character-asset-dialog header b{font-size:20px}.character-asset-card{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;border-top:1px solid #e5e7eb;padding:12px 0}.character-asset-card img,.character-asset-placeholder{width:64px;height:64px;border-radius:12px;object-fit:cover;background:#ecfdf5;display:grid;place-items:center;color:#0f766e;font-weight:900}.character-asset-card p{margin:3px 0;color:#64748b}.character-asset-card aside{display:flex;gap:6px;flex-direction:column}.character-asset-card button.danger{border-color:#dc2626;color:#dc2626}@media(max-width:520px){.character-asset-card{grid-template-columns:54px 1fr}.character-asset-card img,.character-asset-placeholder{width:54px;height:54px}.character-asset-card aside{grid-column:1/-1;flex-direction:row}}
.character-bible{margin-top:9px}.character-bible>strong{font-size:12px;color:#0f766e}.character-bible-grid{display:flex;gap:7px;overflow:auto;margin-top:7px}.character-bible-grid a{flex:0 0 58px;color:#475569;text-align:center;font-size:11px;text-decoration:none}.character-bible-grid a img{width:58px;height:58px;border-radius:7px}.character-bible-grid span{display:block;margin-top:3px}.character-bible-actions{display:flex;gap:7px;margin-top:8px}.character-bible-actions select{min-width:110px;height:34px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155}.character-bible-actions button:disabled{opacity:.45}
.detail-character-bible{margin:10px 0;padding:10px;border:1px solid #d7ebe8;border-radius:8px;background:#f8fffd}.detail-character-bible>b{color:#0f766e;font-size:13px}.detail-bible-grid{display:flex;gap:8px;overflow:auto;margin-top:8px}.detail-bible-grid a{flex:0 0 62px;color:#475569;text-align:center;font-size:11px;text-decoration:none}.detail-bible-grid img{width:62px;height:62px;border-radius:7px;object-fit:cover}.detail-bible-grid span{display:block;margin-top:3px}.detail-bible-actions{display:flex;gap:8px;margin-top:9px}.detail-bible-actions select{min-width:118px;height:36px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155}.detail-bible-actions button{height:36px;border:1px solid #0f766e;border-radius:7px;background:#fff;color:#0f766e;font-weight:800}
.detail-bible-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.detail-bible-head b{color:#0f766e;font-size:13px}.detail-bible-head span{color:#64748b;font-size:11px;white-space:nowrap}.detail-character-bible .detail-bible-grid{overflow-x:auto;overflow-y:hidden;padding:1px 1px 6px;scrollbar-width:thin}.detail-bible-item{flex:0 0 72px;text-align:center}.detail-bible-item>a{display:block;color:#475569;font-size:11px;text-decoration:none}.detail-bible-item img{width:68px;height:68px;border-radius:7px;object-fit:cover}.detail-bible-item>div{display:flex;gap:3px;margin-top:4px}.detail-bible-item>div a,.detail-bible-item>div button{flex:1;border:0;border-radius:5px;padding:4px 2px;background:#edf6f5;color:#0f766e;font-size:10px;line-height:18px;white-space:nowrap;text-decoration:none;writing-mode:horizontal-tb}.detail-bible-empty{flex:0 0 72px;height:94px;border:1px dashed #94a3b8;border-radius:7px;background:#fff;color:#475569;white-space:nowrap;writing-mode:horizontal-tb}.detail-bible-empty b,.detail-bible-empty span{display:block}.detail-bible-empty span{margin-top:5px;color:#0f766e;font-size:10px}.detail-bible-empty.failed{border-color:#ef4444}.detail-bible-empty.failed span{color:#b91c1c}.detail-bible-pack{width:100%;margin-top:9px;border:0;border-radius:7px;padding:10px;background:#0f766e;color:#fff;font-weight:800;white-space:normal}.detail-bible-pack:disabled{background:#dbe7e5;color:#64748b}.detail-bible-advanced{margin-top:9px}.detail-bible-advanced summary{cursor:pointer;color:#475569;font-size:12px;font-weight:800}
button.voice-input-btn,.voice-input-btn.recording,.voice-input-btn.realtime,.voice-script-actions button,.voice-generate-btn,.ai-modify-voice-wrap .ai-modify-voice{background:var(--h5-action)!important;color:#fff!important;box-shadow:0 10px 22px rgba(15,118,110,.18)!important}
.bar button,.detail-back,.result-actions button,.detail-wide,.detail-tools .detail-wide,.script-tools button,.script-head .script-regen-btn,.audio-box button:not(.light-btn),.bgm-player button:not(.light-btn),.bgm-player a:not(.light-btn),.doc-back,.mini-btn:not(.light-btn):not(.danger),.history-search button,.history-pager button:not(:disabled),.preview-edit button,.code-row button,.share-media-actions a,.share-media-actions button,.share-audio a,.case-body button,.video-box a,.video-actions a,.video-actions button,.subtitle-actions a,.subtitle-actions button,.download-action,#plans .plan-buy,#mineSec .mine-detail-head .ghost-btn,#mineSec #submitFeedback,#caseSec #refreshCases,#caseSec .history-hero .icon-refresh{background:var(--h5-action)!important;border-color:var(--h5-action)!important;color:#fff!important;box-shadow:0 8px 18px rgba(15,118,110,.14)!important}
.notification-pager{display:grid;grid-template-columns:88px 1fr 88px;align-items:center;gap:8px;margin-top:12px}.notification-pager span{text-align:center;font-size:13px;color:#64748b}.notification-pager button{height:36px;border-radius:7px;background:var(--h5-action);color:#fff}.notification-pager button:disabled{background:#e2e8f0!important;color:#94a3b8!important;box-shadow:none!important}
.action-sheet button.cancel{background:var(--h5-action)!important;color:#fff!important}
.role-voice-row select{background:var(--h5-action)!important;border-color:var(--h5-action)!important;color:#fff!important}
.shot-production-detail{margin-top:10px;padding:9px 10px;border:1px solid var(--h5-line);border-radius:7px;background:#f8fafc}.shot-production-detail summary{cursor:pointer;color:#0f766e;font-weight:800}.shot-production-detail div{margin-top:7px;line-height:1.55;color:#475569}.shot-production-detail b{color:#334155}
.material-inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.material-inline-actions button{flex:1;min-width:120px;background:#0f766e;color:#fff;border:0;border-radius:10px;padding:9px 12px;font-weight:700}.material-inline-actions button+button{background:#eef6f5;color:#0f766e}.material-inline-actions button:disabled{opacity:.45}.material-linked-tag{display:inline-flex;margin-left:8px;padding:3px 8px;border-radius:999px;background:#e6fffa;color:#0f766e;font-size:12px}.material-library-list{display:grid;gap:10px;margin-top:12px}.material-card{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #dbe7e5;border-radius:14px;background:#fff}.material-card img,.material-voice-icon{width:72px;height:72px;border-radius:12px;object-fit:cover;background:#eef6f5}.material-voice-icon{display:grid;place-items:center;color:#0f766e;font-size:28px}.material-card p{margin:5px 0 0;color:#64748b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.material-card aside{display:flex;gap:6px;flex-direction:column}.material-card aside button{border:0;border-radius:9px;padding:8px 10px;background:#0f766e;color:#fff}.material-card aside .danger{background:#fff0f0;color:#b42318}.material-picker-sheet{max-height:78vh;overflow:auto}.material-picker-sheet .material-library-list{padding-bottom:18px}@media(max-width:640px){.material-card{grid-template-columns:58px minmax(0,1fr)}.material-card img,.material-voice-icon{width:58px;height:58px}.material-card aside{grid-column:1/-1;flex-direction:row}.material-card aside button{flex:1}}

/* Material library */
#materialsPanel{background:linear-gradient(180deg,#f7fffd 0,#fff 180px)!important;border:1px solid #d8ebe7!important}
#materialsPanel .mine-detail-head{padding-bottom:12px!important;border-bottom:1px solid #dce9e7}
#materialsPanel .mine-detail-head>div{display:flex;gap:7px}
#materialsPanel .mine-detail-head>div button:first-child{background:#0f766e!important;color:#fff!important}
#materialTabs{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}
.material-select-notice{margin:12px 0 4px;padding:10px 12px;border:1px solid #99d5cb;border-radius:10px;background:#e8f8f4;color:#086e64;font-size:13px;font-weight:800}
#materialsPanel.material-select-mode #materialTabs button:not(.active),#materialsPanel.material-select-mode #uploadMaterialImage{display:none!important}
#materialsPanel.material-select-mode #materialTabs{grid-template-columns:1fr}
#materialsPanel.material-select-mode.material-video-select #materialTabs{grid-template-columns:repeat(2,minmax(0,1fr))}
#materialsPanel.material-select-mode.material-video-select #materialTabs button[data-material-type="character_image"],#materialsPanel.material-select-mode.material-video-select #materialTabs button[data-material-type="scene_image"]{display:inline-flex!important}
.material-counts{margin:8px 2px 2px;color:#52706b;font-size:12px;font-weight:800}
.material-library-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.material-card{grid-template-columns:104px minmax(0,1fr);align-items:start;min-height:154px;padding:12px;border-color:#d9e7e5;border-radius:16px;box-shadow:0 8px 22px rgba(15,118,110,.07);transition:transform .16s ease,box-shadow .16s ease}
.material-card:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(15,118,110,.12)}
.material-card img,.material-voice-icon{width:104px;height:104px;border-radius:14px}
.material-card img{border:1px solid #e2ecea}
.material-card-copy{display:grid;align-content:start;min-width:0}
.material-card-copy b{margin-top:7px;color:#17202a;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.material-type-tag{justify-self:start;padding:3px 8px;border-radius:999px;background:#e4f6f1;color:#087568;font-size:10px;font-weight:900}
.material-card p{min-height:36px;margin:6px 0 0;font-size:12px;line-height:18px}
.material-card small{margin-top:4px;color:#94a3b8;font-size:10px}
.material-card aside{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.material-card aside button{min-height:36px;border:1px solid #cfe4df;background:#edf7f5;color:#0f766e}
.voice-preview-btn{min-height:42px;border:1px solid #99d5cb!important;border-radius:10px!important;background:#edf8f6!important;color:#087568!important;font-weight:800}.voice-preview-btn:disabled,[data-material-preview]:disabled{opacity:.55}
.material-card aside button:first-child:last-child{grid-column:1/-1;background:#0f766e;color:#fff}
.material-card aside .material-delete{border-color:#fecdd3!important;background:#fff1f2!important;color:#b42318!important}
.material-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;padding:10px;border-radius:12px;background:#f5faf9;color:#52706b;font-size:12px;font-weight:800}
.material-pager button{min-width:82px;height:34px!important;border:1px solid #cfe4df!important;border-radius:9px!important;background:#fff!important;color:#0f766e!important}
.material-pager button:disabled{opacity:.35}
.material-picker-sheet{width:min(760px,calc(100vw - 24px));padding:18px;border-radius:20px;background:#f8fcfb}
@media(max-width:700px){.material-library-list{grid-template-columns:1fr}.material-card{grid-template-columns:82px minmax(0,1fr);min-height:0}.material-card img,.material-voice-icon{width:82px;height:82px}.material-pager{gap:7px}.material-pager span{font-size:11px}.material-pager button{min-width:66px}.material-card:hover{transform:none}}
button.danger,.history-more button.danger,.account-security-actions button.danger-account,.character-asset-card button.danger,.material-card aside button.material-delete,.screenplay-history-actions button.danger,.image-version-actions button.danger,.voice-clone-row button.danger{border-color:#cfe4df!important;background:#edf7f5!important;color:#b42318!important;box-shadow:none!important}
#materialsPanel .material-card aside button.material-delete{border-color:#fecdd3!important;background:#fff1f2!important;color:#b42318!important}
