:root {
  color-scheme: light;
  --bg: #f6f9fe;
  --surface: #ffffff;
  --surface-raised: #f1f6ff;
  --field: #ffffff;
  --ink: #1d3354;
  --muted: #5b708e;
  --line: #dbe5f2;
  --accent: #285bb4;
  --accent-solid: #3261c9;
  --accent-hover: #2855b8;
  --light: #edf4ff;
  --red: #ac3548;
  --orange: #915c16;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); line-height: 1.5; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; outline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #1e3454; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible {   outline: 2px solid #426fc4; }
[hidden], .hidden { display: none !important; }
.task-select-cell { width: 48px; text-align: center; }
.task-select-cell input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.task-select-cell input:disabled { cursor: not-allowed; }
.task-batch-bar { border-top: 1px solid var(--line); background: var(--light); flex-wrap: wrap; }
.task-batch-bar small { color: var(--muted); }
.task-batch-items { max-height: 300px; overflow: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; }
.task-batch-items > div { padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.task-batch-items > div:last-child { border-bottom: 0; }
.task-batch-items .badge { margin-left: 10px; }
.task-batch-items p { margin: 5px 0 0; }
.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; stroke: none; vertical-align: middle; }
.icon-sprite { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; top: 10px; left: 16px; transform: translateY(-150%); border: 1px solid #d6e1f2; border-radius: 5px;   padding: 10px 14px;  background: #183d78; color: #ffffff; border-color: #9ab9e8; }
.skip-link:focus { transform: translateY(0); }
.app-header { width: 100%;   flex-shrink: 0;  background: #183d78; border-bottom: 1px solid #2e5591; color: #f5f8ff; }
.topbar { min-height: 72px; width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 25px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0;  font-size: 17px; font-weight: 650; letter-spacing: -.3px; white-space: nowrap;  color: #ffffff; }
.brand:hover {  text-decoration: none;  color: #ffffff; }
.brand-icon { display: grid; place-items: center; width: 32px; height: 34px; border: 1px solid #d6e1f2; border-radius: 7px;   box-shadow: inset 0 1px 0 #d8e6ff12, 0 2px 8px #152d5512;  background: #2b5594; border-color: #5b7cb0; color: #ffffff; }
.brand-icon .icon { width: 19px; height: 19px; }
.brand small { display: none; }
#nav { display: flex; position: relative; align-self: stretch; align-items: stretch; gap: 1px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
#nav::-webkit-scrollbar { display: none; }
.nav-item { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; flex-shrink: 0; padding: 0 11px; min-height: 48px;  font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 180ms, color 180ms;  color: #d7e5ff; }
.nav-item:hover {   text-decoration: none;  background: #ffffff09; color: #ffffff; }
.nav-item.active {  font-weight: 600;  color: #ffffff; }
.nav-group-start { margin-left: 7px; }
.nav-group-start::after { content: ''; position: absolute; left: -5px; top: calc(50% - 7px); height: 14px; width: 1px;   background: #496ca1; }
#nav-indicator { position: absolute; z-index: 0; pointer-events: none;   background: linear-gradient(0deg, #b4d0ff17, transparent 75%); }
#nav-indicator::before { content: ''; position: absolute; bottom: 0; left: 10px; right: 10px; height: 2px;    background: #b9d4ff; box-shadow: 0 -2px 8px #9dbfff22; }
.nav-icon { display: inline-flex; width: 18px; align-items: center; justify-content: center; margin-right: 7px; }
.nav-group-label, .nav-label, .nav-rule { display: none; }
.nav-shell { display: contents; }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.connection {  font-size: 12px; white-space: nowrap;  color: #d4e3fc; }
.connection i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #dcb875; vertical-align: 2px; }
.connection.online i {    background: #b4d0ff; box-shadow: 0 0 7px #b2ceff20; }
.operator { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid #d6e1f2;  font-size: 12px; white-space: nowrap;  color: #deebff; border-color: #5474a2; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center;  border: 1px solid #d6e1f2; border-radius: 50%;  font-size: 12px;  background: #31588f; border-color: #7090c0; color: #ffffff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid #d6e1f2; border-radius: 6px; background: #ffffff;  line-height: 1.4; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 180ms, border-color 180ms, color 180ms, box-shadow 230ms, transform 250ms var(--ease-out);  border-color: #778baa; color: #233f66; }
.button:hover { background: #eef4ff;   text-decoration: none;  color: #173660; border-color: #527bb5; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 9px #152d550e; }
.button:active:not(:disabled) { background: #e4edff; transform: translateY(0) scale(.98); box-shadow: none; transition-duration: 90ms; }
.button.primary { background: var(--accent-solid);   box-shadow: inset 0 1px 0 #ffffff0d, 0 3px 12px #152d550e;  color: #ffffff; border-color: #3261c9; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover);  box-shadow: 0 4px 15px #203a8529;  border-color: #2855b8; color: #ffffff; }
.button.primary:active:not(:disabled) { background: #244a9f;  color: #ffffff; }
.button.danger { color: #ad3548; background: #fff3f4; border-color: #d99aa9; }
.button.danger:hover:not(:disabled) { background: #ffe7eb; border-color: #d99aa9; }
.button.small { min-height: 32px; padding: 6px 11px; font-size: 12px; }
.button.text { background: transparent; border-color: transparent;  padding: 6px 8px;  color: #285bb4; }
.button.text:hover { background: #eef4ff; color: #1e3454; }
.button.text:hover:not(:disabled) { box-shadow: none; }
.button .icon { width: 16px; height: 16px; }
.topbar .button {    background: #244a85; border-color: #7997c3; color: #ffffff; }
.topbar .button:hover {    background: #315b99; border-color: #a4bde2; color: #ffffff; }
.workspace { width: 100%; min-width: 0; display: flex; flex-direction: column; flex: 1; }
main { width: 100%; max-width: 1440px; padding: 39px 40px 52px; margin: 0 auto; flex: 1; min-width: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
.page-heading p { margin-top: 9px; font-size: 14px; color: #596f8e; max-width: 70ch; }
.page-actions, #page-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.page-actions:empty, #page-actions:empty { display: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; line-height: 1.3; font-weight: 650; letter-spacing: -.95px; color: #1e3454; }
h2 { font-size: 15px; line-height: 1.45; font-weight: 600; color: #1e3454; }
h3 { font-size: 14px; line-height: 1.5; font-weight: 600; }
p { color: var(--muted); line-height: 1.75; text-wrap: pretty; }
.batch-kpi { display: flex; align-items: baseline; gap: 9px; border-left: 1px solid #d6e1f2; padding-left: 18px; color: #596f8e; font-size: 12px; white-space: nowrap; }
.batch-kpi strong { color: #1e3454; font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.batch-kpi small { font-size: 12px; }
.eyebrow, .date { font-size: 12px; color: var(--muted); }
.eyebrow { margin-bottom: 8px; }
.notice { margin-bottom: 22px; padding: 12px 15px; border: 1px solid #d99aa9; border-left: 3px solid #d99aa9; border-radius: 6px; background: #fff8e9; color: #8b5d19; font-size: 13px; line-height: 1.7;  border-color: #d9bd85; border-left-color: #ba872b; }
.notice.error { background: #fff0f3; border-color: #d99aa9; border-left-color: #d99aa9; color: #ad3548; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
.upload-main, .upload-settings { min-width: 0; }
.upload-main { padding-top: 1px; }
.panel { background: var(--surface); border: 1px solid #d6e1f2; border-radius: 9px; overflow: hidden; min-width: 0; box-shadow: inset 0 1px 0 #b4cbfa04, 0 9px 32px #152d5508; }
.panel-head, .table-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { display: flex; align-items: center; gap: 8px; }
.panel-head small, .table-header small { color: #596f8e; font-size: 12px; }
.upload-settings > .panel { background: #ffffff; }
.upload-settings .panel-head { padding-top: 17px; padding-bottom: 17px; }
.upload-settings .panel-head h2 { font-size: 16px; }
.upload-settings .panel-head small { display: block; margin-top: 0; }
.dropzone { position: relative; min-height: 232px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px 24px; gap: 12px; overflow: hidden; border: 1px solid #d6e1f2; border-radius: 9px; text-align: center;   background-size: auto, 18px 18px; transition: border-color 240ms, box-shadow 240ms, background-color 240ms;  background-color: #f5f9ff; background-image: radial-gradient(ellipse at 50% 115%, #c9dcff47, transparent 70%), radial-gradient(#7298cf22 .7px, transparent .7px); border-color: #bed0ec; }
.dropzone:hover {  background-color: #eff5ff;  border-color: #91afde; }
.dropzone.has-files { min-height: 126px; flex-direction: row; justify-content: flex-start; gap: 17px; padding: 22px; text-align: left; }
.dropzone.has-files .drop-copy { flex: 1; }
.dropzone.has-files h3 { font-size: 17px; }
.dropzone.has-files > .button { margin-top: 0; }
.dropzone.drag {     background-color: #e9f2ff; border-color: #477ad4; box-shadow: inset 0 0 0 1px #477ad426, 0 0 20px #7ca7eb10; }
.upload-icon { width: 43px; height: 43px; display: grid; place-items: center;   border: 1px solid #d6e1f2; border-radius: 9px; box-shadow: inset 0 1px 0 #cfe0ff14; transition: transform 300ms var(--ease-out), border-color 200ms;  color: #3263b9; border-color: #afc7ec; background: #e8f1ff; }
.upload-icon .icon { width: 23px; height: 23px; }
.dropzone.drag .upload-icon { transform: translateY(-4px); border-color: #d6e1f2; }
.drop-copy { min-width: 0; }
.dropzone h3 {  font-size: 20px; font-weight: 550; line-height: 1.5; letter-spacing: -.35px;  color: #153b71; }
.dropzone p { margin-top: 5px;  font-size: 12px;  color: #526f98; }
.dropzone > .button { margin-top: 3px; padding-inline: 20px;    font-weight: 600; box-shadow: 0 3px 10px #152d5512;  background: #3261c9; border-color: #3261c9; color: #ffffff; }
.dropzone > .button:hover:not(:disabled) {     background: #2855b8; border-color: #2855b8; color: #ffffff; }
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 0 0 13px; color: var(--muted); font-size: 12px; }
.queue-head > div { display: flex; align-items: center; gap: 10px; }
.queue-head strong { color: #1e3454; font-size: 14px; font-weight: 500; }
#queue-count { color: #596f8e; font-variant-numeric: tabular-nums; }
#queue { max-height: 450px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid #d6e1f2; scrollbar-color: #99b0d0 #eff4fc; scrollbar-width: thin; }
.empty-queue { min-height: 87px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 23px 0; color: #596f8e; font-size: 13px; line-height: 1.7; }
.empty-queue .icon { width: 20px; height: 20px; color: #596f8e; }
.empty-queue strong { color: #596f8e; font-size: 13px; font-weight: 400; }
.empty-queue > div { display: grid; gap: 3px; }
.empty-queue p { color: #596f8e; font-size: 12px; }
.queue-columns { display: grid; grid-template-columns: 30px minmax(0, 1fr) 140px; padding: 10px 0; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 16px 3px; border-bottom: 1px solid #d6e1f2; transition: background-color 180ms; }
.queue-row:last-child { border-bottom: 0; }
.queue-row:hover { background: #f4f8ff; }
.queue-index { min-width: 21px; color: #596f8e; font-size: 12px; font-variant-numeric: tabular-nums; }
.file-preview { display: block; width: 52px; height: 68px; flex-shrink: 0; border-radius: 5px; overflow: hidden; }
.file-icon, .file-thumb { width: 52px; height: 68px; flex-shrink: 0; border: 1px solid #d6e1f2; border-radius: 5px; background: #edf3ff; }
.file-icon { display: grid; place-items: center; color: #596f8e; }
.file-icon .icon { width: 25px; height: 25px; }
.file-thumb { display: block; object-fit: cover; }
.file-info { flex: 1; min-width: 0; }
.file-info input { width: 100%; padding: 5px; margin-left: -5px; min-height: 29px; background: transparent; border-color: transparent; color: #1e3454; font-size: 14px; border-radius: 4px; text-overflow: ellipsis; }
.file-info input:enabled:hover { background: #f6f9ff; border-color: #d6e1f2; }
.file-info input:disabled { opacity: 1; }
.file-info small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.65; color: #596f8e; overflow-wrap: anywhere; }
.file-state { width: 112px; flex-shrink: 0; font-size: 12px; line-height: 1.6; color: #596f8e; }
.file-state.success {   color: #285bb4; }
.file-state.error { color: #ad3548; }
.remove { display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 5px; color: #596f8e; min-width: 30px; min-height: 30px; padding: 6px; font-size: 20px; flex-shrink: 0; transition: background-color 160ms, color 160ms; }
.remove:hover { background: #eaf1fc; color: #1e3454; }
.progress { height: 4px; margin-top: 9px; border-radius: 2px; overflow: hidden; background: #dbe5f5; }
.progress progress { display: block; appearance: none; border: 0; width: 100%; height: 4px; background: #dbe5f5;   accent-color: #3261c9; }
.progress progress::-webkit-progress-bar { background: #dbe5f5; }
.progress progress::-webkit-progress-value {   background: #3261c9; }
.progress progress::-moz-progress-bar {   background: #3261c9; }
.upload-guide { display: flex; align-items: flex-start; gap: 8px; margin-top: 17px; color: #596f8e; font-size: 12px; line-height: 1.75; }
.upload-guide > .icon { width: 15px; height: 15px; margin-top: 3px; color: #596f8e; }
.upload-guide p { font-size: 12px; color: #596f8e; }
.upload-guide h3 { font-size: 12px; margin-bottom: 4px; }
.upload-guide ul { margin: 6px 0 0; padding-left: 18px; }
.form-body { padding: 18px 22px 0; }
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; margin-bottom: 6px; color: #1e3454; font-size: 13px; font-weight: 500; }
.required {  font-weight: 400;  color: #ab3948; }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d6e1f2; border-radius: 5px;   font-size: 14px; line-height: 1.45; transition: border-color 180ms, box-shadow 180ms, background-color 180ms;  border-color: #778baa; color: #243c5e; background: #ffffff; }
input::placeholder, textarea::placeholder { color: #596f8e; opacity: 1; }
input:hover, select:hover, textarea:hover {   border-color: #5478ad; }
input:focus, select:focus, textarea:focus {   outline-offset: 1px;   border-color: #426fc4; outline: 1px solid #426fc4; box-shadow: 0 0 0 3px #7299eb15; }
textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.55; color: #596f8e; }
.field .optional { display: inline; margin: 0 0 0 6px; color: #596f8e; font-size: 12px; font-weight: 400; }
.money-input { display: flex; align-items: center; padding-left: 11px; border: 1px solid #d6e1f2; border-radius: 5px;   border-color: #778baa; background: #ffffff; }
.money-input > span { margin: 0; color: #596f8e; font-size: 14px; }
.money-input input { border: 0; border-radius: 5px; font-variant-numeric: tabular-nums; }
.money-input input:focus { outline: 0; box-shadow: none; }
.money-input:focus-within {   outline-offset: 1px; box-shadow: 0 0 0 3px #7299eb15;  border-color: #426fc4; outline: 1px solid #426fc4; }
.form-error { padding: 10px 12px; margin: 8px 0 18px; color: #ad3548; background: #fff1f4; border-left: 2px solid #d99aa9; border-radius: 3px; font-size: 12px; line-height: 1.7; }
[aria-invalid="true"] { border-color: #d99aa9; }
.upload-summary { display: flex; justify-content: space-between; gap: 18px; padding: 14px 22px; border-top: 1px solid #d6e1f2; background: #f7faff; }
.summary-item { min-width: 0; }
.summary-item > span, .summary-item label { display: block; color: #596f8e; font-size: 12px; }
.summary-item strong { display: block; margin-top: 7px; font-size: 18px; line-height: 1.4; font-weight: 500; color: #1e3454; letter-spacing: -.25px; font-variant-numeric: tabular-nums; }
.publish-actions { display: flex; flex-direction: column; gap: 8px; padding: 14px 22px 16px; border-top: 1px solid #d6e1f2;   background: #ffffff; }
.publish-actions #queue-summary { color: #596f8e; font-size: 12px; line-height: 1.65; }
.publish-actions #publish { width: 100%; min-height: 43px; font-size: 14px; }
.upload-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; border-top: 1px solid var(--line); background: #f7faff; }
.upload-footer > span, .queue-summary { color: #596f8e; font-size: 12px; }
.upload-panel .dropzone { margin: 20px; }
.upload-panel .queue-head, .upload-panel .queue-row { padding-inline: 20px; }
.upload-panel .queue-head { padding-top: 4px; }
.upload-panel .empty-queue { padding-inline: 20px; }
.side-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.side-note h3 { font-size: 13px; margin-bottom: 7px; }
.side-note p { font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 22px; }
.steps > div { display: flex; align-items: flex-start; gap: 10px; }
.steps b, .steps h3, .steps p { font-size: 12px; }
.steps b { color: var(--accent); }
.overview-intro, .hero-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.overview-intro h2, .hero-card h2 { font-size: 19px; margin-bottom: 7px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 30px; background: #ffffff; border: 1px solid #d6e1f2; border-radius: 8px; overflow: hidden; }
.stat { padding: 24px 26px; border-right: 1px solid #d6e1f2; }
.stat:last-child { border-right: 0; }
.stat small { color: #596f8e; font-size: 13px; }
.stat strong { display: block; font-size: 34px; line-height: 1.15; font-weight: 500; letter-spacing: -1px; color: #1e3454; margin: 12px 0 9px; font-variant-numeric: tabular-nums; }
.stat em { color: #596f8e; font-size: 12px; font-style: normal; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.overview-note { padding: 20px 0 20px 24px; border-left: 1px solid #d6e1f2; }
.overview-note h2, .overview-note h3 { margin-bottom: 13px; }
.overview-note p { font-size: 13px; }
.overview-note p + p { margin-top: 16px; }
.overview-note dl { margin: 22px 0; font-size: 13px; }
.overview-note dt { color: #596f8e; margin-top: 17px; }
.overview-note dd { margin: 5px 0 0; color: #1e3454; }
.work-row { display: flex; align-items: center; gap: 15px; padding: 22px; border-bottom: 1px solid var(--line); transition: background-color 180ms; }
.work-row:last-child { border-bottom: 0; }
.work-row:hover {   background: #f4f8ff; }
.work-row > .icon { width: 20px; height: 20px; color: #596f8e; }
.work-copy { flex: 1; min-width: 0; }
.work-copy h3 { font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.work-copy p, .work-copy small { color: #596f8e; font-size: 12px; line-height: 1.7; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.toolbar > input { max-width: 300px; }
.toolbar select { width: auto; min-width: 122px; padding-right: 26px; }
.toolbar .spacer { flex: 1; }
.search-field { display: flex; align-items: center; gap: 9px; width: 290px; min-width: 165px; padding-left: 11px; border: 1px solid #d6e1f2; border-radius: 5px;  color: #596f8e;  border-color: #778baa; background: #ffffff; }
.search-field input { min-width: 0; min-height: 38px; padding-left: 0; border: 0; background: transparent; }
.search-field input:focus { outline: 0; box-shadow: none; }
.search-field:focus-within {   outline-offset: 1px;  border-color: #426fc4; outline: 1px solid #426fc4; }
.search-field .icon { width: 16px; height: 16px; }
.table-wrap { width: 100%; overflow: auto; overscroll-behavior-x: contain; scrollbar-color: #99b0d0 #eff4fc; scrollbar-width: thin; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 780px; text-align: left; font-size: 14px; white-space: nowrap; }
th { padding: 13px 18px; background: #f5f8fe; border-bottom: 1px solid #d6e1f2; color: #596f8e; font-size: 12px; font-weight: 500; }
td { padding: 16px 18px; background: #ffffff; border-bottom: 1px solid #d6e1f2; color: #1e3454; max-width: 330px; overflow: hidden; text-overflow: ellipsis; transition: background-color 180ms; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f1f6ff; }
td:first-child { min-width: 235px; }
td small, .record-id { display: block; margin-top: 5px; color: #596f8e; font-size: 12px; line-height: 1.5; }
.task-title { display: block; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; color: #1e3454; font-weight: 500; }
.record-id, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid #d6e1f2; border-radius: 4px; background: #f0f4fa; color: #596f8e; font-size: 12px; font-weight: 400; line-height: 1.6; }
.badge.open, .badge.verified, .badge.approved, .badge.final { background: #eaf2ff; border-color: #d6e1f2; color: #1e3454; }
.badge.pending, .badge.submitted, .badge.applied { background: #fff7e8;  color: #8b5d19;  border-color: #e1c790; }
.badge.void, .badge.rejected, .badge.reversed { background: #fff0f4; border-color: #d99aa9; color: #ad3548; }
.table-empty { min-height: 240px; padding: 48px 24px; display: grid; align-content: center; justify-items: center; gap: 14px; color: #596f8e; font-size: 14px; text-align: center; }
.table-empty .empty-symbol { font-size: 27px; }
.table-empty .icon { width: 28px; height: 28px; color: #596f8e; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid #d6e1f2; padding: 16px 22px; color: #596f8e; font-size: 12px; }
.pagination > div { display: flex; align-items: center; gap: 12px; }
#page { font-variant-numeric: tabular-nums; }
.is-loading { color: #596f8e; }
.loading-lines { display: grid; gap: 20px; padding: 28px 8px; min-height: 220px; align-content: start; }
.loading-lines i { display: block; height: 13px; width: 92%; max-width: 650px; border-radius: 3px; background: #dae5f7; animation: loading-pulse 1.8s ease-in-out infinite; }
.loading-lines i:nth-of-type(2) { width: 77%; animation-delay: 120ms; }
.loading-lines i:nth-of-type(3) { width: 85%; animation-delay: 240ms; }
.settings { max-width: 1000px; }
.settings + .settings { margin-top: 24px; }
#invitation-settings .setting-row { align-items: flex-start; }
#invitation-settings .setting-row > div { flex: 1; min-width: 0; }
#invitation-settings .setting-row > span { flex: 0 0 220px; text-align: right; }
#invitation-settings .setting-row > button { flex-shrink: 0; }
@media (max-width: 640px) { #invitation-settings .setting-row { flex-direction: column; gap: 12px; } #invitation-settings .setting-row > span { flex: auto; text-align: left; } }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 23px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row small { display: block; margin-top: 6px; color: #596f8e; font-size: 12px; line-height: 1.7; }
.setting-row code { color: #596f8e; font-size: 12px; overflow-wrap: anywhere; }
.workspace > footer { width: 100%; max-width: 1440px; margin: 0 auto; padding: 17px 40px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #d6e1f2; color: #596f8e; font-size: 12px; }
#toast { position: fixed; z-index: 30; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(580px, calc(100vw - 36px)); padding: 13px 18px; border: 1px solid #d6e1f2; border-radius: 7px;   font-size: 13px; line-height: 1.65; box-shadow: 0 12px 35px #152d5521; display: none;  background: #183d78; border-color: #5379b3; color: #ffffff; }
dialog { width: min(780px, calc(100vw - 40px)); max-height: 86vh; max-height: 86dvh; padding: 0;  border: 1px solid #d6e1f2; border-radius: 10px;  box-shadow: 0 10px 30px #152d5521, 0 32px 100px #152d5530;  background: #ffffff; color: #233956; border-color: #c4d3e8; }
dialog[open] { animation: dialog-enter 260ms var(--ease-out) both; }
dialog::backdrop {  backdrop-filter: blur(4px);  background: #122b525c; }
dialog[open]::backdrop { animation: modal-shade 220ms ease-out both; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid #d6e1f2; }
.dialog-head h2 { font-size: 17px; }
.dialog-body { padding: 25px; overflow-wrap: anywhere; }
.dialog-body p { font-size: 14px; margin-bottom: 14px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 17px 24px; border-top: 1px solid #d6e1f2; background: #f6f9ff; }
.detail-grid { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 15px 21px; margin: 0 0 22px; font-size: 14px; line-height: 1.75; }
.detail-grid dt { color: #596f8e; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.checks { display: grid; gap: 14px; margin: 24px 0; }
.checks label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; }
.checks input { width: 17px; height: 17px; min-height: 0; margin: 3px 0 0; flex-shrink: 0;   accent-color: #3261c9; }
.pictures { display: flex; flex-wrap: wrap; gap: 11px; }
.pictures img { max-width: 140px; max-height: 180px; object-fit: contain; border: 1px solid #d6e1f2; border-radius: 5px; }
.dialog-body video { display: block; max-width: 100%; max-height: 370px; background: #101a2a; border: 1px solid #d6e1f2; border-radius: 5px; margin: 16px 0; }
.login-url { display: flex; margin: 20px 0; }
.breadcrumb { color: #596f8e; font-size: 12px; }
.breadcrumb b { color: #1e3454; font-weight: 500; }
.step { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border: 1px solid #d6e1f2; border-radius: 4px; color: #596f8e; background: #edf3ff; font-size: 12px; }
.sidebar, .sidebar-bottom { display: none; }
@keyframes loading-pulse { 50% { opacity: .45; } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modal-shade { from { opacity: 0; } to { opacity: 1; } }
::view-transition { pointer-events: none; }
::view-transition-old(*), ::view-transition-new(*) { pointer-events: none; }
@media (max-width: 1440px) {
  .topbar { padding-inline: 24px; gap: 17px; }
  .nav-item { padding-inline: 9px; }
  
  .operator { padding-left: 10px; }
  .header-right { gap: 10px; }
}
@media (max-width: 1180px) {
  .topbar { gap: 16px; padding-inline: 24px; }
  .brand { font-size: 16px; gap: 8px; }
  .header-right { gap: 9px; }
  .operator { display: none; }
  main { padding: 34px 28px 46px; }
  .upload-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 23px; }
  .form-body { padding-inline: 20px; }
  .upload-settings .panel-head, .upload-summary, .publish-actions { padding-inline: 20px; }
  .queue-index { display: none; }
  .queue-row { gap: 10px; }
  .file-state { width: 99px; }
  .overview-columns { grid-template-columns: minmax(0, 1fr) 280px; }
  .toolbar .search-field { flex: 1 1 240px; }
  th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; border-right: 1px solid #d6e1f2; }
  th:first-child { z-index: 2; }
  td[colspan]:first-child { position: static; border-right: 0; }
}
@media (max-width: 940px) {
  .connection { max-width: 92px; text-overflow: ellipsis; overflow: hidden; }
  .upload-layout { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .upload-settings .form-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .upload-settings .field:last-of-type { grid-column: 1 / -1; }
  .upload-settings .form-error { grid-column: 1 / -1; }
  .upload-settings .panel-head { display: flex; align-items: center; }
  .upload-settings .panel-head small { margin: 0; }
  .upload-summary { justify-content: flex-start; gap: 52px; }
  .publish-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .publish-actions #publish { width: auto; min-width: 180px; }
  .overview-columns { grid-template-columns: minmax(0, 1fr); }
  .overview-note { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 22px 20px; }
  .stat strong { font-size: 31px; }
}
@media (max-width: 767px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 15px 16px 0; gap: 13px 14px; min-height: 0; }
  .brand { grid-column: 1; grid-row: 1; font-size: 16px; }
  .brand-icon { width: 28px; height: 30px; border-radius: 6px; }
  .brand-icon .icon { width: 17px; height: 17px; }
  .header-right { grid-column: 2; grid-row: 1; gap: 8px; }
  #nav { grid-column: 1 / -1; grid-row: 2; margin: 0 -16px; padding-inline: 10px; min-height: 43px; flex: initial; }
  .nav-item { min-height: 43px; padding-inline: 11px; font-size: 13px; }
  .nav-group-start { margin-left: 7px; }
  .connection { max-width: none; font-size: 12px; }
  .connection i { margin-right: 5px; }
  #connect { padding: 6px 9px; }
  main { padding: 28px 18px 38px; }
  .page-heading { gap: 16px; margin-bottom: 25px; align-items: center; }
  h1 { font-size: 27px; letter-spacing: -.65px; }
  .page-heading p { font-size: 13px; margin-top: 7px; }
  .page-actions .button, #page-actions .button { min-height: 34px; padding: 7px 11px; font-size: 12px; }
  .batch-kpi { padding-left: 13px; gap: 6px; }
  .batch-kpi strong { font-size: 24px; }
  .dropzone { min-height: 220px; padding: 26px 20px; }
  .dropzone h3 { font-size: 19px; }
  .queue-head { margin-top: 20px; }
  .queue-row { padding-block: 14px; gap: 10px; }
  .file-preview, .file-icon, .file-thumb { width: 45px; height: 60px; }
  .file-state { width: 92px; }
  .file-info input { font-size: 13px; }
  .empty-queue { gap: 9px; }
  .empty-queue p { margin: 0; }
  .dropzone.has-files { gap: 12px; padding: 20px 18px; min-height: 119px; }
  .dropzone.has-files .upload-icon { display: none; }
  .dropzone.has-files h3 { font-size: 16px; }
  .dropzone.has-files > .button { padding-inline: 12px; }
  .upload-settings .panel-head { padding: 18px; }
  .form-body { padding: 19px 18px 0; }
  .upload-summary, .publish-actions { padding-inline: 18px; }
  .panel-head, .table-header { padding: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 21px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid #d6e1f2; }
  .work-row { padding: 19px 18px; gap: 11px; }
  .work-row > .icon { display: none; }
  .overview-intro, .hero-card { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .toolbar { padding: 16px; gap: 9px; }
  .toolbar > input, .toolbar .search-field { flex-basis: 100%; max-width: none; width: 100%; }
  .toolbar select { flex: 1; min-width: 100px; }
  .toolbar .spacer { display: none; }
  .toolbar #refresh-list { margin-left: auto; }
  table { min-width: 760px; }
  td:first-child, th:first-child { min-width: 200px; max-width: 235px; }
  .task-title { max-width: 26ch; }
  .pagination { padding: 15px 16px; align-items: flex-start; flex-wrap: wrap; }
  .pagination > div { margin-left: auto; }
  .setting-row { padding: 20px 18px; flex-wrap: wrap; gap: 14px; }
  .setting-row code { max-width: 100%; }
  .workspace > footer { padding: 16px 18px; flex-wrap: wrap; gap: 7px 18px; }
  dialog { width: calc(100vw - 24px); max-height: 90dvh; }
  .dialog-head, .dialog-body { padding: 20px; }
  .dialog-foot { padding: 16px 20px; flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; font-size: 13px; }
  #toast { bottom: 16px; }
}
@media (max-width: 480px) {
  .connection { display: none; }
  .page-heading { align-items: flex-start; }
  .page-heading p { max-width: 28ch; }
  .batch-kpi { flex-direction: column; gap: 1px; align-items: flex-end; border-left: 0; padding-left: 0; }
  .batch-kpi strong { font-size: 24px; }
  .page-actions:has(.button), #page-actions:has(.button) { align-self: center; }
  .file-state { width: 75px; }
  .file-info small { font-size: 12px; }
  .file-preview, .file-icon, .file-thumb { width: 39px; height: 52px; }
  .queue-row { gap: 8px; }
  .queue-row .remove { min-width: 26px; min-height: 30px; padding: 4px; }
  .upload-settings .form-body { display: block; }
  .upload-settings .panel-head { display: block; }
  .upload-settings .panel-head small { margin-top: 4px; }
  .upload-summary { gap: 24px; justify-content: space-between; }
  .publish-actions { flex-direction: column; align-items: stretch; }
  .publish-actions #publish { width: 100%; }
  .summary-item strong { font-size: 17px; }
  .work-row { align-items: flex-start; flex-wrap: wrap; }
  .work-row .button { margin-left: auto; }
  td:first-child, th:first-child { min-width: 178px; max-width: 195px; }
  .task-title { max-width: 20ch; }
  .dialog-body { padding-inline: 18px; }
  .steps { gap: 10px; }
  .steps p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .button:hover:not(:disabled), .button:active:not(:disabled), .dropzone.drag .upload-icon { transform: none; }
}

/* Manual credit reuses the existing admin palette, typography and dialog. */
dialog.credit-dialog[open] { display: flex; flex-direction: column; }
.credit-dialog #dialog-content { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.credit-dialog .dialog-head, .credit-dialog .dialog-foot { flex-shrink: 0; }
.credit-dialog .dialog-body { overflow-y: auto; min-height: 0; }
.credit-dialog .field { margin-bottom: 12px; }
.credit-dialog textarea { min-height: 72px; }
.credit-picker { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.credit-search { display: flex; gap: 10px; }
.credit-search input { min-width: 0; }
.credit-search .button { flex-shrink: 0; }
.credit-picker-pages { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.credit-picker-pages small { color: var(--muted); margin-right: auto; }
.credit-balance { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--light); }
.credit-total, .credit-result strong { font-size: 24px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.credit-reason { white-space: pre-wrap; }
