:root {
  --brand: #c53b31;
  --brand-dark: #9d2d26;
  --brand-soft: #fff0ed;
  --ink: #202221;
  --muted: #737975;
  --line: #e8e9e6;
  --canvas: #f6f7f5;
  --card: #ffffff;
  --green: #2d7b5d;
  --amber: #a66a18;
  --dark: #252927;
  --shadow: 0 12px 36px rgba(29, 36, 31, .06);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 340px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { display: block; color: #929792; font-size: 10px; font-weight: 750; letter-spacing: .18em; line-height: 1.5; }
.eyebrow.light { color: rgba(255,255,255,.5); }
.button { border: 0; border-radius: 10px; min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; font-weight: 650; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--brand); box-shadow: 0 7px 18px rgba(197,59,49,.18); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { color: #3d413e; background: white; border: 1px solid var(--line); }
.button.ghost { background: #f1f2f0; color: #555b57; }
.button.wide { width: 100%; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; background: var(--brand); color: white; border-radius: 17px; font-size: 29px; font-weight: 800; box-shadow: 0 10px 24px rgba(197,59,49,.25); }
.brand-mark.small { width: 40px; height: 40px; border-radius: 12px; font-size: 21px; box-shadow: none; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr; background: #fff; }
.login-brand { background: radial-gradient(circle at 78% 20%, rgba(197,59,49,.18), transparent 34%), linear-gradient(145deg, #272c29, #191d1b); color: white; padding: 54px 7vw; display: flex; flex-direction: column; justify-content: space-between; }
.login-brand-copy { margin: auto 0; padding: 70px 0; }
.login-brand h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.13; letter-spacing: -.055em; margin: 20px 0 26px; font-weight: 700; }
.login-brand-copy p { color: rgba(255,255,255,.62); max-width: 480px; font-size: 16px; line-height: 1.9; }
.login-flow { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.6); font-size: 11px; white-space: nowrap; }
.login-flow i { display: block; width: 22px; height: 1px; background: rgba(255,255,255,.22); }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(390px, 100%); }
.login-card h2 { margin: 13px 0 8px; font-size: 31px; letter-spacing: -.04em; }
.login-card > .muted { margin: 0 0 34px; font-size: 14px; }
.login-card label, .job-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 650; color: #484d49; }
.login-card label { margin: 18px 0; }
input, select, textarea { width: 100%; border: 1px solid #dfe2de; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); outline: none; transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { border-color: rgba(197,59,49,.65); box-shadow: 0 0 0 3px rgba(197,59,49,.08); }
textarea { resize: vertical; line-height: 1.7; }
.form-error { color: var(--brand); font-size: 12px; min-height: 20px; margin: 8px 0; }
.login-note { text-align: center; color: #9a9e9b; font-size: 11px; margin-top: 22px; }
.mobile-login-logo { display: none; }

.app-view { min-height: 100vh; }
.sidebar { width: 224px; height: 100vh; position: fixed; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 18px 20px; z-index: 20; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 32px; }
.sidebar-brand strong { display: block; font-size: 16px; }
.sidebar-brand span { display: block; margin-top: 3px; font-size: 10px; color: #969b97; }
.main-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { border: 0; background: transparent; border-radius: 10px; min-height: 45px; padding: 0 13px; display: flex; align-items: center; gap: 12px; color: #6e746f; font-size: 13px; text-align: left; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item.active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.nav-item:hover:not(.active) { background: #f6f7f5; }
.nav-count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 20px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.worker-pill { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #666c67; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b0b4b1; box-shadow: 0 0 0 4px #f0f1ef; }
.status-dot.online { background: #3f9a70; box-shadow: 0 0 0 4px #e8f5ee; }
.domain-label { display: block; margin-top: 12px; font-size: 9px; color: #a2a6a3; letter-spacing: .02em; }
.workspace { margin-left: 224px; }
.topbar { height: 108px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: rgba(246,247,245,.88); border-bottom: 1px solid var(--line); }
.topbar h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #6a706c; padding: 5px; }
.user-chip > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e7e9e6; color: #464b47; font-size: 11px; }
.user-chip b { font-size: 12px; font-weight: 600; }
.user-chip svg { width: 14px; height: 14px; }
.main-content { padding: 30px 40px 50px; max-width: 1600px; margin: 0 auto; }
.page { display: none; }
.page.active { display: block; animation: pageIn .22s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 21px 22px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 54px; height: 54px; right: -18px; top: -18px; border-radius: 50%; background: #f1f2f0; }
.stat-card > span { color: #777d78; font-size: 12px; }
.stat-card strong { display: block; font-size: 31px; margin: 9px 0 5px; letter-spacing: -.04em; }
.stat-card small { color: #a0a4a1; font-size: 10px; }
.stat-card.accent::after { background: var(--brand-soft); }
.stat-card.warning::after { background: #fff4df; }
.stat-card.success::after { background: #e8f5ee; }
.content-card { background: var(--card); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.card-toolbar { min-height: 68px; padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-tabs, .inner-tabs { display: flex; align-items: center; gap: 5px; }
.filter-tabs button, .inner-tabs button { border: 0; background: transparent; color: #808681; border-radius: 8px; padding: 8px 13px; font-size: 12px; }
.filter-tabs button.active, .inner-tabs button.active { color: #333734; background: #f0f1ef; font-weight: 700; }
.icon-button { border: 1px solid var(--line); background: #fff; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #717773; }
.icon-button svg { width: 16px; height: 16px; }
.table-wrap { overflow-x: auto; }
.jobs-table { width: 100%; border-collapse: collapse; min-width: 790px; }
.jobs-table th { text-align: left; color: #9a9e9b; font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.jobs-table td { padding: 17px 20px; border-bottom: 1px solid #f0f1ef; font-size: 12px; color: #585e59; vertical-align: middle; }
.jobs-table tbody tr { transition: background .15s; }
.jobs-table tbody tr:hover { background: #fbfbf9; }
.jobs-table tbody tr:last-child td { border-bottom: 0; }
.job-id { font-weight: 700; color: #303431; margin-bottom: 4px; }
.job-time, .cell-sub { color: #9a9e9b; font-size: 10px; }
.align-right { text-align: right !important; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; font-size: 10px; font-weight: 650; background: #f0f1ef; color: #656b66; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.running, .status-badge.queued { color: #9b641b; background: #fff4df; }
.status-badge.done { color: var(--green); background: #e9f5ef; }
.status-badge.failed, .status-badge.review { color: var(--brand); background: var(--brand-soft); }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.text-button { border: 0; background: transparent; color: #646a65; font-size: 11px; padding: 5px; }
.text-button.primary-link { color: var(--brand); font-weight: 650; }
.empty-state { text-align: center; padding: 65px 20px 72px; }
.empty-illustration { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 20px; background: var(--brand-soft); color: var(--brand); border-radius: 20px; }
.empty-illustration svg { width: 40px; height: 40px; }
.empty-state h3 { margin: 0 0 9px; }
.empty-state p { color: var(--muted); font-size: 12px; margin-bottom: 25px; }

.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; align-items: start; }
.form-card { padding: 26px 28px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h3, .system-card h3 { margin: 6px 0 0; font-size: 19px; letter-spacing: -.025em; }
.soft-badge { background: var(--brand-soft); color: var(--brand); padding: 7px 10px; border-radius: 8px; font-size: 10px; white-space: nowrap; }
.inner-tabs { border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.inner-tabs button { border-radius: 0; padding: 10px 16px; }
.inner-tabs button.active { background: transparent; color: var(--brand); border-bottom: 2px solid var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px 18px; }
.span-2 { grid-column: span 2; }
.form-footer { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.run-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px !important; cursor: pointer; }
.run-check input { width: 16px; height: 16px; accent-color: var(--brand); margin: 2px 0 0; }
.run-check b { display: block; font-size: 11px; }
.run-check small { display: block; color: #959a96; font-size: 9px; font-weight: 400; margin-top: 4px; }
.create-aside { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 24px; }
.info-card.dark { background: var(--dark); color: white; border-color: var(--dark); }
.info-card h3 { margin: 12px 0 24px; font-size: 22px; line-height: 1.45; letter-spacing: -.035em; }
.info-card h4 { margin: 0 0 10px; font-size: 14px; }
.info-card p { color: #888e89; font-size: 11px; line-height: 1.8; margin: 0; }
.info-card ol { list-style: none; padding: 0; margin: 0; }
.info-card li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.72); font-size: 11px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.info-card li span { color: #d8877f; font-size: 9px; }
.batch-guide { background: #f7f8f6; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.batch-guide strong { font-size: 12px; }
.batch-guide p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.batch-guide code { display: block; color: #777d78; font-size: 11px; line-height: 1.9; overflow-x: auto; }
.batch-textarea { font-family: inherit; font-size: 12px; }
.asset-upload-actions { display: flex; align-items: center; gap: 8px; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 22px; }
.asset-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.asset-image { aspect-ratio: 4 / 3; background: #eef0ed; overflow: hidden; }
.asset-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-info { padding: 14px; }
.asset-info h4 { margin: 0 0 5px; font-size: 13px; }
.asset-id { color: #969b97; font-size: 9px; font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-prompt-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; margin: 10px 0; color: #7f8580; font-size: 9px; line-height: 1.55; }
.asset-prompt-summary.empty { color: #b0b4b1; font-style: italic; }
.mini-badge.ai { color: #6654a4; background: #f0ecfb; }
.batch-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 105px; margin-bottom: 12px; border: 1px dashed #ccd2cc; border-radius: 11px; background: #fafbf9; cursor: pointer; }
.batch-dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.batch-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.batch-dropzone span { color: #555b57; font-size: 12px; font-weight: 650; }
.batch-dropzone small { color: #9aa09a; font-size: 8px; }
.batch-auto-check { display: flex; align-items: flex-start; gap: 9px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.batch-auto-check input { width: auto; margin-top: 2px; accent-color: var(--brand); }
.batch-auto-check b { display: block; font-size: 10px; }
.batch-auto-check small { display: block; margin-top: 3px; color: #999e9a; font-size: 8px; line-height: 1.5; }
.batch-progress { margin-bottom: 10px; padding: 9px 11px; border-radius: 8px; background: #f3f6f2; color: #687068; font-size: 9px; }
.batch-asset-list { max-height: 250px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; }
.batch-asset-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.batch-asset-row:last-child { border-bottom: 0; }
.batch-asset-row .batch-file-name { flex: 1; min-width: 0; color: #5e645f; font-size: 9px; word-break: break-all; }
.batch-asset-row .batch-file-result { flex: 1.1; min-width: 0; color: #8f948f; font-size: 8px; line-height: 1.45; word-break: break-all; }
.batch-asset-row .batch-file-result strong { display: block; color: #566057; font-size: 9px; }
.batch-status { flex: none; padding: 3px 6px; border-radius: 5px; background: #f0f1ef; color: #949994; font-size: 8px; white-space: nowrap; }
.batch-status.working { color: var(--amber); background: #fff4df; }
.batch-status.ok { color: var(--green); background: #e8f5ee; }
.batch-status.failed { color: var(--brand); background: var(--brand-soft); }
.batch-asset-list > .muted { padding: 14px; margin: 0; font-size: 9px; text-align: center; }
.asset-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.mini-badge { font-size: 9px; padding: 4px 6px; border-radius: 5px; color: #777d78; background: #f0f1ef; }
.mini-badge.ok { color: var(--green); background: #e9f5ef; }
.mini-badge.pending { color: var(--amber); background: #fff4df; }
.asset-card .text-button { padding: 0; }
.system-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.system-card { padding: 26px; }
.system-card > .muted { font-size: 11px; line-height: 1.7; }
.issue-list { margin: 22px 0; display: flex; flex-direction: column; gap: 9px; }
.issue-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 9px; background: #fff5f2; color: #9d473e; font-size: 11px; line-height: 1.6; }
.issue-item.ok { background: #eaf6ef; color: var(--green); }
.deployment-list { margin: 25px 0 0; }
.deployment-list div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 11px; }
.deployment-list dt { color: #929793; }
.deployment-list dd { margin: 0; text-align: right; }
.deployment-list a { color: var(--brand); }
.auto-intro { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: center; margin-bottom: 20px; padding: 24px 28px; border: 1px solid #e8d4ce; border-radius: 16px; background: linear-gradient(110deg, #fff8f5 0%, #fffdfb 62%, #f7f1e9 100%); }
.auto-intro h3 { margin: 7px 0 9px; font-size: 22px; line-height: 1.35; letter-spacing: -.04em; }
.auto-intro p { max-width: 700px; margin: 0; color: #6f746f; font-size: 11px; line-height: 1.85; }
.auto-intro-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.auto-intro-tags span { padding: 5px 8px; border-radius: 20px; background: rgba(255,255,255,.8); border: 1px solid #eadfd9; color: #7d736c; font-size: 9px; }
.auto-intro-side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.auto-intro-side small { color: #928983; font-size: 9px; line-height: 1.55; text-align: center; }
.section-subtitle { margin: 7px 0 0; color: #919691; font-size: 10px; line-height: 1.6; }
.auto-flow-map { display: flex; align-items: stretch; gap: 6px; margin: 16px 0 8px; }
.auto-flow-map > div { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid #eceee9; border-radius: 8px; background: #f8f9f7; }
.auto-flow-map > div span { display: block; margin-bottom: 4px; color: var(--brand); font-size: 8px; font-weight: 800; }
.auto-flow-map > div b { display: block; color: #525853; font-size: 10px; }
.auto-flow-map > div small { display: block; margin-top: 3px; color: #9a9f9b; font-size: 7px; line-height: 1.4; }
.auto-flow-map > i { display: flex; align-items: center; color: #c3c7c3; font-size: 10px; font-style: normal; }
.auto-flow-note { margin: 0 0 17px; color: #8d938e; font-size: 8px; line-height: 1.55; }
.field-hint { color: #8e948f !important; font-size: 8px !important; font-weight: 400 !important; line-height: 1.45; }
.field-hint.warn { color: #b45548 !important; }
.auto-form-section { padding: 17px 18px 19px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.auto-section-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.auto-section-head b { font-size: 12px; }
.auto-section-head small { color: #999e9a; font-size: 8px; }
.advanced-parameters { margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.advanced-parameters summary { display: flex; align-items: center; gap: 9px; padding: 13px 16px; cursor: pointer; list-style: none; }
.advanced-parameters summary::-webkit-details-marker { display: none; }
.advanced-parameters summary::before { content: "＋"; color: var(--brand); font-size: 15px; }
.advanced-parameters[open] summary::before { content: "−"; }
.advanced-parameters summary span { color: #575d58; font-size: 11px; font-weight: 650; }
.advanced-parameters summary small { color: #9ba09c; font-size: 8px; }
.advanced-grid { padding: 2px 16px 17px; }
.auto-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.auto-submit-hint b { display: block; margin-bottom: 3px; font-size: 10px; }
.auto-submit-hint small { color: #959a96; font-size: 8px; line-height: 1.5; }
.auto-submit-actions { display: flex; gap: 9px; flex: none; }
.when-list { list-style: none; padding: 0; margin: 0; }
.when-list li { position: relative; padding: 9px 0 9px 16px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.55; }
.when-list li::before { content: ""; position: absolute; left: 1px; top: 15px; width: 4px; height: 4px; border-radius: 50%; background: #d8877f; }
.auto-confirm-summary { display: flex; flex-direction: column; gap: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.auto-confirm-summary > div { display: grid; grid-template-columns: 95px 1fr; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 10px; }
.auto-confirm-summary > div:last-child { border-bottom: 0; }
.auto-confirm-summary span { color: #969b97; }
.auto-confirm-summary b { color: #525853; font-weight: 600; }
.batch-guide details { margin-top: 9px; }
.batch-guide summary { color: var(--brand); font-size: 9px; cursor: pointer; }
.batch-guide details code { margin-top: 8px; }
.provider-grid { display: flex; flex-direction: column; gap: 9px; margin: 0 0 20px; }
.provider-card { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fafbf9; }
.provider-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #616762; font-size: 10px; }
.provider-card strong { display: block; font-size: 11px; word-break: break-all; }
.provider-card code { display: block; margin-top: 5px; color: #858b86; font-size: 9px; word-break: break-all; white-space: normal; }
.provider-card small { display: block; margin-top: 6px; color: #a0a4a1; font-size: 8px; word-break: break-all; }
@media (max-width: 900px) {
  .auto-intro { grid-template-columns: 1fr; gap: 16px; }
  .auto-intro-side { align-items: flex-start; }
  .auto-intro-side .button { width: auto; }
  .auto-intro-side small { text-align: left; }
  .auto-flow-map { overflow-x: auto; padding-bottom: 4px; }
  .auto-flow-map > div { flex: 0 0 130px; }
}
@media (max-width: 600px) {
  .auto-intro { padding: 19px; }
  .auto-intro h3 { font-size: 19px; }
  .auto-submit-bar { align-items: stretch; flex-direction: column; }
  .auto-submit-actions { flex-direction: column; }
  .auto-submit-actions .button { width: 100%; }
  .auto-section-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .advanced-parameters summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .auto-confirm-summary > div { grid-template-columns: 1fr; gap: 3px; }
}

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22,26,23,.55); backdrop-filter: blur(4px); }
.modal-panel { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; position: relative; background: #fff; border-radius: 17px; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.modal-panel.large { width: min(900px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 6px 0 0; font-size: 20px; }
.modal-close { border: 0; background: #f0f1ef; color: #6b716c; width: 30px; height: 30px; border-radius: 8px; font-size: 21px; line-height: 1; }
.modal-body { padding: 24px 26px 26px; }
.modal-body.job-form { display: flex; flex-direction: column; gap: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.job-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-section { border: 1px solid var(--line); border-radius: 11px; padding: 17px; min-width: 0; }
.detail-section.full { grid-column: 1 / -1; }
.detail-section h4 { margin: 0 0 12px; font-size: 12px; }
.detail-section pre { white-space: pre-wrap; word-break: break-word; font: 11px/1.9 "PingFang SC", "Microsoft YaHei", sans-serif; color: #656b66; max-height: 330px; overflow-y: auto; margin: 0; }
.detail-video { width: 100%; max-height: 520px; background: #111; border-radius: 10px; }
.detail-error { background: #fff0ed; color: var(--brand); padding: 13px; border-radius: 9px; font-size: 11px; line-height: 1.7; margin-bottom: 18px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.upload-file { padding: 15px; border: 1px dashed #d7dad6; border-radius: 10px; }
.upload-file span { color: #979c98; font-size: 10px; font-weight: 400; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 200; background: #292e2b; color: white; border-radius: 10px; padding: 13px 19px; font-size: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); max-width: min(520px, 90vw); }
.toast.error { background: var(--brand); }

@media (max-width: 1180px) {
  .asset-grid { grid-template-columns: repeat(3, 1fr); }
  .create-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .main-content { padding: 25px; }
  .topbar { padding: 0 25px; }
}
@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .mobile-login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 45px; }
  .sidebar { width: 100%; height: 66px; inset: auto 0 0 0; border: 0; border-top: 1px solid var(--line); padding: 8px 12px; }
  .sidebar-brand, .sidebar-bottom { display: none; }
  .main-nav { flex-direction: row; justify-content: space-around; }
  .nav-item { min-height: 48px; padding: 0 10px; flex-direction: column; gap: 3px; font-size: 9px; }
  .nav-item svg { width: 17px; height: 17px; }
  .nav-count { position: absolute; margin: -22px 0 0 22px; }
  .workspace { margin-left: 0; padding-bottom: 70px; }
  .topbar { height: 90px; }
  .desktop-action { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .create-layout, .system-layout { grid-template-columns: 1fr; }
  .create-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .topbar { padding: 0 18px; }
  .main-content { padding: 18px 14px 30px; }
  .topbar h2 { font-size: 21px; }
  .user-chip b { display: none; }
  .stat-card { padding: 17px; }
  .stat-card strong { font-size: 27px; }
  .card-toolbar { align-items: flex-start; overflow-x: auto; }
  .filter-tabs { min-width: max-content; }
  .form-card { padding: 21px 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .create-aside { display: none; }
  .asset-grid { grid-template-columns: 1fr; padding: 15px; }
  .asset-upload-actions { flex-wrap: wrap; justify-content: flex-end; }
  .batch-asset-row { flex-wrap: wrap; }
  .batch-asset-row .batch-file-result { flex: 0 0 100%; padding-left: 0; }
  .modal { padding: 10px; }
  .modal-panel { max-height: 95vh; }
  .modal-header, .modal-body { padding-left: 18px; padding-right: 18px; }
  .job-detail-grid { grid-template-columns: 1fr; }
  .detail-section.full { grid-column: auto; }
  .login-flow { flex-wrap: wrap; }
}

/* ---------- 花费与余额 ---------- */
.cost-chip { display: flex; flex-direction: column; gap: 1px; align-items: flex-end; min-width: 108px; padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; transition: border-color .18s, transform .18s; }
.cost-chip:hover { border-color: #d5d8d3; transform: translateY(-1px); }
.cost-chip-label { font-size: 10px; color: #929792; letter-spacing: .04em; }
.cost-chip b { font-size: 14px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cost-chip-sub { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cost-chip.low b { color: var(--brand); }

.cost-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; padding: 14px 16px; background: #fafbf9; border: 1px solid var(--line); border-radius: 12px; }
.cost-strip-item { display: flex; flex-direction: column; gap: 3px; }
.cost-strip-item small { font-size: 11px; color: var(--muted); }
.cost-strip-item b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cost-strip p { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.5; color: #929792; }

.cost-card { grid-column: 1 / -1; }
.cost-card .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cost-card .balance-panel { display: grid; gap: 16px; margin: 14px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.balance-main { display: flex; flex-direction: column; gap: 2px; }
.balance-label { font-size: 12px; color: var(--muted); }
.balance-main strong { font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.balance-cny { font-size: 13px; color: var(--brand); font-variant-numeric: tabular-nums; }
.balance-meta { font-size: 11px; color: #929792; }
.balance-volc { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; background: #fafbf9; border: 1px solid var(--line); border-radius: 10px; }
.balance-volc b { font-size: 15px; font-variant-numeric: tabular-nums; }
.balance-volc small { font-size: 11px; color: #929792; margin-left: auto; }
.balance-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.balance-split div { display: flex; flex-direction: column; gap: 2px; }
.balance-split small { font-size: 11px; color: var(--muted); }
.balance-split b { font-size: 14px; font-variant-numeric: tabular-nums; }
.cost-breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cost-breakdown li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; font-size: 12px; color: #4d524e; border-bottom: 1px dashed var(--line); }
.cost-breakdown li:last-child { border-bottom: 0; padding-bottom: 0; }
.cost-breakdown li span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.price-setup { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.price-setup summary { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: #555b57; cursor: pointer; list-style: none; }
.price-setup summary::-webkit-details-marker { display: none; }
.price-setup summary::before { content: "＋"; color: #929792; }
.price-setup[open] summary::before { content: "－"; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.price-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.price-grid input { height: 36px; padding: 0 10px; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

@media (max-width: 1080px) { .cost-chip { display: none; } }
@media (max-width: 900px) { .cost-card .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .cost-strip { grid-template-columns: 1fr; } .price-grid { grid-template-columns: 1fr; } .cost-card .price-grid { grid-template-columns: 1fr; } }

/* ---------- 导出命名 ---------- */
.studio-city { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.studio-city input { width: 74px; height: 34px; padding: 0 9px; font-size: 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.studio-city input:disabled { background: #f4f5f3; color: #a8aca7; }
.audio-download { display: inline-block; margin-top: 6px; font-size: 12px; }

/* ---------- 本次服装 ---------- */
.outfit-box { margin: 14px 0 10px; padding: 12px 14px; background: #fafbf9; border: 1px solid var(--line); border-radius: 11px; display: grid; gap: 8px; }
.outfit-head { display: flex; align-items: center; gap: 10px; }
.outfit-head b { font-size: 12px; }
.outfit-tag { padding: 2px 8px; font-size: 11px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; }
.outfit-head .text-link { margin-left: auto; font-size: 12px; }
.outfit-box textarea { min-height: 54px; padding: 8px 10px; font-size: 12px; line-height: 1.5; border: 1px solid var(--line); border-radius: 9px; background: #fff; resize: vertical; }
.outfit-box small { font-size: 11px; color: #929792; }
