:root {
  --ink: #242326;
  --muted: #85838a;
  --line: #ebe9e8;
  --paper: #fff;
  --soft: #f8f7f6;
  --accent: #ff5b56;
  --accent-deep: #eb464a;
  --mint: #eaf4f1;
  --shadow: 0 14px 34px rgba(44, 32, 33, .07);
}
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #f5f4f3; font: 14px/1.5 "Microsoft YaHei", "PingFang SC", sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; align-items: flex-start; }
.sidebar { box-sizing: border-box; position: sticky; top: 0; align-self: flex-start; width: 196px; height: 100vh; min-height: 0; flex: none; padding: 16px 12px 12px; background: var(--paper); border-right: 1px solid #f0eeed; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 6px; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong, .brand-text span { display: block; line-height: 1.25; }
.brand-text strong { font-size: 14px; }
.brand-text span { margin-top: 3px; color: #aaa4a6; font-size: 11px; }
.user-card { padding: 10px 12px; border: 1px solid #fde4e2; border-radius: 12px; background: linear-gradient(180deg, #fff8f7, #fef3f2); }
.user-email { display: block; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user-divider { height: 1px; margin: 7px 0; background: #f6dedc; }
.user-balance-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.balance-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; color: #c47f00; border: 1px solid #ffe4a0; border-radius: 99px; background: #fff8ec; font-size: 10px; font-weight: 600; }
.balance-value { color: var(--accent); font-size: 20px; font-weight: 700; }
.user-topup { width: 100%; height: 32px; margin-top: 8px; border: 0; border-radius: 8px; color: #fff; background: var(--accent); font-size: 12px; font-weight: 600; }
.user-topup:hover { background: var(--accent-deep); }
.nav-label, .eyebrow { color: #b2aeb0; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.nav-label { padding: 0 13px 10px; }
.secondary-label { margin-top: 31px; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 7px 12px; color: var(--ink); border: 0; border-radius: 10px; background: transparent; text-align: left; }
.nav-item:hover { background: #fbf1f0; }
.nav-item.active { color: var(--accent-deep); background: #fff2f1; }
.nav-icon { width: 22px; font-size: 21px; line-height: 1; text-align: center; font-weight: 500; }
.nav-item b, .nav-item small { display: block; }
.nav-item b { font-size: 14px; font-weight: 600; }
.nav-item small { margin-top: 3px; color: #aaa7aa; font-size: 11px; }
#nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-bottom { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.sidebar-util { height: 31px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 12px; }
.sidebar-util:hover { color: var(--ink); border-color: #c9c0c0; background: #faf7f6; }
.sidebar-logout { color: #b04a47; }
.sidebar-logout:hover { color: var(--accent-deep); border-color: #ffc0bd; background: #fff7f6; }
.status-dot { width: 7px; height: 7px; background: #c6c4c3; border-radius: 50%; }
.status-dot.online { background: #38b889; box-shadow: 0 0 0 3px #e3f6ee; }
.status-dot.demo { background: var(--accent); box-shadow: 0 0 0 3px #fff0ef; }
.main { min-width: 0; flex: 1; }
.topbar { min-height: 58px; padding: 10px 36px; display: flex; justify-content: flex-end; align-items: center; background: var(--paper); border-bottom: 1px solid var(--line); }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 2px; font-size: 26px; letter-spacing: -.02em; }
h2 { margin-top: 3px; font-size: 18px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.clear-cache-button { min-height: 34px; padding: 0 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.clear-cache-button:hover { color: var(--ink); border-color: #c9c0c0; background: #faf7f6; }
.clear-cache-button:disabled { cursor: wait; opacity: .65; }
.mode-pill { padding: 7px 12px; color: #c95450; border: 1px solid #ffd3d0; border-radius: 99px; background: #fff7f6; font-size: 12px; }
.icon-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 20px; color: #68666a; }
.settings-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 42px; border-bottom: 1px solid var(--line); background: #fffaf9; }
.settings-copy strong, .settings-copy small { display: block; }
.settings-copy strong { margin-top: 3px; font-size: 15px; }
.settings-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.settings-form { display: flex; align-items: center; gap: 10px; }
.settings-form input[type="url"] { width: 260px; height: 40px; padding: 0 11px; border: 1px solid #e4e0df; border-radius: 7px; outline: none; background: #fff; }
.settings-form input[type="url"]:focus { border-color: #ffaaa6; box-shadow: 0 0 0 3px #fff0ef; }
.toggle-label { display: flex; align-items: center; gap: 6px; color: #686267; font-size: 12px; white-space: nowrap; }
.toggle-label input { accent-color: var(--accent); }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 28px 42px 52px; }
.workspace { min-width: 0; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 19px; }
.view-head h2 { font-size: 20px; }
.view-head p { margin-top: 4px; color: var(--muted); }
.action-row { display: flex; align-items: center; gap: 9px; }
.primary-button, .ghost-button { min-height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.primary-button { border: 1px solid var(--accent); color: #fff; background: var(--accent); box-shadow: 0 7px 14px rgba(255, 91, 86, .18); }
.primary-button:hover { background: var(--accent-deep); }
.primary-button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.ghost-button { border: 1px solid var(--line); background: #fff; color: #58565b; }
.ghost-button:hover { border-color: #ffc5c1; color: var(--accent-deep); }
.form-section { padding: 23px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; }
.section-title strong { font-size: 16px; }
.section-title span { color: var(--muted); font-size: 12px; }
.section-number { color: var(--accent); margin-right: 8px; font-size: 12px; }
.drop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.dropzone { min-height: 177px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border: 1.5px dashed #d8d3d2; border-radius: 8px; color: var(--muted); background: #fcfbfb; text-align: center; transition: .18s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: #fff7f6; }
.dropzone.has-files { border-style: solid; border-color: #ffc0bd; background: #fffafa; }
.drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; color: var(--accent); background: #fff0ef; border-radius: 12px; font-size: 22px; }
.dropzone strong { color: var(--ink); font-size: 14px; }
.dropzone span { margin-top: 4px; font-size: 12px; }
.dropzone small { margin-top: 10px; color: #b3adaf; font-size: 11px; }
.dropzone input { display: none; }
.file-actions { display: flex; gap: 7px; margin-top: 12px; }
.mini-button { padding: 6px 10px; color: #625d60; border: 1px solid #e4dfdd; border-radius: 6px; background: #fff; font-size: 11px; }
.mini-button:hover { color: var(--accent-deep); border-color: #ffc0bd; }
.file-count { margin-top: 10px; color: var(--accent-deep) !important; font-weight: 600; }
.pairing-note { margin-top: 13px; padding: 10px 12px; color: #7b7274; border-radius: 7px; background: #faf7f6; font-size: 12px; }
.output-picker { display: flex; gap: 9px; }
.output-picker input { flex: 1; min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #e4e0df; border-radius: 7px; outline: none; background: #fff; color: var(--ink); }
.output-picker input:focus { border-color: #ffaaa6; box-shadow: 0 0 0 3px #fff0ef; }
.output-preview-note { padding: 13px 14px; color: #746c6e; border-radius: 7px; background: #faf7f6; font-size: 12px; }
.output-preview-job { margin-top: 14px; }
.output-preview-empty { margin-top: 12px; padding: 16px; color: #9c9495; border-radius: 7px; background: #faf7f6; font-size: 12px; }
.preview-placeholder { display: grid; width: 100%; min-width: 0; min-height: 180px; place-items: center; color: #aaa4a6; background: #faf8f7; font-size: 11px; }
.preview-placeholder.load-error { color: #b04a47; background: #fff2f1; }
.output-section .field-note { display: block; margin-top: 8px; color: #9c9495; font-size: 11px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field label { display: block; margin-bottom: 7px; color: #676469; font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #e4e0df; border-radius: 7px; outline: none; background: #fff; color: var(--ink); }
.field input, .field select { height: 40px; padding: 0 11px; }
.field textarea { min-height: 92px; padding: 10px 11px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #ffaaa6; box-shadow: 0 0 0 3px #fff0ef; }
.stepper { display: flex; align-items: center; overflow: hidden; border: 1px solid #e4e0df; border-radius: 7px; }
.stepper button { width: 38px; height: 38px; border: 0; background: #faf9f8; color: #777; font-size: 19px; }
.stepper input { height: 38px; border: 0; border-right: 1px solid #e4e0df; border-left: 1px solid #e4e0df; border-radius: 0; text-align: center; }
.ratio { display: flex; gap: 8px; }
.ratio .field { flex: 1; }
.ratio-note { margin-top: 10px; padding: 9px 11px; color: #81777a; border-radius: 6px; background: #faf7f6; font-size: 12px; }
.ratio-note b { color: var(--accent-deep); }
.submit-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.hint { padding: 12px 14px; color: #80787a; border-radius: 7px; background: #f8f6f5; font-size: 12px; }
.hint b { color: var(--ink); }
.queue-panel { align-self: start; min-height: 330px; padding: 21px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.queue-count { min-width: 27px; height: 27px; display: grid; place-items: center; color: var(--accent-deep); border-radius: 8px; background: #fff0ef; font-weight: 700; }
.queue-list { min-height: 176px; padding-top: 12px; }
.empty-state { padding: 30px 0; color: #b1abad; text-align: center; font-size: 12px; line-height: 2; }
.empty-state small { font-size: 11px; }
.queue-item { padding: 12px 0; border-bottom: 1px solid #f0eeed; }
.queue-item:last-child { border-bottom: 0; }
.queue-top { display: flex; justify-content: space-between; gap: 10px; }
.queue-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.queue-status { color: var(--accent-deep); font-size: 11px; }
.progress-track { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #f0eeee; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s; }
.queue-meta { display: flex; justify-content: space-between; margin-top: 6px; color: #aaa4a6; font-size: 11px; }
.queue-note { margin-top: 20px; padding: 11px; color: #8e8587; border-radius: 7px; background: #faf8f7; font-size: 11px; }
.queue-note span { display: inline-grid; width: 16px; height: 16px; margin-right: 5px; place-items: center; color: #fff; border-radius: 50%; background: #bbb4b4; font-size: 10px; }
.history-list { display: grid; gap: 12px; }
.history-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.history-card:hover, .history-card.expanded { border-color: #ffc5c1; }
.history-main { min-width: 0; flex: 1; }
.history-card p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.history-card .queue-status { margin-left: 20px; }
.history-summary { margin-top: 7px; color: var(--accent-deep); font-size: 12px; }
.job-details { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); cursor: default; }
.job-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.job-detail-grid span { min-width: 0; color: var(--muted); font-size: 11px; }
.job-detail-grid strong { display: block; overflow: hidden; margin-top: 3px; color: var(--ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.history-actions { display: flex; justify-content: flex-end; margin-top: 13px; }
.history-actions .ghost-button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.job-errors { margin-top: 12px; padding: 9px 11px; color: #b04a47; border-radius: 6px; background: #fff2f1; font-size: 12px; }
.job-errors p { margin: 0; }
.job-details .result-grid { margin-top: 14px; }
.result-pair { min-width: 0; }
.copy-result a { display: inline-block; margin-top: 9px; color: var(--accent-deep); font-size: 12px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.result-grid > .result-pair { grid-column: 1 / -1; }
.result-item { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.result-item img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.result-item.load-error::after { display: block; padding: 16px 8px; color: #b04a47; background: #fff2f1; content: '预览加载失败，请刷新重试'; font-size: 11px; text-align: center; }
.result-item figcaption { overflow: hidden; padding: 7px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.copy-result { margin-top: 16px; padding: 16px; border-radius: 8px; background: #fff9f8; }
.copy-result strong { display: block; font-size: 15px; }
.copy-result p { margin-top: 7px; color: #655d60; }
.toast { position: fixed; right: 30px; bottom: 26px; z-index: 10; padding: 12px 17px; color: #d43c38; border-radius: 7px; background: #fff; border: 1px solid #f3cfcd; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.centered { left: 50%; top: 50%; right: auto; bottom: auto; z-index: 1000; max-width: min(520px, calc(100vw - 40px)); padding: 20px 30px; border-radius: 12px; font-size: 16px; line-height: 1.6; text-align: center; color: #d43c38; font-weight: 600; border: 1.5px solid #ffb3b0; box-shadow: 0 12px 40px rgba(44,32,33,.18); transform: translate(-50%, calc(-50% + 8px)); }
.toast.centered.show { transform: translate(-50%, -50%); }
@media (max-width: 1050px) { .sidebar { width: 210px; } .content-grid { grid-template-columns: 1fr; } .queue-panel { order: -1; } }
@media (max-width: 700px) { .app-shell { display: block; } .sidebar { position: static; width: 100%; height: auto; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow-y: visible; } .brand { padding-bottom: 12px; } nav { display: flex; overflow-x: auto; gap: 6px; } .nav-item { min-width: 150px; } .nav-label, .secondary-label { display: none; } .topbar { min-height: 54px; padding: 8px 14px; } .settings-panel { display: block; padding: 16px 20px; } .settings-form { flex-wrap: wrap; margin-top: 12px; } .settings-form input[type="url"] { width: 100%; } .content-grid { padding: 20px; } .drop-grid, .controls, .job-detail-grid { grid-template-columns: 1fr; } .view-head { display: block; } .action-row { margin-top: 14px; } .output-picker { display: block; } .output-picker .ghost-button { width: 100%; margin-top: 8px; } .result-grid { grid-template-columns: repeat(2, 1fr); } }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #fff; }
.login-layout { display: flex; width: min(1024px, 100%); min-height: 600px; }
.login-left { position: relative; display: flex; flex: 1; align-items: center; padding: 0 28px; overflow: hidden; }
.login-left-grid { position: absolute; inset: 0; background-image: radial-gradient(circle, #f0eeed 1px, transparent 1px); background-size: 28px 28px; opacity: .55; }
.login-left-content { position: relative; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.login-brand-icon { width: 44px; height: 44px; border-radius: 12px; }
.login-brand-text { font-size: 20px; font-weight: 700; }
.login-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.login-eyebrow-line { width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.login-headline { margin: 0; color: var(--ink); font-size: 48px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; }
.login-body { margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.login-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.login-tag { padding: 6px 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; background: #f7f6f5; font-size: 13px; }
.login-right { display: flex; flex: none; width: 460px; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 380px; padding: 40px 36px 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 32px rgba(44, 32, 33, .07); }
.login-card-header h2 { margin: 0; font-size: 28px; font-weight: 700; }
.login-card-header p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.login-field { margin-top: 18px; }
.login-field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 500; }
.login-field input { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 10px; outline: none; background: #f5f4f3; color: var(--ink); box-sizing: border-box; }
.login-field input:focus { border-color: var(--accent); background: #fff; }
.login-pw-wrap { position: relative; }
.login-pw-wrap input { padding-right: 42px; }
.login-pw-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 32px; height: 32px; place-items: center; color: #b2aeb0; border: 0; border-radius: 8px; background: transparent; transform: translateY(-50%); }
.login-pw-toggle:hover { color: var(--ink); }
.login-submit { width: 100%; height: 46px; margin-top: 24px; border: 0; border-radius: 10px; color: #fff; background: var(--accent); font-size: 15px; font-weight: 600; box-shadow: 0 8px 20px rgba(255, 91, 86, .28); }
.login-submit:hover { background: var(--accent-deep); }
.login-divider { position: relative; margin-top: 20px; text-align: center; }
.login-divider::before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: var(--line); content: ''; }
.login-divider span { position: relative; padding: 0 10px; color: #b2aeb0; background: #fff; font-size: 12px; }
.login-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.login-link { padding: 0; color: var(--accent); border: 0; background: transparent; font-size: 13px; }
.login-link:hover { text-decoration: underline; }
.login-dot { color: #b2aeb0; }
.login-error { display: block; min-height: 18px; margin-top: 12px; color: #b04a47; text-align: center; }
.accent { color: var(--accent); }
@media (max-width: 900px) { .login-layout { display: block; min-height: 0; } .login-left { display: none; } .login-right { width: 100%; padding: 20px 0; } }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 10px; cursor: pointer; }
.checkbox-field input { width: 18px; height: 18px; grid-row: 1 / 3; accent-color: var(--accent); }
.checkbox-field span { font-weight: 700; }
.checkbox-field small { color: var(--muted); }
.admin-users { display: grid; gap: 10px; }
.admin-user { position: relative; padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.admin-user label, .admin-user-name { display: grid; min-width: 0; gap: 5px; overflow: hidden; } .admin-user label > span, .admin-user-name > span { color: var(--muted); font-size: 11px; } .admin-user input, .admin-user select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: 36px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; } .admin-user input:disabled { color: #9b9597; background: #f6f3f2; } .admin-user-actions { grid-column: 1 / -1; box-sizing: border-box; width: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--line); } .admin-user-actions .ghost-button, .admin-user-actions .primary-button, .admin-user-actions .danger-button { min-width: 76px; white-space: nowrap; flex: 0 0 auto; }
 @media (max-width: 700px) { .admin-user-actions { justify-content: flex-start; } }




.brand-icon { display: block; width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.login-mark { width: 52px; height: 52px; border-radius: 12px; }
.login-fee-note { line-height: 1.8; }
.dropzone small.black-base-note { display: block; margin-top: 5px; color: #d62323 !important; font-size: 12px; font-weight: 700; }
.topup-button { min-height: 34px; padding: 0 12px; border-radius: 6px; font-size: 12px; box-shadow: none; }
.text-button { display: block; margin: 14px auto 0; padding: 0; color: var(--accent-deep); border: 0; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.code-row input { min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; }
#promptModal.modal-backdrop{z-index:60}
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(35, 29, 30, .45); }
.member-modal { position: relative; width: min(720px, 100%); max-height: 90vh; overflow: auto; padding: 30px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.qr-grid figure { margin: 0; text-align: center; } .qr-grid img { display: block; width: 100%; max-height: 280px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; } .qr-grid figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) { .qr-grid { grid-template-columns: 1fr; } }
.pool-status { display: grid; gap: 6px; margin-top: 12px; } .pool-item { display: block; padding: 8px 10px; border-radius: 6px; background: #f7f4f3; font-size: 12px; } .pool-item.online { color: #27804b; background: #eef9f1; } .pool-item.offline { color: #b04a47; background: #fff1ef; }
.pool-table-head { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(240px, 2fr) 110px 52px; gap: 10px; padding: 0 4px 6px; font-size: 12px; color: #8a7f79; border-bottom: 1px solid #ece4e0; margin-bottom: 6px; }
#computePoolTable { display: grid; gap: 6px; }
.pool-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(240px, 2fr) 110px 52px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #fdf8f6; border: 1px solid #f2e6e1; }
.pool-row .pool-address { width: 100%; padding: 7px 9px; border: 1px solid #e8dcd6; border-radius: 6px; font-size: 12px; background: #fff; box-sizing: border-box; }
.pool-scopes { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pool-scope { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1; color: #5c4f4a; cursor: pointer; white-space: nowrap; }
.pool-scope input { width: 15px; height: 15px; flex: 0 0 15px; accent-color: #d43d2a; cursor: pointer; margin: 0; padding: 0; }
.pool-scope input:disabled { cursor: not-allowed; }
.pool-state { font-size: 12px; } .pool-state.online { color: #27804b; } .pool-state.offline { color: #b04a47; } .pool-state.unknown { color: #8a7f79; }
.pool-remove { padding: 5px 8px !important; font-size: 12px !important; }
.pool-add-btn { margin-top: 8px; }

.account-summary { max-width: 340px; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-filters { display: grid; grid-template-columns: minmax(180px, 1fr) 180px auto; gap: 10px; margin-bottom: 14px; }
.admin-filters input, .admin-filters select { box-sizing: border-box; width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.admin-user.invalid { border-color: #efb8b5; background: #fffafa; }
.admin-user-name em { width: max-content; padding: 2px 6px; color: #b04a47; border-radius: 99px; background: #fff0ef; font-size: 10px; font-style: normal; }
.danger-button { min-height: 40px; padding: 0 12px; color: #b43632; border: 1px solid #efc3c0; border-radius: 8px; background: #fff6f5; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pool-item .mini-button { margin: 4px 0 4px 6px; }
@media (max-width: 700px) { .account-summary { max-width: 150px; } .admin-filters { grid-template-columns: 1fr; } }

.cloud-control-head { display:flex; justify-content:space-between; align-items:center; margin-top:18px; padding-top:14px; border-top:1px solid var(--line); } .cloud-control-head span { color:var(--muted); font-size:12px; }

.boot-modal { width: min(440px, 100%); } .boot-modal label { display: grid; gap: 7px; margin-top: 16px; color: var(--muted); font-size: 12px; } .boot-modal select, .boot-modal input { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; } .boot-modal .primary-button { width: 100%; margin-top: 22px; }

.output-preview-heading,.history-filters{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-filters input{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:6px}.input-result figcaption{color:#777}

/* ===== Figma redesign: workspace cards ===== */
.view-head-card{border:1px solid #ebe9e8;background:#fff;border-radius:14px;box-shadow:0 2px 20px rgba(44,32,33,.06);overflow:hidden;margin-bottom:19px}
.view-head-inner{padding:24px 32px 20px}
.eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.tag-ai{border-radius:5px;background:#ff5b56;padding:2px 8px;font-size:10px;font-weight:700;color:#fff;letter-spacing:.08em}
.eyebrow-label{font-size:12px;font-weight:600;color:#ff5b56}
.header-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.page-title{font-size:40px;font-weight:700;color:#1a1a1a;line-height:1;letter-spacing:-.01em;margin:0}
.page-desc{margin-top:10px;font-size:13px;color:#85838a;line-height:1.7}
.mode-row{display:flex;align-items:center;gap:8px;padding-bottom:4px;flex-wrap:wrap}
.mode-label{font-size:11px;color:#c8c5c9;margin-right:2px}
.mode-chip{border-radius:7px;padding:6px 12px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid}
.mode-chip.on{background:#fff0ef;border-color:#ffccc9;color:#ff5b56}
.mode-chip.off{background:#faf9f9;border-color:#ede9e8;color:#625d60}

.upload-card{margin-top:0;border-radius:10px;background:#fff;border:1px solid #ebe9e8;box-shadow:0 14px 17px rgba(44,32,33,.07);padding:20px}
.upload-row{display:flex;gap:16px;align-items:stretch}
.upload-box{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border-radius:12px;border:2px dashed #f0eeed;background:#fdfcfc;min-height:150px;padding:20px;cursor:pointer;transition:all .15s;position:relative}
.upload-box.primary:hover{border-color:#ffb3b1;background:#fff8f7}
.upload-box.secondary:hover{border-color:#c8c5c9;background:#faf9fa}
.upload-box.dragging{border-color:#ff5b56;background:#fff3f2}
.upload-icon{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:50%}
.upload-box.primary .upload-icon{background:#fff0ef}
.upload-box.secondary .upload-icon{background:#f4f3f4}
.upload-texts{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.upload-title{font-size:15px;font-weight:600;color:#242326}
.upload-hint{font-size:12px;color:#aaa4a6}
.upload-warn{font-size:11px;color:#d62323}
.upload-box .file-count{font-size:11px;color:#ff5b56;font-weight:600}
.tutorial-link{border-radius:5px;background:#fff0ef;border:1px solid #ffd5d3;padding:2px 8px;font-size:12px;font-weight:600;color:#ff5b56;cursor:pointer}
.tutorial-link:hover{background:#ffe4e3}
.upload-btns{display:flex;gap:8px}
.upload-btns button{border-radius:8px;background:#fff;border:1px solid #e4dfdd;padding:8px 16px;font-size:12px;font-weight:500;color:#625d60;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.upload-box.primary .upload-btns button:hover{border-color:#ff5b56;color:#ff5b56}
.upload-box.secondary .upload-btns button:hover{border-color:#85838a}
.upload-box input[type=file]{display:none}
.action-col{display:flex;flex-direction:column;justify-content:center;gap:12px;flex-shrink:0;width:118px}
.action-submit-wrap{display:flex;flex-direction:column;gap:5px}
.submit-btn{display:flex;align-items:center;justify-content:center;border-radius:9px;background:#ff5b56;height:44px;font-size:13px;font-weight:600;color:#fff;border:none;cursor:pointer;box-shadow:0 4px 14px rgba(255,91,86,.3);width:100%}
.submit-btn:hover{background:#e84e49}
.submit-btn:disabled{opacity:.6;cursor:wait}
.cost-line{display:flex;align-items:center;justify-content:center;gap:4px}
.cost-line span{font-size:10px;color:#b3adaf}
.seed-copy{display:flex;flex-direction:column;gap:4px}
.seed-btn{display:flex;align-items:center;gap:6px;cursor:pointer}
.seed-check input{accent-color:#ff5b56;width:14px;height:14px}
.seed-label{font-size:12px;font-weight:600;color:#242326}
.seed-cost-line{display:flex;align-items:center;gap:4px;padding-left:20px}
.seed-cost-line span{font-size:10px;color:#b3adaf}
.clear-btn{display:flex;align-items:center;justify-content:center;border-radius:9px;background:#fff;border:1px solid #ebe9e8;height:44px;font-size:13px;font-weight:600;color:#85838a;cursor:pointer;width:100%}
.clear-btn:hover{background:#f5f3f3}
.info-bar{display:flex;align-items:center;gap:6px;margin-top:16px;padding:0 4px}
.info-bar p{font-size:11px;color:#b3adaf;margin:0}

.task-card{margin-top:16px;border-radius:10px;background:#fff;border:1px solid #ebe9e8;box-shadow:0 14px 17px rgba(44,32,33,.07);overflow:hidden}
.task-card-inner{display:flex}
.task-left{display:flex;flex-direction:column;border-right:1px solid #f0eeed;flex-shrink:0;width:280px}
.task-left-top{padding:16px 16px 12px}
.task-label{font-size:11px;font-weight:600;color:#aaa4a6;margin:0 0 8px;text-transform:uppercase;letter-spacing:.04em}
.search-box{display:flex;align-items:center;gap:8px;border-radius:8px;border:1px solid #edeae9;background:#faf9f9;padding:8px 12px}
.search-box input{flex:1;font-size:12px;background:transparent;border:none;outline:none;color:#242326}
.search-box input::placeholder{color:#c8c5c9}
.task-status-row{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#faf9f9;border-top:1px solid #f5f3f2;margin-top:auto}
.task-progress{display:flex;flex-direction:column;gap:5px;flex:1}
.task-progress-label{display:flex;align-items:center;justify-content:space-between}
.task-progress-label .lbl{font-size:10px;color:#aaa4a6}
.task-progress-label .val{font-size:10px;color:#85838a;font-weight:500}
.progress-track{height:3px;width:100%;border-radius:99px;background:#edeae9;overflow:hidden}
.progress-fill{height:100%;border-radius:99px;background:#ff5b56;transition:width .3s}
.status-badge{border-radius:5px;background:#f0eeed;border:1px solid #e4e0df;padding:3px 10px;font-size:10px;font-weight:600;color:#85838a;flex-shrink:0;white-space:nowrap}
.status-badge.busy{background:#fff8ec;border-color:#ffe4a0;color:#c47f00}
.task-right{flex:1;display:flex;flex-direction:column;min-width:0}
.task-right .task-label{padding:16px 16px 0;margin-bottom:10px}
.batch-row{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding:0 16px 14px;scrollbar-width:none}
.batch-row::-webkit-scrollbar{display:none}
.batch-empty{font-size:12px;color:#c8c4c5;padding:8px 0}
.batch-chip{display:flex;align-items:center;gap:12px;border-radius:8px;padding:8px 12px;border:1px solid #ebe9e8;background:#faf9f9;flex-shrink:0;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.batch-chip:hover{border-color:#ffb3b0;background:#fff5f4}
.batch-chip.selected{background:#fff0ef;border-color:#ff5b56;box-shadow:0 0 0 1px #ff5b56 inset}
.batch-chip.active{background:#fff0ef;border-color:#ffd5d3}
.batch-info{display:flex;flex-direction:column;gap:2px}
.batch-label{font-size:12px;font-weight:600;color:#242326}
.batch-chip.active .batch-label{color:#ff5b56}
.batch-time{font-size:10px;color:#b3adaf}
.batch-count{font-size:10px;font-weight:500;border-radius:99px;padding:2px 8px;background:#f0eeed;color:#85838a}
.batch-chip.active .batch-count{background:#fff0ef;color:#ff5b56}
.batch-download{display:flex;align-items:center;gap:4px;border-radius:5px;background:#fff;border:1px solid #e4dfdd;padding:4px 8px;font-size:10px;color:#625d60;font-weight:500;cursor:pointer;white-space:nowrap}
.batch-download:hover{border-color:#242326}

/* output card */
.output-card{margin-top:16px;border-radius:10px;background:#fff;border:1px solid #ebe9e8;box-shadow:0 14px 17px rgba(44,32,33,.07);overflow:hidden}
.output-card-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #f0eeed}
.output-card-title{font-size:16px;font-weight:700;color:#242326}
.output-card-note{margin-left:auto;font-size:12px;color:#85838a}
.output-card-body{display:flex;flex-direction:column;gap:12px;padding:20px}

/* records page */
.records-card{background:#fff;border:1px solid #ebe9e8;border-radius:14px;overflow:hidden;box-shadow:0 2px 20px rgba(44,32,33,.06)}
.records-head{display:grid;grid-template-columns:1.4fr 2fr 1fr 1fr;padding:14px 24px;background:#faf9f9;border-bottom:1px solid #ebe9e8;font-size:12px;font-weight:600;color:#85838a}
.record-row{display:grid;grid-template-columns:1.4fr 2fr 1fr 1fr;padding:16px 24px;border-bottom:1px solid #f5f4f3;align-items:center;font-size:13px}
.record-row:last-child{border-bottom:none}
.record-time{color:#b3adaf;font-variant-numeric:tabular-nums}
.record-desc{color:#242326}
.record-cost{color:#ff5b56;font-weight:600}
.record-balance{color:#85838a;font-variant-numeric:tabular-nums}
.record-type-pill{display:inline-block;padding:2px 8px;border-radius:4px;background:#fff0ef;color:#ff5b56;font-size:11px;font-weight:600;margin-right:6px}

/* tutorial image modal */
.image-modal{position:relative;max-width:min(860px,94vw);max-height:92vh;background:#fff;border-radius:14px;overflow:auto;padding:14px}
.image-modal img{display:block;max-width:100%;height:auto;border-radius:8px}
.modal-close{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;border:none;font-size:18px;cursor:pointer;z-index:2}

/* agreement modal */
.agreement-modal{width:min(560px,94vw);max-height:88vh;background:#fff;border-radius:14px;padding:28px;display:flex;flex-direction:column;overflow:hidden}
.agreement-modal h2{font-size:20px;font-weight:700;color:#1a1a1a;margin:0 0 14px}
.agreement-body{flex:1;overflow-y:auto;font-size:13px;line-height:1.8;color:#3a3839;padding-right:8px;border-top:1px solid #f0eeed;border-bottom:1px solid #f0eeed;padding-top:14px;padding-bottom:14px}
.agreement-body h3{font-size:15px;margin:0 0 8px;color:#1a1a1a}
.agreement-body h4{font-size:13px;margin:16px 0 6px;color:#ff5b56}
.agreement-body p{margin:0 0 8px}
.agreement-body .agree-lead{color:#85838a}
.agreement-body .agree-foot{margin-top:14px;color:#85838a;font-size:12px}
.agreement-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.agreement-actions .ghost-button{min-height:38px;padding:0 18px;border:1px solid #ebe9e8;border-radius:8px;background:#fff;color:#85838a;font-size:13px;font-weight:600;cursor:pointer}
.agreement-actions .primary-button{min-height:38px;padding:0 18px;border:none;border-radius:8px;background:#ff5b56;color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.agreement-actions .primary-button:hover{background:#e84e49}

/* consult hover popup */
#consultButton{position:relative}
.consult-pop{position:fixed;left:var(--pop-left,206px);top:var(--pop-top,50%);transform:translateY(-50%);width:150px;background:#fff;border:1px solid #ebe9e8;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.12);padding:12px;display:none;flex-direction:column;align-items:center;gap:8px;z-index:1000}
.consult-pop img{width:126px;height:126px;object-fit:contain;border-radius:8px}
.consult-pop span{font-size:11px;color:#85838a}
#consultButton:hover .consult-pop{display:flex}

/* ===== 充值中心 topup ===== */
.balance-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:14px 22px;border:1px solid #fde4e2;border-radius:10px;background:linear-gradient(180deg,#fff8f7,#fef3f2)}
.balance-bar-left .k{margin:0;font-size:12px;color:#85838a}
.balance-bar-left .v{margin:4px 0 0;font-size:24px;font-weight:700;color:#ff5b56;line-height:1}
.balance-bar-left .unit{font-size:13px;font-weight:500;color:#85838a}
.balance-bar-tip{margin:0;max-width:360px;font-size:12px;line-height:1.7;color:#b3adaf}
.plan-grid-outer{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:4px}
.plan-card{position:relative;display:flex;flex-direction:column;padding:16px 18px;background:#fff;border:1px solid #ebe9e8;border-radius:14px;box-shadow:0 2px 20px rgba(44,32,33,.06);transition:transform .15s,box-shadow .15s}
.plan-card:hover{transform:translateY(-2px)}
.plan-card.recommend{border-color:#ff5b56;box-shadow:0 8px 24px rgba(255,91,86,.16)}
.plan-badge{position:absolute;top:-10px;left:50%;transform:translateX(-50%);padding:3px 12px;border-radius:99px;background:#ff5b56;color:#fff;font-size:11px;font-weight:600;white-space:nowrap;box-shadow:0 3px 8px rgba(255,91,86,.3)}
.plan-name{margin:0;font-size:15px;font-weight:700;color:#242326}
.plan-price{display:flex;align-items:baseline;gap:3px;margin-top:8px}
.plan-price .cur{font-size:14px;font-weight:600;color:#242326}
.plan-price .amt{font-size:26px;font-weight:700;color:#ff5b56;line-height:1}
.plan-price .per{font-size:12px;color:#aaa4a6}
.plan-gift{display:inline-block;align-self:flex-start;margin-top:8px;padding:2px 10px;border:1px solid #ffd5d3;border-radius:99px;background:#fff0ef;color:#ff5b56;font-size:11px;font-weight:600}
.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;margin-top:10px;padding-top:10px;border-top:1px dashed #ebe9e8}
.plan-grid .k{margin:0;font-size:11px;color:#aaa4a6}
.plan-grid .v{margin:3px 0 0;font-size:14px;font-weight:600;color:#242326}
.plan-grid .v.accent{color:#ff5b56}
.plan-unit{margin:12px 0 0;font-size:12px;color:#85838a}
.plan-unit b{color:#242326;font-weight:600}
.plan-buy{margin-top:12px;height:38px;border-radius:9px;border:1px solid #ebe9e8;background:#fff;color:#625d60;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}
.plan-buy:hover{border-color:#ff5b56;color:#ff5b56}
.plan-buy.primary{border:none;background:#ff5b56;color:#fff;box-shadow:0 4px 14px rgba(255,91,86,.3)}
.plan-buy.primary:hover{background:#e84e49}
/* 算力包卡片（新版式：大算力数字 + 折扣角标 + 金额/人数） */
.plan-count{display:flex;align-items:baseline;gap:6px;margin-top:6px}
.plan-count-num{font-size:38px;font-weight:800;color:#ff5b56;line-height:1;letter-spacing:-.5px}
.plan-count-label{font-size:15px;font-weight:600;color:#85838a}
.plan-validity{margin-top:14px;padding-top:12px;border-top:1px solid #f3f1f0;font-size:12px;color:#85838a}
.plan-fields{display:flex;justify-content:space-between;gap:10px;margin-top:14px;padding:0 4px}
.plan-field{flex:1;text-align:left}
.plan-field .k{margin:0;font-size:12px;color:#aaa4a6}
.plan-field .v{margin:5px 0 0;font-size:18px;font-weight:700;color:#242326}
.plan-badge{position:absolute;top:14px;right:14px;left:auto;transform:none;padding:3px 10px;border-radius:6px 6px 6px 0;background:#ff5b56;color:#fff;font-size:11px;font-weight:600;white-space:nowrap;box-shadow:0 3px 8px rgba(255,91,86,.28)}
.topup-notes{margin-top:4px;padding:14px 18px;background:#fff;border:1px solid #ebe9e8;border-radius:10px;box-shadow:0 14px 17px rgba(44,32,33,.07)}
.topup-notes-title{margin:0 0 10px;font-size:13px;font-weight:700;color:#242326}
.topup-notes ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.topup-notes li{position:relative;padding-left:14px;font-size:12.5px;color:#85838a;line-height:1.6}
.topup-notes li::before{content:'';position:absolute;left:0;top:8px;width:5px;height:5px;border-radius:2px;background:#ff5b56}

/* 支付确认弹窗（阶段三/四） */
.pay-modal{width:min(480px,100%)}
.pay-modal-body{padding:6px 4px 2px}
.pay-modal-plan{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px;background:#faf9f9;border-radius:10px;margin-bottom:14px}
.pay-modal-plan .name{font-size:16px;font-weight:700;color:#242326}
.pay-modal-plan .price{font-size:22px;font-weight:700;color:#ff5b56}
.pay-modal-rows{display:flex;flex-direction:column;gap:9px;font-size:13px;color:#625d60}
.pay-modal-rows .row{display:flex;justify-content:space-between}
.pay-modal-rows .row b{color:#242326;font-weight:600}
.pay-modal-actions{display:flex;gap:10px;margin-top:18px}
.pay-modal-actions button{flex:1;height:42px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s}
.pay-modal-cancel{border:1px solid #ebe9e8;background:#fff;color:#625d60}
.pay-modal-cancel:hover{border-color:#ff5b56;color:#ff5b56}
.pay-modal-confirm{border:none;background:#ff5b56;color:#fff;box-shadow:0 4px 14px rgba(255,91,86,.3)}
.pay-modal-confirm:hover{background:#e84e49}
.pay-modal-confirm:disabled{opacity:.6;cursor:not-allowed}
.pay-status-box{text-align:center;padding:26px 10px}
.pay-status-box .icon{font-size:44px;line-height:1;margin-bottom:12px}
.pay-status-box h3{margin:0 0 8px;font-size:17px;color:#242326}
.pay-status-box p{margin:0;font-size:13px;color:#85838a}
.pay-status-actions{display:flex;gap:10px;margin-top:20px;justify-content:center}
.pay-status-actions button{min-width:120px;height:38px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer}

@media (max-width:1100px){.plan-grid-outer{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.plan-grid-outer{grid-template-columns:1fr}}

@media (max-width:900px){
  .upload-row{flex-direction:column}
  .action-col{width:100%;flex-direction:row;flex-wrap:wrap}
  .task-card-inner{flex-direction:column}
  .task-left{width:100%;border-right:0;border-bottom:1px solid #f0eeed}
  .records-head,.record-row{grid-template-columns:1fr 1fr;gap:8px}
  .records-head{display:none}
  .page-title{font-size:30px}
  .header-bottom{flex-direction:column;align-items:flex-start}
}

/* ═══════ v3 新增：上传区附加控件（紧凑竖排，内容居中，窄版面） ═══════ */
.upload-extra-row{flex:0 0 auto;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px;width:150px;padding:12px 12px;border:1px dashed #ecdfde;border-radius:10px;background:#fff}
.upload-extra-row label{color:#5a5557;font-size:12px;font-weight:600;white-space:nowrap}
.upload-extra-row input{width:120px;height:30px;padding:0 8px;border:1px solid #e4e0df;border-radius:8px;font-size:12px;text-align:center}
.upload-extra-row input:focus{border-color:#ff8f8b;outline:none}
.upload-extra-note{color:#a8a3a5;font-size:11px;line-height:1.45}
.template-open-btn{height:32px;padding:0 16px;font-size:12px;white-space:nowrap}
/* ═══════ v3 新增：密码重置弹窗 ═══════ */
.reset-modal{width:min(440px,94vw);display:flex;flex-direction:column;gap:12px}
.reset-modal h2{margin:0;font-size:18px}
.reset-modal p{margin:0;color:#8a8588;font-size:12px;line-height:1.6}
.reset-modal .login-field{display:flex;flex-direction:column;gap:6px}
.reset-modal .login-field label{color:#5a5557;font-size:12px;font-weight:600}
.reset-modal .login-field input{height:38px;padding:0 12px;border:1px solid #e4e0df;border-radius:10px;font-size:13px;background:#fff}
.reset-modal .login-field input:focus{border-color:#ff8f8b;outline:none}
.reset-modal .code-row{display:flex;gap:8px}
.reset-modal .code-row input{flex:1}
.reset-modal .code-row .ghost-button{height:38px;white-space:nowrap}
.reset-modal .primary-button{height:40px;border:0;border-radius:10px;font-size:14px;font-weight:600}
/* ═══════ v3 新增：模板库弹窗 ═══════ */
.template-modal{position:relative;width:min(880px,94vw);max-height:90vh;display:flex;flex-direction:column;gap:14px;padding:26px 28px;background:#fff;border-radius:14px;box-shadow:0 30px 80px rgba(44,33,34,.18)}
.template-modal h2{margin:0;font-size:18px}
.template-modal p{margin:4px 0 0;color:#8a8588;font-size:12px}
.template-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.template-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.template-count{padding:4px 10px;border:1px solid #fde4e2;border-radius:99px;background:#fff8f7;color:#c2655f;font-size:11px;font-weight:700}
.template-head-actions .ghost-button,.template-head-actions .primary-button{height:34px;padding:0 14px;font-size:12px;white-space:nowrap}
.template-toolbar{display:flex}
.template-toolbar .search-box{display:flex;align-items:center;gap:6px;width:min(280px,100%);height:34px;padding:0 10px;border:1px solid #e4e0df;border-radius:8px;background:#faf9f9}
.template-toolbar .search-box input{flex:1;border:0;background:transparent;font-size:12px;outline:none}
.template-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;min-height:180px;padding:2px}
.template-card{position:relative;margin:0;border:2px solid #ebe9e8;border-radius:10px;overflow:hidden;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.template-card:hover{border-color:#ffb3b0}
.template-card.selected{border-color:#ff5b56;box-shadow:0 0 0 3px #ffe2e0}
.template-card img{display:block;width:100%;height:120px;object-fit:contain;background:#f6f4f4;padding:6px;box-sizing:border-box}
.template-card figcaption{padding:6px 8px;color:#5a5557;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.template-card.selected::after{content:'✓';position:absolute;top:6px;left:6px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#ff5b56;color:#fff;font-size:12px;font-weight:700}
.template-delete{position:absolute;top:6px;right:6px;width:20px;height:20px;border:0;border-radius:50%;background:rgba(36,35,38,.55);color:#fff;font-size:12px;line-height:1;display:grid;place-items:center}
.template-delete:hover{background:#d43c38}
@media (max-width:700px){.template-modal-head{flex-direction:column}.template-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}}

/* ===== 任务记录（按设计稿） ===== */
.history-list .task-card{background:#fff;border-radius:16px;padding:0 24px;margin:0 0 16px;border:none;box-shadow:none;overflow:hidden}
.history-list .task-card-header{display:flex;justify-content:space-between;align-items:center;padding:20px 0;cursor:pointer;user-select:none}
.history-list .task-info .task-name{font-size:16px;font-weight:600;margin-bottom:4px;color:#111}
.history-list .task-info .task-time{font-size:12px;color:#999}
.history-list .task-status-badge{display:inline-block;font-size:12px;font-weight:500;color:#d43c38;margin-top:6px}

.history-gen-progress{margin-left:auto;min-width:280px;max-width:420px;padding:10px 14px;border-radius:10px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.08);font-size:12px;color:#333}
.history-gen-progress .gen-progress-title{font-weight:600;color:#d43d2a;margin-bottom:6px}
.history-gen-progress .gen-progress-empty{color:#999;padding:4px 0}
.history-gen-progress .gen-progress-bar{display:block;height:8px;border-radius:4px;background:#f0e8e6;overflow:hidden;margin:4px 0}
.history-gen-progress .gen-progress-bar.overall{height:10px;margin:6px 0}
.history-gen-progress .gen-progress-fill{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#ff5b56,#d43d2a);transition:width .3s ease}
.history-gen-progress .gen-progress-item{display:flex;align-items:center;gap:8px;margin-top:4px}
.history-gen-progress .gen-progress-label{flex:0 0 auto;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666}
.history-gen-progress .gen-progress-item .gen-progress-bar{flex:1;margin:0}
.history-gen-progress .gen-progress-more{margin-top:4px;color:#999;font-size:11px}
.history-list .task-right{display:flex;align-items:center;gap:12px;flex:none}
.history-list .task-download-btn{padding:8px 16px;background:#fff;border:1px solid #e5e5e5;border-radius:8px;font-size:13px;color:#333;cursor:pointer}
.history-list .task-download-btn:hover{border-color:#ff4d4f;color:#ff4d4f}
.history-list .expand-arrow{width:28px;height:28px;border-radius:8px;background:#f5f5f7;display:flex;align-items:center;justify-content:center;color:#999;font-size:12px;transition:transform .25s}
.history-list .task-card.collapsed .expand-arrow{transform:rotate(-90deg)}
.history-list .task-body{padding-bottom:24px;overflow:hidden;max-height:none;transition:opacity .25s;opacity:1}
.history-list .task-card.collapsed .task-body{max-height:0;opacity:0;padding-bottom:0}
.history-list .file-group{border-top:1px solid #f5f5f5;padding-top:18px;margin-top:4px}
.history-list .file-name{font-size:13px;color:#555;margin-bottom:14px}
.history-list .preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width: 1500px){.history-list .preview-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 640px){.history-list .preview-grid{grid-template-columns:1fr}}
.history-list .preview-card{position:relative;background:#fafafa;border-radius:12px;padding:12px;text-align:center;cursor:zoom-in;transition:box-shadow .25s,transform .25s;overflow:hidden}
.history-list .preview-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.1);transform:translateY(-3px)}
.history-list .preview-card img{width:100%;aspect-ratio:3/4;object-fit:contain;border-radius:8px;display:block;margin:0 auto 8px;background:#fff;transition:transform .3s ease}
.history-list .preview-card:hover img{transform:scale(1.04)}
.history-list .preview-actions{position:absolute;top:20px;right:20px;display:flex;gap:6px;opacity:0;transform:translateY(-4px);transition:opacity .2s,transform .2s;z-index:2}
.history-list .preview-card:hover .preview-actions{opacity:1;transform:translateY(0)}
.history-list .action-btn{padding:5px 10px;border-radius:6px;background:rgba(255,255,255,.95);border:none;box-shadow:0 2px 8px rgba(0,0,0,.12);cursor:pointer;font-size:12px;color:#555;transition:background .15s,color .15s;white-space:nowrap}
.history-list .action-btn:hover{background:#fff;color:#ff4d4f}
.history-list .preview-tag{display:inline-block;font-size:12px;font-weight:500}
.history-list .preview-tag.original{color:#8a8386}
.history-list .preview-tag.reference{color:#8a8386}
.history-list .preview-tag.output{color:#8a8386}

/* ===== 灯箱 ===== */
.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,0);z-index:999;justify-content:center;align-items:center;cursor:zoom-out;transition:background .12s ease}
.lightbox.active{display:flex}
.lightbox.active.shown{background:rgba(0,0,0,.85)}
.lightbox img{max-width:none;max-height:none;border-radius:8px;box-shadow:0 8px 40px rgba(0,0,0,.4);transform-origin:center center;user-select:none;cursor:grab;touch-action:none}
.lightbox img.dragging{cursor:grabbing;transition:none!important}
.lightbox-toolbar{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);display:flex;gap:8px;background:rgba(0,0,0,.6);border-radius:12px;padding:8px 12px;backdrop-filter:blur(8px)}
.toolbar-btn{min-width:36px;height:36px;padding:0 8px;border-radius:8px;background:transparent;border:none;color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}
.toolbar-btn:hover{background:rgba(255,255,255,.15)}
.zoom-level{color:#fff;font-size:13px;display:flex;align-items:center;padding:0 8px;min-width:50px;justify-content:center}
.lightbox-close{position:absolute;top:24px;right:24px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.15);border:none;color:#fff;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lightbox-close:hover{background:rgba(255,255,255,.25)}
/* ===== 图片加载完成才显示（避免流式渲染） ===== */
.history-list img.preview-thumb{opacity:0;transition:opacity .25s ease}
.history-list img.preview-thumb.loaded{opacity:1}
.lightbox img{transition:opacity .12s ease}
.lightbox-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;letter-spacing:.05em;pointer-events:none}

/* 网页风格加载圈（灯箱 + 缩略图占位） */
.loading-spinner{width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,91,86,.18);border-top-color:#ff5b56;animation:loadspin .7s linear infinite}
.lightbox-loading .loading-spinner{width:44px;height:44px;border-color:rgba(255,255,255,.25);border-top-color:#fff}
.lightbox-loading{flex-direction:column;gap:12px}
@keyframes loadspin{to{transform:rotate(360deg)}}
/* 缩略图加载中占位：预览卡片未加载完时显示转圈 */
.preview-card{position:relative}
.preview-card img.preview-thumb:not(.loaded){opacity:0}
.preview-card:has(img.preview-thumb:not(.loaded))::before{content:'';position:absolute;left:50%;top:42%;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;border:3px solid rgba(255,91,86,.18);border-top-color:#ff5b56;animation:loadspin .7s linear infinite;z-index:1}

/* 模板卡片更名按钮 */
.template-rename{position:absolute;top:6px;right:30px;width:20px;height:20px;border:0;border-radius:50%;background:rgba(36,35,38,.55);color:#fff;font-size:11px;line-height:1;display:grid;place-items:center;cursor:pointer}
.template-rename:hover{background:#ff5b56}
.lightbox-loading-text{color:#fff;font-size:14px;letter-spacing:.08em}
@keyframes lb-spin{to{transform:rotate(360deg)}}
/* ===== 消费记录：顶部套餐卡片 ===== */
.billing-plan-card{background:#fff;border:1px solid #ebe9e8;border-radius:14px;padding:20px 24px;margin-bottom:18px;box-shadow:0 2px 20px rgba(44,32,33,.06)}
.billing-plan-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.billing-plan-name{font-size:16px;font-weight:700;color:#242326;display:flex;align-items:center;gap:10px}
.billing-plan-status{font-size:11px;font-weight:600;color:#10b981;background:#eafaf3;border-radius:5px;padding:3px 8px}
.billing-plan-meta{display:flex;gap:56px;margin-bottom:18px;flex-wrap:wrap}
.billing-plan-meta-item{display:flex;flex-direction:column;gap:4px}
.billing-plan-meta-label{font-size:12px;color:#aaa4a6}
.billing-plan-meta-val{font-size:15px;font-weight:600;color:#242326;display:flex;flex-direction:column;gap:2px}
.billing-plan-days{font-size:11px;font-style:normal;font-weight:400;color:#ff5b56}
.billing-plan-quota-line{display:flex;justify-content:space-between;font-size:12px;color:#85838a;margin-bottom:8px}
.billing-plan-quota-line strong{color:#242326;font-weight:700}
.billing-plan-quota-track{height:8px;border-radius:99px;background:#f0eeed;overflow:hidden}
.billing-plan-quota-fill{height:100%;border-radius:99px;background:#ff5b56;transition:width .4s}
/* 任务记录：hero + 搜索行 */
.search-row{background:#fff;border:1px solid #ebe9e8;border-radius:14px;padding:18px 24px;margin-bottom:18px;box-shadow:0 2px 20px rgba(44,32,33,.06)}
.search-label{font-size:12px;color:#aaa4a6;margin-bottom:8px}
.search-controls{display:flex;gap:12px;align-items:center}
.search-input{padding:9px 14px;border:1px solid #e5e3e3;border-radius:8px;font-size:13px;width:280px;outline:none;color:#242326}
.search-input:focus{border-color:#ff5b56}
.search-input.date-input{width:170px;color:#555}
.search-input.type-input{width:130px;color:#555;background:#fff;cursor:pointer}
.login-gift-tip{margin:14px 0 0;text-align:center;font-size:13px;color:#ff5b56;letter-spacing:.02em}
.records-filter{display:flex;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid #f5f4f3}
.records-filter-label{font-size:13px;color:#999}

/* register / reset mode tabs */
.register-tabs{display:flex;gap:0;margin:16px 0 20px;border:1px solid #ebe9e8;border-radius:12px;overflow:hidden;background:#faf9f9;width:100%;box-sizing:border-box}
.register-tab{flex:1;padding:13px 0;border:none;background:transparent;font-size:15px;color:#85838a;cursor:pointer;transition:all .2s;text-align:center}
.register-tab.active{background:#ff5b56;color:#fff;font-weight:600}
.register-tab:not(.active):hover{color:#242326;background:#f5f4f3}

/* admin records view */
.admin-records-filter{flex-wrap:wrap;gap:10px}
.admin-records-filter .search-input{padding:8px 12px;border:1px solid #e5e2e2;border-radius:8px;font-size:13px;color:#242326;background:#fff;outline:none}
.admin-records-filter .search-input:focus{border-color:#ff5b56}
.admin-records-filter select.search-input{cursor:pointer}
.records-head-admin{grid-template-columns:1.3fr 1fr 2fr 1fr 1fr}
.record-row-admin{grid-template-columns:1.3fr 1fr 2fr 1fr 1fr}
.record-user{color:#242326;font-weight:600}
.admin-summary-bar{display:flex;flex-wrap:wrap;gap:10px 22px;padding:14px 24px;background:#fdf7f6;border-bottom:1px solid #f0e9e8}
.admin-summary-item{font-size:13px;color:#666}
.admin-summary-item b{font-size:15px;font-weight:700;margin:0 2px;font-variant-numeric:tabular-nums}
.admin-summary-item i{font-style:normal;font-size:11px;color:#a8a3a5;margin-left:4px}
.admin-summary-item .sum-pos{color:#1a9c54}
.admin-summary-item .sum-neg{color:#e74c3c}
.admin-summary-item.sum-dim{color:#a8a3a5;margin-left:auto}
.search-btn{padding:9px 22px;background:#ff5b56;color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}
.search-btn:hover{background:#f04a45}

/* ===== 5. 生成文案红色 ===== */
.copy-result p{color:#3a3537}
.copy-result strong{color:#242326}

/* ===== 1. 历史任务下方当前总进度 ===== */
.total-progress{padding:0 16px 14px;display:flex;flex-direction:column;gap:6px}
.tp-top{display:flex;align-items:center;justify-content:space-between}
.tp-label{font-size:11px;color:#85838a;font-weight:600}
.tp-val{font-size:11px;color:#5a5557;font-weight:500}
.tp-track{height:5px;border-radius:99px;background:#f0eeed;overflow:hidden}
.tp-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#ff7a75,#ff5b56);transition:width .3s ease}
.tp-done{font-size:12px;color:#9c9495}
/* 任务搜索卡片选中态（补充） */
.batch-chip.selected{box-shadow:0 0 0 1px #ff5b56 inset}

/* ===== 7. 回到顶部按钮 ===== */
.back-to-top{display:block;margin:22px auto 4px;padding:9px 22px;border-radius:99px;border:1px solid #f3cfcd;background:#fff5f4;color:#ff5b56;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.back-to-top:hover{background:#ff5b56;color:#fff;border-color:#ff5b56}

/* ===== 模板更名弹窗 ===== */
.prompt-modal{width:min(400px,100%);padding:26px}
.prompt-modal h2{font-size:18px;margin:0 0 18px;color:#242326}
.prompt-modal .login-field{margin-bottom:20px}
.prompt-modal input{width:100%;height:42px;padding:0 12px;border:1px solid #e4e0df;border-radius:8px;font-size:14px;box-sizing:border-box}
.prompt-modal input:focus{border-color:#ff5b56;outline:none;box-shadow:0 0 0 3px #ffe2e0}
.prompt-actions{display:flex;gap:12px}
.prompt-actions .primary-button,.prompt-actions .ghost-button{flex:1;height:42px;border-radius:8px;font-size:14px;cursor:pointer}
.prompt-actions .primary-button{background:#ff5b56;color:#fff;border:none}
.prompt-actions .primary-button:hover{background:#f04a45}
.prompt-actions .ghost-button{background:#fff;border:1px solid #e4e0df;color:#5a5557}
.prompt-actions .ghost-button:hover{border-color:#ff5b56;color:#ff5b56}

/* ===== 7. 续费套餐按钮（更显眼） ===== */
.billing-plan-renew{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:99px;border:none;background:linear-gradient(135deg,#ff6b66,#ff5b56);color:#fff;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(255,91,86,.35);transition:transform .15s,box-shadow .15s}
.billing-plan-renew:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(255,91,86,.45);text-decoration:none}
.billing-plan-renew svg{flex-shrink:0}

/* ===== 9. 最后登录时间 ===== */
.admin-user-name .last-login{display:block;font-style:normal;font-size:11px;font-weight:400;color:#9c9495;margin-top:3px;white-space:nowrap;line-height:1.5}
.admin-user.invalid .admin-user-name .last-login{color:#c9b3b3}

/* sub-user collaboration */
.subusers-block{grid-column:1/-1;display:grid;gap:8px;padding:10px 12px;border:1px dashed var(--line);border-radius:8px;background:#fbf8f7}
.subusers-title{color:var(--muted);font-size:11px}
.subusers-list{display:grid;gap:6px}
.subuser-row{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;align-items:center}
.subuser-row input{box-sizing:border-box;height:34px;padding:0 8px;border:1px solid var(--line);border-radius:6px;min-width:0}
.subuser-add{justify-self:start;min-width:120px}
.subuser-del{min-width:56px;white-space:nowrap}
@media (max-width:700px){.subuser-row{grid-template-columns:1fr}}
.admin-user [data-field=maxSessions]{max-width:90px}
.admin-user .field-note{grid-column:1/-1;color:var(--muted);font-size:10px;margin-top:-6px}

/* admin user card v2 layout */
.admin-user { display: flex; flex-direction: column; gap: 14px; }
.admin-user-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-user-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-user-avatar { flex: 0 0 auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fdeae8; color: #c33d36; font-size: 19px; font-weight: 700; }
.admin-user.invalid .admin-user-avatar { background: #f6d9d6; }
.admin-user-idmeta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.admin-user-title { font-size: 15px; color: var(--text); word-break: break-all; }
.admin-user-sessions { display: grid; grid-template-columns: auto 90px; align-items: center; gap: 4px 10px; }
.admin-user-sessions > span { color: var(--muted); font-size: 11px; grid-column: 1 / -1; }
.admin-user-sessions input { box-sizing: border-box; width: 90px; height: 36px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; }
.admin-user-sessions .field-note { grid-column: 1 / -1; color: var(--muted); font-size: 10px; margin: 0; }
.admin-user-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 2fr)) minmax(0, 3fr); gap: 12px 14px; align-items: stretch; }
.admin-user-fields label { display: grid; min-width: 0; gap: 5px; overflow: hidden; }
.admin-user-fields label > span { color: var(--muted); font-size: 11px; }
.admin-user-fields input, .admin-user-fields select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: 36px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; }
.admin-user-fields [data-vip-expiry] { grid-column: 1; }
.admin-user-fields .dedicated-pool-field { grid-column: 3; grid-row: 1 / span 3; display: flex; flex-direction: column; }
.admin-user-fields .dedicated-pool-field textarea { flex: 1 1 auto; min-height: 100px; height: 100%; }
.admin-user-fields textarea { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 60px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 12px; line-height: 1.5; resize: vertical; }
.admin-user-fields input:disabled { color: #9b9597; background: #f6f3f2; }
@media (max-width: 900px) { .admin-user-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-user-fields .dedicated-pool-field { grid-column: 1 / -1; grid-row: auto; } .admin-user-fields .dedicated-pool-field textarea { min-height: 60px; } }
@media (max-width: 700px) { .admin-user-fields { grid-template-columns: 1fr; } .admin-user-fields .dedicated-pool-field { grid-column: 1 / -1; grid-row: auto; } .admin-user-head { flex-direction: column; } }

/* sidebar user plan row */
.user-plan-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.user-plan { font-size: 12px; font-weight: 700; color: #c33d36; }
.user-seats { font-size: 11px; color: var(--muted); padding: 1px 8px; border-radius: 99px; background: #fdeae8; }

/* plan recharge modal */
.plan-recharge-modal { width: min(720px, 94vw); }
.plan-recharge-tip { color: var(--muted); font-size: 12px; margin: 6px 0 14px; }
.plan-recharge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-recharge-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.plan-recharge-card:hover { border-color: #d3342c; box-shadow: 0 4px 14px rgba(211, 52, 44, .12); }
.prc-name { font-size: 15px; font-weight: 700; color: var(--text); }
.prc-price { font-size: 19px; font-weight: 800; color: #d3342c; }
.prc-meta { font-size: 11px; color: var(--muted); }
.prc-count { font-size: 11px; color: #b0801f; }
@media (max-width: 640px) { .plan-recharge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* fit intro modal */
.fit-intro-modal{width:min(400px,94vw);max-height:90vh;padding:24px 26px 26px;display:flex;flex-direction:column;gap:12px;overflow-y:auto}
.fit-intro-eyebrow{margin-bottom:2px}
.fit-intro-banner{background:linear-gradient(135deg,#4a7dff 0%,#3b6ae8 100%);color:#fff;text-align:center;font-size:21px;font-weight:700;padding:16px 12px;border-radius:10px;letter-spacing:.04em}
.fit-intro-alert{border-radius:9px;padding:11px 14px;font-size:12.5px;line-height:1.6}
.fit-intro-alert strong{display:block;font-size:13px;margin-bottom:3px}
.fit-intro-alert p{margin:0}
.fit-intro-alert-warn{background:#fdf0ef;border:1px solid #f5d4d1;color:#8a4a44}
.fit-intro-alert-warn strong{color:#d43c38}
.fit-intro-alert-success{background:#edf7f0;border:1px solid #d3ead9;color:#3d7a4e}
.fit-intro-alert-info{background:#fdf7ec;border:1px solid #f0e3c8;color:#8a6d3b}
.fit-intro-alert-info strong{color:#b07d2b}
.fit-intro-notes h3{font-size:13px;font-weight:700;color:#333;margin:0 0 6px}
.fit-intro-notes ol{margin:0;padding-left:18px;font-size:12.5px;color:#666;line-height:1.7}
.fit-intro-qr{display:flex;flex-direction:column;align-items:center;gap:8px;padding:6px 0 2px}
.fit-intro-qr img{width:160px;height:160px;border-radius:10px;border:1px solid var(--line)}
.fit-intro-qr-text{text-align:center}
.fit-intro-qr-text p{margin:0;font-size:12.5px;color:#666;line-height:1.6}
.fit-intro-ok{width:100%;margin-top:6px;min-height:42px;font-size:14px}
/* fit-beta nav tag */
.beta-tag{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:4px;background:#ff5b56;color:#fff;font-size:10px;font-weight:700;font-style:normal;letter-spacing:.05em}
/* fit-beta permission field in admin */
.fit-beta-field{display:flex;flex-direction:column;gap:6px}
.fit-beta-field>span{font-size:12px;font-weight:600;color:#5a5557}
.fit-beta-check{display:flex;align-items:center;gap:6px;font-size:13px;color:#666}
.fit-beta-check input[type=checkbox]{width:16px;height:16px;accent-color:#ff5b56}
