:root {
  color-scheme: dark;
  --bg: #0d121b;
  --bg-soft: #111926;
  --surface: rgba(18, 27, 41, 0.82);
  --surface-strong: rgba(15, 22, 34, 0.92);
  --surface-raised: rgba(26, 37, 56, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef3fb;
  --muted: #97a5bd;
  --accent: #ff8c42;
  --accent-strong: #ffc272;
  --accent-cool: #5fd1d8;
  --success: #6be1a5;
  --warning: #ffd27a;
  --danger: #ff8c8c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --body-backdrop:
    radial-gradient(circle at top left, rgba(255, 140, 66, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(95, 209, 216, 0.16), transparent 22%),
    linear-gradient(180deg, #081018 0%, var(--bg) 45%, #0f1825 100%);
  --body-grid:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px);
  --card-backdrop: linear-gradient(180deg, rgba(22, 32, 47, 0.96), rgba(15, 22, 34, 0.92));
  --panel-frost: rgba(255, 255, 255, 0.05);
  --panel-frost-soft: rgba(255, 255, 255, 0.04);
  --input-bg: rgba(8, 14, 24, 0.8);
  --eyebrow-text: rgba(255, 232, 209, 0.9);
  --eyebrow-bg: rgba(255, 255, 255, 0.06);
  --eyebrow-border: rgba(255, 255, 255, 0.08);
  --eyebrow-soft-text: rgba(255, 194, 114, 0.92);
  --eyebrow-soft-bg: rgba(255, 140, 66, 0.08);
  --eyebrow-soft-border: rgba(255, 140, 66, 0.15);
  --secondary-bg: rgba(255, 255, 255, 0.06);
  --danger-bg: rgba(255, 140, 140, 0.16);
  --danger-border: rgba(255, 140, 140, 0.28);
  --status-bg: rgba(95, 209, 216, 0.12);
  --status-border: rgba(95, 209, 216, 0.24);
  --status-text: #b7f2f5;
  --notice-bg:
    linear-gradient(135deg, rgba(255, 140, 66, 0.16), rgba(95, 209, 216, 0.1)),
    rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f7;
  --bg-soft: #f5f7fb;
  --surface: rgba(255, 251, 244, 0.9);
  --surface-strong: rgba(246, 249, 252, 0.96);
  --surface-raised: rgba(255, 255, 255, 0.96);
  --line: rgba(41, 58, 79, 0.12);
  --line-strong: rgba(41, 58, 79, 0.2);
  --text: #182334;
  --muted: #6c7b8f;
  --accent: #e18a3d;
  --accent-strong: #f4be72;
  --accent-cool: #2ea8b5;
  --success: #1ea36b;
  --warning: #cc8f26;
  --danger: #cb6767;
  --shadow: 0 20px 48px rgba(36, 52, 76, 0.12);
  --body-backdrop:
    radial-gradient(circle at top left, rgba(225, 138, 61, 0.17), transparent 26%),
    radial-gradient(circle at top right, rgba(46, 168, 181, 0.14), transparent 24%),
    linear-gradient(180deg, #fffaf2 0%, #f6f1e8 42%, #edf3f8 100%);
  --body-grid:
    repeating-linear-gradient(90deg, rgba(38, 54, 77, 0.045) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(38, 54, 77, 0.035) 0 1px, transparent 1px 96px);
  --card-backdrop: linear-gradient(180deg, rgba(255, 251, 245, 0.97), rgba(246, 249, 253, 0.95));
  --panel-frost: rgba(255, 255, 255, 0.78);
  --panel-frost-soft: rgba(255, 255, 255, 0.64);
  --input-bg: rgba(255, 255, 255, 0.88);
  --eyebrow-text: #8b5f27;
  --eyebrow-bg: rgba(255, 255, 255, 0.74);
  --eyebrow-border: rgba(41, 58, 79, 0.1);
  --eyebrow-soft-text: #a8641f;
  --eyebrow-soft-bg: rgba(225, 138, 61, 0.12);
  --eyebrow-soft-border: rgba(225, 138, 61, 0.18);
  --secondary-bg: rgba(255, 255, 255, 0.78);
  --danger-bg: rgba(203, 103, 103, 0.12);
  --danger-border: rgba(203, 103, 103, 0.2);
  --status-bg: rgba(46, 168, 181, 0.12);
  --status-border: rgba(46, 168, 181, 0.2);
  --status-text: #1e7480;
  --notice-bg:
    linear-gradient(135deg, rgba(225, 138, 61, 0.12), rgba(46, 168, 181, 0.1)),
    rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: var(--body-backdrop);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--body-grid);
  opacity: 0.28;
  pointer-events: none;
}

.portal-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eyebrow-text);
  background: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-border);
}

.eyebrow-soft {
  color: var(--eyebrow-soft-text);
  background: var(--eyebrow-soft-bg);
  border-color: var(--eyebrow-soft-border);
}

.card {
  background: var(--card-backdrop);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool), transparent);
  opacity: 0.9;
}

.brand,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.brand h1,
.section-head h2,
.detail-card h3,
.modal-head h2,
.login-card h2 {
  margin: 0;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand p,
.section-head p,
.lead,
.hero-copy p,
.metric-card p,
.showcase-card p,
.card p,
.muted {
  margin: 0;
  color: var(--muted);
}

.login-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.login-showcase {
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(13, 20, 32, 0.95), rgba(22, 33, 50, 0.9)),
    radial-gradient(circle at 20% 16%, rgba(255, 140, 66, 0.28), transparent 26%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.login-showcase h1,
.hero-copy h1 {
  margin: 4px 0 12px;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.login-showcase h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.03;
}

.lead {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.showcase-card,
.metric-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-frost);
  backdrop-filter: blur(12px);
}

.showcase-label,
.metric-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.showcase-card strong,
.metric-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 20px;
  color: var(--text);
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: min(520px, 100%);
  min-height: auto;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(420px, 0.86fr);
  gap: 10px;
  padding: 12px 16px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-height: 0;
}

.hero-copy-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.theme-toggle {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--panel-frost);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn {
  min-width: 78px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.theme-toggle-btn.is-active {
  color: #241306;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.18);
}

body[data-theme="light"] .theme-toggle-btn.is-active {
  color: #fffdf8;
  background: linear-gradient(135deg, #ce7a2a, #1f9aa6);
  box-shadow: 0 10px 20px rgba(70, 102, 134, 0.18);
}

.hero-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  flex: 1 1 360px;
  min-width: 0;
}

.hero-status-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.hero-actions {
  justify-content: flex-start;
  margin-left: auto;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.metric-card strong {
  font-size: clamp(22px, 2.2vw, 30px);
}

.hero-metrics .metric-card {
  padding: 12px 14px;
  border-radius: 16px;
}

.hero-metrics .metric-card p {
  font-size: 12px;
  line-height: 1.45;
}

.metric-card-action {
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.metric-card-action:hover,
.metric-card-action:focus-visible {
  border-color: rgba(95, 209, 216, 0.62);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.metric-card-accent {
  background:
    linear-gradient(160deg, rgba(255, 140, 66, 0.18), rgba(95, 209, 216, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.portal-notices {
  display: grid;
  gap: 14px;
}

.portal-notice-card {
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 194, 114, 0.2);
  background: var(--notice-bg);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.portal-notice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
}

.portal-notice-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.portal-notice-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 230, 204, 0.9);
}

.portal-notice-expire {
  font-size: 12px;
  color: rgba(255, 242, 227, 0.78);
}

.portal-notice-content {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.72;
  color: #f8fbff;
}

.upload-card {
  min-height: 100%;
}

.courier-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  margin: 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.courier-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 112px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(235, 242, 251, 0.72);
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.courier-tab:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(95, 209, 216, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(250, 253, 255, 0.96);
}

.courier-tab.is-active {
  border-color: rgba(255, 191, 130, 0.42);
  background: rgba(255, 255, 255, 0.18);
  color: #fff8ec;
}

.courier-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body[data-theme="light"] .courier-tabs {
  background: rgba(255, 255, 255, 0.62);
}

body[data-theme="light"] .courier-tab {
  color: rgba(33, 48, 64, 0.72);
}

body[data-theme="light"] .courier-tab.is-active {
  background: #213040;
  color: #fffdf7;
}

.ops-tabs-caption {
  margin: 2px 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.ops-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 132px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-frost-soft);
  color: rgba(235, 242, 251, 0.92);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.ops-tab-title {
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
}

.ops-tab-meta {
  display: none;
}

.ops-tab:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(95, 209, 216, 0.34);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
}

.ops-tab.is-active {
  border-color: rgba(255, 191, 130, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 140, 66, 0.92), rgba(95, 209, 216, 0.88)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 24px rgba(255, 140, 66, 0.14);
  color: #081118;
}

.ops-tab.is-active .ops-tab-meta {
  color: rgba(8, 17, 24, 0.78);
}

body[data-theme="light"] .ops-tab {
  color: var(--text);
}

body[data-theme="light"] .ops-tab.is-active {
  color: #fffdf7;
  border-color: rgba(31, 154, 166, 0.18);
  background: linear-gradient(135deg, #cf7a29, #249fac);
  box-shadow: 0 12px 22px rgba(64, 96, 130, 0.18);
}

.ops-tab:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.ops-panel + .ops-panel {
  margin-top: 6px;
}

.portal-company-note {
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 18px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(95, 209, 216, 0.32);
  background: rgba(95, 209, 216, 0.1);
  color: var(--accent-cool);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.submit-option-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 22px;
  margin-bottom: 20px;
}

.submit-option-row .submit-option-list {
  flex: 0 1 414px;
  margin-bottom: 0;
}

.portal-company-note-inline {
  flex: 0 1 360px;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 64px;
}

.jitu-import-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(95, 209, 216, 0.08)),
    var(--panel-frost-soft);
}

.compact-section-head {
  align-items: center;
}

.compact-section-head h2 {
  font-size: 30px;
  line-height: 1.15;
}

.compact-section-head p:last-child {
  max-width: 720px;
  line-height: 1.65;
}

.jitu-default-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jitu-file-field {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.jitu-file-field input[type="file"] {
  min-height: 58px;
  padding: 16px;
  cursor: pointer;
  background: var(--input-bg);
}

body[data-theme="light"] .jitu-import-panel {
  background:
    linear-gradient(135deg, rgba(225, 138, 61, 0.12), rgba(46, 168, 181, 0.1)),
    rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .jitu-file-field {
  background: rgba(255, 255, 255, 0.62);
}

.config-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 1.08fr);
  gap: 16px;
  margin: 18px 0 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 140, 66, 0.09), rgba(95, 209, 216, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.compact-config-strip {
  margin: 14px 0 18px;
  padding: 14px 16px;
  gap: 14px;
  align-items: center;
}

.config-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compact-config-strip .config-strip-copy {
  gap: 4px;
}

.config-strip-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.config-strip-copy strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.compact-config-strip .config-strip-copy strong {
  font-size: 22px;
  line-height: 1.1;
}

.config-strip-copy p {
  line-height: 1.7;
}

.compact-config-strip .config-strip-copy p {
  font-size: 13px;
  line-height: 1.45;
}

.config-strip-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.compact-config-strip .config-strip-controls {
  gap: 10px;
}

.client-binding-panel {
  margin-top: 18px;
}

.client-binding-controls {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.client-binding-panel.is-proxy-binding .client-binding-controls {
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1fr) auto;
}

.client-binding-actions {
  align-self: end;
}

.client-binding-notice {
  grid-column: 1 / -1;
  margin: 0;
}

.compact-config-strip .field {
  gap: 6px;
}

.dispatch-strip {
  margin-top: 18px;
}

.dispatch-strip-controls {
  grid-template-columns: minmax(0, 1fr);
}

.dispatch-cache-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.task-card {
  padding-bottom: 26px;
}

.task-queue-strip {
  margin: 4px 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.task-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.task-queue-head button {
  white-space: nowrap;
}

.task-queue-copy {
  min-width: 0;
}

.task-queue-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.35;
}

.task-queue-copy p {
  margin: 4px 0 0;
}

.task-queue-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.task-queue-row {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.task-queue-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.task-queue-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(95, 209, 216, 0.3);
  color: var(--accent-cool);
  font-size: 12px;
  font-weight: 700;
}

.task-queue-state.is-waiting {
  border-color: rgba(255, 194, 114, 0.34);
  color: var(--warning);
}

.task-queue-state.is-recovering {
  border-color: rgba(255, 122, 130, 0.34);
  color: var(--danger);
}

.task-queue-main {
  min-width: 0;
}

.task-queue-main strong,
.task-queue-main span {
  display: block;
}

.task-queue-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.task-queue-empty {
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.task-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(240px, 1.1fr) minmax(160px, 220px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.task-page-actions {
  align-items: center;
}

.task-page-actions .muted {
  min-width: 122px;
  text-align: center;
  white-space: nowrap;
}

.task-quick-filter-field {
  min-width: 0;
}

.task-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.task-filter-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-frost-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.task-filter-chip:hover:not(:disabled) {
  border-color: rgba(255, 194, 114, 0.28);
}

.task-filter-chip.active {
  color: #241306;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(255, 140, 66, 0.22);
}

body[data-theme="light"] .task-filter-chip.active {
  color: #fffdf8;
  background: linear-gradient(135deg, #cb7626, #efab53);
  box-shadow: 0 12px 22px rgba(203, 118, 38, 0.18);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 194, 114, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.12);
  transform: translateY(-1px);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

button.primary {
  color: #241306;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(255, 140, 66, 0.24);
}

body[data-theme="light"] button.primary {
  color: #fffdf8;
  background: linear-gradient(135deg, #cb7626, #efab53);
  box-shadow: 0 14px 26px rgba(203, 118, 38, 0.22);
}

button.secondary {
  color: var(--text);
  background: var(--secondary-bg);
  border: 1px solid var(--line);
}

button.warning {
  color: #2f2413;
  background: rgba(255, 210, 122, 0.9);
}

body[data-theme="light"] button.warning {
  color: #fffdf8;
  background: linear-gradient(135deg, #be851c, #d9a03b);
}

button.danger {
  color: #ffe7e7;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
}

body[data-theme="light"] button.danger {
  color: #fff7f7;
  background: linear-gradient(135deg, #b85757, #d67a7a);
  border-color: rgba(184, 87, 87, 0.16);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-primary-actions {
  margin: 12px 0 4px;
}

.card-actions {
  margin-top: 16px;
}

.toggle-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.submit-option-list {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 20px;
}

.toggle-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-frost-soft);
  cursor: pointer;
}

.toggle-info-card {
  cursor: default;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.toggle-info-card span {
  width: 100%;
}

.toggle-info-card small {
  display: block;
}

.toggle-info-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.toggle-inline-input {
  min-width: 0;
  padding: 10px 12px;
}

.toggle-inline-actions {
  align-self: stretch;
}

.toggle-inline-actions button {
  height: 100%;
  min-height: 44px;
  padding: 10px 14px;
  white-space: nowrap;
}

.toggle-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.toggle-item span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-item strong {
  font-size: 14px;
  color: var(--text);
}

.toggle-item small {
  color: var(--muted);
  line-height: 1.5;
}

.ybx-collect-check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2px 0 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--status-bg);
  border: 1px solid var(--status-border);
  color: var(--status-text);
  font-size: 13px;
  font-weight: 700;
}

body[data-theme="light"] .status-pill {
  color: #155d67;
  background: rgba(46, 168, 181, 0.18);
  border-color: rgba(46, 168, 181, 0.3);
}

.notice {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--panel-frost-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.notice:empty {
  display: none;
}

.notice-strong {
  min-height: 64px;
  display: flex;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
}

.gridbin-result-table table {
  min-width: 880px;
}

thead {
  background: rgba(255, 255, 255, 0.04);
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(95, 209, 216, 0.14);
  color: #b6f0f5;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-success {
  background: rgba(63, 191, 124, 0.2);
  color: #67f3a3;
}

.badge-info {
  background: rgba(95, 209, 216, 0.2);
  color: #8ce7ec;
}

.badge-warning {
  background: rgba(247, 185, 85, 0.2);
  color: #ffd48a;
}

.badge-danger {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.badge-muted {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.badge-accent {
  background: rgba(255, 140, 66, 0.2);
  color: #ffd3ab;
}

.badge-indigo {
  background: rgba(139, 92, 246, 0.2);
  color: #ddd6fe;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.badge-pink {
  background: rgba(244, 114, 182, 0.18);
  color: #f9a8d4;
}

body[data-theme="light"] .badge {
  color: #245e68;
  background: rgba(46, 168, 181, 0.14);
  border-color: rgba(46, 168, 181, 0.16);
}

body[data-theme="light"] .badge-success {
  color: #196641;
  background: rgba(30, 163, 107, 0.14);
  border-color: rgba(30, 163, 107, 0.18);
}

body[data-theme="light"] .badge-info {
  color: #1f7580;
  background: rgba(46, 168, 181, 0.14);
  border-color: rgba(46, 168, 181, 0.18);
}

body[data-theme="light"] .badge-warning {
  color: #8b5a0f;
  background: rgba(204, 143, 38, 0.14);
  border-color: rgba(204, 143, 38, 0.18);
}

body[data-theme="light"] .badge-danger {
  color: #9d4343;
  background: rgba(203, 103, 103, 0.14);
  border-color: rgba(203, 103, 103, 0.18);
}

body[data-theme="light"] .badge-muted {
  color: #667487;
  background: rgba(108, 123, 143, 0.12);
  border-color: rgba(108, 123, 143, 0.16);
}

body[data-theme="light"] .badge-accent {
  color: #9c5d19;
  background: rgba(225, 138, 61, 0.14);
  border-color: rgba(225, 138, 61, 0.18);
}

body[data-theme="light"] .badge-indigo {
  color: #6a52b5;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.16);
}

body[data-theme="light"] .badge-blue {
  color: #325fbe;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.16);
}

body[data-theme="light"] .badge-pink {
  color: #a34c79;
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.16);
}

.task-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weight-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 116px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.weight-chip strong {
  font-size: 14px;
  color: var(--text);
}

.weight-chip small {
  color: var(--muted);
  line-height: 1.4;
}

.task-id-cell {
  min-width: 300px;
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.55;
  color: rgba(232, 239, 249, 0.92);
  font-weight: 700;
}

body[data-theme="light"] .task-id-cell {
  color: #365784;
}

.summary-cell {
  min-width: 280px;
  max-width: min(32vw, 420px);
}

.task-summary-box {
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
  padding-right: 8px;
}

.task-summary-extra {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.task-summary-extra-success {
  color: var(--success);
}

.task-summary-extra-failed {
  color: var(--danger);
}

.task-summary-box .task-summary-extra-failed {
  color: var(--danger);
}

.task-summary-extra-partial {
  color: var(--accent-cool);
}

.task-summary-extra-pending {
  color: var(--warning);
}

.summary-alert-line {
  color: var(--danger);
  font-weight: 700;
}

.summary-tone-line {
  font-weight: 800;
}

.summary-tone-success {
  color: var(--success);
}

.summary-tone-failed {
  color: var(--danger);
}

.summary-tone-partial {
  color: var(--warning);
}

.summary-plain-line {
  color: inherit;
}

.actions-cell {
  min-width: 156px;
  width: 156px;
}

.actions-stack {
  flex-direction: column;
  align-items: stretch;
}

.task-actions {
  min-width: 140px;
}

.task-actions button {
  width: 100%;
  white-space: nowrap;
  justify-content: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-foreground {
  z-index: 60;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 27, 41, 0.98), rgba(12, 18, 28, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-card-compact {
  width: min(760px, calc(100vw - 32px));
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.detail-card {
  box-shadow: none;
}

.detail-card::before {
  opacity: 0.55;
}

.result-panel {
  padding: 0;
  overflow: hidden;
}

.result-panel[open] {
  border-color: rgba(95, 209, 216, 0.22);
}

.result-panel[open]::before {
  opacity: 0.9;
}

.result-panel-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(9, 14, 22, 0.2);
}

.result-panel-head::-webkit-details-marker {
  display: none;
}

.result-panel-head h3 {
  margin-bottom: 8px;
}

.result-panel-head p {
  max-width: 760px;
}

.result-panel-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-panel[open] .result-panel-toggle {
  color: var(--accent-cool);
}

.result-panel[open] .result-panel-toggle::before {
  content: "收起";
}

.result-panel[open] .result-panel-toggle {
  font-size: 0;
}

.result-panel[open] .result-panel-toggle::before {
  font-size: 12px;
}

.result-panel-body {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kv-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 12px;
}

.kv-list .key {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kv-list .value {
  color: var(--text);
}

.ybx-login-grid {
  align-items: stretch;
}

.ybx-aj-stage {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
}

.ybx-aj-stage img {
  display: block;
  max-width: 100%;
  user-select: none;
  pointer-events: none;
}

.ybx-aj-stage img:not([src]) {
  display: none;
}

.ybx-aj-stage #ybx-aj-base-image {
  width: 100%;
  height: auto;
}

.ybx-aj-stage #ybx-aj-piece-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.24));
}

.ybx-aj-slider-track {
  position: relative;
  height: 38px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-bg);
}

.ybx-aj-slider-handle {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  touch-action: none;
}

.ybx-captcha-frame {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
}

.ybx-captcha-frame img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.ybx-captcha-frame img:not([src]) {
  display: none;
}

.meta-inline {
  font-weight: 700;
}

.meta-inline-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.meta-inline-success {
  color: var(--success);
}

.meta-inline-partial {
  color: var(--accent-cool);
}

.meta-inline-pending {
  color: var(--warning);
}

.meta-inline-failed {
  color: var(--danger);
}

.meta-inline-muted {
  color: var(--muted);
}

.meta-inline-note {
  color: var(--muted);
  font-size: 12px;
}

.meta-inline-action {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-inline-action:hover {
  opacity: 0.9;
}

.detail-pre {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #dfe9f8;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  max-height: 260px;
  overflow: auto;
}

.detail-pre-error {
  background:
    linear-gradient(135deg, rgba(184, 87, 87, 0.18), rgba(255, 140, 66, 0.08)),
    rgba(18, 8, 8, 0.9);
  border-color: rgba(232, 122, 122, 0.34);
  color: #ffe4e4;
}

body[data-theme="light"] .detail-pre-error {
  background:
    linear-gradient(135deg, rgba(203, 103, 103, 0.16), rgba(239, 171, 83, 0.08)),
    #fff7f4;
  border-color: rgba(203, 103, 103, 0.28);
  color: #7d2929;
}

#task-detail-result-panel .table-wrap {
  overflow-x: visible;
}

#task-detail-result-panel table {
  min-width: 0;
  table-layout: fixed;
}

#task-detail-result-panel th:nth-child(1),
#task-detail-result-panel td:nth-child(1) {
  width: 210px;
}

#task-detail-result-panel th:nth-child(2),
#task-detail-result-panel td:nth-child(2) {
  width: 140px;
}

#task-detail-result-panel th,
#task-detail-result-panel td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.detail-subtitle {
  margin: 18px 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.history-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.history-item p {
  margin: 0;
  line-height: 1.6;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1360px) {
  .portal-shell {
    width: min(100vw - 20px, 100%);
    padding: 18px 0 40px;
  }

  .app-shell {
    gap: 18px;
  }

  .card {
    padding: 20px;
  }

  .ops-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.94fr);
    gap: 14px;
    padding: 16px 18px;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 3vw, 36px);
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-inline,
  .hero-status-row {
    margin-top: 0;
  }

  .hero-metrics {
    gap: 10px;
  }

  .metric-card,
  .showcase-card {
    padding: 14px;
  }

  .metric-card strong {
    font-size: clamp(22px, 2.4vw, 30px);
  }

  .ops-tabs {
    gap: 10px;
  }

  .courier-tabs {
    width: 100%;
  }

  .ops-tab {
    min-height: 54px;
    min-width: 118px;
    padding: 12px 18px;
  }

  .ops-tab-title {
    font-size: 17px;
  }

  .ops-tab-meta,
  .muted,
  .notice,
  .task-summary-box,
  .portal-notice-content,
  .detail-pre,
  .history-item p {
    font-size: 12px;
    line-height: 1.55;
  }

  .config-strip {
    gap: 14px;
    padding: 15px;
    margin: 14px 0 16px;
  }

  .compact-config-strip {
    padding: 12px 14px;
    margin: 12px 0 14px;
  }

  .config-strip-copy strong {
    font-size: 24px;
  }

  .compact-config-strip .config-strip-copy strong {
    font-size: 19px;
  }

  .task-toolbar {
    grid-template-columns: minmax(140px, 190px) minmax(220px, 1fr) minmax(140px, 180px) auto;
    gap: 10px;
  }

  .task-queue-row {
    grid-template-columns: minmax(82px, auto) minmax(0, 1fr) auto;
  }

  input,
  textarea,
  select {
    padding: 11px 12px;
    border-radius: 12px;
  }

  textarea {
    min-height: 152px;
  }

  button {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
  }

  th,
  td {
    padding: 11px 10px;
    font-size: 12px;
  }

  table {
    min-width: 1180px;
  }

  .task-id-cell {
    min-width: 240px;
    max-width: 280px;
  }

  .summary-cell {
    min-width: 240px;
    max-width: min(30vw, 340px);
  }

  .task-summary-box {
    max-height: 170px;
    padding-right: 4px;
  }

  .actions-cell {
    min-width: 136px;
    width: 136px;
  }

  .task-actions {
    min-width: 120px;
  }

  .weight-chip {
    min-width: 102px;
    padding: 7px 8px;
  }

  .weight-chip strong {
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  .login-shell,
  .ops-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    gap: 10px;
  }

  .hero-status-row {
    justify-content: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-inline {
    justify-content: flex-start;
  }

  .showcase-grid,
  .hero-metrics,
  .toggle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .config-strip,
  .config-strip-controls,
  .jitu-default-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .portal-shell {
    width: min(100vw - 18px, 100%);
    padding: 18px 0 42px;
  }

  .login-showcase,
  .ops-hero,
  .card,
  .modal-card {
    padding: 20px;
  }

  .showcase-grid,
  .hero-metrics,
  .toggle-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .result-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-toolbar {
    grid-template-columns: 1fr;
  }

  .task-queue-head {
    align-items: flex-start;
  }

  .task-queue-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .task-queue-state {
    grid-column: 1;
    grid-row: 1;
  }

  .task-queue-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .task-queue-detail-btn {
    grid-column: 2;
    grid-row: 1;
  }

  table {
    min-width: 980px;
  }

  .ops-tabs {
    justify-content: flex-start;
  }

  .courier-tab {
    min-width: 0;
    flex: 1 1 120px;
  }

  .hero-copy {
    gap: 8px 10px;
  }

  .theme-toggle-btn {
    min-width: 70px;
    padding: 8px 12px;
  }

  .ops-tab {
    min-height: 50px;
    min-width: 0;
    padding: 12px 16px;
  }

  .ops-tab-title {
    font-size: 16px;
  }

  .summary-cell {
    min-width: 280px;
    max-width: 100%;
  }

  .compact-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .compact-section-head h2 {
    font-size: 25px;
  }

  .jitu-import-panel {
    padding: 14px;
  }

  .kv-list {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 1080px;
  }

  .footer-line {
    flex-direction: column;
    align-items: flex-start;
  }
}
