:root {
  --bg: #0e1012;
  --panel: #171a1d;
  --panel-soft: #1f2328;
  --text: #f2f2f2;
  --muted: #a4aab3;
  --accent: #d0b46a;
  --accent-2: #7fb1b8;
  --border: #2a2f35;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --enter-duration: 0.6s;
  --panel-shadow: 0 18px 40px rgba(7, 10, 12, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #1d2226, #0b0d0f);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(208, 180, 106, 0.3);
  color: var(--text);
}

.app {
  width: 1600px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.workspace .panel {
  margin-bottom: 0;
}

.app.split-layout .workspace {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  animation: fadeRise var(--enter-duration) ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(130deg, #d8c27a, #6fa9b4);
  display: grid;
  place-items: center;
  color: #1a1a1a;
  font-weight: 700;
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.3px;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.status {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--panel-shadow);
  animation: fadeRise var(--enter-duration) ease both;
}

/* ── Dashboard 仪表盘样式 ── */
.dashboard-panel {
  margin-bottom: 16px;
}

.global-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.global-bar-top {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.global-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(208, 180, 106, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(208, 180, 106, 0.15), rgba(208, 180, 106, 0.05));
  flex-shrink: 0;
  border: 1px solid rgba(208, 180, 106, 0.15);
}

.stat-body {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* 完成率进度条 */
.stat-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6ac89f);
  border-radius: 0 3px 3px 0;
  transition: width 0.6s ease;
}

/* 客户进度区域 */
.client-progress {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 6px;
}

.client-progress:empty {
  display: none;
}

.client-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-progress-name {
  font-size: 13px;
  font-weight: 700;
  min-width: 110px;
  color: var(--text);
  letter-spacing: 0.2px;
}

.client-progress-bar {
  flex: 1;
  height: 8px;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.client-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
  background: linear-gradient(90deg, var(--accent), #6ac89f);
}

.client-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  min-width: 100px;
  text-align: right;
  white-space: nowrap;
}

/* NOTE: 已移除响应式断点，统一由 JS 进行等比缩放以保持完美比例 */


.summary-floating {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(208, 180, 106, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 28px;
  max-width: 100%;
  transition: border-color 0.3s ease;
}

.summary-floating:hover {
  border-color: rgba(208, 180, 106, 0.35);
}

.summary-floating .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.summary-floating .summary-actions {
  margin-right: 0;
}

.task-list {
  display: grid;
  gap: 12px;
}


.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 160px;
}

.summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 160px;
  margin-right: 24px;
}

#summaryPanel .panel-header {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
}

.summary-actions button {
  min-width: 160px;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
}

.batch-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  max-width: 100%;
}

.batch-controls select {
  max-width: 250px;
  text-overflow: ellipsis;
}

.batch-controls button {
  min-width: 0;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.batch-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.batch-field .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.batch-field select {
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}

.batch-progress {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding-bottom: 6px;
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.panel-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  border: none;
  box-shadow: none;
}

.filter-label {
  color: var(--muted);
  font-size: 12px;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-controls input,
.filter-controls select {
  min-width: 160px;
}

.filter-count {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  min-width: auto;
  white-space: nowrap;
  padding: 4px 10px;
  background: rgba(208, 180, 106, 0.08);
  border: 1px solid rgba(208, 180, 106, 0.2);
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.filter-btn {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  transition: border 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn.active {
  border-color: var(--accent);
  color: #1a1a1a;
  background: var(--accent);
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.bulk-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  flex: 1;
}

.download-actions {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.bulk-field {
  display: grid;
  gap: 6px;
}

.container-note {
  margin-top: 4px;
  color: #f0c27b;
  font-size: 11px;
}

.container-actions {
  margin-top: auto;
  padding-top: 2px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.container-status-btn {
  padding: 5px 14px;
  font-size: 12px;
  min-width: 0;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.container-actions.done-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  justify-content: flex-start;
}

.container-actions.done-actions .container-status-btn,
.container-actions.done-actions .container-copy-btn {
  padding: 6px 10px;
  font-size: 12px;
  min-width: 0;
}

.dest-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.dest-atl {
  color: #9fd3c7;
  background: rgba(159, 211, 199, 0.15);
  border-color: rgba(159, 211, 199, 0.35);
}

.dest-dfw {
  color: #f1c27b;
  background: rgba(241, 194, 123, 0.15);
  border-color: rgba(241, 194, 123, 0.35);
}

.dest-lax {
  color: #c6a7ff;
  background: rgba(198, 167, 255, 0.16);
  border-color: rgba(198, 167, 255, 0.35);
}

.dest-default {
  color: #a4aab3;
  background: rgba(164, 170, 179, 0.1);
  border-color: rgba(164, 170, 179, 0.3);
}

.app.dragover {
  box-shadow: inset 0 0 0 3px var(--accent);
  border-radius: 20px;
  background: rgba(208, 180, 106, 0.02);
}

input[type="file"],
input[type="number"],
input[type="text"],
select,
textarea {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font-body);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"]:focus-visible,
input[type="number"]:focus-visible,
input[type="text"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(208, 180, 106, 0.7);
  box-shadow: 0 0 0 3px rgba(208, 180, 106, 0.2);
}

textarea {
  resize: vertical;
  width: 100%;
}

#newBatchModal .panel-sub {
  margin: 0;
}

#batchNameInput {
  min-width: 260px;
}

/* NOTE: 客户选择区域 — 下拉与新客户输入横向排列 */
.client-select-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.client-select-row select {
  flex: 1;
  min-width: 140px;
}

.client-select-row input {
  flex: 1;
  min-width: 140px;
}

button {
  background: var(--accent);
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(208, 180, 106, 0.35);
}

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

.upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(208, 180, 106, 0.08);
  border: 1px dashed rgba(208, 180, 106, 0.4);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.upload-trigger:hover {
  background: rgba(208, 180, 106, 0.15);
  border-color: rgba(208, 180, 106, 0.8);
  box-shadow: 0 4px 12px rgba(208, 180, 106, 0.1);
  transform: translateY(-1px);
}

.container-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

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

.container-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  gap: 4px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border 0.25s ease;
  cursor: pointer;
  position: relative;
  animation: none;
}

.container-list.compact .container-card {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}

.container-list.compact .container-title {
  font-size: 16px;
  margin-bottom: 0;
}

.container-list.compact .container-actions {
  margin-top: 0;
  justify-content: flex-start;
}

.container-list.compact .container-meta,
.container-list.compact .container-note {
  font-size: 11px;
}

.container-card.done {
  border: 1px solid rgba(106, 200, 159, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(106, 200, 159, 0.05), 0 4px 16px rgba(0, 0, 0, 0.15);
  background: linear-gradient(160deg, rgba(27, 37, 34, 0.8), rgba(29, 34, 38, 0.6));
}

.container-status-badge {
  display: inline-block;
  background: #6ac89f;
  color: #0b1f16;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.container-status-badge.pending-badge {
  background: #f0c27b;
  color: #4a3406;
}

.container-card:hover {
  transform: translateY(-2px);
  z-index: 10;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.container-card.done:hover {
  border-color: rgba(106, 200, 159, 0.6);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(106, 200, 159, 0.1);
}

.container-card.active {
  border-color: var(--accent);
}

.container-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-right: 48px;
}

.container-head .status-dot {
  flex: 0 0 auto;
}

.container-title {
  font-weight: 800;
  margin-bottom: 0px;
  font-size: 17px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
}

/* NOTE: 高级复选框样式，替换原生白色方块 */
.container-select-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.container-check {
  -webkit-appearance: none;
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid rgba(208, 180, 106, 0.4);
  border-radius: 5px;
  background: rgba(208, 180, 106, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.container-check:hover {
  border-color: rgba(208, 180, 106, 0.8);
  background: rgba(208, 180, 106, 0.1);
}

.container-check:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.container-check:checked::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: solid #1a1a1a;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.container-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.container-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.container-pack-summary {
  color: #9fd3c7;
  font-size: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #525e68;
  box-shadow: 0 0 0 3px rgba(82, 94, 104, 0.2);
  margin-right: 6px;
}

.status-dot.done {
  background: #6ac89f;
  box-shadow: 0 0 0 3px rgba(106, 200, 159, 0.25);
}

.status-dot.pending {
  background: #f0c27b;
  box-shadow: 0 0 0 3px rgba(240, 194, 123, 0.25);
}

.task-list {
  display: grid;
  gap: 10px;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.task-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: var(--panel-soft);
  display: grid;
  gap: 6px;
  animation: fadeRise var(--enter-duration) ease both;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-title {
  font-weight: 600;
}

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

.task-warning {
  color: #f0c27b;
  font-size: 12px;
}

.task-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.task-footer {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 12px;
}

.task-pack {
  font-size: 15px;
  color: var(--muted);
}

.task-footer button {
  min-width: 160px;
  justify-self: end;
}

.bulk-controls button {
  min-width: 160px;
}

#summaryPanel .bulk-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  justify-content: flex-end;
}

#summaryPanel .bulk-field {
  width: 100%;
}

#summaryPanel .bulk-field input {
  width: 100%;
}

#summaryPanel .download-actions {
  width: auto;
}

.app.split-layout .panel-header {
  align-items: center;
}

.app.split-layout .batch-controls {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app.split-layout .batch-progress {
  padding-bottom: 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.pagination button {
  padding: 6px 12px;
  font-size: 12px;
}

.pagination.has-page-nav {
  border: 1px solid rgba(208, 180, 106, 0.45);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(208, 180, 106, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pagination.has-page-nav button {
  border-radius: 999px;
  min-width: 88px;
}

.pagination.has-page-nav button:not(:disabled) {
  border-color: rgba(208, 180, 106, 0.8);
  color: var(--accent);
  background: rgba(208, 180, 106, 0.12);
}

.pagination.has-page-nav button:not(:disabled):hover {
  background: rgba(208, 180, 106, 0.2);
  border-color: rgba(208, 180, 106, 1);
}

.pagination.has-page-nav button:disabled {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.03);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-danger {
  background: transparent;
  border: 1px solid #eb5757;
  color: #eb5757;
}

.btn-danger-ghost {
  background: transparent;
  border: 1px solid rgba(235, 87, 87, 0.3);
  color: #eb5757;
}

.btn-danger-ghost:hover:not(:disabled),
.btn-danger:hover:not(:disabled) {
  background: rgba(235, 87, 87, 0.15);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.btn-danger:disabled,
.btn-danger-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary-ghost {
  background: rgba(208, 180, 106, 0.05);
  color: var(--accent);
  border: 1px solid rgba(208, 180, 106, 0.4);
}

.btn-primary-ghost:hover:not(:disabled) {
  background: var(--accent);
  color: #1a1a1a;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(208, 180, 106, 0.2);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 8, 0.7);
  display: grid;
  place-items: center;
  z-index: 10;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(460px, 92vw);
  background: #14181b;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  animation: fadeRise 0.4s ease both;
}

.modal-card.modal-wide {
  width: min(720px, 94vw);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.modal-body {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  align-items: center;
}

.label {
  color: var(--muted);
  font-size: 12px;
}

.value {
  font-weight: 600;
}

.split-preview {
  background: #101316;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.packing-grid {
  display: grid;
  gap: 8px;
}

.packing-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.7fr 0.7fr;
  gap: 10px;
  align-items: center;
}

.packing-header {
  color: var(--muted);
  font-size: 12px;
}

.packing-list {
  display: grid;
  gap: 8px;
}

.packing-row input {
  width: 100%;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#summaryPanel {
  display: none;
}

#summaryPanel.panel {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 720px) {
  .app.split-layout .workspace {
    grid-template-columns: 1fr;
  }

  .packing-row {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .filter-row {
    align-items: flex-start;
  }

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

  .modal-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 12vh 20px 40px;
}

.login-wrapper {
  width: min(480px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* NOTE: 登录页品牌区域——居中大标题 */
.login-brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.login-brand-mark {
  width: 64px;
  height: 64px;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.1;
}

.login-hero-subtitle {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.login-hero-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* NOTE: 登录表单卡片 */
.login-panel {
  width: 100%;
  margin: 0;
  padding: 28px 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(208, 180, 106, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-panel-header {
  margin-bottom: 20px;
}

.login-panel .panel-title {
  font-size: 20px;
  font-weight: 700;
}

.login-panel .panel-sub {
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

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

.login-field .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.login-actions {
  margin-top: 4px;
}

.login-actions button {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.login-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(208, 180, 106, 0.25);
}

.login-error {
  margin-top: 14px;
  color: #f08b8b;
  font-size: 12px;
  text-align: center;
}

/* NOTE: 登录页页脚 */
.login-footer {
  font-size: 12px;
  color: rgba(164, 170, 179, 0.35);
  letter-spacing: 0.3px;
  text-align: center;
}

.container-actions.done-actions {
  justify-content: flex-start;
  gap: 6px;
}

.container-actions.done-actions .container-status-btn {
  padding: 4px 10px;
}

/* NOTE: Summary 标题金色左装饰线 */
.summary-title {
  padding-left: 14px;
  position: relative;
}

.summary-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(208, 180, 106, 0.3));
}

/* NOTE: 页脚品牌色彩分割线 */
.app-footer {
  text-align: center;
  padding: 32px 20px 24px;
  color: rgba(164, 170, 179, 0.45);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.footer-line {
  width: 60px;
  height: 2px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(208, 180, 106, 0.3), transparent);
}
