/* ============================================================
   Theme: 高考录取数据查询 - Mobile First
   Colors: #39C5BB (teal primary), #e64340 (red highlight)
   ============================================================ */

:root {
  --primary: #39C5BB;
  --primary-dark: #2DA89F;
  --primary-light: #edf9f7;
  --red: #e64340;
  --text: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --font-size: 14px;
  /* rpx conversion: 1rpx ≈ 0.13333vw (750rpx = 100vw) */
  --rpx: calc(100vw / 750);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: var(--font-size);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

input, button, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   Loading Screen
   ============================================================ */
.page-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--bg);
}

.load-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
  min-width: 200px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 初始加载进度动画 — 在 JS 执行前自动推进 */
@keyframes initialProgress {
  0%   { width: 10%; }
  100% { width: 30%; }
}

.load-stage {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 16px;
}

.progress-track {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  transition: width .3s ease;
  /* 初始加载动画：alldata.js(~5MB)下载期间进度条自行前进，避免卡在10% */
  animation: initialProgress 3s ease-out forwards;
}

/* JS 接管后停掉 CSS 动画 */
.progress-fill.js-active {
  animation: none;
}

.load-pct {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   Main Page Layout
   ============================================================ */
.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* 右侧结果区 — 始终作为 flex 容器，确保结果列表在竖屏下也能正确滚动加载 */
.right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

/* ============================================================
   Filter Bar
   ============================================================ */
.filter-bar {
  background: var(--card-bg);
  padding: 6px 10px 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex-shrink: 0;
  max-height: 1000px;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .4s ease, padding .4s ease, max-height .4s ease;
}

.filter-bar.hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-item {
  flex: 1;
  min-width: 0;
}

.filter-item.half {
  width: 50%;
  flex: none;
  box-sizing: border-box;
}

.filter-item.half:nth-child(odd) {
  padding-right: 3px;
}

.filter-item.half:nth-child(even) {
  padding-left: 3px;
}

.label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 7px;
  font-size: 12px;
  height: 31px;
  line-height: 31px;
  width: 100%;
  box-sizing: border-box;
  background: #fafafa;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.input:focus {
  border-color: var(--primary);
  background: var(--card-bg);
}

/* 隐藏数字输入框的 +/- 按钮 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.input-sm {
  height: 28px;
  line-height: 28px;
  font-size: 12px;
}

/* select dropdown replacement */
.custom-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 12px;
  line-height: 1.5;
  background: #fafafa;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

/* Toggle row */
.toggle-row {
  justify-content: space-between;
  gap: 3px;
  padding: 2px 0;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fafafa;
  flex: 1;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.toggle-item.on {
  border-color: var(--primary);
  background: var(--primary-light);
}

.toggle-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.toggle-box.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-check {
  color: var(--card-bg);
  font-size: 9px;
  font-weight: bold;
  display: none;
}

.toggle-box.checked .toggle-check {
  display: inline;
}

.toggle-label {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.toggle-item.on .toggle-label {
  color: var(--primary);
  font-weight: bold;
}

/* Picker display */
.picker {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 12px;
  line-height: 1.5;
  background: #fafafa;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.placeholder-text {
  color: #ccc;
}

/* Year tabs */
.year-tabs {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.year-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid #ddd;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.tab.active {
  background: var(--primary);
  color: var(--card-bg);
  border-color: var(--primary);
}

.tabs-row {
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 6px;
  gap: 2px;
}

.help-btn {
  padding: 4px 5px;
  font-size: 12px;
  color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.as-toggle-btn {
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 3px 7px;
  margin-left: 2px;
}

.dark-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  line-height: 1;
  color: #222;
}
.dark-toggle svg {
  display: block;
}
:root.dark-mode .dark-toggle {
  color: #fff;
}

/* Action buttons */
.actions {
  padding-top: 4px;
  border-top: 1px solid var(--border-light);
  justify-content: space-between;
}

.btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  border: none;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-search {
  background: var(--primary);
  color: var(--card-bg);
}

.btn-reset {
  background: #f0f0f0;
  color: var(--text-secondary);
}

/* Scrollable select for SR */
.scroll-select {
  max-height: 300px;
  overflow-y: auto;
}

.scroll-select-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}

.scroll-select-item:active {
  background: var(--primary-light);
}

.scroll-select-item.selected {
  color: var(--primary);
  font-weight: bold;
  background: var(--primary-light);
}

/* ============================================================
   Result Bar
   ============================================================ */
.result-bar {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-bar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.count {
  color: var(--primary);
  font-weight: bold;
}

.load-time {
  color: #bbb;
  font-size: 11px;
}

.toggle-filter-btn {
  padding: 3px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.result-bar-actions {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* ============================================================
   Result Cards
   ============================================================ */
.result-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.result-list::-webkit-scrollbar {
  width: 4px;
}

.result-list::-webkit-scrollbar-track {
  background: transparent;
}

.result-list::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 2px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.card-year {
  font-size: 11px;
  color: #666;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 3px;
}

.card-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
}

.card-code {
  font-size: 12px;
  color: var(--text-muted);
}

.tag-new {
  font-size: 10px;
  color: var(--card-bg);
  background: var(--red);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-left: auto;
}

.school-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 600;
  margin-left: 0;
}
.school-tag.tag-985 {
  background: #fce8d6;
  color: #d48a3a;
}
.school-tag.tag-211 {
  background: var(--primary-light);
  color: var(--primary);
}
.school-tag + .school-tag {
  margin-left: 4px;
}

.school-rank {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #CCEBFF;
  color: #66CCFF;
  font-weight: 500;
  margin-left: 4px;
}

.card-body {
  font-size: 13px;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.card-label {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

.card-value {
  color: var(--text);
  margin-right: 6px;
}

.card-value.full {
  flex: 1;
  word-break: break-all;
}

.card-value.highlight {
  color: var(--red);
  font-weight: bold;
  font-size: 14px;
}

.card-link-row {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}

.card-link {
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  word-break: break-all;
}

.card-link:hover {
  text-decoration: underline;
}

/* ============================================================
   志愿填报辅助 — 左下面板
   ============================================================ */
.filter-fields {
  flex: 1;
  overflow-y: auto;
}

.assistant-section {
  display: none;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}

.as-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.as-toggle-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--primary);
}

.as-toggle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform .25s ease;
  flex-shrink: 0;
}

.as-toggle-arrow svg {
  display: block;
}

/* 折叠状态：箭头向上翻转（指向展开方向） */
.assistant-section.collapsed .as-toggle-arrow svg {
  transform: rotate(180deg);
}

.assistant-section.collapsed .as-body {
  display: none;
}

.as-body {
  padding: 0 10px 10px;
}

.as-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.as-half {
  flex: 1;
  min-width: 0;
}

.as-full {
  flex: 1;
}

.as-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.picker-sm {
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.4;
}

.as-row-algo-adjust {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.as-algo-picker-section {
  flex: 1;
  min-width: 0;
}

.algo-toggle {
  flex: none;
  margin-top: 14px;
  align-self: flex-start;
}

.algo-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.scroll-select-item strong {
  font-size: 13px;
  font-weight: 600;
}

.scroll-select-item.selected .algo-desc {
  color: var(--text-secondary);
}

.as-action {
  margin-top: 8px;
}

.as-action .btn {
  width: 100%;
}

/* ============================================================
   志愿填报辅助 — 右侧结果
   ============================================================ */
.assistant-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.as-header-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--primary);
}

.as-header-simple .as-header-close {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-weight: normal;
}

.as-header-simple .as-header-close:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* 手机端隐藏结果头部栏（由 header-actions 切换替代） */
@media (max-width: 859px) {
  .as-header-simple {
    display: none;
  }
}

/* Columns container */
.as-columns {
  flex: 1;
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.as-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.as-column-header {
  font-size: 14px;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-align: center;
  flex-shrink: 0;
}

.as-column-header.reach {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #BBDEFB;
}

.as-column-header.safe {
  background: #E0F7F5;
  color: #00897B;
  border: 1px solid #B2DFDB;
}

.as-column-header.fallback {
  background: #F5F5F5;
  color: #757575;
  border: 1px solid #E0E0E0;
}

.as-column-header-all {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.as-column-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.as-column-body::-webkit-scrollbar {
  width: 3px;
}

.as-column-body::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 2px;
}

/* Column tab bar (for narrow layout) */
.as-tab-bar {
  display: none;
  flex-shrink: 0;
  padding: 0 8px;
  gap: 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.as-tab {
  flex: 1;
  padding: 8px 4px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
}

.as-tab.active {
  color: var(--text);
  border-bottom-color: var(--primary);
  font-weight: bold;
}

.as-tab.reach.active {
  border-bottom-color: #1565C0;
  color: #1565C0;
}

.as-tab.safe.active {
  border-bottom-color: #00897B;
  color: #00897B;
}

.as-tab.fallback.active {
  border-bottom-color: #757575;
  color: #757575;
}

.as-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Loading indicator for assistant */
.as-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  color: var(--text-muted);
  font-size: 13px;
  gap: 14px;
}
.as-loading-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: as-spin 0.7s linear infinite;
}
@keyframes as-spin { to { transform: rotate(360deg); } }

/* Tab bar inside .as-columns (hidden by default, shown on narrow) */
.as-tab-bar {
  display: none;
  flex-shrink: 0;
  gap: 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
}

.as-columns.tab-mode {
  flex-direction: column;
}

.as-columns.tab-mode .as-tab-bar {
  display: flex;
}

.as-columns.tab-mode .as-column:not(.active) {
  display: none;
}

.as-columns.tab-mode .as-column.active {
  display: flex;
}

@media (max-width: 1050px) {
  .as-columns:not(.force-columns) {
    flex-direction: column;
  }
  .as-columns:not(.force-columns) .as-tab-bar {
    display: flex;
  }
  .as-columns:not(.force-columns) .as-column:not(.active) {
    display: none;
  }
  .as-columns:not(.force-columns) .as-column.active {
    display: flex;
  }
}


.card-value.badge {
  background: #CCEBFF;
  color: #66CCFF;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.card-value.tag {
  background: #d4f0ed;
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* Year label (grouped mode) */
.gp-label {
  font-size: 11px;
  font-weight: bold;
  color: var(--primary);
  background: #e8f5e9;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 4px;
}

.gp-year {
  background: var(--primary-light);
  margin: 2px -6px 4px;
  padding: 4px 6px;
  border-radius: 6px;
}

.gp-year-sub {
  font-size: 0.85em;
  margin: 0 -6px 4px;
  padding: 2px 6px;
}

/* Remark collapse */
.card-remark-header {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #eee;
  cursor: pointer;
}

.card-remark-toggle {
  font-size: 11px;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.card-remark-toggle svg {
  width: 12px;
  height: 12px;
}

.card-remark-body {
  padding: 4px 0 2px;
}

.card-remark-body .card-value {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}

/* 同专业组其他专业列表 */
.adjust-majors-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 2px 0;
}
.adjust-major-item {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 1px 0;
}
.adjust-major-item .major-name {
  color: var(--text);
  font-weight: 500;
}
.adjust-major-item .major-detail {
  color: var(--text-muted);
  font-size: 11px;
}
.adjust-major-tier {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  padding: 0 5px;
  border-radius: 3px;
  line-height: 16px;
  margin: 0 2px;
}

/* 竖屏卡片内专业表格（同组全部专业） */
.as-pt-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 2px;
}
.as-pt-tr {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}
.as-pt-tr:last-child {
  border-bottom: none;
}
.as-pt-tr-matched {
  background: var(--primary-light);
  border-bottom-color: transparent;
}
.as-pt-tr-top6 {
  background: var(--primary-light);
}
.as-pt-td {
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.as-pt-td-num {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
}
.as-pt-td-name {
  flex: 1;
  min-width: 50px;
  font-weight: 500;
}
.as-pt-td-code {
  width: 36px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
  flex-shrink: 0;
}
.as-pt-td-2024,
.as-pt-td-2025 {
  width: 68px;
  text-align: right;
  color: var(--text-secondary);
  font-size: 11px;
  flex-shrink: 0;
}

/* Year diff section */
.diff-section {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.diff-group {
  margin-bottom: 8px;
}

.diff-field {
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.diff-entry {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0 2px 8px;
}

.diff-years {
  font-size: 11px;
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
  min-width: 50px;
}

.diff-arrow {
  font-size: 11px;
  color: #ccc;
  flex-shrink: 0;
}

.diff-val {
  font-size: 12px;
  color: var(--red);
  font-weight: bold;
  word-break: break-all;
}

/* ============================================================
   Float Button (scroll to top)
   ============================================================ */
.float-btn {
  position: fixed;
  right: 12px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 50;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: none;
  user-select: none;
  transition: transform .2s ease, opacity .2s ease;
}

.float-btn:active {
  transform: scale(0.92);
  opacity: 0.85;
}

.float-arrow {
  width: 18px;
  height: 18px;
  display: block;
}

.float-text {
  display: none;
}

/* ============================================================
   Modal (Province Picker / SR Picker)
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  position: fixed;
  left: 5%;
  right: 5%;
  top: 15%;
  bottom: 15%;
  background: var(--card-bg);
  border-radius: 12px;
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-sm {
  top: 30%;
  bottom: auto;
  max-height: 50%;
}

.modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.modal-title {
  font-size: 15px;
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  background: #f0f0f0;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.modal-btn.confirm {
  background: var(--primary);
  color: var(--card-bg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 2px;
}

.modal-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.modal-item-text {
  font-size: 14px;
  margin-left: 8px;
}

/* Custom checkbox */
.check-box {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.check-box.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.check-mark {
  color: var(--card-bg);
  font-size: 11px;
  font-weight: bold;
}

/* ============================================================
   Tutorial / Guide
   ============================================================ */
.tutorial-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-modal {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 10px;
  background: var(--card-bg);
  flex-shrink: 0;
}

.tutorial-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--text);
}

.tutorial-skip {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tutorial-card-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tutorial-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 240px 16px;
}

/* Demo card inside tutorial */
.demo-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Highlight row background (tutorial) */
.row-highlight {
  background: #fff5f5;
  margin: 2px -6px 4px;
  padding: 4px 6px;
  border-radius: 6px;
}

/* Card row dimming for tutorial */
.demo-card .card-row,
.demo-card .card-header,
.demo-card .diff-section {
  opacity: 0.2;
  transition: opacity .3s ease;
}

/* Demo assistant panel dimming — 半行级 dim，无需整行高亮 */
.demo-card .assistant-section .as-toggle-row,
.demo-card .assistant-section .as-half,
.demo-card .assistant-section .as-algo-picker-section,
.demo-card .assistant-section .algo-toggle,
.demo-card .assistant-section .as-action {
  opacity: 0.2;
  transition: opacity .3s ease;
}
.demo-card .as-results-panel .as-header-simple,
.demo-card .as-results-panel .as-col {
  opacity: 0.2;
  transition: opacity .3s ease;
}
.demo-card .as-results-panel .as-col-card-dimm {
  opacity: 0.35;
}
.demo-card .row-current {
  opacity: 1 !important;
}

/* Step panel - bottom sheet */
.step-panel {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  background: var(--card-bg);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 16px 16px 12px;
  z-index: 10;
}

.step-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-count {
  font-size: 11px;
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.step-bar-bg {
  flex: 1;
  height: 4px;
  background: #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
}

.step-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #5dd5cd);
  border-radius: 2px;
  transition: width .3s ease;
}

.step-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.7;
  display: block;
}

.step-nav {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.nav-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn.primary {
  background: var(--primary);
  color: var(--card-bg);
  border-color: var(--primary);
  font-weight: bold;
}

.nav-btn.disabled {
  opacity: .35;
  pointer-events: none;
}

/* Mode tabs for tutorial */
.mode-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin: 0 0 8px;
  flex-shrink: 0;
}

.mode-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mode-tab.active {
  background: var(--primary);
  color: var(--card-bg);
  border-color: var(--primary);
  font-weight: bold;
}

/* ============================================================
   Empty / Loading states
   ============================================================ */
.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.loading-more {
  text-align: center;
  color: var(--text-muted);
  padding: 15px 0;
}

/* ============================================================
   Dark Mode
   ============================================================ */
:root.dark-mode {
  --primary: #66CCFF;
  --primary-dark: #4DB8E8;
  --primary-light: #0d2d3d;
  --red: #ff6b6b;
  --text: #e0e0e0;
  --text-secondary: #aaa;
  --text-muted: #777;
  --bg: #121212;
  --card-bg: #1e1e2e;
  --border: #333;
  --border-light: #2a2a2a;
}

:root.dark-mode .progress-track {
  background: #333;
}

:root.dark-mode .input,
:root.dark-mode .picker,
:root.dark-mode .custom-select,
:root.dark-mode .toggle-item {
  background: #2a2a2a;
}

:root.dark-mode .btn-reset {
  background: #333;
  color: #aaa;
}

:root.dark-mode .card-value.badge {
  background: #0d2d3d;
  color: var(--primary);
}

:root.dark-mode .card-value.tag {
  background: #0a2d2a;
  color: #39C5BB;
}

:root.dark-mode .school-tag.tag-985 {
  background: #3a2a1a;
  color: #e8b86a;
}

:root.dark-mode .school-rank {
  background: #0a2d2a;
  color: #39C5BB;
}

:root.dark-mode .gp-label {
  background: #0d2d3d;
  color: var(--primary);
}

:root.dark-mode .card-year {
  color: #bbb;
  background: #2a2a2a;
}

:root.dark-mode .scroll-select-item {
  color: var(--text);
  border-bottom-color: #333;
}

:root.dark-mode .scroll-select-item.selected {
  color: #66CCFF;
  background: #0D2D3D;
}

:root.dark-mode .row-highlight {
  background: #0f2a38;
}

:root.dark-mode .card-remark-header {
  border-top-color: #333;
}

:root.dark-mode .float-btn {
  background: rgba(102, 204, 255, 0.18);
  color: var(--primary);
  box-shadow: 0 0.6vw 2.4vw rgba(0,0,0,0.4);
}

:root.dark-mode .result-list::-webkit-scrollbar-thumb {
  background: #555;
}

:root.dark-mode .diff-arrow {
  color: #555;
}

:root.dark-mode .step-bar-bg {
  background: #333;
}

:root.dark-mode .step-desc {
  color: #aaa;
}

:root.dark-mode .modal-btn:not(.confirm) {
  background: #333;
}
:root.dark-mode .modal-btn.confirm {
  background: var(--primary);
  color: #121212;
}

:root.dark-mode .load-time {
  color: #555;
}

:root.dark-mode .placeholder-text {
  color: #555;
}

:root.dark-mode .algo-desc {
  color: #888;
}

:root.dark-mode .scroll-select-item.selected .algo-desc {
  color: #aaa;
}

:root.dark-mode .toggle-box {
  border-color: #555;
}

:root.dark-mode .tab {
  border-color: #444;
  color: #aaa;
}

:root.dark-mode .toggle-filter-btn {
  border-color: #444;
}

:root.dark-mode .tab.active {
  border-color: var(--primary);
  color: var(--card-bg);
}

:root.dark-mode .check-box {
  border-color: #555;
}

:root.dark-mode .spinner {
  border-color: #444;
}
:root.dark-mode .spinner {
  border-top-color: var(--primary);
}

:root.dark-mode .assistant-section {
  background: #1a1a2a;
}

:root.dark-mode .as-column-header.reach {
  background: #0D2D3D;
  color: #66CCFF;
  border-color: #1a4a5a;
}

:root.dark-mode .as-column-header.safe {
  background: #0A2D2A;
  color: #39C5BB;
  border-color: #124540;
}

:root.dark-mode .as-column-header.fallback {
  background: #1E1E2E;
  color: #999;
  border-color: #333;
}


/* ============================================================
   Desktop responsive adjustments
   ============================================================ */
@media (min-width: 600px) {
  .page, .page-loading {
    margin: 0;
    box-shadow: none;
    border: none;
  }

  .filter-bar {
    padding: 8px 16px;
  }

  /* 多行筛选项平铺 */
  .filter-row:not(.tabs-row):not(.actions):not(.toggle-row) {
    flex-wrap: nowrap;
  }

  .filter-row .half {
    width: auto;
    flex: 1;
  }

  .toggle-row {
    justify-content: flex-start;
    gap: 12px;
  }

  .toggle-item {
    flex: 0 0 auto;
  }

  .result-bar {
    padding: 12px 24px;
  }

  .result-list {
    padding: 12px 16px;
  }

  .float-btn {
    right: 24px;
    bottom: 40px;
  }

  .modal-overlay {
    background: rgba(0,0,0,.5);
  }

  .modal {
    max-width: 520px;
    left: 50%;
    right: auto;
    width: 90%;
    transform: translateX(-50%);
  }

  .tutorial-modal {
    max-width: 520px;
    margin: 40px auto 0;
  }

  .step-panel {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (min-width: 860px) {
  .page {
    flex-direction: row !important;
  }

  .filter-bar {
    display: flex;
    flex-direction: column;
    width: max(320px, 20vw);
    flex-shrink: 0;
    min-width: 320px;
    height: 100vh;
    max-height: 100vh;
    max-width: none;
    overflow: hidden;
    border-right: 1px solid var(--border);
    box-shadow: none;
    padding: 0;
  }

  .filter-fields {
    padding: 6px 10px 4px;
  }

  .assistant-section {
    display: block;
  }

  .filter-bar.hidden {
    min-width: 320px;
    max-height: 100vh;
    max-width: none;
    padding: 6px 10px 4px;
    opacity: 1;
    pointer-events: auto;
  }

  .toggle-filter-btn {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .result-bar-actions {
    display: flex;
  }

  .result-bar {
    max-width: none;
  }

  .right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .result-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    max-width: none;
  }

  .result-list .card {
    margin-bottom: 16px;
  }

  .float-text {
    display: none;
  }
}

/* ===== Footer Links ===== */
.footer-links {
  text-align: center;
  padding: 8px 16px 16px;
  font-size: 13px;
  color: #86868b;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-links a {
  color: #86868b;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #007AFF;
}

.dark-mode .footer-links,
.dark-mode .footer-links a {
  color: #636366;
}
.dark-mode .footer-links a:hover {
  color: #66CCFF;
}

/* ============================================================
   分数自动换算排名 — 高亮输入框
   ============================================================ */
.as-rank-auto {
  background-color: #fff3cd !important;
  border-color: #ffc107 !important;
  color: #856404 !important;
}
.as-rank-auto:focus {
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3) !important;
  border-color: #ffc107 !important;
}
.dark-mode .as-rank-auto {
  background-color: #4a3c0e !important;
  border-color: #b8860b !important;
  color: #ffd700 !important;
}

.as-rank-hint {
  font-size: 11px;
  color: #d4a017;
  margin-left: 2px;
  font-weight: normal;
}
.dark-mode .as-rank-hint {
  color: #ffd700;
}

/* ============================================================
   志愿填报辅助 — 横屏宽卡片布局（≥1200px）
   ============================================================ */
.as-wide {
  flex-direction: column !important;
  overflow: hidden !important;
}

.as-wide-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

.as-wide-bar {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

.as-wide-batch-bar {
  display: flex;
  gap: 2px;
  padding: 6px 10px 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.as-wide-batch-bar::-webkit-scrollbar {
  display: none;
}

.as-wide-batch-tab {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 12px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  user-select: none;
  transition: all 0.15s ease;
}
.as-wide-batch-tab:hover {
  color: var(--text);
  background: var(--bg);
}
.as-wide-batch-tab.active {
  color: var(--primary);
  font-weight: bold;
  background: var(--bg);
  border-color: var(--border);
}

.as-wide-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}
@media (min-width: 860px) {
  .as-wide-body { padding: 20px; }
}

/* ── 横屏卡片 ── */
.as-wide-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.as-wide-card { border-left: 4px solid var(--primary); }

/* 顶部行 */
.as-wide-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  font-size: 14px;
}

.as-wide-sname {
  font-weight: bold;
  font-size: 13px;
  color: var(--text);
  flex-shrink: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-wide-scode {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.as-wide-stags {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}
.as-wide-stags .school-tag,
.as-wide-stags .school-rank {
  font-size: 10px;
  padding: 1px 5px;
}

.as-wide-gc {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--primary-light);
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.as-wide-link {
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
  margin-left: auto;
  flex-shrink: 0;
}
.as-wide-link:hover {
  text-decoration: underline;
}

/* ── 专业表格 ── */
.as-wide-table-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.as-wide-table-wrap::-webkit-scrollbar {
  display: none;
}
.as-wide-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 16px 12px;
  font-size: 13px;
}

.as-wide-tr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.as-wide-tr:last-child {
  border-bottom: none;
}

.as-wide-th {
  font-weight: bold;
  color: var(--text-muted);
  font-size: 10px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.as-wide-tr-matched {
  background: var(--primary-light);
  border-bottom-color: transparent;
}
.as-wide-tr-top6 {
  background: var(--primary-light);
}

.as-wide-td {
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-wide-td-num {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 10px;
}

.as-wide-td-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.as-wide-name-scroll {
  display: inline-block;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  flex: 1;
}
.as-wide-name-scroll::-webkit-scrollbar { display: none; }

/* 专业级冲稳保标签（横屏卡片表格内） */
.as-wide-tier-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  padding: 0 5px;
  border-radius: 3px;
  line-height: 16px;
  flex-shrink: 0;
}
.as-major-tier-顶 { background: #c62828; }
.as-major-tier-冲 { background: #e65100; }
.as-major-tier-稳 { background: #00897B; }
.as-major-tier-保 { background: #388e3c; }
.as-major-tier-底 { background: #757575; }
.dark-mode .as-major-tier-顶 { background: #ef5350; }
.dark-mode .as-major-tier-冲 { background: #ff9800; }
.dark-mode .as-major-tier-稳 { background: #26a69a; }
.dark-mode .as-major-tier-保 { background: #66bb6a; }

/* 宽卡片新增专业标记 */
.as-wide-tag-new {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  background: var(--red);
  padding: 0 4px;
  border-radius: 2px;
  line-height: 15px;
  margin-right: 3px;
  vertical-align: middle;
}

.as-wide-td-code {
  width: 36px;
  text-align: center;
  color: var(--text-muted);
}

.as-wide-td-fee {
  width: 60px;
  text-align: right;
  color: var(--text-secondary);
}

.as-wide-td-2024,
.as-wide-td-2025 {
  width: 85px;
  text-align: right;
  font-family: monospace;
  font-size: 11px;
}

.as-wide-td-plan {
  width: 44px;
  text-align: right;
  color: var(--text-secondary);
}

/* 备注展开按钮列 */
.as-wide-td-remark-btn-col {
  width: 24px;
  text-align: center;
}
.as-wide-remark-btn {
  display: inline-block;
  font-size: 11px;
  color: var(--link-color, #1a73e8);
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
}
.as-wide-remark-btn:hover {
  opacity: 0.7;
}

/* 备注展开行 */
.as-wide-tr-remark {
  background: var(--bg-hover, #f5f5f5);
}
.as-wide-td-remark {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
  padding: 4px 12px 6px;
  text-align: left;
  min-width: 200px;
}
.dark-mode .as-wide-tr-remark { background: #252525; }

/* 窄屏下列宽微调 */
@media (max-width: 860px) {
  .as-wide-td-name { width: 120px; flex: none; }
  .as-wide-td-fee { width: 52px; }
  .as-wide-td-plan { width: 38px; }
  .as-wide-td-remark-btn-col { width: 20px; }
  .as-wide-td-2024,
  .as-wide-td-2025 { width: 78px; }
  .as-wide-td-remark { min-width: 140px; }
}

/* ── 底部信息行 ── */
.as-wide-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.as-wide-fitem {
  flex-shrink: 0;
}

.as-wide-fitem-remark {
  color: var(--text-secondary);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 暗色模式 ── */
.dark-mode .as-wide-row1 { background: #1e1e1e; }
.dark-mode .as-wide-tr-matched { background: #1a2e2b; }
.dark-mode .as-pt-tr-matched { background: #1a2e2b; }
.dark-mode .as-pt-tr-top6 { background: #1a2e2b; }
.dark-mode .as-wide-batch-bar { background: #1e1e1e; }
.dark-mode .as-wide-bar { background: #1e1e1e; border-bottom-color: #333; }
.dark-mode .as-wide-batch-tab.active { background: #252525; border-color: #333; }
