:root {
  --bg: #F7F8FA; --surface: #FFFFFF; --surface-muted: #F0F2F5; --line: #DEE2E8;
  --ink: #1F2430; --muted: #626B78; --soft: #87909C; --teal: #00A99D; --teal-deep: #007E76;
  --teal-wash: #E4F5F3; --coral: #FF6B6B; --coral-wash: #FFF0F0; --lemon: #FFD84D;
  --purple: #8B7CF6; --purple-wash: #F0EEFF; --pink: #FF75A0; --green: #258A61;
  --radius-sm: 8px; --radius-md: 13px; --radius-lg: 18px; --sidebar-width: 246px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-synthesis: none; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(0, 169, 157, .28); outline-offset: 3px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-icon { width: 17px; height: 17px; flex: 0 0 auto; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); flex: 0 0 var(--sidebar-width); display: flex; flex-direction: column; padding: 28px 16px 18px; border-right: 1px solid var(--line); background: var(--surface); }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px 34px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--pink)); font-weight: 800; }
.brand-name { font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.brand-subtitle { margin-top: 2px; color: var(--soft); font-size: 12px; }
.version-chip { display: inline-flex; margin-left: 4px; padding: 1px 5px; border-radius: 4px; color: var(--teal-deep); background: var(--teal-wash); font-size: 10px; font-weight: 700; }
.nav-list { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 9px 11px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; transition: color 160ms ease, background 160ms ease; }
.nav-item:hover { color: var(--ink); background: var(--surface-muted); }
.nav-item.is-active { color: var(--teal-deep); background: var(--teal-wash); font-weight: 700; }
.nav-item:nth-child(2).is-active { color: #C4496E; background: #FFF0F5; }
.nav-item:nth-child(3).is-active { color: #6556D9; background: var(--purple-wash); }
.nav-item:nth-child(4).is-active { color: #087E91; background: #E8F8FB; }
.nav-item:nth-child(5).is-active { color: #C5535C; background: var(--coral-wash); }
.nav-item:nth-child(6).is-active { color: #806400; background: #FFF8D7; }
.nav-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-count { margin-left: auto; color: var(--soft); font-size: 12px; font-weight: 500; }
.nav-item.is-active .nav-count { color: var(--teal-deep); }
.sidebar-note { display: flex; gap: 9px; margin: auto 10px 18px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.sidebar-note strong { color: var(--ink); font-size: 13px; }
.note-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.sidebar-footer { padding: 0 10px; color: var(--soft); font-size: 11px; }

.main-content { min-width: 0; flex: 1; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-date { color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.connection-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lemon); flex: 0 0 auto; }
.status-dot-success { background: var(--green); }
.connection-status.is-online .status-dot { background: var(--teal); }
.connection-status.is-offline .status-dot { background: var(--coral); }
.view-region { max-width: 1460px; margin: 0 auto; padding: 38px clamp(24px, 4vw, 58px) 84px; }

.page-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 29px; }
.eyebrow { color: var(--teal-deep); font-size: 12px; font-weight: 750; letter-spacing: .01em; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 5px; font-size: 32px; line-height: 1.17; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.28; letter-spacing: -.022em; text-wrap: balance; }
h3 { font-size: 16px; line-height: 1.3; }
.page-summary { max-width: 65ch; margin-top: 8px; color: var(--muted); line-height: 1.6; }
.date-control { display: flex; align-items: center; gap: 8px; }
.date-control label, .field-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.date-input { min-width: 150px; }

.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--ink); background: transparent; font-size: 13px; font-weight: 650; white-space: nowrap; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 100ms ease; }
.button:hover { border-color: var(--line); background: var(--surface-muted); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.button-primary { color: #fff; border-color: var(--teal-deep); background: linear-gradient(105deg, var(--teal-deep), var(--teal)); }
.button-primary:hover { color: #fff; border-color: var(--teal-deep); background: linear-gradient(105deg, #006B65, var(--teal-deep)); }
.button-secondary { color: var(--teal-deep); border-color: #A9DDDA; background: var(--teal-wash); }
.button-secondary:hover { border-color: var(--teal); background: #D5F0EE; }
.button-quiet { color: var(--muted); }
.button-small { min-height: 31px; padding: 5px 9px; font-size: 12px; }
.button-success { color: var(--green); border-color: #B9E0CE; background: #ECF9F2; }
.button-danger { color: #C5535C; }
.button-icon { width: 16px; height: 16px; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--ink); background: var(--surface-muted); }
.icon-button svg { width: 18px; height: 18px; }

.next-step { padding: 24px 27px 22px; border: 1px solid #DAD7FA; border-radius: var(--radius-lg); background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 72%, #F2F0FF 100%); }
.next-step-top { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.next-step-copy { max-width: 720px; }
.next-step h2 { margin-top: 5px; font-size: 29px; letter-spacing: -.035em; }
.next-step p { margin-top: 8px; color: var(--muted); line-height: 1.6; }
.next-step .button { margin-top: 18px; }
.next-step-count { display: flex; align-items: center; gap: 8px; min-width: 132px; padding: 13px 15px; border-radius: 13px; color: #A53B61; background: linear-gradient(135deg, #FFF1F5, #FFF9D9); }
.next-step-count strong { font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.next-step-count span { color: #87576A; font-size: 12px; line-height: 1.35; }
.next-step-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; }
.flow-step { position: relative; display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding-right: 24px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: 29px; right: 8px; height: 2px; background: var(--line); z-index: 0; }
.flow-step.is-done:not(:last-child)::after { background: linear-gradient(90deg, var(--teal), #B7E9E5); }
.flow-step.is-current { padding: 8px 13px 8px 9px; margin: -8px 10px -8px -9px; border-radius: 10px; background: var(--teal-wash); }
.flow-step.is-current:not(:last-child)::after { top: 21px; left: 38px; right: -2px; background: linear-gradient(90deg, var(--teal), #B7E9E5); }
.flow-number { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 700; }
.flow-step.is-done .flow-number { border-color: var(--teal-deep); color: #fff; background: linear-gradient(145deg, var(--teal-deep), var(--teal)); }
.flow-step.is-current .flow-number { border-color: var(--teal-deep); color: #fff; background: linear-gradient(145deg, var(--teal-deep), var(--teal)); }
.flow-copy { position: relative; z-index: 1; min-width: 0; }
.flow-title { color: var(--ink); font-weight: 700; font-size: 13px; }
.flow-status { margin-top: 2px; color: var(--soft); font-size: 12px; }
.flow-step.is-current .flow-title, .flow-step.is-current .flow-status { color: var(--teal-deep); }

.publish-section { margin-top: 34px; padding: 23px 27px 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.section-head-copy p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.platform-tabs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.platform-tab { min-width: 92px; min-height: 32px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 650; }
.platform-tab.is-active { color: #fff; background: linear-gradient(105deg, var(--teal-deep), var(--teal)); }
.account-group { border-bottom: 1px solid var(--line); }
.account-group:last-child { border-bottom: 0; }
.account-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 17px 0 12px; }
.account-group-title { display: flex; gap: 10px; align-items: baseline; }
.account-platform-label { color: var(--muted); font-size: 12px; }
.account-progress { color: var(--muted); font-size: 13px; }
.account-progress strong { color: var(--ink); }
.assignment-row { display: grid; grid-template-columns: 18px 68px minmax(150px, .7fr) minmax(280px, 1.7fr) auto; gap: 12px; align-items: center; padding: 13px 0 15px; border-top: 1px solid #EEF0F3; border-radius: 8px; transition: background 150ms ease, border-color 150ms ease; }
.assignment-row.is-published { opacity: .62; }
.assignment-row.is-draggable { cursor: grab; }
.assignment-row.is-dragging { opacity: .45; background: var(--teal-wash); }
.assignment-row.is-drop-target { background: #E8F8FB; outline: 2px dashed var(--teal); outline-offset: -2px; }
.assignment-drag { color: var(--soft); font-size: 10px; line-height: 7px; letter-spacing: 1px; user-select: none; text-align: center; }
.inventory-row.is-discarded { opacity: .66; background: #FFF9DF; }
.assignment-thumb { width: 68px; height: 86px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; color: var(--soft); background: var(--surface-muted); font-size: 11px; }
.assignment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.assignment-index { margin-bottom: 4px; color: var(--soft); font-size: 11px; }
.assignment-card { color: var(--ink); font-size: 15px; font-weight: 720; }
.assignment-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.caption-label { color: var(--soft); font-size: 10px; font-weight: 750; letter-spacing: .045em; }
.caption-en { margin-top: 3px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.caption-zh { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.48; }
.assignment-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 260px; }
.assignment-actions .button { min-height: 32px; padding: 6px 9px; }
.assignment-actions-secondary { display: flex; justify-content: flex-end; gap: 5px; grid-column: 3 / -1; margin-top: -7px; }
.locked-label { color: var(--purple); font-size: 12px; font-weight: 650; }
.missing-copy { color: var(--coral); }
.status-label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.status-label.success { color: var(--green); }
.status-label.locked { color: var(--purple); }

/* 下载日期徽章：让每条素材一眼看出是哪天收进来的 */
.date-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.date-badge.is-unknown { color: var(--soft); font-weight: 500; }

/* 补位素材警示：这条视频曾在别的日期排过但没确认发布 */
.reuse-warning { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; padding: 7px 9px; border: 1px solid #F3D9A4; border-radius: var(--radius-sm); background: #FFF8E8; color: #8A5A00; font-size: 12px; line-height: 1.45; }
.reuse-warning .ui-icon { width: 15px; height: 15px; margin-top: 1px; color: #C98A00; }
.reuse-warning strong { font-weight: 700; }

/* 采集结果为 0 时的说明卡 */
.collect-empty-hint { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 2px; padding: 12px 13px; border: 1px solid #F3D9A4; border-radius: var(--radius-md); background: #FFF8E8; color: #7A4E00; }
.collect-empty-hint .ui-icon { width: 18px; height: 18px; margin-top: 2px; color: #C98A00; }
.collect-empty-hint strong { display: block; font-size: 13px; }
.collect-empty-hint span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: #8A5A00; }

/* 跨天提示：前几天还有没确认的任务 */
.carry-over { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #BFD8F2; border-radius: var(--radius-md); background: #F0F7FF; color: #1B4A72; }
.carry-over .ui-icon { width: 19px; height: 19px; margin-top: 2px; color: #2F7FBF; flex: 0 0 auto; }
.carry-over strong { display: block; font-size: 13.5px; }
.carry-over > div > span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: #3E6B93; }
.carry-over-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.carry-over-jump { padding: 5px 11px; border: 1px solid #9CC4E8; border-radius: 999px; background: #fff; color: #1B4A72; font-size: 12.5px; font-weight: 600; transition: background 150ms ease, border-color 150ms ease; }
.carry-over-jump:hover { background: #E3F0FB; border-color: #2F7FBF; }
.collection-attention { border-color: #FFC9BE; background: #FFF5F2; color: #8A3024; }
.collection-attention .ui-icon { color: #D84A39; }
.collection-attention > div > span { color: #9A4A3E; }
.collection-attention .carry-over-jump { border-color: #F2AAA0; color: #8A3024; }
.collection-attention .carry-over-jump:hover { background: #FFE8E3; border-color: #D84A39; }

/* 采集页时区提示 */
.tz-note { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--soft); }
.tz-note strong { color: var(--muted); }
.inline-note { padding: 14px 0 17px; color: var(--muted); font-size: 13px; }
.empty-state.compact { margin: 28px 0 16px; padding: 28px 20px; }

.plan-settings { margin-top: 18px; border-top: 1px solid var(--line); }
.plan-settings summary { display: flex; align-items: center; gap: 8px; padding: 14px 0 12px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; }
.plan-settings summary::-webkit-details-marker { display: none; }
.plan-settings summary::before { content: "⌄"; color: var(--teal-deep); font-size: 17px; line-height: 1; }
.plan-settings[open] summary::before { content: "⌃"; }
.plan-settings-help { max-width: 66ch; margin: -2px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.selector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px; padding-bottom: 16px; }
.selector-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.selector-item.is-selected { border-color: #A9DDDA; background: #F5FCFB; }
.selector-checkbox { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #AEB6C1; border-radius: 5px; background: #fff; }
.selector-item.is-selected .selector-checkbox { border-color: var(--teal-deep); color: #fff; background: var(--teal-deep); }
.selector-item.is-selected .selector-checkbox::after { content: "✓"; font-size: 12px; }
.selector-item input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.selector-copy { min-width: 0; flex: 1; }
.selector-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.selector-meta { color: var(--muted); font-size: 11px; }
.quota-input { width: 48px; padding: 4px 5px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-align: center; }
.quota-input:disabled { color: var(--soft); background: var(--surface-muted); }
.quota-label { color: var(--muted); font-size: 11px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 7px; padding-bottom: 17px; }

.empty-state { max-width: 600px; margin: 54px auto; padding: 38px 26px; border: 1px dashed #C5CBD4; border-radius: var(--radius-md); background: var(--surface); text-align: center; }
.empty-mark { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 11px; color: var(--teal-deep); background: var(--teal-wash); }
.empty-mark svg { width: 21px; height: 21px; }
.empty-state p { margin-top: 7px; color: var(--muted); line-height: 1.55; }
.empty-state .button { margin-top: 20px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border: 1px solid #F1DA8A; border-radius: 10px; color: #795D0A; background: #FFF9DF; font-size: 13px; }
.notice strong { display: block; color: var(--ink); }

.workflow-card { padding: 23px 27px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.workflow-card + .workflow-card { margin-top: 15px; }
.form-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 17px; }
.form-section-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.date-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.date-option { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); text-align: left; font-size: 13px; }
.date-option:hover { border-color: #A9DDDA; background: var(--teal-wash); }
.date-option.is-selected { border-color: var(--teal-deep); color: var(--teal-deep); background: var(--teal-wash); font-weight: 700; }
.date-option:nth-child(1).is-selected { border-color: #B9B0FF; color: #6556D9; background: var(--purple-wash); }
.date-option:nth-child(3).is-selected { border-color: #FFB3C9; color: #B84769; background: #FFF0F5; }
.date-option small { display: block; margin-top: 1px; color: var(--soft); font-size: 11px; font-weight: 500; }
.collector-accounts { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.collector-account { display: grid; grid-template-columns: 30px minmax(120px, 1fr) minmax(150px, .7fr) 100px; gap: 10px; align-items: center; min-height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.collector-account:last-child { border-bottom: 0; }
.collector-check { width: 18px; height: 18px; accent-color: var(--teal-deep); }
.collector-status { color: var(--muted); font-size: 12px; text-align: right; }
.number-input { width: 63px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.collection-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.progress-bar { height: 8px; overflow: hidden; border-radius: 20px; background: #DBF1EF; }
.progress-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); transition: width 220ms ease; }
.progress-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.progress-head strong { font-size: 15px; }
.progress-head span { color: var(--muted); font-size: 13px; }
.job-list { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.job-row { display: grid; grid-template-columns: 24px minmax(120px, .65fr) minmax(180px, 1fr) auto; gap: 11px; align-items: center; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.job-row:last-child { border-bottom: 0; }
.job-icon { width: 20px; height: 20px; color: var(--soft); }
.job-row.is-success .job-icon { color: var(--green); }
.job-row.is-warning .job-icon { color: #CE8A0A; }
.job-row.is-error .job-icon { color: var(--coral); }
.job-main strong { display: block; font-size: 13px; }
.job-main span, .job-message { color: var(--muted); font-size: 12px; }
.job-message small { display: block; margin-top: 4px; color: var(--ink); font-size: 11px; line-height: 1.4; }
.job-row.is-error .job-message small { color: #B14650; }
.job-time { color: var(--soft); font-size: 12px; }
.job-row.is-success .job-icon, .result-icon.is-success { color: var(--green); }
.job-row.is-warning .job-icon, .result-icon.is-warning { color: #C88609; }
.job-row.is-error .job-icon, .result-icon.is-error { color: var(--coral); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 24px; padding: 17px 0 12px; border-top: 1px solid var(--line); }
.results-head h2 { font-size: 17px; }
.results-head > div { display: flex; gap: 6px; }
.result-list { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.result-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 46px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.result-row:last-child { border-bottom: 0; }
.result-icon { width: 18px; height: 18px; }
.result-row > div { min-width: 0; }
.result-row > div strong { display: block; }
.result-row > div small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.result-row.is-attention { background: #FFF7F4; }
.result-row time { color: var(--soft); font-size: 12px; }
.date-inline { display: block; width: 100%; margin-top: 2px; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.collector-name { font-weight: 650; }
.collector-limit { color: var(--muted); font-size: 12px; }
.empty-collection { text-align: center; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 20px 0 13px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 12px; }
.filter-button.is-active { border-color: #A9DDDA; color: var(--teal-deep); background: var(--teal-wash); font-weight: 700; }
.status-chip { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; color: #6556D9; background: var(--purple-wash); font-size: 11px; font-weight: 700; }
.status-chip.success { color: var(--teal-deep); background: var(--teal-wash); }
.status-chip.warning { color: #806400; background: #FFF8D7; }
.list { border-top: 1px solid var(--line); background: var(--surface); }
.list-row { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(260px, 1.7fr) minmax(150px, .8fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-title { font-size: 15px; font-weight: 700; }
.list-subtitle { margin-top: 3px; color: var(--muted); font-size: 12px; }
.list-copy { color: var(--muted); font-size: 13px; }
.list-copy strong { display: block; overflow: hidden; color: var(--ink); font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.list-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.inventory-row { grid-template-columns: 58px minmax(140px, .8fr) minmax(150px, .65fr) minmax(280px, 1.55fr) auto; }
.inventory-thumb { width: 58px; height: 70px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); }
.inventory-caption { min-width: 0; padding: 9px 11px; border-radius: 8px; background: #F4F7FF; }
.inventory-caption .caption-label { margin-bottom: 4px; }
.inventory-caption p { margin: 0; }
.inventory-caption-en { color: var(--ink); font-size: 13px; font-weight: 570; line-height: 1.45; }
.inventory-caption-zh { margin-top: 5px !important; color: #5E6285; font-size: 12px; line-height: 1.45; }
.inventory-caption-missing { margin-top: 5px !important; color: #9A7400; font-size: 12px; }
.inventory-caption.is-missing { border: 1px solid #F3D98B; background: #FFF9E6; }
.inventory-caption.is-missing p { color: #8A6700; font-weight: 700; }
.inventory-caption.is-missing small { display: block; margin-top: 4px; color: #8A740E; font-size: 11.5px; line-height: 1.4; }
.rating-group { display: inline-flex; gap: 4px; align-items: center; }
.rating-group .button { min-height: 28px; padding: 4px 8px; font-size: 12px; }
.feedback-inline { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 8px; background: #F8FAFC; }
.feedback-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.feedback-input { flex: 1; min-width: 180px; min-height: 32px; }
.feedback-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.history-row { grid-template-columns: minmax(110px, .65fr) minmax(160px, .9fr) minmax(170px, 1fr) minmax(200px, 1.4fr); }
.accounts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px; }
.account-setting { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.account-setting-head { display: flex; justify-content: space-between; gap: 12px; }
.platform-badge { display: inline-flex; padding: 4px 7px; border-radius: 5px; color: var(--teal-deep); background: var(--teal-wash); font-size: 11px; font-weight: 700; }
.account-setting-meta { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.account-setting-meta strong { color: var(--ink); }

.skeleton { height: 15px; border-radius: 5px; background: var(--surface-muted); animation: pulse 1.2s ease-in-out infinite; }
.skeleton-kicker { width: 92px; }
.skeleton-title { width: min(340px, 65%); height: 33px; margin-top: 11px; }
.skeleton-copy { width: min(560px, 85%); margin-top: 11px; }
.skeleton-block { margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.skeleton-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 20px; }
.skeleton-row .skeleton { height: 50px; }
@keyframes pulse { 50% { opacity: .5; } }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 10; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); animation: toast-in 180ms ease-out; }
.toast.success { border-color: #B9E0CE; background: #ECF9F2; }
.toast.error { border-color: #F2BFC1; background: var(--coral-wash); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.dialog { width: min(460px, calc(100vw - 34px)); padding: 0; border: 1px solid #CCD2DA; border-radius: 14px; color: var(--ink); background: var(--surface); }
.dialog::backdrop { background: rgba(31, 36, 48, .26); }
.dialog form { padding: 25px; }
.dialog-small { width: min(430px, calc(100vw - 34px)); }
.dialog-header { display: flex; justify-content: space-between; gap: 18px; }
.dialog h2 { margin-top: 4px; }
.dialog-intro { margin: 10px 0 20px; color: var(--muted); font-size: 13px; }
.field-label { display: block; margin: 14px 0 6px; }
.text-input { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #C8CED7; border-radius: 7px; color: var(--ink); background: #fff; }
.text-input:focus { border-color: var(--teal-deep); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 25px; }
.confirmation-rule { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid #B9E0CE; border-radius: 8px; color: var(--green); background: #ECF9F2; font-size: 13px; }
.rule-icon { width: 18px; height: 18px; flex: 0 0 auto; }

@media (max-width: 1160px) {
  .assignment-row { grid-template-columns: 64px minmax(130px, .65fr) minmax(220px, 1.35fr); }
  .assignment-actions { grid-column: 2 / -1; justify-content: flex-start; min-width: 0; }
  .assignment-actions-secondary { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 920px) {
  :root { --sidebar-width: 214px; }
  .view-region { padding-top: 30px; }
  .next-step-top { display: block; }
  .next-step-stepper { gap: 8px; }
  .flow-step { padding-right: 7px; }
  .flow-step:not(:last-child)::after { left: 26px; right: -2px; }
  .flow-copy { display: none; }
  .list-row, .inventory-row, .history-row { grid-template-columns: 1fr 1fr; }
  .list-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; padding: 14px 14px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-lockup { padding: 0 7px 12px; }
  .nav-list { display: flex; gap: 3px; overflow-x: auto; }
  .nav-item { width: auto; min-height: 38px; flex: 0 0 auto; padding: 7px 9px; }
  .nav-item span:nth-of-type(1) { white-space: nowrap; }
  .nav-count, .sidebar-note, .sidebar-footer { display: none; }
  .topbar { height: 56px; padding: 0 16px; }
  .connection-status { display: none; }
  .view-region { padding: 25px 16px 55px; }
  h1 { font-size: 28px; }
  .page-intro { display: block; margin-bottom: 23px; }
  .date-control { margin-top: 16px; }
  .next-step, .publish-section, .workflow-card { padding: 19px 17px; }
  .next-step h2 { font-size: 25px; }
  .next-step-stepper { margin-top: 24px; }
  .flow-step.is-current { margin-left: -3px; padding-left: 3px; }
  .section-head, .form-section-head { display: block; }
  .platform-tabs { margin-top: 13px; width: max-content; }
  .account-group-head { padding-top: 15px; }
  .assignment-row { display: grid; grid-template-columns: 58px 1fr; gap: 11px; }
  .assignment-thumb { width: 58px; height: 75px; grid-row: span 2; }
  .assignment-details { min-width: 0; }
  .assignment-caption { grid-column: 1 / -1; }
  .assignment-actions, .assignment-actions-secondary { grid-column: 1 / -1; justify-content: flex-start; }
  .date-options { grid-template-columns: 1fr; }
  .collector-account { grid-template-columns: 25px minmax(100px, 1fr) 80px; }
  .collector-status { grid-column: 2 / -1; grid-row: 2; text-align: left; }
  .collection-actions { justify-content: stretch; flex-wrap: wrap; }
  .collection-actions .button { flex: 1; }
  .job-row { grid-template-columns: 24px 1fr; }
  .job-time { grid-column: 2; }
  .list-row, .inventory-row, .history-row { display: block; }
  .list-row > * { margin-bottom: 10px; }
  .list-row > *:last-child { margin-bottom: 0; }
  .list-actions { justify-content: flex-start; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
