:root{--bg:#f4f7fb;--card:#fff;--text:#0f172a;--muted:#738196;--line:#e5ebf3;--blue:#2563eb;--blue2:#4f7df3;--soft:#eef4ff;--danger:#d92d4d;--success:#178a52;--shadow:0 24px 70px rgba(15,23,42,.10);font-family:Inter,"SF Pro Display","Segoe UI","Microsoft YaHei",Arial,sans-serif;color:var(--text)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{font-size:14px}button,input,textarea,select{font:inherit}a{color:var(--blue);text-decoration:none}.muted{color:var(--muted);line-height:1.8}.eyebrow{font-size:11px;font-weight:850;letter-spacing:2.1px;color:#718198}.hidden{display:none!important}.auth-page{background:radial-gradient(circle at 10% 10%,#e7efff 0,transparent 31%),radial-gradient(circle at 88% 90%,#e9f5ff 0,transparent 30%),#f5f7fb;min-height:100vh;display:grid;place-items:center;padding:34px}.auth-shell{width:min(1080px,100%);min-height:660px;display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid rgba(222,230,240,.95);border-radius:30px;overflow:hidden;box-shadow:0 32px 100px rgba(30,64,175,.12)}.auth-brand-panel{position:relative;overflow:hidden;padding:48px;color:#fff;background:linear-gradient(145deg,#0f2e69 0%,#1749ad 50%,#2e6bf0 100%);display:flex;flex-direction:column;justify-content:space-between}.auth-brand-panel:before,.auth-brand-panel:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.12)}.auth-brand-panel:before{width:480px;height:480px;right:-210px;top:-170px}.auth-brand-panel:after{width:320px;height:320px;right:-130px;bottom:-120px}.brand-pill{position:relative;z-index:1;display:inline-flex;align-self:flex-start;padding:8px 11px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08);font-size:10px;font-weight:850;letter-spacing:1.7px}.auth-logo{width:66px;height:66px;border-radius:20px;background:#fff;color:#2156bd;display:grid;place-items:center;font-weight:950;font-size:27px;box-shadow:0 18px 50px rgba(0,0,0,.12)}.auth-logo.small{width:54px;height:54px;border-radius:16px;font-size:22px;margin-bottom:18px;background:linear-gradient(135deg,#214faa,#3b79f6);color:#fff}.auth-brand-panel h1{position:relative;z-index:1;margin:22px 0 6px;font-size:48px;letter-spacing:-1.8px}.auth-brand-panel p{position:relative;z-index:1;margin:0;color:rgba(255,255,255,.76);font-size:17px}.auth-feature-grid{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.auth-feature-grid span{padding:15px 16px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);border-radius:14px;font-size:12px;font-weight:750}.auth-form-panel{display:grid;place-items:center;padding:48px}.auth-form-wrap{width:min(380px,100%)}.auth-form-wrap h2,.simple-auth-card h1{margin:8px 0 6px;font-size:31px;letter-spacing:-.7px}.mobile-brand{display:none}.auth-form{display:grid;gap:17px;margin-top:28px}.auth-form label{display:grid;gap:8px}.auth-form label>span{font-size:12px;font-weight:760;color:#46566c}.auth-form input,.auth-form textarea{width:100%;border:1px solid #dce4ee;background:#fff;color:var(--text);border-radius:12px;outline:none;transition:.2s}.auth-form input{height:48px;padding:0 14px}.auth-form textarea{padding:12px 14px;resize:vertical}.auth-form input:focus,.auth-form textarea:focus{border-color:#80a8ff;box-shadow:0 0 0 4px rgba(37,99,235,.08)}.auth-options{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.check-row{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important;gap:8px!important;color:#556579}.check-row input{width:16px!important;height:16px!important;accent-color:var(--blue)}.primary-button{height:48px;border:0;border-radius:12px;background:linear-gradient(135deg,#245ed1,#3479f5);color:#fff;font-weight:850;cursor:pointer;box-shadow:0 10px 24px rgba(37,99,235,.22);transition:.18s}.primary-button:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(37,99,235,.27)}.primary-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.auth-foot{margin-top:22px;text-align:center;color:#7a8798;font-size:12px}.admin-entry{display:block;margin:26px auto 0;text-align:center;font-size:11px;color:#9aa6b5}.form-alert{border-radius:11px;padding:10px 12px;margin:14px 0;font-size:12px;line-height:1.65}.form-alert.error{color:#a91e3c;background:#fff1f4;border:1px solid #ffd4dd}.form-alert.success{color:#147548;background:#edfff6;border:1px solid #c8f1dc}.simple-auth-page{min-height:100vh;background:radial-gradient(circle at 20% 0,#e7efff,transparent 34%),#f5f7fb;display:grid;place-items:center;padding:32px 20px}.simple-auth-wrap{width:min(720px,100%)}.back-link{display:inline-block;margin-bottom:15px;color:#65748a;font-size:12px}.simple-auth-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:36px;box-shadow:var(--shadow)}.input-action{display:grid;grid-template-columns:1fr auto;gap:8px}.input-action button{padding:0 15px;border:1px solid #d9e3f1;border-radius:11px;background:#f8fbff;color:#2459be;font-size:12px;font-weight:760;cursor:pointer}.input-action button:disabled{color:#8a98aa}.member-page{background:#f5f7fb}.member-app{min-height:100vh}.member-header{height:70px;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1380px)/2));background:rgba(255,255,255,.92);backdrop-filter:blur(15px);border-bottom:1px solid rgba(226,232,240,.9)}.member-brand{display:flex;align-items:center;gap:10px;color:var(--text)}.member-brand>span{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#214faa,#3b79f6);color:#fff;display:grid;place-items:center;font-weight:950}.member-brand div{display:grid;gap:1px}.member-brand b{font-size:14px;letter-spacing:-.2px}.member-brand small{font-size:9px;color:#8794a6}.member-header-actions{display:flex;align-items:center;gap:12px}.credit-badge{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1px solid #dbe6f6;background:#f7faff;border-radius:12px;color:#586b87;cursor:pointer}.credit-badge span{font-size:9px}.credit-badge b{color:#1e5ed1;font-size:14px}.member-name{font-size:11px;font-weight:750;color:#506077}.logout-link{font-size:10px;color:#7f8da0}.member-main{width:min(1380px,calc(100% - 44px));margin:0 auto;padding:38px 0 80px}.member-view{display:none}.member-view.active{display:block}.hero-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.hero-row h1{margin:7px 0 7px;font-size:34px;letter-spacing:-1.1px}.hero-row p{margin:0;color:#78869a;max-width:730px;line-height:1.8}.soft-button{height:38px;padding:0 14px;border:1px solid #dfe7f0;background:#fff;border-radius:11px;color:#4d6078;font-size:11px;font-weight:750;cursor:pointer}.chip-row{display:flex;gap:8px;overflow:auto;padding:3px 0 16px;scrollbar-width:none}.chip-row::-webkit-scrollbar{display:none}.chip{white-space:nowrap;height:34px;padding:0 13px;border:1px solid #dfe6ef;background:#fff;color:#6a788b;border-radius:999px;font-size:10px;font-weight:760;cursor:pointer}.chip.active{border-color:#b9cdf8;background:#edf4ff;color:#245cc7}.template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.template-card{min-width:0;background:#fff;border:1px solid #e4e9f0;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.045);transition:.2s;cursor:pointer}.template-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(15,23,42,.09)}.template-media{position:relative;aspect-ratio:9/14;background:linear-gradient(145deg,#eaf0f8,#dfe7f1);overflow:hidden}.template-media img,.template-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#101827}.template-media:after{content:"跟拍";position:absolute;right:10px;bottom:10px;padding:7px 10px;border-radius:999px;background:rgba(17,24,39,.78);backdrop-filter:blur(6px);color:#fff;font-size:9px;font-weight:850;letter-spacing:.5px;z-index:4}.featured-tag{position:absolute;left:10px;top:10px;padding:6px 9px;border-radius:999px;background:#fff6d8;color:#8a6416;border:1px solid #eed693;font-size:9px;font-weight:850;z-index:5}.template-body{padding:14px}.template-title-row{display:flex;justify-content:space-between;gap:10px;align-items:start}.template-body h3{margin:0;font-size:13px;line-height:1.45}.template-cost{flex:0 0 auto;font-size:9px;color:#215ecf;background:#edf4ff;border-radius:999px;padding:5px 7px}.template-body p{margin:8px 0 10px;color:#8190a4;font-size:10px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.template-product{font-size:9px;color:#9aa6b5}.loading-card,.empty-card{grid-column:1/-1;padding:50px;background:#fff;border:1px dashed #d9e1eb;border-radius:18px;text-align:center;color:#8a97a8}.profile-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin-bottom:28px}.profile-card{background:#fff;border:1px solid #e3e9f1;border-radius:16px;padding:18px}.profile-card.main{background:linear-gradient(135deg,#173c88,#2a67dd);color:#fff;border:0}.profile-card small{color:#8a98ab;font-size:9px}.profile-card.main small{color:rgba(255,255,255,.68)}.profile-card b{display:block;margin-top:8px;font-size:24px}.profile-card.main b{font-size:18px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:20px 0 14px}.section-head h2{margin:5px 0 0;font-size:22px}.generation-list{display:grid;gap:10px}.generation-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;background:#fff;border:1px solid #e4e9f0;border-radius:14px;padding:11px 13px}.generation-thumb{width:58px;height:58px;border-radius:11px;background:#edf2f8;display:grid;place-items:center;color:#8090a5;font-weight:850}.generation-copy{min-width:0}.generation-copy b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.generation-copy small{display:block;margin-top:5px;color:#8b98a9;font-size:9px}.status-tag{display:inline-flex;margin-top:6px;padding:4px 7px;border-radius:999px;background:#f1f5f9;color:#66758a;font-size:8px;font-weight:800}.status-tag.ready{background:#e9faf1;color:#188453}.status-tag.failed{background:#fff0f3;color:#bd3150}.status-tag.generating,.status-tag.queued{background:#edf4ff;color:#2861c8}.generation-actions{display:flex;gap:6px}.generation-actions a{height:32px;padding:0 10px;display:grid;place-items:center;border:1px solid #dfe6ef;border-radius:9px;font-size:9px;color:#53657a}.mobile-bottom-nav{display:none}.user-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px}.user-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(6px)}.follow-card{position:relative;z-index:1;width:min(970px,calc(100vw - 32px));max-height:calc(100vh - 40px);display:grid;grid-template-columns:minmax(320px,.9fr) minmax(360px,1.1fr);background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 36px 120px rgba(15,23,42,.28)}.modal-close{position:absolute;right:13px;top:13px;z-index:5;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.9);color:#66758a;font-size:22px;cursor:pointer}.follow-preview{min-height:640px;background:#111827;position:relative}.follow-preview video{width:100%;height:100%;min-height:640px;object-fit:contain;background:#0b1220}.follow-preview #followMeta{position:absolute;left:16px;bottom:16px;right:16px;padding:12px;border-radius:12px;background:rgba(10,18,32,.72);backdrop-filter:blur(8px);color:#dce7f6;font-size:10px;line-height:1.7}.follow-form{padding:30px;overflow:auto;display:grid;gap:16px}.follow-form h2{margin:5px 0 4px;font-size:24px}.follow-form label{display:grid;gap:7px}.follow-form label>span{font-size:11px;font-weight:800;color:#46566b}.follow-form label small{font-size:9px;color:#8d99aa;line-height:1.5}.follow-form input[type=file],.follow-form textarea{width:100%;border:1px solid #dde5ef;border-radius:11px;background:#fff;padding:10px;color:#52627a}.follow-form textarea{resize:vertical;min-height:78px}.cost-line{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cost-line>div{padding:12px;border:1px solid #e4e9f1;border-radius:11px;background:#f9fbfd;display:flex;justify-content:space-between;align-items:center}.cost-line span{font-size:9px;color:#8795a7}.cost-line b{font-size:12px}.user-toast{position:fixed;right:20px;top:84px;z-index:1200;padding:11px 14px;border-radius:11px;background:#152033;color:#fff;font-size:11px;box-shadow:0 16px 40px rgba(15,23,42,.2);opacity:0;transform:translateY(-8px);pointer-events:none;transition:.2s}.user-toast.show{opacity:1;transform:none}.user-toast.error{background:#ad2644}
@media(max-width:1100px){.template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-shell{width:min(900px,100%)}.follow-card{grid-template-columns:.9fr 1.1fr}}
@media(max-width:820px){.auth-page{padding:0}.auth-shell{min-height:100vh;border-radius:0;border:0;grid-template-columns:1fr}.auth-brand-panel{display:none}.auth-form-panel{padding:32px 24px}.mobile-brand{display:grid;gap:2px;margin-bottom:44px}.mobile-brand b{font-size:19px}.mobile-brand span{font-size:10px;color:#8a98aa}.simple-auth-page{padding:16px}.simple-auth-card{padding:24px;border-radius:18px}.member-header{height:62px;padding:0 14px}.member-brand small,.member-name,.logout-link,.credit-badge span{display:none}.credit-badge{height:34px}.member-main{width:calc(100% - 24px);padding:25px 0 86px}.hero-row{align-items:flex-start}.hero-row h1{font-size:27px}.hero-row p{font-size:11px}.hero-row .soft-button{display:none}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-card{border-radius:14px}.template-body{padding:11px}.template-body h3{font-size:11px}.profile-grid{grid-template-columns:1fr 1fr}.profile-card.main{grid-column:1/-1}.mobile-bottom-nav{display:grid;grid-template-columns:1fr 1fr;position:fixed;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:40;padding:6px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 16px 44px rgba(15,23,42,.13)}.mobile-bottom-nav button{height:46px;border:0;background:transparent;border-radius:11px;color:#7e8b9d;font-size:10px;font-weight:760;display:flex;align-items:center;justify-content:center;gap:7px}.mobile-bottom-nav button.active{background:#edf4ff;color:#235fcf}.follow-card{display:block;width:100%;max-height:100vh;height:100%;border-radius:0;overflow:auto}.user-modal{padding:0}.follow-preview{min-height:46vh;height:46vh}.follow-preview video{min-height:46vh;height:46vh}.follow-form{padding:22px 16px 34px}.modal-close{position:fixed}.generation-item{grid-template-columns:48px minmax(0,1fr);gap:10px}.generation-thumb{width:48px;height:48px}.generation-actions{grid-column:1/-1;justify-content:flex-end}.generation-actions a{flex:1}.input-action{grid-template-columns:1fr 112px}}
@media(max-width:430px){.template-grid{gap:8px}.template-media{aspect-ratio:9/13}.template-product{font-size:8px}.hero-row h1{font-size:24px}.credit-badge{padding:0 10px}.simple-auth-card{padding:21px}.auth-form-wrap h2,.simple-auth-card h1{font-size:27px}.cost-line{grid-template-columns:1fr}.member-header-actions{gap:6px}}

/* Password safety validation (registration / reset) */
.password-policy{margin-top:-2px;padding:12px 13px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.password-policy-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.password-policy-head>span{font-size:10px;font-weight:800;color:#516177}.password-policy-head>small{font-size:9px;color:#8a97a8}
.password-policy-rules{display:flex;flex-wrap:wrap;gap:7px}.password-rule{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:0 8px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#7b899b;font-size:9px;font-weight:720;transition:.18s}.password-rule:before{content:'•';font-size:12px;color:#b1bcc9}.password-rule.ok{background:#edf9f2;border-color:#cbead8;color:#18764b}.password-rule.ok:before{content:'✓';color:#168554}.password-rule.bad{background:#fff7f8;border-color:#f2d7de;color:#a74a60}.password-rule.bad:before{content:'×';color:#c2435d}.auth-form button[type=submit]:disabled{opacity:.52;cursor:not-allowed;box-shadow:none}
@media(max-width:430px){.password-policy{padding:11px}.password-policy-head{align-items:flex-start}.password-policy-rules{gap:6px}.password-rule{padding:0 7px}}

/* Member information architecture: materials / orders / account */
.member-header{display:grid;grid-template-columns:auto minmax(320px,1fr) auto;gap:22px}
.member-section-tabs{justify-self:center;display:flex;align-items:center;gap:5px;padding:4px;border:1px solid #e3e9f1;background:#f7f9fc;border-radius:13px}.member-section-tabs button{height:32px;padding:0 16px;border:0;border-radius:9px;background:transparent;color:#7a889b;font-size:10px;font-weight:800;cursor:pointer;transition:.18s}.member-section-tabs button:hover{color:#3c5f92;background:#fff}.member-section-tabs button.active{background:#fff;color:#245fcf;box-shadow:0 5px 16px rgba(32,81,170,.10)}
.member-page-head{align-items:flex-end}.member-page-head>div>p{margin:7px 0 0;color:#8190a3;font-size:11px;line-height:1.7}
.profile-email{display:block;margin-top:5px;font-size:10px;opacity:.74;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-panel{background:#fff;border:1px solid #e3e9f1;border-radius:17px;padding:18px}.account-panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:15px;border-bottom:1px solid #edf1f5}.account-panel-head>div{display:grid;gap:4px}.account-panel-head b{font-size:13px}.account-panel-head small{font-size:9px;color:#8b98aa}.account-panel-head .soft-button{display:grid;place-items:center}.account-rows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-top:15px}.account-rows>div{min-width:0;padding:12px 13px;border-radius:11px;background:#f8fafc;border:1px solid #edf1f5}.account-rows span{display:block;font-size:9px;color:#8b98aa}.account-rows b{display:block;margin-top:7px;font-size:11px;color:#46566d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-item{min-height:82px}.generation-thumb.ready{background:#e9faf1;color:#198356}.generation-thumb.failed{background:#fff0f3;color:#bc3350}.generation-thumb.generating,.generation-thumb.queued,.generation-thumb.reserved{background:#edf4ff;color:#2861c8}.order-status-line{display:flex;align-items:center;gap:7px;margin-top:6px}.order-status-line .status-tag{margin-top:0}.order-cost{font-size:8px;color:#8391a4}.order-error{color:#b73752!important;line-height:1.6}.generation-actions{flex-wrap:wrap;justify-content:flex-end}.generation-actions button,.generation-actions a{height:32px;padding:0 10px;display:grid;place-items:center;border:1px solid #dfe6ef;border-radius:9px;background:#fff;font-size:9px;color:#53657a;cursor:pointer}.generation-actions button:hover,.generation-actions a:hover{border-color:#bfd1ee;color:#245fcf}.generation-actions button:disabled{opacity:.45;cursor:not-allowed;color:#8995a6;background:#f8fafc}
.order-detail-card{position:relative;z-index:1;width:min(1040px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:24px;box-shadow:0 36px 120px rgba(15,23,42,.28)}.order-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 28px 19px;border-bottom:1px solid #edf1f5}.order-detail-head h2{margin:5px 0 2px;font-size:23px}.order-detail-head .muted{margin:0;font-size:10px}.order-detail-head>.status-tag{flex:0 0 auto;margin:3px 44px 0 0}
.order-detail-grid{display:grid;grid-template-columns:minmax(320px,.92fr) minmax(360px,1.08fr);gap:0}.order-detail-media{min-height:500px;background:#0d1524;display:grid;place-items:center}.order-detail-media video{width:100%;height:100%;max-height:620px;object-fit:contain;background:#0a111e}.order-detail-placeholder{padding:28px;color:#9aa9bb;font-size:11px;text-align:center;line-height:1.8}.order-detail-side{padding:23px 26px;display:grid;align-content:start;gap:13px}.order-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px}.order-facts>div{padding:11px;border:1px solid #e7ecf2;background:#f9fbfd;border-radius:10px}.order-facts span{display:block;font-size:8px;color:#8b98aa}.order-facts b{display:block;margin-top:5px;font-size:10px;color:#48596f}.order-input-block{padding:13px;border:1px solid #e4eaf1;border-radius:11px;background:#fff}.order-input-block>span{display:block;margin-bottom:7px;font-size:9px;font-weight:800;color:#5a6a7e}.order-input-block>div{font-size:10px;line-height:1.72;color:#66768b;white-space:pre-wrap;overflow-wrap:anywhere}.order-upload-list{display:grid;gap:7px}.order-upload-list>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.order-upload-list span{font-size:8px;color:#8795a8}.order-upload-list em{font-style:normal;padding:5px 7px;border-radius:8px;background:#f3f6fa;color:#5f7086;font-size:8px}.order-failure{padding:11px 12px;border-radius:10px;background:#fff1f4;border:1px solid #f2d8df;color:#ad3550;font-size:9px;line-height:1.7}.order-detail-actions{display:flex;justify-content:flex-end;gap:9px;padding:17px 26px;border-top:1px solid #edf1f5;background:#fbfcfe}.order-detail-actions .soft-button{display:grid;place-items:center}.order-detail-actions .primary-button{width:auto;min-width:145px;padding:0 17px}.order-detail-actions .primary-button:disabled{opacity:.5;cursor:not-allowed}
.follow-mode-note{margin-top:10px;padding:9px 10px;border:1px solid #d7e3fa;border-radius:9px;background:#f2f6ff;color:#4c6896;font-size:9px;line-height:1.6}.previous-uploads{display:grid;gap:8px;padding:12px;border:1px solid #dfe7f2;border-radius:11px;background:#f8fafc}.previous-uploads-title{font-size:9px;font-weight:800;color:#526277}.previous-uploads>div:not(.previous-uploads-title){display:flex;align-items:center;gap:6px;flex-wrap:wrap}.previous-uploads span{font-size:8px;color:#8a97a8}.previous-uploads em{font-style:normal;padding:5px 7px;border-radius:8px;background:#fff;border:1px solid #e3e9f0;color:#5c6d82;font-size:8px}.previous-uploads small{font-size:8px;color:#8b98aa;line-height:1.6}
@media(max-width:980px){.member-header{grid-template-columns:auto 1fr auto;gap:10px}.member-section-tabs button{padding:0 11px}.account-rows{grid-template-columns:repeat(2,minmax(0,1fr))}.order-detail-grid{grid-template-columns:.9fr 1.1fr}}
@media(max-width:820px){.member-header{display:flex;align-items:center;justify-content:space-between}.member-section-tabs{display:none}.mobile-bottom-nav{grid-template-columns:repeat(3,1fr)}.mobile-bottom-nav button{gap:5px;font-size:9px}.member-page-head{align-items:flex-start}.member-page-head>div>p{font-size:10px}.account-rows{grid-template-columns:1fr 1fr}.order-detail-card{width:100%;height:100%;max-height:100%;border-radius:0}.order-detail-head{padding:21px 17px 15px}.order-detail-head>.status-tag{margin-right:38px}.order-detail-grid{display:block}.order-detail-media{min-height:42vh;height:42vh}.order-detail-media video{max-height:42vh}.order-detail-side{padding:17px}.order-detail-actions{position:sticky;bottom:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}.order-detail-actions>a,.order-detail-actions>button{flex:1;min-width:0}.generation-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.generation-actions a,.generation-actions button{width:100%}.profile-grid{grid-template-columns:1fr 1fr}.profile-card.main{grid-column:1/-1}}
@media(max-width:430px){.account-panel{padding:15px}.account-panel-head{align-items:flex-start}.account-rows{grid-template-columns:1fr}.order-facts{grid-template-columns:1fr 1fr}.order-detail-head h2{font-size:20px}.order-detail-side{padding:14px}.order-detail-actions{gap:6px}.order-detail-actions .primary-button{min-width:0;padding:0 9px;font-size:10px}}

/* Shared video thumbnail cache: image-only first paint; desktop preview video is created on demand. */
.template-media .template-thumb{z-index:1;display:block}
.template-media .template-hover-video{z-index:2;opacity:0;pointer-events:none;transition:opacity .16s ease}
.template-card.is-previewing .template-hover-video{opacity:1}
.template-media .template-thumb.thumb-error{background:linear-gradient(145deg,#111827,#182235);object-fit:contain}
.template-card.thumb-error .template-media:before{content:"缩略图加载失败";position:absolute;inset:0;z-index:1;display:grid;place-items:center;color:#94a3b8;font-size:10px;font-weight:700;letter-spacing:.4px}
.template-media:after{z-index:4}
.featured-tag{z-index:5}


/* v20261008: member-only stage progress, backed by ai_videos.meta_json. */
.member-order-progress{width:100%;min-width:0;margin-top:12px;padding:12px 13px 11px;background:#f7faff;border:1px solid #e3ebf7;border-radius:12px;color:#344861}
.member-order-progress.compact{padding:10px 12px;margin-top:12px}
.member-progress-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;line-height:1.5}
.member-progress-head span{min-width:0;overflow-wrap:anywhere}
.member-progress-head b{color:#3967b3;font-size:12px;flex:0 0 auto;font-variant-numeric:tabular-nums}
.member-progress-track{position:relative;height:7px;background:#e1eafa;border-radius:99px;overflow:hidden;margin-top:9px}
.member-progress-track>i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5b85e1,#4074dc);transition:width .35s ease}
.member-progress-foot,.member-progress-detail{font-size:10px;line-height:1.65;color:#8090a6;margin-top:7px;overflow-wrap:anywhere}
.member-order-progress.failed{background:#fff6f7;border-color:#f2dbe0}
.member-order-progress.failed .member-progress-head b{color:#b34559}
.member-order-progress.failed .member-progress-track>i{background:#d76a7b}
.member-order-progress.ready{background:#f3fbf7;border-color:#d6ede0}
.member-order-progress.ready .member-progress-track>i{background:#35a67a}
.member-order-progress.ready .member-progress-head b{color:#288363}
.member-order-progress.is-indeterminate .member-progress-track>i{width:35%;animation:member-stage-wait 1.65s ease-in-out infinite}
@keyframes member-stage-wait{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}
#memberOrderModal [data-order-progress]{min-width:0}
#memberOrderModal [data-order-progress] .member-order-progress{margin:0}
@media(max-width:600px){.member-order-progress{padding:10px 11px}.member-progress-head{font-size:11px}.member-progress-head b{font-size:11px}.member-progress-foot,.member-progress-detail{font-size:10px}}
@media(prefers-reduced-motion:reduce){.member-order-progress.is-indeterminate .member-progress-track>i{animation:none}.member-progress-track>i{transition:none}}

/* News director progress: wall-clock time stays visible without stretching the progress column. */
.aic-live-elapsed{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;color:#73829a;font-style:normal}
.aic-workflow-elapsed,.member-progress-clock{margin:5px 0}
.project-run-progress-caption{flex-wrap:wrap;min-width:0}.project-run-progress-caption>span{min-width:0}
.news-storyboard{display:grid;gap:10px;margin:16px 0}.news-storyboard article{padding:14px;border:1px solid #e4eaf4;border-radius:10px;background:#fafcff;overflow-wrap:anywhere}
.news-storyboard h4{margin:0 0 8px}.news-storyboard p{margin:6px 0;line-height:1.7}.news-audit{padding:14px;background:#f2f7ff;border-radius:10px;margin:14px 0}
/* Account-to-usage link: details are a separate page, not an embedded form. */
.account-usage-link{margin:16px 0 8px;padding:16px 18px;border:1px solid #e4eaf3;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px}
.account-usage-link .soft-button{display:inline-flex;align-items:center;white-space:nowrap;text-decoration:none}
.account-usage-link p{margin:0;color:#64748b;font-size:12px}
@media(max-width:650px){.account-usage-link{align-items:flex-start;flex-direction:column}}

.member-orders-usage-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none}
@media(max-width:650px){.member-orders-usage-link{margin-top:9px}}

/* 2026-10-16: structurally separate passport SSO button, responsive and vertically aligned. */
.passport-login-box{margin-top:14px;width:100%}
.passport-login-button{box-sizing:border-box;min-height:52px;width:100%;display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 16px;background:linear-gradient(115deg,#008577,#07a690);color:#fff!important;border:1px solid rgba(0,105,94,.14);border-radius:12px;box-shadow:0 8px 20px rgba(0,133,119,.17);font-size:13px;font-weight:750;line-height:1.45;text-decoration:none!important;white-space:normal;text-align:center;transition:filter .2s,transform .2s}
.passport-login-button:hover{filter:brightness(1.045);transform:translateY(-1px)}
.passport-login-button:focus-visible{outline:3px solid #6ee7d3;outline-offset:3px}
.passport-login-symbol{flex:none;background:rgba(255,255,255,.17);width:25px;height:25px;border-radius:7px;display:grid;place-items:center;font-size:13px}
.passport-login-chevron{flex:none;font-size:21px;font-weight:450;line-height:1;margin-left:auto}
.passport-login-button>span:nth-child(2){flex:1;min-width:0}
@media(max-width:480px){.passport-login-button{font-size:12px;min-height:52px;padding:11px 12px;gap:6px}}

.passport-new-member{margin-top:21px;padding:17px;border:1px solid #bce9dc;background:#f3fcf9;border-radius:14px}.passport-new-member strong{font-size:14px}.passport-new-member p{color:#55746e;font-size:12px;line-height:1.7}.passport-new-member button{cursor:pointer;font-family:inherit}
