:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #3a83f7;
  --blue-hover: #256be0;
  --red: #de1b1b;
  --green: #256be0;
  --side: #fbfbfd;
  --side-w: 240px;
  --top: 56px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button, input { font: inherit; }

.app {
  min-height: 100%;
  display: flex;
}

.side {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0.2px;
  color: #7a7a74;
  padding: 6px 10px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: url("/static/avatar-web.svg") center / cover no-repeat;
  flex: 0 0 30px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.menu a:hover { background: #f0f0ee; }
.menu a.on { background: #ebebe8; font-weight: 600; }
.menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: 0 0 18px; }
.side .who {
  margin-top: auto;
  padding: 12px 10px 0;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.top {
  height: var(--top);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(251, 251, 253, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
}
.top h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.me-wrap {
  margin-left: auto;
  position: relative;
}
.me-face,
.me-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #bcd5fc;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.me-face { background: #bcd5fc; }
.me-face:hover { filter: brightness(0.96); }
.me-face img,
.me-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.me-ava {
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: default;
  flex: 0 0 44px;
}
.me-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  z-index: 20;
  overflow: hidden;
}
.me-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
.me-head .name { font-size: 16px; font-weight: 650; }
.me-head .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.me-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 16px 12px;
}
.me-stats div {
  background: #f4f4f6;
  border-radius: 10px;
  padding: 8px 8px 7px;
  text-align: center;
}
.me-stats b {
  display: block;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-stats span { color: var(--muted); font-size: 11px; }
.me-tabs {
  margin: 0 16px 12px;
  width: calc(100% - 32px);
}
.me-tabs button { flex: 1; }
.me-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 14px;
}
.me-pane[hidden] { display: none; }
.me-out {
  border-top: 1px solid #ececec;
  color: var(--red);
  justify-content: center;
  font-weight: 600;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.dim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 8;
}

.hostbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 8px 28px;
  background: #fbfbfd;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  position: sticky;
  top: var(--top);
  z-index: 3;
}
.hostbar span { color: var(--ink); }
.hostbar .hot { color: var(--red); font-weight: 650; }
.hostbar .warm { color: #b8860b; font-weight: 650; }

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 32px 48px;
}
.page-wide {
  width: min(1600px, 100%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stats-row {
  display: flex;
  flex-wrap: nowrap;
  grid-template-columns: none;
  gap: 10px;
  overflow-x: auto;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { margin-top: 6px; font-size: 26px; font-weight: 650; letter-spacing: -0.4px; }
.stats-row .stat {
  flex: 1 1 0;
  padding: 14px 12px 12px;
  min-width: 0;
}
.stats-row .stat .k {
  font-size: 12px;
  white-space: nowrap;
}
.stats-row .stat .v {
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d2d2d7;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 650;
  flex: 0 0 56px;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero .name { font-size: 20px; font-weight: 650; }
.hero .sub { color: var(--muted); margin-top: 2px; }

.bc-wrap {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(480px, 1.15fr);
  gap: 18px;
  align-items: start;
}
.bc-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 16px 12px;
}
.bc-tools #bc-q {
  flex: 1 1 180px;
  min-width: 160px;
  min-height: 38px;
  padding: 8px 12px;
}
.bc-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.bc-seg button {
  border: 0;
  background: #fff;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
}
.bc-seg button + button { border-left: 1px solid var(--line); }
.bc-seg button.on { background: var(--blue); color: #fff; }
.bc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
#bc-acc {
  max-height: 560px;
  overflow: auto;
}
#bc-acc .table th,
#bc-acc .table td {
  padding: 10px 14px;
  white-space: nowrap;
}
#bc-acc tr.bc-cur td { background: #eef5ff; }
.bc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 10px;
}
#bc-rows {
  max-height: 520px;
  overflow: auto;
  border-top: 1px solid #ececec;
}
.bc-flag {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 6px 12px;
  padding: 10px 12px;
  min-height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(30, 64, 120, 0.06);
}
.bc-flag-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bc-flag + .bc-flag { border-top: 0; }
.bc-flag .lead { font-size: 14px; font-weight: 550; }
.bc-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bc-extra .bc-seg {
  margin: 0;
}
.bc-cust {
  align-items: center;
}
.bc-cust-num {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.bc-cust-num.on {
  color: var(--green);
  font-weight: 650;
}
.bc-cust-max,
.dash .bc-cust-max,
input.bc-cust-max {
  width: 2.6em !important;
  min-width: 2.6em !important;
  max-width: 2.6em !important;
  flex: 0 0 2.6em !important;
  height: 22px !important;
  min-height: 0 !important;
  padding: 0 2px !important;
  margin: 0;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 12px;
  font-weight: inherit;
  color: inherit;
  appearance: textfield;
  -moz-appearance: textfield;
}
.bc-cust-max::-webkit-outer-spin-button,
.bc-cust-max::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bc-cust-max:focus {
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.bc-colors {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bc-colors[hidden],
.bc-pick-hint[hidden] {
  display: none !important;
}
.bc-colors button {
  border: 1px solid rgba(30, 64, 120, 0.12);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}
.bc-colors button.on {
  background: #bcd5fc;
  color: var(--green);
  font-weight: 650;
  border-color: transparent;
}
.bc-pick-hint {
  font-size: 12px;
  color: var(--muted);
}
.bc-tri {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}
.bc-tri button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  min-width: 44px;
  color: var(--muted);
  border-radius: 999px;
}
.bc-tri button + button { border-left: 0; }
.bc-tri button.on { font-weight: 650; }
.bc-tri button[data-v="keep"].on { background: #eef0f3; color: var(--ink); }
.bc-tri button[data-v="1"].on { background: #dceaff; color: var(--green); }
.bc-tri button[data-v="0"].on { background: #fde8e8; color: var(--red); }
.bc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(30, 64, 120, 0.06);
  cursor: pointer;
}
.bc-item.bc-cur {
  background: #f0f0ee;
  border-color: rgba(30, 64, 120, 0.16);
}
.bc-pick { display: grid; place-items: center; min-width: 22px; min-height: 32px; }
.acc-item input[type=checkbox],
.pick-all input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #256be0;
  cursor: pointer;
}
.user-chip {
  font-weight: 650;
  color: var(--ink);
}
.user-chip:hover { color: var(--blue); }
.role-chip {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  flex: 0 0 auto;
}
.dot-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dot-pill.on { background: #edf4ff; color: var(--green); }
.dot-pill.wait { background: #e8f1ff; color: #2c6ac4; }
.dot-pill.kick { background: #fff0e6; color: #c45a1a; }
.dot-pill.off { background: rgba(0, 0, 0, 0.05); color: var(--muted); }
.bc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px 16px;
}

.dash {
  background: #f4f4f2;
}
.dash .app {
  position: relative;
  z-index: 1;
}
.dash .side {
  background: rgba(252, 252, 251, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  border-right: 1px solid rgba(20, 20, 20, 0.05);
}
.dash .brand { color: #7a7a74; }
.dash .menu a { color: #4a4a46; }
.dash .top {
  background: rgba(252, 252, 251, 0.72);
  border-bottom: 1px solid rgba(20, 20, 20, 0.05);
}
.dash-sheet {
  background: rgba(252, 252, 250, 0.9);
  backdrop-filter: saturate(130%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px 20px 12px;
  box-shadow: 0 10px 28px rgba(30, 30, 28, 0.04);
  animation: rise-in 0.65s ease both;
}
.dash .hero,
.dash .stat,
.dash .panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.dash .hero {
  padding: 4px 6px 14px;
  margin-bottom: 0;
}
.dash .stats-row {
  gap: 0;
  margin-bottom: 8px;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(30, 64, 120, 0.08);
}
.dash .stats-row .stat {
  padding: 8px 10px;
  animation: rise-in 0.45s ease both;
}
.dash .stats-row .stat:nth-child(1) { animation-delay: 0.04s; }
.dash .stats-row .stat:nth-child(2) { animation-delay: 0.07s; }
.dash .stats-row .stat:nth-child(3) { animation-delay: 0.1s; }
.dash .stats-row .stat:nth-child(4) { animation-delay: 0.13s; }
.dash .stats-row .stat:nth-child(5) { animation-delay: 0.16s; }
.dash .stats-row .stat:nth-child(6) { animation-delay: 0.19s; }
.dash .stats-row .stat:nth-child(7) { animation-delay: 0.22s; }
.dash .stats-row .stat:nth-child(8) { animation-delay: 0.25s; }
.dash .bc-wrap {
  gap: 0;
  animation: none;
}
.dash .bc-list {
  border-right: 1px solid rgba(30, 64, 120, 0.08);
  border-radius: 0;
  margin-bottom: 0;
}
.dash .bc-flags {
  border-radius: 0;
  margin-bottom: 0;
}
.dash .panel h2 { padding: 14px 14px 4px; }
.dash .hint {
  margin: 0;
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 13px;
}
.dash .bc-tools { padding: 0 14px 12px; }
.dash .bc-presets { padding: 0 14px 10px; }
.dash .bc-actions { padding: 12px 14px 10px; }
.dash .bc-flag { transition: background 0.16s ease; }
.dash .bc-cust-num.on {
  color: var(--green);
}
.dash .bc-colors button {
  background: rgba(255, 255, 255, 0.55);
}
.dash .bc-colors button.on {
  background: #bcd5fc;
  color: var(--green);
}
.dash .bc-flag:hover,
.dash .bc-item:hover { background: #f3f3f1; }
.dash .table tr.click:hover td { background: #f5f5f3; }
.dash #bc-acc tr.bc-cur td { background: #f0f0ee; }
.dash .bc-item { animation: rise-in 0.28s ease both; }
.dash #bc-rows { border-top-color: rgba(30, 64, 120, 0.08); }
.dash .bc-group {
  margin: 10px 10px 4px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.dash .bc-group + .bc-group {
  border-top: 1px solid rgba(30, 64, 120, 0.08);
  padding-top: 6px;
}
.dash .bc-group-hd {
  padding: 8px 12px 4px;
}
.dash .bc-group-hd .lead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8a8074;
}
.dash .bc-group .bc-flag {
  margin: 0;
  background: transparent;
}
.dash .bc-seg {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  padding: 3px;
  gap: 2px;
  overflow: visible;
}
.dash .bc-seg button {
  background: transparent;
  border-radius: 999px;
}
.dash .bc-seg button + button { border-left: 0; }
.dash .bc-seg button.on {
  background: #bcd5fc;
  color: var(--green);
  font-weight: 650;
}
.dash .bc-tri {
  border-color: rgba(30, 64, 120, 0.12);
  background: rgba(255, 255, 255, 0.3);
}
.dash .bc-tri button { background: transparent; }
.dash .btn.ghost {
  background: rgba(255, 255, 255, 0.48);
  color: #256be0;
  border-color: rgba(30, 64, 120, 0.14);
}
.dash .bc-tools #bc-q {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(30, 64, 120, 0.12);
  box-shadow: none;
}
.dash #bc-acc tr { animation: rise-in 0.28s ease both; }
.dash .bc-seg button,
.dash .bc-tri button { transition: background 0.16s ease, color 0.16s ease; }
.dash .btn { transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease; }
.dash-sheet > .panel + .panel {
  border-top: 1px solid rgba(30, 64, 120, 0.08);
}
.dash-pad { padding: 0 14px 14px; }
.dash .area,
.dash .field input,
.dash .field select,
.dash .form-grid input,
.dash .form-grid select {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(30, 64, 120, 0.12);
  box-shadow: none;
}
.dash .form-grid { padding: 0 8px 4px; }
.dash .page-acc .dash-sheet { padding: 16px 20px 18px; }
.dash .page-acc .hint { padding: 0 0 12px; margin: 0; }
.dash .acc-hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
.dash .acc-work {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  margin-top: 16px;
  border-top: 1px solid rgba(20, 20, 20, 0.06);
}
.dash .acc-tabs {
  background: transparent;
  border-bottom: 0;
  padding: 12px 0 8px;
  gap: 6px;
}
.dash .acc-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  background: #f3f3f1;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
}
.dash .acc-tabs button:hover { background: #ececea; }
.dash .acc-tabs button.on {
  background: #e7e7e4;
  color: var(--ink);
  font-weight: 650;
}
.dash .acc-assets {
  gap: 10px;
  padding: 0;
  border-top: 0;
}
.dash .acc-assets .chip {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  background: #fafaf8;
  border: 1px solid rgba(20, 20, 20, 0.055);
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: none;
}
.dash .acc-assets .chip + .chip { border-left: 1px solid rgba(20, 20, 20, 0.055); }
.dash .acc-run {
  border: 0;
  padding: 0;
  justify-content: flex-start;
}
.dash .pill { background: rgba(255, 255, 255, 0.4); }
.dash .pill.on { background: #dceaff; }
.dash .acc-meta { margin-top: 8px; }
.dash .ctrl-row,
.dash .ctrl-fold {
  background: #fbfbfa;
  border: 1px solid rgba(20, 20, 20, 0.05);
  border-radius: 12px;
  min-height: 44px;
  transition: background 0.16s ease;
}
.dash .ctrl-row { padding: 10px 14px; }
.dash .ctrl-row:hover,
.dash .ctrl-fold-hd:hover { background: #f3f3f1; }
.dash .ctrl-fold > .ctrl-row { border: 0; }
.dash .ctrl-fold .ctrl-sub { border-top-color: rgba(30, 64, 120, 0.08); }
.dash .ctrl-sub-rows { background: transparent; }
.dash .ctrl-fold-meta { color: #3a83f7; }
.dash .ctrl-spec {
  background: rgba(255, 255, 255, 0.22);
  border-top-color: rgba(30, 64, 120, 0.08);
}
.dash .ctrl-modes {
  background: transparent;
  border-right-color: rgba(30, 64, 120, 0.08);
}
.dash .ctrl-mode { color: var(--ink); border-radius: 999px; }
.dash .ctrl-mode:hover { background: #f0f0ee; }
.dash .ctrl-mode.on {
  background: #bcd5fc;
  color: var(--green);
}
.dash .ctrl-art-modes {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.dash .ctrl-art-modes .ctrl-mode {
  height: auto;
  padding: 5px 10px;
}
.dash .ctrl-cust-box {
  padding: 3px 6px 3px 8px;
}
.dash .ctrl-cust-box .bc-cust-num {
  padding: 0 4px 0 0;
  color: var(--ink);
}
.dash .page-acc .run-dock,
.dash .page-acc .run-dock.mini {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(30, 64, 120, 0.08);
}

.acc-hero {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.acc-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 16px;
}
.acc-hero .avatar {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}
.acc-main { flex: 1; min-width: 0; }
.acc-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acc-title .name { line-height: 1.2; }
.acc-hero .sub { margin-top: 4px; }
.acc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  max-width: 100%;
}
.loc-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a83f7;
  flex: 0 0 6px;
}
.num-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.num-chip i {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}
.page-accs {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.dash .shell { min-height: 100vh; }
.page-accs .acc-bar {
  flex: 0 0 auto;
  padding: 12px 20px 8px;
  background: #f4f4f2;
}
.page-accs .acc-bar-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}
.page-accs .acc-bar-hd h2 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 650;
}
.page-accs .acc-bar-hd .acc-count { margin-right: auto; }
.page-accs .acc-filter {
  margin: 8px 0 0;
  padding: 0;
}
.page-accs .acc-cards {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 20px 18px;
}
.page-accs .acc-empty {
  padding: 24px 8px;
  color: var(--muted);
  font-size: 13px;
}
.page-accs .acc-head,
.page-accs .acc-item {
  display: grid;
  grid-template-columns: 28px 40px 76px 48px minmax(96px, max-content) minmax(148px, max-content) minmax(72px, 0.7fr) minmax(110px, 1fr) minmax(92px, 0.9fr) minmax(88px, 0.9fr) minmax(78px, 0.8fr) minmax(78px, 0.8fr) minmax(88px, 0.9fr) minmax(196px, 1.6fr) 52px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.05);
  box-shadow: none;
  white-space: nowrap;
}
.page-accs .acc-head > span,
.page-accs .acc-item > * {
  min-width: 0;
}
.page-accs .acc-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 10px;
  background: #f4f4f2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
.page-accs .acc-item { min-height: 44px; }
.page-accs .acc-item:hover { background: #fff; }
.page-accs .acc-item .user-chip,
.page-accs .acc-item .acc-uid,
.page-accs .acc-item .loc-chip,
.page-accs .acc-item .role-chip,
.page-accs .acc-item .acc-gs,
.page-accs .acc-item .acc-main,
.page-accs .acc-item .acc-time {
  justify-self: start;
  max-width: 100%;
}
.page-accs .acc-item .ico-chip { justify-self: start; }
.page-accs .acc-item .acc-lands { justify-self: start; }
.acc-cards {
  overflow: auto;
  padding: 4px 6px 10px;
}
.acc-head,
.acc-item {
  display: grid;
  grid-template-columns: 28px 40px 76px 48px minmax(96px, max-content) minmax(148px, max-content) minmax(72px, 0.7fr) minmax(110px, 1fr) minmax(92px, 0.9fr) minmax(88px, 0.9fr) minmax(78px, 0.8fr) minmax(78px, 0.8fr) minmax(88px, 0.9fr) minmax(196px, 1.6fr) 52px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  margin: 0 0 6px;
}
.acc-head {
  padding: 2px 12px 6px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
.acc-item,
.node-item,
.ex-item {
  min-height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(30, 64, 120, 0.06);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease;
}
.node-item,
.ex-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 6px;
  padding: 10px 12px;
}
.acc-item:hover,
.node-item:hover,
.ex-item:hover { background: #f3f3f1; }
.acc-item .user-chip,
.acc-item .acc-uid,
.acc-item .loc-chip,
.acc-item .role-chip,
.acc-item .acc-gs,
.acc-item .acc-main,
.acc-item .acc-time {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  box-sizing: border-box;
}
.acc-item .user-chip {
  background: #eef1f6;
  color: var(--ink);
  font-weight: 700;
}
.acc-item .acc-uid {
  justify-self: start;
  max-width: none;
  overflow: visible;
  background: #e8edf4;
  color: #3d4a5c;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.acc-item .acc-uid.is-empty {
  font-weight: 550;
  color: #9aa3ad;
  background: #eef1f4;
}
.acc-item .user-chip:hover { color: var(--blue); }
.acc-item .loc-chip {
  background: #eaf3e6;
  color: #256be0;
  width: auto;
  max-width: 148px;
}
.acc-item .role-chip {
  margin-left: 0;
  justify-self: start;
  background: #f3eee6;
  color: #7a5a32;
}
.acc-item .acc-gs {
  justify-self: start;
  width: auto;
  text-align: left;
  background: #e8eef8;
  color: #3d5a8c;
  font-variant-numeric: tabular-nums;
}
.acc-item .acc-main {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: #7d3d58;
  background: #f4e6ec;
}
.acc-item .acc-main.is-empty {
  font-weight: 550;
  color: #9aa3ad;
  background: #eef1f4;
}
.acc-item .acc-time {
  background: #eef1f4;
  color: #5b6570;
  font-weight: 550;
}
.acc-num {
  width: 100%;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}
.acc-head > span { text-align: left; }
.acc-head > span[data-sort] {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.acc-head > span[data-sort]:hover,
.acc-head > span[data-sort].on {
  color: var(--ink);
}
.acc-head > span[data-sort].on::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  vertical-align: 2px;
}
.acc-head > span[data-sort].asc::after { border-bottom: 4px solid currentColor; }
.acc-head > span[data-sort].desc::after { border-top: 4px solid currentColor; }
.ico-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef1f4;
  color: #5b6570;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  justify-self: end;
}
.ico-chip svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ico-chip i {
  font-style: normal;
  font-weight: 550;
}
.ico-chip b {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ico-water { background: #e7f1fb; color: #2f6cb5; }
.ico-dmd { background: #fff3d6; color: #a87316; }
.ico-gld { background: #f8efd6; color: #a67a1c; }
.ico-land { background: #eef3e6; color: #256be0; }
.ico-plant { background: #dceaff; color: #256be0; }
.ico-ripe { background: #f8eee4; color: #b05a1e; }
.ico-pour { background: #e7f1fb; color: #2f6cb5; }
.ico-chip.hot { background: #fdecee; color: #c62828; }
.ico-chip.hot b { color: #c62828; }
.acc-lands {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
.acc-lands .ico-chip { padding: 0 7px; }
.acc-gs { white-space: nowrap; }
.acc-time { white-space: nowrap; }
.kind-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: #eee;
  color: var(--muted);
}
.kind-chip.kind-new { background: #e8f4ea; color: #256be0; }
.kind-chip.kind-old { background: #eef1f6; color: #3d4a5c; }
.acc-live {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}
.acc-live.on { color: #256be0; }
.acc-filter { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.acc-search,
.acc-sel {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  color: var(--ink);
  font-size: 12px;
}
.acc-search { width: 156px; }
.acc-sel { max-width: 148px; }
.acc-sel-time { max-width: 168px; }
.acc-filter .btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.acc-count {
  font-size: 12px;
  color: var(--muted);
  min-width: 40px;
}
.kind-row {
  display: flex;
  gap: 16px;
  padding: 0 8px 8px;
}
.kind-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}
.acc-item .acc-link,
.ex-item .acc-link {
  margin-left: 0;
  justify-self: center;
  min-width: 56px;
  text-align: center;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(216, 240, 207, 0.7);
}
.acc-tools {
  align-items: center;
  gap: 8px;
}
.pick-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.fmt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 8px 10px;
}
.soft-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px;
}
.soft-field > span {
  color: var(--muted);
  font-size: 12px;
  padding-left: 10px;
}
.soft-field input,
.soft-field select {
  min-height: 42px;
  border-radius: 999px;
}
.soft-area {
  min-height: 240px;
  border-radius: 16px !important;
  line-height: 1.55;
}
.dash .me-pop {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(30, 64, 120, 0.1);
  border-radius: 18px;
}
.dash .me-stats div {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(30, 64, 120, 0.06);
  border-radius: 12px;
}
.dash .me-tabs {
  width: calc(100% - 32px);
  margin: 0 16px 12px;
}
.dash .me-pane input {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 64, 120, 0.12);
  box-shadow: none;
}
.dash .me-out {
  border-top-color: rgba(30, 64, 120, 0.08);
  background: transparent;
}
.dash .me-out:hover { background: rgba(253, 232, 232, 0.55); }
.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef0f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.pill.on { background: #dceaff; color: var(--green); }
.pill.off { background: #f1f1f3; color: var(--muted); }
.acc-assets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid #ececec;
}
.acc-assets .chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 14px 20px 12px;
}
.acc-assets .chip + .chip { border-left: 1px solid #ececec; }
.acc-assets .k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a8a86;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.acc-assets .k svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex: 0 0 13px;
}
.chip-mark {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  opacity: 0.055;
  pointer-events: none;
}
.chip-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chip-val {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.acc-assets b {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.acc-base {
  color: #8e8e93;
  font-size: 12px;
  line-height: 1.3;
}
.acc-base:empty { display: none; }
.acc-delta {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.acc-delta:empty { display: none; }
.acc-delta.up { color: var(--green); }
.acc-delta.down { color: #c45c5c; }
.acc-run {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.acc-run[hidden] { display: none; }
.acc-run b { font-weight: 600; color: var(--ink); }
.acc-ops {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.acc-ops .role-chip,
.acc-ops .dot-pill,
.acc-ops .btn {
  margin: 0;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.acc-ops .role-chip { margin-left: 0; padding: 0 10px; }
.acc-ops .btn { min-width: 56px; padding: 0 12px; }
.acc-work {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.acc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
}
.acc-tabs button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.acc-tabs button:hover { background: #eeeef0; }
.acc-tabs button.on { background: #e8e8ed; font-weight: 650; }
.page.page-acc {
  display: block;
}
.acc-col { width: 100%; min-width: 0; }
.page.page-acc .run-dock,
.page.page-acc .run-dock.mini {
  position: sticky;
  top: calc(var(--top) + 24px);
  right: auto;
  bottom: auto;
  z-index: 2;
  width: 100%;
  height: min(720px, calc(100vh - var(--top) - 64px));
}
.run-dock,
.run-dock.mini {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 308px;
  height: min(420px, 52vh);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(29, 29, 31, 0.16);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.run-dock.mini .ctrl-log-list { display: none; }
.run-dock.mini .ctrl-log-hd { cursor: pointer; }
.run-dock.mini .ctrl-scan { display: block; border-bottom: 0; }
.ctrl-box { padding: 4px 0 0; }
.ctrl-mid {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.ctrl-row.ctrl-sub {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 12px;
}
.ctrl-row.ctrl-sub .ctrl-name { flex: 0 0 auto; }
.ctrl-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctrl-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ctrl-log-pane,
.log-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 460px;
  padding: 4px 2px 8px;
}
.log-scan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.log-scan-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(30, 64, 120, 0.08);
}
.log-scan-item .k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
.log-scan-item .v {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.log-scan-item .v small {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}
.log-scan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 2px 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.log-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.log-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.log-filters button {
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.log-filters button.on {
  background: #bcd5fc;
  color: var(--green);
}
.log-count { color: var(--muted); font-size: 12px; }
.log-list,
.ctrl-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  max-height: min(640px, calc(100vh - 320px));
  padding: 2px 0 8px;
}
.log-empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.log-row {
  display: grid;
  grid-template-columns: 72px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(30, 64, 120, 0.06);
}
.log-row.err {
  background: rgba(255, 236, 234, 0.7);
  border-color: rgba(194, 59, 50, 0.12);
}
.log-t {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.log-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eeeef0;
  color: #5a5a58;
  font-size: 11px;
  font-weight: 700;
}
.log-row.err .log-tag { background: #f8d7d4; color: #b42318; }
.log-row.log-kind-maintask .log-tag,
.log-row.log-kind-newbie .log-tag { background: #bcd5fc; color: #256be0; }
.log-row.log-kind-plant .log-tag,
.log-row.log-kind-harvest .log-tag,
.log-row.log-kind-water .log-tag,
.log-row.log-kind-cul .log-tag,
.log-row.log-kind-art .log-tag,
.log-row.log-kind-cust .log-tag,
.log-row.log-kind-ocust .log-tag,
.log-row.log-kind-speed .log-tag,
.log-row.log-kind-album .log-tag,
.log-row.log-kind-rack .log-tag { background: #ead9c4; color: #6b4a2b; }
.log-row.log-kind-mail .log-tag,
.log-row.log-kind-wheel .log-tag,
.log-row.log-kind-palace .log-tag,
.log-row.log-kind-pearl .log-tag,
.log-row.log-kind-fraud .log-tag,
.log-row.log-kind-pray .log-tag,
.log-row.log-kind-sevenday .log-tag,
.log-row.log-kind-subrwd .log-tag,
.log-row.log-kind-box .log-tag,
.log-row.log-kind-road .log-tag,
.log-row.log-kind-gift .log-tag,
.log-row.log-kind-invite .log-tag,
.log-row.log-kind-fwater .log-tag,
.log-row.log-kind-pass .log-tag,
.log-row.log-kind-dly .log-tag,
.log-row.log-kind-ach .log-tag,
.log-row.log-kind-double .log-tag { background: #f3e6b8; color: #7a5b12; }
.log-m {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.log-row.err .log-m { color: #b42318; }
.log-n {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.ctrl-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #3a83f7;
}
.ctrl-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}
.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.ctrl-name {
  font-weight: 650;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.ctrl-max-lab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted, #6b7280);
  white-space: nowrap;
}
.ctrl-max {
  width: 3.4em;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 12px;
}
.ctrl-art-modes {
  display: inline-flex;
  gap: 4px;
  margin-left: 0;
  flex: 0 0 auto;
}
.ctrl-art-modes .ctrl-mode {
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
}
.ctrl-art-pick,
.bc-art-pick {
  height: 26px;
  max-width: 10em;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 12px;
  background: #fff;
}
.bc-art-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-size: 12px;
  color: var(--ink);
}
.ctrl-row .btn { min-width: 56px; }
.sw {
  appearance: none;
  position: relative;
  width: 36px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e4e6ea;
  cursor: pointer;
  flex: 0 0 36px;
  transition: background 0.22s ease;
}
.sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease;
}
.sw.on {
  background: #3a83f7;
}
.sw.on::after {
  transform: translateX(14px);
}
.sw:disabled {
  opacity: 0.45;
  cursor: default;
}
.ctrl-fold {
  border: 1px solid rgba(20, 20, 20, 0.05);
  border-radius: 10px;
  background: #fbfbfa;
  overflow: hidden;
}
.ctrl-fold.open { overflow: visible; }
.ctrl-fold > .ctrl-row { border: 0; border-radius: 0; }
.ctrl-fold-hd { cursor: pointer; user-select: none; }
.ctrl-fold-hd:hover { background: #fafaf8; }
.ctrl-caret {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #8a7a62;
  border-bottom: 1.8px solid #8a7a62;
  transform: rotate(-45deg);
  transition: transform .18s ease;
  flex: 0 0 8px;
}
.ctrl-fold.open .ctrl-caret { transform: rotate(45deg); }
.ctrl-fold-tip {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f2f4;
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}
.ctrl-fold-tip.tone-go {
  color: #8a4b00;
  background: #ffe08a;
  box-shadow: inset 0 0 0 1px #f0b429;
}
.ctrl-fold-tip.tone-ok {
  color: #256be0;
  background: #edf4ff;
  box-shadow: inset 0 0 0 1px #bcd5fc;
}
.ctrl-fold-tip.tone-idle {
  color: #6e6e73;
  background: #f2f2f4;
}
.ctrl-fold-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}
.ctrl-fold.open .ctrl-fold-body { max-height: 1400px; overflow: visible; }
.ctrl-nest {
  margin: 0 4px 2px 22px;
  padding: 0 0 4px 12px;
  border-left: 2px solid rgba(20, 20, 20, 0.08);
}
.ctrl-row.ctrl-plain {
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 40px;
  background: transparent;
  border: 0;
}
.ctrl-time {
  height: 26px;
  min-width: 88px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 6px;
  background: #fff;
  padding: 0 8px;
  color: var(--ink);
  font-size: 13px;
}
#ctrl-reconn-min.ctrl-time {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  height: 26px;
  padding: 0 6px;
  text-align: center;
}
.ctrl-off-to {
  color: var(--muted);
  font-size: 12px;
}
.ctrl-off-range {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.ctrl-off-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 2px 4px 8px 0;
}
.ctrl-off-del,
#ctrl-off-add {
  height: 32px;
  min-width: 64px;
  padding: 0 10px;
}
.ctrl-groups .ctrl-fold {
  border-radius: 12px;
}
.ctrl-groups .ctrl-fold-hd {
  min-height: 48px;
}
.ctrl-groups .ctrl-fold-hd .ctrl-name {
  font-size: 14px;
}
.ctrl-groups .ctrl-fold-meta .ctrl-caret { transform: rotate(45deg); }
.ctrl-groups .ctrl-fold.open .ctrl-fold-meta .ctrl-caret { transform: rotate(-135deg); }
.ctrl-groups .ctrl-spec {
  border-top: 1px solid var(--line);
}
.ctrl-fold-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3a83f7;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  flex: 0 0 auto;
}
.ctrl-fold-meta .ctrl-caret { margin-left: 2px; }
.ctrl-fold-live {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.ctrl-fold-live.tone-go { color: #875c13; }
.ctrl-fold-live.tone-ok { color: #256be0; }
.ctrl-fold-live.tone-idle { color: #647083; }
.ctrl-sub-rows { background: rgba(255, 255, 255, 0.55); overflow: visible; }
.ctrl-fold .ctrl-sub {
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(30, 64, 120, 0.06);
  overflow: visible;
}
.ctrl-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border: 1px solid #d3d5d8;
  border-radius: 50%;
  color: #9aa0a6;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  flex: 0 0 14px;
  z-index: 2;
}
.ctrl-help:hover {
  z-index: 20;
  color: #6e7378;
  border-color: #b4b8bc;
}
.ctrl-help:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: max-content;
  max-width: 220px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(70, 74, 78, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.bc-group {
  margin: 6px 12px;
  padding: 2px 0 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(30, 64, 120, 0.06);
}
.bc-group-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 2px;
}
.bc-group-hd .lead { font-size: 14px; font-weight: 650; }
.bc-group .bc-flag {
  margin: 4px 8px;
  background: rgba(255, 255, 255, 0.55);
}
.ctrl-spec {
  border-top: 1px solid var(--line);
  background: #fafafb;
}
.ctrl-spec-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 0;
}
.ctrl-modes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.ctrl-mode {
  border: 0;
  background: transparent;
  color: #5a4a32;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.ctrl-mode:hover { background: #f3f1ea; }
.ctrl-mode.on { background: #256be0; color: #fff; }
.ctrl-spec-main { padding: 12px 14px; min-width: 0; }
.ctrl-min {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.ctrl-min img { width: 48px; height: 48px; object-fit: contain; }
.ctrl-min b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.ctrl-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.ctrl-color {
  min-width: 52px;
  border: 1px solid var(--line);
  background: #fff;
  color: #5a4a32;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.ctrl-color.on { background: #256be0; color: #fff; border-color: #256be0; }
.ctrl-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ctrl-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6e2d8;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  text-align: left;
}
.ctrl-pick i {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1.5px solid #c9c3b6;
  border-radius: 4px;
  background: #fff;
}
.ctrl-pick.on { border-color: #256be0; background: #f3faf5; }
.ctrl-pick.on i { background: #256be0; border-color: #256be0; box-shadow: inset 0 0 0 2px #fff; }
.ctrl-pick img { width: 32px; height: 32px; object-fit: contain; flex: 0 0 32px; }
.ctrl-pick-n { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctrl-pick-c { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ctrl-log-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  font-weight: 650;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
}
.ctrl-log-tog {
  border: 0;
  background: #f3f3f5;
  color: var(--muted);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ctrl-log-tog:hover { background: #e8e8ed; color: var(--ink); }
.ctrl-scan {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 14px 11px;
  background: linear-gradient(180deg, #fff8e8 0%, #fff3d4 100%);
  border-bottom: 1px solid #efd7a2;
}
.ctrl-scan.err { background: #fff1f0; border-bottom-color: #f0c2be; }
.ctrl-scan-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ctrl-scan-mark {
  flex: 0 0 auto;
  background: #256be0;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.ctrl-scan.err .ctrl-scan-mark { background: #c23b32; }
.ctrl-scan-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.ctrl-scan-n {
  background: #fff;
  border: 1px solid #efd7a2;
  color: #6a4a14;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ctrl-scan-n b { font-weight: 750; color: #1d1d1f; }
.ctrl-scan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  color: #8a5a18;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ctrl-scan-m { margin-top: 6px; font-size: 13px; color: var(--ink); }
.ctrl-scan.err .ctrl-scan-m { color: var(--red); }
.run-dock .ctrl-log-list {
  flex: 1;
  max-height: none;
  overflow: auto;
  padding: 8px 0;
}
.ctrl-log-empty { padding: 16px 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ctrl-log-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  padding: 7px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.ctrl-log-item + .ctrl-log-item { border-top: 1px solid #ececec; }
.ctrl-log-t { color: var(--muted); font-variant-numeric: tabular-nums; }
.ctrl-log-m { color: var(--ink); }
.ctrl-log-item.err .ctrl-log-m { color: var(--red); }
.ctrl-log-num {
  color: #8a5a18;
  background: #fff3d6;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 650;
}
.acc-work.is-off .acc-tabs button { opacity: 0.55; }
.acc-need-on { padding: 28px 8px; }
.acc-pane { min-height: 0; padding: 4px 0 0; }
.acc-pane.farm-on { padding: 0; background: #e7eec8; }
.acc-empty { color: var(--muted); font-size: 14px; }
.farm-wrap { position: relative; }
.farm-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 16px 0;
}
.farm-meta .pill { background: rgba(255,255,255,.86); box-shadow: 0 1px 4px rgba(40,50,20,.08); }
.farm-note {
  margin: 0;
  padding: 8px 16px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b5420;
  font-size: 13px;
  line-height: 1.6;
}
.farm-note b {
  display: inline-block;
  margin-right: 8px;
  color: #9a6a12;
  font-weight: 700;
}
.farm-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 2px 0;
  width: 100%;
  padding: 8px 10px 8px;
  box-sizing: border-box;
}
.farm-plot {
  position: relative;
  width: 100%;
  height: 104px;
  pointer-events: auto;
  cursor: pointer;
}
.farm-plot.on { outline: 0; }
.farm-pop {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  min-width: 156px;
  max-width: min(240px, calc(100vw - 16px));
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(29, 29, 31, 0.16);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  white-space: nowrap;
}
.farm-pop b { display: block; font-size: 13px; margin-bottom: 2px; }
.farm-pop .farm-pop-cd { color: #8a5a18; font-weight: 650; }
.farm-pop .farm-pop-ok { color: var(--green); font-weight: 650; }
.farm-pop .farm-pop-dry { color: #1a7aad; font-weight: 650; }
.farm-plot.pad { visibility: hidden; }
.farm-soil {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 72px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 30%, #f3e0b6 0%, #e2c48a 42%, #c9a15e 78%, #b48a4a 100%);
  box-shadow: inset 0 1px 0 #f6e7c4, 0 3px 0 #9a7340;
}
.farm-plot.empty .farm-soil {
  background:
    radial-gradient(ellipse at 50% 28%, #efe0b4 0%, #d7b572 48%, #c49a52 100%);
}
.farm-plot.locked .farm-soil {
  background:
    radial-gradient(ellipse at 50% 28%, #efe0b4 0%, #d7b572 48%, #c49a52 100%);
}
.farm-lock {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  color: #7a5a28;
  background: rgba(255,248,220,.86);
  border-radius: 8px;
  padding: 1px 5px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(80,50,10,.12);
}
.farm-flower {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 84px;
  height: 86px;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 2px 1px rgba(80,60,20,.16));
}
.farm-plot.water .farm-soil::after {
  content: "";
  position: absolute;
  left: 58%;
  top: 28%;
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: #6ec8ff;
  transform: rotate(-35deg);
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.acc-pane.bag-on { padding: 0; }
.bag-wrap { padding: 0 0 12px; }
.bag-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 16px 0;
}
.bag-tab {
  border: 0;
  background: #f3eee4;
  color: #6b5a3a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.bag-tab.on { background: #256be0; color: #fff; }
.bag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  padding: 14px 16px 8px;
}
.bag-cell {
  position: relative;
  min-height: 112px;
  padding: 10px 8px 8px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid #eadfcb;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(80,60,20,.06);
  text-align: center;
}
.bag-cell.c1 { border-color: #c8d4c0; }
.bag-cell.c2 { border-color: #8eb7d8; }
.bag-cell.c3 { border-color: #c9a4e0; }
.bag-cell.c4 { border-color: #e0b36a; }
.bag-cell.c5 { border-color: #e08a6a; }
.bag-cell img {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  object-fit: contain;
}
.bag-qty {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(47, 107, 70, .92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}
.bag-name {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: #3d3426;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-pane.mail-on { padding: 0; }
.mail-wrap { padding: 0 0 12px; }
.mail-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
}
.mail-list { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.mail-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.mail-row.unread { border-color: #256be0; }
.mail-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mail-hd b { font-size: 13px; }
.mail-its { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mail-it {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #3d3426;
}
.mail-it img { width: 22px; height: 22px; object-fit: contain; }
.acc-pane.shop-on { padding: 0; }
.shop-wrap { padding: 0 0 12px; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  padding: 0 12px;
}
.shop-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  text-align: center;
}
.shop-cell img { width: 48px; height: 48px; object-fit: contain; }
.shop-cell .bag-name { font-size: 12px; line-height: 1.3; }
.shop-price { font-size: 12px; color: #666; }
.shop-cell.sold { opacity: 0.45; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.panel h2 {
  margin: 0;
  padding: 16px 18px 8px;
  font-size: 15px;
  font-weight: 650;
}
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.row {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
a.row { color: inherit; }
.row:disabled { opacity: 0.4; cursor: default; }
.row + .row { border-top: 1px solid #ececec; }
.row .lead { flex: 1; }
.row .sub, .row .val { color: var(--muted); }
.row:hover { background: #f7f7f8; }

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 16px;
}
.field + .field { border-top: 0; }
/* 基础输入框只是兜底：用 :where 把优先级降到 0，各页自己的输入框样式才能生效。 */
:where(.field input, .field textarea, .field select,
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
textarea, select, .area) {
  flex: 1;
  width: 100%;
  border: 1px solid #d6dfea;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 40px;
  min-width: 0;
  resize: vertical;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
:where(.field textarea, textarea, .area) { min-height: 120px; }
.area {
  width: 100%;
  min-height: 220px;
  font: inherit;
}
.field input::placeholder, .field textarea::placeholder,
input::placeholder, textarea::placeholder {
  color: #8e8e93;
}
:where(.field input, .field textarea, .field select, input, textarea, select, .area):focus {
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.14);
}
.ok { color: var(--green); font-size: 13px; }
.err:empty, .ok:empty, #acc-msg:empty { display: none; margin: 0; min-height: 0; }

.toast-box {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  --toast-accent: #3a83f7;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
  pointer-events: auto;
  animation: toast-in 0.18s ease;
}
.toast.ok { border-left: 4px solid var(--green); }
.toast.err { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--blue); }
.toast.out { opacity: 0; transform: translateX(16px); transition: 0.22s ease; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 550;
  font-size: 13px;
  padding: 5px 12px;
  min-height: 32px;
  border-radius: 9px;
  cursor: pointer;
}
.btn:hover { background: var(--blue-hover); }
.btn:disabled { opacity: 0.45; }
.btn.plain { background: transparent; color: var(--blue); font-weight: 500; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.55);
  color: #256be0;
  border: 1px solid rgba(30, 64, 120, 0.14);
}
.btn.danger { background: transparent; color: var(--red); }
.btn.sm { padding: 3px 9px; font-size: 12px; border-radius: 8px; min-height: 26px; }
.btn.wide { width: 100%; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.toolbar .btn { min-width: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}
.plot {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: var(--ink);
  padding: 8px 4px;
  cursor: pointer;
}
.plot:hover { border-color: #b0b0b5; }
.plot.s0 { color: var(--muted); }
.plot.s1 { background: #eaf6ee; border-color: #bcd5fc; }
.plot.s2 { background: #fff6d8; border-color: #f0e0a0; }
.plot b { display: block; font-size: 15px; font-weight: 650; }

.hint { color: var(--muted); font-size: 13px; margin: 0 2px 8px; }

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid #ececec;
}
.page-wide .panel {
  overflow-x: auto;
}
#acc-list {
  overflow-x: auto;
}
.table-fit {
  width: max-content;
  min-width: 100%;
}
.table-fit th,
.table-fit td {
  white-space: nowrap;
  padding: 13px 18px;
  font-size: 14px;
}
.table th { color: var(--muted); font-weight: 550; font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #f7f7f8; }
.table a.acc-link { color: var(--blue); font-weight: 600; }
.table a.acc-link:hover { text-decoration: underline; }
.st-on { color: var(--green); font-weight: 600; }
.st-off { color: var(--muted); }
.lat { font-weight: 650; font-variant-numeric: tabular-nums; }
.lat-ok { color: var(--green); }
.lat-slow { color: #b8860b; }
.lat-bad { color: var(--red); }
.lat-wait { color: var(--muted); font-weight: 550; }

.auth-body,
.home-body {
  position: relative;
  overflow: hidden;
  background: #f4f4f2;
}
.auth-body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page.auth-body,
.admin-auth-page.auth-body {
  display: block;
  overflow: auto;
}
.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wash i {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  will-change: transform;
}
.wash i:nth-child(1) {
  width: 460px;
  height: 460px;
  left: -120px;
  top: -80px;
  background: #ecece8;
  animation: wash-drift 16s ease-in-out infinite alternate;
}
.wash i:nth-child(2) {
  width: 380px;
  height: 380px;
  right: -90px;
  top: 8%;
  background: #f3f0ee;
  opacity: 0.1;
  animation: wash-drift 21s ease-in-out infinite alternate-reverse;
}
.wash i:nth-child(3) {
  width: 520px;
  height: 340px;
  left: 28%;
  bottom: -120px;
  background: #efefe9;
  animation: wash-drift 18s ease-in-out infinite alternate;
}
@keyframes wash-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(48px, -36px) scale(1.1); }
  100% { transform: translate(-32px, 40px) scale(0.94); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.auth-box {
  position: relative;
  z-index: 1;
  width: min(400px, calc(100% - 48px));
  padding: 36px 32px 28px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.7);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(30, 64, 120, 0.08);
  animation: rise-in 0.7s ease both;
}
.auth-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.auth-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.auth-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.auth-body .auth-form input:not([type=checkbox]):not([type=radio]) {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  background: #f5f5f7;
  box-shadow: none;
}
.auth-body .auth-form input:not([type=checkbox]):not([type=radio]):focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 138, 85, 0.14);
}
.auth-pass { position: relative; }
.auth-pass input { padding-right: 44px; }
.auth-eye {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='1.8'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='2.5'/></svg>") center / 18px no-repeat;
  cursor: pointer;
}
.auth-eye.on {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='1.8'><path d='M3 3l18 18'/><path d='M10.6 10.6A2.5 2.5 0 0 0 13.4 13.4'/><path d='M6.5 6.8C4.2 8.3 2.7 10.6 2 12c1 2.2 4.2 7 10 7 1.7 0 3.2-.4 4.5-1'/><path d='M9.9 5.2C10.6 5.1 11.3 5 12 5c5.8 0 9 4.8 10 7-.4.9-1.1 2.1-2.2 3.3'/></svg>");
}
.auth-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 18px;
  font-size: 13px;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  cursor: pointer;
}
.auth-remember input { width: 14px; height: 14px; accent-color: var(--blue); }
.auth-extra a { color: var(--blue); }
.auth-go {
  border-radius: 11px;
  min-height: 40px;
  font-size: 14px;
}

.gate-body {
  min-height: 100%;
  background: #f4f4f2;
}
.gate-page {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}
.gate-brand {
  background:
    radial-gradient(700px 360px at 12% 0%, #efefe9 0%, transparent 55%),
    #f6f6f4;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 80px;
}
.gate-hero-ico {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 28px;
  object-fit: cover;
  display: block;
}
.gate-brand h1 {
  margin: 0 0 16px;
  font-size: 64px;
  letter-spacing: -1.4px;
  font-weight: 650;
  line-height: 1.1;
}
.gate-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
  max-width: 520px;
}
.gate-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background:
    radial-gradient(520px 280px at 100% 0%, #f3f0ee 0%, transparent 50%),
    #f4f4f2;
}
.gate-card {
  width: min(300px, 100%);
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 14px;
  box-shadow: var(--shadow);
}
.gate-card .field {
  min-height: 46px;
  padding: 4px 0;
}
.gate-card .btn.wide { margin-top: 6px; }
.gate-card .btn.plain { display: block; text-align: center; padding: 8px 0 2px; }
.home-body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.home-acts { display: flex; gap: 8px; }
.home-acts .btn { min-width: 72px; }
.home-hero {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 48px 32px 56px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: rise-in 0.75s ease both;
}
.home-kicker {
  margin: 0 0 12px;
  color: #a1a1a6;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.home-hero h1 {
  margin: 0 0 28px;
  font-size: 44px;
  letter-spacing: -0.8px;
  font-weight: 650;
  color: var(--ink);
}
.home-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  text-align: left;
}
.home-cards div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 132px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.home-cards b { display: block; margin-bottom: 8px; font-size: 16px; }
.home-cards span { color: var(--muted); font-size: 13px; }

.gate-form h2 { margin: 0 0 16px; font-size: 24px; }
.gate-form .lead { margin: 0 0 18px; color: var(--muted); }
.gate-ava {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.gate-ava img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  background: #bcd5fc;
}
.gate-ava span { color: var(--muted); font-size: 13px; }
.err { color: var(--red); font-size: 13px; margin: 10px 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  padding: 4px 0 8px;
}
.search-bar {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  align-items: center;
}
.search-bar input, .search-bar select {
  flex: 1;
  border: 1px solid #d6dfea;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 40px;
  font: inherit;
  background: #ffffff;
  box-shadow: none;
}
.ops { display: flex; flex-wrap: wrap; gap: 6px; }
.ops .btn { padding: 4px 10px; font-size: 13px; }
.qr { padding: 16px; text-align: center; }
.qr img { width: 220px; height: 220px; background: #fff; border-radius: 12px; }
.code-out {
  margin: 0 16px 16px;
  padding: 12px;
  background: #f7f7f8;
  border-radius: 10px;
  white-space: pre-wrap;
  font-size: 13px;
}
.pg[hidden] { display: none; }

@media (max-width: 980px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats.stats-row { display: flex; flex-wrap: nowrap; }
  .split { grid-template-columns: 1fr; }
  .bc-wrap { grid-template-columns: 1fr; }
  .dash .bc-list { border-right: 0; border-bottom: 1px solid rgba(30, 64, 120, 0.08); }
  .home-cards, .gate-page { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 32px; }
  .gate-brand, .gate-form { padding: 36px 24px; }
  .ctrl-box { padding: 14px 12px 18px; }
  .page.page-acc { display: block; width: min(1600px, 100%); }
  .page.page-acc .run-dock,
  .page.page-acc .run-dock.mini {
    position: fixed;
    right: 12px;
    bottom: 16px;
    width: min(308px, calc(100vw - 24px));
    height: min(360px, 46vh);
  }
  .log-scan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-row { grid-template-columns: 64px 52px minmax(0, 1fr) auto; }
  .ctrl-rows { display: flex; flex-direction: column; }
  .ctrl-spec-body { grid-template-columns: 1fr; }
  .ctrl-modes { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .ctrl-picks { grid-template-columns: 1fr; }
  .run-dock {
    right: 12px;
    bottom: 16px;
    width: min(308px, calc(100vw - 24px));
    height: min(360px, 46vh);
  }
  .run-dock.mini { right: 0; bottom: 18%; width: auto; height: auto; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .page { padding: 20px 18px 40px; }
  .gate-page { grid-template-columns: 1fr; }
  .gate-brand { padding: 36px 24px 8px; border-right: 0; }
  .gate-brand h1 { font-size: 40px; }
  .gate-brand p { font-size: 18px; }
  .gate-form { padding: 12px 24px 40px; }
}

@media (max-width: 760px) {
  .side {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
  }
  body.nav-open .side { transform: none; }
  body.nav-open .dim { display: block; }
  .menu-btn { display: inline-flex; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .top { padding: 0 14px; }
  .acc-top { flex-wrap: wrap; }
  .acc-ops { width: 100%; margin-left: 66px; }
  .acc-ops .btn { flex: 1; }
  .ctrl-row.ctrl-sub {
    grid-template-columns: minmax(0, 1fr) 36px;
  }
  .ctrl-row.ctrl-sub .ctrl-name { grid-column: 1; grid-row: 1; }
  .ctrl-row.ctrl-sub .sw { grid-column: 2; grid-row: 1; }
  .ctrl-row.ctrl-sub .ctrl-mid {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .acc-assets { grid-template-columns: 1fr; }
  .acc-assets .chip + .chip { border-left: 0; }
  .acc-run { flex-wrap: wrap; }
  .ctrl-picks { grid-template-columns: 1fr; }
}

.hy-pop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 29, 31, 0.28);
}
.hy-pop[hidden] { display: none !important; }
.hy-pop-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 22px 16px;
}
.hy-pop-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}
.hy-pop-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.hy-pop-acts {
  display: grid;
  gap: 10px;
}
.hy-pop-cancel {
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .wash i, .auth-box, .home-hero, .home-acts .btn,
  .dash .hero, .dash .stat, .dash .bc-wrap, .dash #bc-acc tr { animation: none; transition: none; }
}

/* Console workspace ------------------------------------------------------ */
.console-page {
  --console-bg: #f4f7fb;
  --console-surface: #ffffff;
  --console-ink: #182033;
  --console-muted: #6f7886;
  --console-line: #e0e7f0;
  --console-soft: #f5f8fc;
  --console-blue: #3a83f7;
  --console-blue-dark: #256be0;
  --console-rail: #ffffff;
  --console-amber: #c9872e;
  background: var(--console-bg);
  color: var(--console-ink);
  overflow: hidden;
}

.console-page * {
  letter-spacing: 0 !important;
}

.console-page .app {
  height: 100dvh;
  min-height: 680px;
  background: var(--console-bg);
}

.console-page .side {
  width: 248px;
  flex-basis: 248px;
  height: 100dvh;
  padding: 24px 16px 18px;
  color: #eef5f0;
  background: var(--console-rail);
  border-right: 0;
  backdrop-filter: none;
}

.console-page .brand {
  min-height: 52px;
  padding: 0 10px 22px;
  gap: 12px;
  color: #ffffff;
}

.console-page .brand::before {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.console-page .brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.console-page .brand-copy strong {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.console-page .brand-copy small {
  color: rgba(235, 244, 238, 0.55);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.console-page .menu::before {
  content: "导航";
  display: block;
  padding: 8px 12px 9px;
  color: rgba(235, 244, 238, 0.42);
  font-size: 11px;
  font-weight: 650;
}

.console-page .menu {
  gap: 3px;
}

.console-page .menu a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  color: rgba(243, 248, 245, 0.72);
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease;
}

.console-page .menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.console-page .menu a.on {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 650;
}

.console-page .menu a.on::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: #3a83f7;
}

.console-page .menu svg {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.console-page .shell {
  height: 100dvh;
  overflow: hidden;
}

.console-page .top {
  height: 68px;
  flex: 0 0 68px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--console-line);
  backdrop-filter: blur(14px);
}

.console-page .top-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.console-page .top-heading > span {
  color: var(--console-muted);
  font-size: 10px;
  font-weight: 700;
}

.console-page .top h1 {
  color: var(--console-ink);
  font-size: 19px;
  font-weight: 720;
}

.console-page .me-face {
  width: 38px;
  height: 38px;
  background: #e7f0ff;
  box-shadow: 0 0 0 1px var(--console-line);
}

.console-page .page {
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px 26px 26px;
  overflow: hidden;
}

.console-overview {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 116px;
  background: var(--console-surface);
  border: 1px solid var(--console-line);
  border-radius: 8px;
  overflow: hidden;
}

.console-page .console-identity {
  min-width: 0;
  margin: 0;
  padding: 20px 22px;
  gap: 13px;
  background: #f8faff;
  border: 0;
  border-right: 1px solid var(--console-line);
  border-radius: 0;
  box-shadow: none;
}

.console-page .console-identity .avatar {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  background: #e7f0ff;
  box-shadow: 0 0 0 1px #d6e5ff;
}

.console-page .identity-copy {
  min-width: 0;
}

.console-page .identity-label {
  display: block;
  margin-bottom: 3px;
  color: var(--console-muted);
  font-size: 11px;
  font-weight: 600;
}

.console-page .hero .name {
  overflow: hidden;
  color: var(--console-ink);
  font-size: 19px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-page .workspace-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-left: auto;
  padding-top: 4px;
  color: var(--console-muted);
  font-size: 11px;
  white-space: nowrap;
}

.console-page .workspace-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a83f7;
  box-shadow: 0 0 0 3px #e4efff;
}

.console-page .stats.stats-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
}

.console-page .stats-row .stat {
  --stat-accent: #3a83f7;
  position: relative;
  min-width: 0;
  padding: 23px 15px 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.console-page .stats-row .stat + .stat {
  border-left: 1px solid #edf1ee;
}

.console-page .stats-row .stat::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--stat-accent);
}

.console-page .stats-row .stat-online,
.console-page .stats-row .stat-ready { --stat-accent: #256be0; }
.console-page .stats-row .stat-offline { --stat-accent: #929b96; }
.console-page .stats-row .stat-water { --stat-accent: #398aa1; }
.console-page .stats-row .stat-ingot { --stat-accent: #8668a6; }
.console-page .stats-row .stat-coin { --stat-accent: var(--console-amber); }
.console-page .stats-row .stat-planted { --stat-accent: #b7684c; }

.console-page .stats-row .stat .k {
  padding-right: 12px;
  color: var(--console-muted);
  font-size: 11px;
  font-weight: 600;
}

.console-page .stats-row .stat .v {
  margin-top: 10px;
  overflow: hidden;
  color: var(--console-ink);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-page .console-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(590px, 1.35fr);
  gap: 14px;
  align-items: stretch;
  animation: none;
}

.console-page .workspace-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--console-surface);
  border: 1px solid var(--console-line);
  border-radius: 8px;
  box-shadow: none;
}

.console-page .bc-list {
  border-right: 1px solid var(--console-line);
  border-bottom: 1px solid var(--console-line);
}

.console-page .workspace-head {
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--console-line);
}

.console-page .workspace-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.console-page .workspace-index {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #276cca;
  background: #e7f0ff;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.console-page .workspace-title h2,
.console-page .panel .workspace-title h2 {
  margin: 0;
  padding: 0;
  color: var(--console-ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
}

.console-page .workspace-title > div > span {
  display: block;
  max-width: 220px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--console-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-page .picked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--console-line);
  border-radius: 6px;
  color: var(--console-muted);
  background: var(--console-soft);
  font-size: 11px;
  white-space: nowrap;
}

.console-page .picked-badge strong {
  color: var(--console-blue-dark);
  font-size: 12px;
}

.console-page .bc-tools {
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: #fbfcfb;
  border-bottom: 1px solid var(--console-line);
}

.console-page .bc-tools #bc-q {
  flex: 1 1 180px;
  min-width: 110px;
  min-height: 36px;
  height: 36px;
  padding: 7px 11px;
  border: 1px solid #d7e1ed;
  border-radius: 6px;
  color: var(--console-ink);
  background: #ffffff;
  box-shadow: none;
  font-size: 12px;
}

.console-page .bc-tools #bc-q:focus {
  border-color: #78aafc;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.14);
}

.console-page .bc-seg {
  flex: 0 0 auto;
  padding: 2px;
  gap: 1px;
  overflow: visible;
  border: 1px solid var(--console-line);
  border-radius: 6px;
  background: #f1f4f8;
}

.console-page .bc-seg button {
  min-height: 29px;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  color: var(--console-muted);
  background: transparent;
  font-size: 11px;
}

.console-page .bc-seg button + button {
  border-left: 0;
}

.console-page .bc-seg button.on {
  color: var(--console-ink);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(22, 49, 39, 0.1);
  font-weight: 650;
}

.console-page .bc-check {
  flex: 0 0 auto;
  color: var(--console-muted);
  font-size: 11px;
  white-space: nowrap;
}

.console-page .bc-check input,
.console-page .bc-pick input {
  width: 15px;
  height: 15px;
  accent-color: var(--console-blue);
}

.console-page .workspace-scroll {
  min-height: 0;
  scrollbar-color: #bac7d8 transparent;
  scrollbar-width: thin;
}

.console-page #bc-acc {
  max-height: none;
  flex: 1 1 auto;
  overflow-y: auto;
}

.console-page .bc-item {
  min-height: 54px;
  margin: 0;
  padding: 10px 16px;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #edf1ee;
  border-radius: 0;
  background: #ffffff;
  animation: none;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

.console-page .bc-item:hover {
  background: #f6f9fd;
}

.console-page .bc-item.bc-cur {
  background: #edf4ff;
  border-color: #d9e7fc;
  box-shadow: inset 3px 0 0 var(--console-blue);
}

.console-page .dot-pill {
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 10px;
}

.console-page .dot-pill.on {
  color: #256be0;
  background: #edf4ff;
}

.console-page .dot-pill.off {
  color: #6f7886;
  background: #f1f4f8;
}

.console-page .user-chip {
  min-width: 0;
  overflow: hidden;
  color: var(--console-ink);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-page .role-chip {
  max-width: 42%;
  margin-left: auto;
  overflow: hidden;
  padding: 3px 0;
  color: var(--console-muted);
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  text-overflow: ellipsis;
}

.console-page .flags-head {
  align-items: center;
}

.console-page .bc-presets {
  flex-wrap: nowrap;
  gap: 4px;
  padding: 0;
}

.console-page .btn {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 6px;
  background: var(--console-blue);
  font-size: 12px;
  font-weight: 650;
}

.console-page .btn:hover {
  background: var(--console-blue-dark);
}

.console-page .btn.ghost {
  color: #4e5969;
  background: #ffffff;
  border: 1px solid #d8e1ec;
}

.console-page .btn.ghost:hover {
  color: var(--console-blue-dark);
  background: #f2f6fd;
  border-color: #a8c8fb;
}

.console-page .btn.sm {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
}

.console-page #bc-rows {
  max-height: none;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 0 10px;
  border-top: 0;
  background: #fbfcfe;
}

.console-page .bc-group {
  margin: 0 12px 10px;
  padding: 0;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.console-page .bc-group + .bc-group {
  padding-top: 0;
  border-top: 1px solid #e1e7ef;
}

.console-page .bc-group.open {
  border-color: #b9d2f7;
  box-shadow: 0 5px 16px rgba(58, 131, 247, 0.06);
}

.console-page .bc-group-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px;
  cursor: pointer;
  user-select: none;
}

.console-page .bc-group-hd:hover {
  background: #f6f9fd;
}

.console-page .bc-group-hd .lead {
  color: #283447;
  font-size: 13px;
  font-weight: 650;
}

.console-page .bc-group-hd .ctrl-caret {
  margin-left: 8px;
  transform: rotate(45deg);
}

.console-page .bc-group.open .bc-group-hd .ctrl-caret {
  transform: rotate(-135deg);
}

.console-page .bc-group-body {
  display: none;
  padding: 0 10px 10px;
}

.console-page .bc-group.open .bc-group-body {
  display: block;
}

.console-page .bc-group .bc-flag {
  margin: 0 0 6px;
  padding: 9px 10px;
  gap: 7px;
  min-height: 44px;
  border: 1px solid #e5eaf1;
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.console-page .bc-group .bc-flag:last-child {
  margin-bottom: 0;
}

.console-page .bc-group .bc-flag:hover {
  background: #ffffff;
  border-color: #c9d6e7;
}

.console-page .bc-flag-top {
  min-height: 30px;
}

.console-page .bc-flag .lead {
  min-width: 0;
  color: var(--console-ink);
  font-size: 12px;
  font-weight: 620;
}

.console-page .ctrl-help {
  margin-left: 5px;
  color: #8a948e;
}

.console-page .bc-tri {
  min-width: 126px;
  padding: 2px;
  gap: 1px;
  border-radius: 6px;
  background: #eff3f8;
}

.console-page .bc-tri button {
  min-width: 39px;
  min-height: 27px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #737d77;
  font-size: 10px;
}

.console-page .bc-tri button[data-v="keep"].on {
  color: #46504a;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(22, 49, 39, 0.1);
}

.console-page .bc-tri button[data-v="1"].on {
  color: #256be0;
  background: #dceaff;
}

.console-page .bc-tri button[data-v="0"].on {
  color: #a34c4c;
  background: #fae6e4;
}

.console-page .bc-extra {
  padding-top: 1px;
}

.console-page .bc-colors button {
  padding: 4px 8px;
  border-radius: 5px;
  background: #f5f7f5;
  font-size: 10px;
}

.console-page .bc-colors button.on {
  color: #256be0;
  background: #dceaff;
}

.console-page .bc-cust-num {
  height: 29px;
  padding-right: 8px;
  font-size: 10px;
}

.console-page .bc-actions {
  flex: 0 0 auto;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid var(--console-line);
}

.console-page .bc-actions .btn {
  min-width: 108px;
}

.console-page button:focus-visible,
.console-page a:focus-visible,
.console-page input:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: 2px;
}

@media (max-width: 1380px) {
  .console-page .side {
    width: 224px;
    flex-basis: 224px;
  }
  .console-overview {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .console-page .console-identity {
    padding: 18px;
  }
  .console-page .workspace-state {
    display: none;
  }
  .console-page .stats.stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .console-page .stats-row .stat {
    padding: 15px 14px 12px;
  }
  .console-page .stats-row .stat:nth-child(5) {
    border-left: 0;
  }
  .console-page .stats-row .stat:nth-child(n + 5) {
    border-top: 1px solid #edf1ee;
  }
  .console-page .stats-row .stat::before {
    top: 13px;
  }
  .console-page .stats-row .stat .v {
    margin-top: 5px;
    font-size: 18px;
  }
  .console-page .console-workspace {
    grid-template-columns: minmax(330px, 0.78fr) minmax(530px, 1.22fr);
  }
}

/* Account detail workspace --------------------------------------------- */
.account-detail-page .menu a[href="/accounts"] {
  color: #ffffff;
  background: rgba(58, 131, 247, 0.18);
  box-shadow: inset 3px 0 0 #3a83f7;
  font-weight: 650;
}

.account-detail-page .menu a[href="/accounts"]::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: #3a83f7;
}

.account-detail-page .account-content {
  display: block;
  min-height: 0;
  padding: 16px 26px 24px;
  overflow: hidden;
}

.account-detail-page .acc-col {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.account-surface {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--console-line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(24, 32, 51, 0.05);
  animation: ops-enter 0.42s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.account-backbar {
  min-height: 43px;
  flex: 0 0 43px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--console-line);
}

.account-backbar a {
  color: #2d6dcc;
  font-size: 11px;
  font-weight: 650;
  transition: color 0.15s ease, transform 0.15s ease;
}

.account-backbar a:hover {
  color: #1f58ab;
  transform: translateX(-2px);
}

.account-backbar > span {
  color: #8993a2;
  font-size: 9px;
  font-weight: 750;
}

.account-backbar > .acc-feat-eta {
  min-width: 0;
  color: #5b6573;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-backbar > .acc-feat-eta b {
  display: inline-block;
  min-width: 2.4em;
  margin: 0 3px;
  color: #256be0;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.account-backbar > .acc-feat-eta.soon b {
  color: #b86a12;
}

.account-backbar > .acc-feat-eta.now b {
  color: #2d6dcc;
}

.account-backbar > .acc-feat-eta.off b {
  color: #8a93a0;
  font-weight: 650;
}

.account-detail-page .acc-hero {
  flex: 0 0 auto;
  margin: 0;
  padding: 15px 17px 16px;
  gap: 13px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--console-line);
  border-radius: 0;
  box-shadow: none;
}

.account-detail-page .acc-top {
  min-height: 56px;
  padding: 0;
  gap: 13px;
}

.account-detail-page .acc-hero .avatar {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  background: #e7f0ff;
  box-shadow: 0 0 0 1px #d3e3fc, 0 4px 12px rgba(58, 131, 247, 0.1);
}

.account-detail-page .acc-title {
  gap: 7px;
}

.account-detail-page .acc-title .name {
  min-width: 0;
  overflow: hidden;
  color: var(--console-ink);
  font-size: 18px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-detail-page .lvl-chip {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 7px;
  color: #2d6dcc;
  background: #edf4ff;
  border: 1px solid #dbe8fc;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.account-detail-page .acc-meta {
  margin-top: 6px;
  gap: 6px;
}

.account-detail-page .acc-meta .user-chip,
.account-detail-page .acc-meta .loc-chip {
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
}

.account-detail-page .acc-meta .user-chip {
  color: #445064;
  background: #f1f4f8;
}

.account-detail-page .acc-meta .loc-chip {
  color: #2d6dcc;
  background: #edf4ff;
}

.account-detail-page .acc-meta .loc-chip::before {
  background: #3a83f7;
}

.account-detail-page .acc-run {
  gap: 9px;
  padding-left: 9px;
  border-left: 1px solid #e2e8f0;
  color: #737e8f;
  font-size: 10px;
}

.account-detail-page .acc-run b {
  color: #3c4759;
}

.account-detail-page .acc-ops {
  gap: 7px;
}

.account-detail-page .acc-ops .dot-pill,
.account-detail-page .acc-ops .btn {
  height: 32px;
  min-height: 32px;
  border-radius: 6px;
}

.account-detail-page .acc-ops .btn {
  min-width: 62px;
  background: #3a83f7;
  box-shadow: 0 5px 14px rgba(58, 131, 247, 0.2);
  transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.account-detail-page .acc-ops .btn:hover {
  background: #256be0;
  transform: translateY(-1px);
}

.account-detail-page .acc-ops .btn.ghost {
  color: #4e5969;
  background: #ffffff;
  border: 1px solid #d8e1ec;
  box-shadow: none;
}

.account-detail-page .dot-pill.on::before {
  animation: ops-pulse 2.4s ease-out infinite;
}

.account-detail-page .acc-assets {
  gap: 8px;
  padding: 0;
  border: 0;
}

.account-detail-page .acc-assets .chip,
.account-detail-page .acc-assets .chip + .chip {
  min-height: 80px;
  padding: 12px 14px;
  overflow: hidden;
  background: #f8faff;
  border: 1px solid #e4eaf2;
  border-radius: 7px;
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.account-detail-page .acc-assets .chip:hover {
  background: #ffffff;
  border-color: #c8d9f1;
  transform: translateY(-1px);
}

.account-detail-page .acc-assets .k {
  color: #6f7a8a;
  font-size: 10px;
}

.account-detail-page .chip-water .k { color: #2d75c7; }
.account-detail-page .chip-dmd .k { color: #7559a6; }
.account-detail-page .chip-gld .k { color: #9d6e1c; }

.account-detail-page .acc-assets b {
  color: #172033;
  font-size: 21px;
  font-weight: 720;
}

.account-detail-page .acc-base {
  color: #8a94a3;
  font-size: 10px;
}

.account-detail-page .acc-delta {
  font-size: 11px;
  animation: account-delta 0.32s ease both;
}

.account-detail-page .acc-work {
  min-height: 0;
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-detail-page .acc-tabs {
  min-height: 51px;
  flex: 0 0 auto;
  padding: 9px 14px;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  background: #fbfcfe;
  border-bottom: 1px solid var(--console-line);
  scrollbar-width: none;
}

.account-detail-page .acc-tabs::-webkit-scrollbar {
  display: none;
}

.account-detail-page .acc-tabs button {
  height: 32px;
  flex: 0 0 auto;
  padding: 0 12px;
  color: #667285;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 620;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.account-detail-page .acc-tabs button:hover {
  color: #2d6dcc;
  background: #f0f5fd;
}

.account-detail-page .acc-tabs button.on {
  color: #ffffff;
  background: #3a83f7;
  border-color: #3a83f7;
  box-shadow: 0 4px 10px rgba(58, 131, 247, 0.18);
}

.account-detail-page .acc-tabs button:active {
  transform: translateY(1px);
}

.account-detail-page .acc-pane {
  min-height: 0;
  flex: 1;
  padding: 12px 14px 18px;
  overflow: auto;
  background: #f8fafd;
  scrollbar-color: #bac7d8 transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.account-detail-page .acc-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #7a8595;
  font-size: 12px;
}

.account-detail-page .ctrl-box {
  padding: 0;
}

.account-detail-page .ctrl-groups,
.account-detail-page .ctrl-rows {
  gap: 7px;
}

.account-detail-page .ctrl-row,
.account-detail-page .ctrl-fold {
  min-height: 46px;
  color: #283447;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.account-detail-page .ctrl-row {
  padding: 9px 12px;
}

.account-detail-page .ctrl-row:hover,
.account-detail-page .ctrl-fold-hd:hover {
  background: #f6f9fd;
}

.account-detail-page .ctrl-fold.open {
  border-color: #b9d2f7;
  box-shadow: 0 5px 16px rgba(58, 131, 247, 0.06);
}

.account-detail-page .ctrl-fold > .ctrl-row {
  border: 0;
  border-radius: 0;
}

.account-detail-page .ctrl-name {
  color: #283447;
  font-size: 12px;
}

.account-detail-page .ctrl-groups .ctrl-fold-hd .ctrl-name {
  font-size: 13px;
}

.account-detail-page .ctrl-ico {
  color: #3a83f7;
}

.account-detail-page .ctrl-fold-meta {
  color: #2d6dcc;
  font-size: 11px;
  min-width: 0;
  max-width: 64%;
}
.account-detail-page .ctrl-fold-live {
  max-width: min(46vw, 260px);
  color: #2d6dcc;
}

.account-detail-page .ctrl-caret {
  border-color: #7890b2;
}

.account-detail-page .ctrl-fold-tip {
  padding: 3px 7px;
  color: #647083;
  background: #f1f4f8;
  border-radius: 5px;
  font-size: 10px;
}

.account-detail-page .ctrl-fold-tip.tone-go {
  color: #875c13;
  background: #fff3d2;
  box-shadow: inset 0 0 0 1px #efd795;
}

.account-detail-page .ctrl-fold-tip.tone-ok {
  color: #256be0;
  background: #edf4ff;
  box-shadow: inset 0 0 0 1px #d6e5fd;
}

.account-detail-page .ctrl-sub-rows {
  background: #fbfcfe;
}

.account-detail-page .ctrl-fold .ctrl-sub {
  border-top-color: #e8edf3;
}

.account-detail-page .sw {
  background: #dfe5ed;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.account-detail-page .sw.on {
  background: #3a83f7;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.09);
}

.account-detail-page .ctrl-spec {
  background: #f8fafd;
  border-top-color: #e1e7ef;
}

.account-detail-page .ctrl-modes {
  background: #ffffff;
  border-right-color: #e1e7ef;
}

.account-detail-page .ctrl-mode {
  color: #586476;
  border-radius: 6px;
}

.account-detail-page .ctrl-mode:hover {
  color: #2d6dcc;
  background: #edf4ff;
}

.account-detail-page .ctrl-mode.on,
.account-detail-page .ctrl-color.on {
  color: #ffffff;
  background: #3a83f7;
  border-color: #3a83f7;
}

.account-detail-page .ctrl-pick {
  border-color: #dfe6ef;
  border-radius: 7px;
}

.account-detail-page .ctrl-pick.on {
  background: #edf4ff;
  border-color: #82adf3;
}

.account-detail-page .ctrl-pick.on i {
  background: #3a83f7;
  border-color: #3a83f7;
}

.account-detail-page .ctrl-time,
.account-detail-page .ctrl-max {
  color: #283447;
  background: #ffffff;
  border-color: #d8e1ec;
}

.account-detail-page .ctrl-time:focus,
.account-detail-page .ctrl-max:focus {
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.11);
}

.account-detail-page .ctrl-help {
  color: #6c83a3;
  border-color: #bdcbe0;
}

.account-detail-page .ctrl-help:hover::after {
  background: rgba(25, 27, 33, 0.94);
}

.account-detail-page .log-filters button {
  color: #5f6b7d;
  background: #ffffff;
  border: 1px solid #e0e7f0;
  border-radius: 6px;
}

.account-detail-page .log-filters button.on {
  color: #ffffff;
  background: #3a83f7;
  border-color: #3a83f7;
}

.account-detail-page .log-scan-item,
.account-detail-page .log-row,
.account-detail-page .mail-row,
.account-detail-page .shop-cell {
  background: #ffffff;
  border-color: #e1e7ef;
  border-radius: 7px;
}

.account-detail-page .ctrl-scan {
  background: #fff7e6;
  border-bottom-color: #efd9a8;
}

.account-detail-page .ctrl-scan-mark {
  background: #3a83f7;
  border-radius: 5px;
}

.account-detail-page .bag-tab {
  color: #596577;
  background: #ffffff;
  border-color: #dfe6ef;
  border-radius: 6px;
}

.account-detail-page .bag-tab.on {
  color: #ffffff;
  background: #3a83f7;
  border-color: #3a83f7;
}

.account-detail-page .mail-row.unread {
  border-color: #82adf3;
  box-shadow: inset 3px 0 0 #3a83f7;
}

.account-detail-page .run-dock,
.account-detail-page .run-dock.mini {
  background: rgba(255, 255, 255, 0.96);
  border-color: #dce5ef;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 32, 51, 0.13);
}

@keyframes account-delta {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .account-detail-page,
  .account-detail-page .app,
  .account-detail-page .shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .account-detail-page .account-content {
    min-height: calc(100dvh - 68px);
    padding: 16px;
    overflow: visible;
  }
  .account-detail-page .acc-col,
  .account-surface {
    height: auto;
    min-height: 760px;
  }
  .account-detail-page .acc-work {
    min-height: 540px;
  }
}

@media (max-width: 700px) {
  .account-detail-page .account-content {
    padding: 12px;
  }
  .account-backbar {
    padding-inline: 13px;
  }
  .account-detail-page .acc-hero {
    padding: 14px;
  }
  .account-detail-page .acc-top {
    flex-wrap: wrap;
  }
  .account-detail-page .acc-main {
    min-width: calc(100% - 68px);
  }
  .account-detail-page .acc-ops {
    width: 100%;
    margin-left: 63px;
  }
  .account-detail-page .acc-assets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .account-detail-page .acc-assets .chip,
  .account-detail-page .acc-assets .chip + .chip {
    min-height: 60px;
  }
  .account-detail-page .acc-pane {
    padding: 10px;
  }
  .account-detail-page .ctrl-groups .ctrl-fold-hd .ctrl-name {
    font-size: 12px;
  }
  .account-detail-page .ctrl-fold-meta {
    gap: 5px;
  }
}

@media (max-width: 440px) {
  .account-backbar > span:not(.acc-feat-eta) {
    display: none;
  }
  .account-backbar > .acc-feat-eta {
    font-size: 11px;
  }
  .account-detail-page .acc-run {
    width: 100%;
    padding: 6px 0 0;
    border-left: 0;
    border-top: 1px solid #e4eaf2;
  }
  .account-detail-page .acc-ops {
    margin-left: 0;
  }
  .account-detail-page .ctrl-fold-meta {
    max-width: 44%;
  }
  .account-detail-page .ctrl-fold-tip {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-surface,
  .account-detail-page .acc-delta,
  .account-detail-page .dot-pill.on::before {
    animation: none;
  }
  .account-detail-page .acc-tabs button,
  .account-detail-page .acc-assets .chip,
  .account-detail-page .ctrl-row,
  .account-detail-page .ctrl-fold,
  .account-detail-page .sw {
    transition: none;
  }
}

/* Visual refinement pass ------------------------------------------------ */
.console-page input.bc-reconn-min,
.console-page .bc-reconn input.bc-reconn-min {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  flex: 0 0 42px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 3px !important;
  margin: 0 2px !important;
  color: #2f3a4c !important;
  background: #ffffff !important;
  border: 1px solid #d5dfeb !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 11px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.console-page input.bc-reconn-min::-webkit-outer-spin-button,
.console-page input.bc-reconn-min::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.console-page input.bc-reconn-min:focus {
  border-color: #78aafc !important;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.11) !important;
}

.account-detail-page #ctrl-reconn-min.ctrl-time {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  flex: 0 0 54px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 5px !important;
  border-radius: 5px !important;
  text-align: center;
  font-size: 11px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.account-detail-page #ctrl-reconn-min::-webkit-outer-spin-button,
.account-detail-page #ctrl-reconn-min::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.nodes-surface,
.account-detail-page .acc-col {
  width: min(1840px, 100%);
  max-width: 1840px;
  margin-inline: auto;
}

.console-page .top-heading {
  animation: console-heading-in 0.38s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.console-page .brand::before {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.console-page .brand:hover::before {
  transform: rotate(-4deg) scale(1.04);
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.18);
}

.console-page .menu a {
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.console-page .menu a:hover {
  transform: translateX(2px);
}

.console-page .me-face {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.console-page .me-face:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 5px 14px rgba(58, 131, 247, 0.18);
}

.console-page .workspace-panel {
  animation: refined-surface-in 0.44s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.console-page .workspace-panel + .workspace-panel {
  animation-delay: 0.06s;
}

.console-page .stats-row .stat {
  transition: background 0.16s ease, transform 0.16s ease;
}

.console-page .stats-row .stat:hover {
  z-index: 1;
  background: #f8faff;
  transform: translateY(-1px);
}

.ops-surface,
.account-surface {
  position: relative;
}

.ops-surface::before,
.account-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 2px;
  background: #3a83f7;
  transform: scaleX(0);
  transform-origin: left;
  animation: accent-reveal 0.62s 0.12s cubic-bezier(0.22, 0.8, 0.32, 1) forwards;
  pointer-events: none;
}

.batch-page .batch-workspace {
  grid-template-columns: minmax(280px, 0.72fr) minmax(620px, 2.28fr);
}

@media (min-width: 1280px) {
  .account-detail-page .ctrl-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
  }

  .account-detail-page .ctrl-groups > .ctrl-fold.open,
  .account-detail-page .ctrl-groups > .ctrl-fold[data-gid="redeem"] {
    grid-column: 1 / -1;
  }
}

.account-detail-page .acc-redeem-pane {
  min-height: 100%;
  display: grid;
  place-items: start stretch;
}

.account-detail-page .acc-redeem-card {
  width: min(720px, 100%);
  padding: 18px 18px 16px;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
}

.account-detail-page .acc-redeem-card header {
  margin-bottom: 12px;
}

.account-detail-page .acc-redeem-card h2 {
  margin: 0 0 4px;
  color: #182033;
  font-size: 16px;
  font-weight: 720;
}

.account-detail-page .acc-redeem-card header span {
  color: #6f7886;
  font-size: 12px;
}

.account-detail-page .acc-redeem-card .ctrl-redeem textarea {
  min-height: 160px;
}

@keyframes console-heading-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes refined-surface-in {
  from { opacity: 0; transform: translateY(7px) scale(0.997); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes accent-reveal {
  to { transform: scaleX(1); }
}


@media (prefers-reduced-motion: reduce) {
  .console-page .top-heading,
  .console-page .workspace-panel,
  .ops-surface::before,
  .account-surface::before {
    animation: none;
  }

  .ops-surface::before,
  .account-surface::before {
    transform: scaleX(1);
  }

  .console-page .brand::before,
  .console-page .menu a,
  .console-page .me-face,
  .console-page .stats-row .stat,
  .nodes-page .node-item {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .console-page {
    overflow: auto;
  }
  .console-page .app,
  .console-page .shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .console-page .page {
    display: block;
    overflow: visible;
  }
  .console-overview {
    margin-bottom: 16px;
  }
  .console-page .console-workspace {
    grid-template-columns: 1fr;
  }
  .console-page .workspace-panel {
    height: 620px;
  }
  .console-page .bc-list {
    border: 1px solid var(--console-line);
  }
}

@media (max-width: 760px) {
  .console-page .app {
    min-height: 100dvh;
  }
  .console-page .side {
    width: min(284px, 86vw);
    height: 100dvh;
  }
  .console-page .top {
    height: 62px;
    padding: 0 14px;
  }
  .console-page .menu-btn {
    min-width: 38px;
    min-height: 34px;
    padding: 6px 9px;
    color: var(--console-ink);
    border-color: var(--console-line);
    border-radius: 6px;
  }
  .console-page .page {
    padding: 14px 12px 22px;
  }
  .console-overview {
    grid-template-columns: 1fr;
  }
  .console-page .console-identity {
    border-right: 0;
    border-bottom: 1px solid var(--console-line);
  }
  .console-page .workspace-state {
    display: inline-flex;
  }
  .console-page .stats.stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .console-page .stats-row .stat:nth-child(odd) {
    border-left: 0;
  }
  .console-page .stats-row .stat:nth-child(n + 3) {
    border-top: 1px solid #edf1ee;
  }
  .console-page .workspace-panel {
    height: min(670px, 78dvh);
    min-height: 520px;
  }
  .console-page .workspace-head {
    min-height: 62px;
    padding: 12px;
  }
  .console-page .flags-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .console-page .bc-presets {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .console-page .bc-presets .btn {
    min-width: 0;
  }
  .console-page .bc-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .console-page .bc-tools #bc-q {
    grid-column: 1 / -1;
  }
  .console-page .bc-check {
    justify-self: end;
  }
  .console-page .bc-group {
    margin-inline: 8px;
  }
  .console-page .bc-flag-top {
    align-items: flex-start;
  }
  .console-page .bc-tri {
    min-width: 120px;
  }
  .console-page .bc-tri button {
    min-width: 37px;
    padding-inline: 6px;
  }
  .console-page .bc-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .console-page .workspace-state {
    display: none;
  }
  .console-page .stats-row .stat {
    padding-inline: 12px;
  }
  .console-page .bc-flag-top {
    flex-direction: column;
    align-items: stretch;
  }
  .console-page .bc-tri {
    align-self: stretch;
  }
  .console-page .bc-tri button {
    flex: 1;
  }
}

/* Secondary operations pages ------------------------------------------- */
.ops-page .ops-content {
  display: block;
  min-height: 0;
  padding: 22px 26px 26px;
  overflow: hidden;
}

.ops-page .menu a[href="/batch"],
.ops-page .menu a[href="/accounts"],
.ops-page .menu a[href="/export"],
.ops-page .menu a[href="/nodes"] {
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.batch-page .menu a[href="/batch"],
.accounts-page .menu a[href="/accounts"],
.export-page .menu a[href="/export"],
.nodes-page .menu a[href="/nodes"] {
  color: #ffffff;
  background: rgba(58, 131, 247, 0.18);
  box-shadow: inset 3px 0 0 #3a83f7;
  font-weight: 650;
}

.batch-page .menu a[href="/batch"]::after,
.accounts-page .menu a[href="/accounts"]::after,
.export-page .menu a[href="/export"]::after,
.nodes-page .menu a[href="/nodes"]::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: #3a83f7;
}

.ops-surface {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--console-surface);
  border: 1px solid var(--console-line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(24, 32, 51, 0.05);
  animation: ops-enter 0.42s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.ops-head {
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--console-line);
}

.ops-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.ops-title > div {
  min-width: 0;
}

.ops-title h2 {
  margin: 0;
  color: var(--console-ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
}

.ops-title > div > span {
  display: block;
  max-width: 260px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--console-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-head-mark {
  padding: 5px 8px;
  color: #3375dd;
  background: #edf4ff;
  border: 1px solid #dbe8fc;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
}

.ops-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 9px;
  color: #647083;
  font-size: 11px;
  font-weight: 700;
}

.help-q {
  position: relative;
  width: 15px;
  height: 15px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3a83f7;
  background: #edf4ff;
  border: 1px solid #9ec1f8;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.help-q .help-pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  z-index: 8;
  width: 228px;
  padding: 8px 10px;
  color: #3e4a5c;
  background: #ffffff;
  border: 1px solid #c5d7f2;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(36, 68, 120, 0.12);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.help-q:hover .help-pop,
.help-q:focus .help-pop,
.help-q:focus-within .help-pop {
  display: block;
}

.ops-actions {
  min-height: 62px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #fbfcfe;
  border-top: 1px solid var(--console-line);
}

.ops-page .btn {
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.ops-page .btn:not(.ghost):not(.danger) {
  box-shadow: 0 5px 14px rgba(58, 131, 247, 0.2);
}

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

.ops-page .btn:active {
  transform: translateY(0);
}

.ops-page .btn.danger {
  color: #bb4141;
  background: #ffffff;
  border: 1px solid #efd6d6;
  box-shadow: none;
}

.ops-page .btn.danger:hover {
  color: #a92f2f;
  background: #fff5f5;
  border-color: #eabcbc;
}

.ops-empty,
.ops-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--console-muted);
  font-size: 12px;
}

.ops-loading {
  gap: 5px;
}

.ops-loading i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a83f7;
  animation: ops-dot 1.15s ease-in-out infinite;
}

.ops-loading i:nth-child(2) { animation-delay: 0.13s; }
.ops-loading i:nth-child(3) { animation-delay: 0.26s; }
.ops-loading span { margin-left: 5px; }

.ops-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  color: #2a6bcf;
  background: #edf4ff;
  border: 1px solid #dbe8fc;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
}

.ops-live i,
.acc-live.on::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #3a83f7;
  box-shadow: 0 0 0 0 rgba(58, 131, 247, 0.26);
  animation: ops-pulse 2.4s ease-out infinite;
}

/* Batch import */
.batch-surface {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.batch-workspace {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.batch-options {
  padding: 18px;
  background: #fbfcfe;
  border-right: 1px solid var(--console-line);
}

.batch-page .kind-row {
  padding: 0;
  display: grid;
  gap: 8px;
}

.batch-page .kind-pick {
  position: relative;
  min-height: 56px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #505c6e;
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 7px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.batch-page .kind-pick:hover {
  border-color: #b7cff2;
  transform: translateY(-1px);
}

.batch-page .kind-pick:has(input:checked) {
  color: #225eaf;
  background: #edf4ff;
  border-color: #9ec1f8;
  box-shadow: none;
}

.batch-page .kind-pick input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  background: #fff;
  border: 1.5px solid #b7c3d4;
  box-shadow: none;
  outline: none;
}

.batch-page .kind-pick input[type="radio"] {
  border-radius: 50%;
}

.batch-page .kind-pick input[type="checkbox"] {
  border-radius: 4px;
}

.batch-page .kind-pick input:checked {
  border-color: #3a83f7;
}

.batch-page .kind-pick input[type="radio"]:checked {
  box-shadow: inset 0 0 0 4.5px #3a83f7;
}

.batch-page .kind-pick input[type="checkbox"]:checked {
  background: #3a83f7 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23fff' stroke-width='2' d='M3.5 8.2 6.6 11.2 12.4 4.8'/></svg>") center / 12px 12px no-repeat;
}

.batch-page .kind-pick input:focus,
.batch-page .kind-pick input:focus-visible {
  outline: none;
  box-shadow: none;
}

.batch-page .kind-pick input[type="radio"]:focus-visible:checked {
  box-shadow: inset 0 0 0 4.5px #3a83f7;
}

.batch-page .kind-pick span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.batch-page .kind-pick b {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.batch-page .kind-pick small {
  color: #7b8594;
  font-size: 10px;
}

.batch-nodes,
.batch-device,
.batch-gs {
  margin-top: 20px;
}

.batch-gs-fixed {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.batch-page #batch-gs-idx,
.batch-page #batch-gs-num {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: #2a3340;
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 7px;
  box-shadow: none;
  font-size: 13px;
}

.batch-page #batch-gs-idx {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%236f7886' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/></svg>") right 10px center / 14px 14px no-repeat;
  cursor: pointer;
}

.batch-page #batch-gs-idx:hover,
.batch-page #batch-gs-num:hover {
  border-color: #b7cff2;
}

.batch-page #batch-gs-idx:focus,
.batch-page #batch-gs-num:focus {
  outline: none;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.1);
}

.batch-page .batch-options {
  position: relative;
  z-index: 2;
}

.batch-page .node-pick {
  position: relative;
  z-index: 1;
}

.batch-page .node-pick.open {
  z-index: 40;
}

.batch-page .node-pick-btn {
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #505c6e;
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
}

.batch-page .node-pick-btn:hover,
.batch-page .node-pick.open .node-pick-btn,
.batch-page .node-pick-btn.picked {
  color: #225eaf;
  background: #edf4ff;
  border-color: #9ec1f8;
}

.batch-page .node-pick-btn:focus-visible {
  outline: none;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.12);
}

.batch-page .node-pick-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.batch-page .node-pick-copy b {
  font-size: 13px;
  font-weight: 700;
}

.batch-page .node-pick-copy small {
  color: #7b8594;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-page .node-pick-btn .ctrl-caret {
  border-color: #7b8594;
  transform: rotate(45deg);
  margin-top: -4px;
}

.batch-page .node-pick.open .node-pick-btn .ctrl-caret {
  transform: rotate(-135deg);
}

body.batch-node-open .ops-page .ops-content,
body.batch-node-open .ops-surface,
body.batch-node-open .batch-workspace,
body.batch-node-open .batch-options {
  overflow: visible;
}

.batch-page .node-pick-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: min(420px, calc(100vw - 40px));
  max-height: 390px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(24, 32, 51, 0.15);
  transform-origin: top left;
  animation: node-menu-in 0.16s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.batch-page .node-pick-pop[hidden] {
  display: none;
}

.batch-page .node-pick.drop-up .node-pick-pop {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom left;
  animation-name: node-menu-up-in;
}

.batch-page input#batch-node-q {
  margin: 0;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  flex: 0 0 42px;
  color: #283447;
  border: 0;
  border-bottom: 1px solid #e6ebf2;
  border-radius: 0;
  background: #fbfcfe;
  box-shadow: none;
  font-size: 12px;
}

.batch-page input#batch-node-q:focus {
  outline: none;
  border-color: #b7cff2;
  background: #ffffff;
  box-shadow: inset 3px 0 0 #3a83f7;
}

.batch-page .node-opt-auto {
  margin: 0;
  width: 100%;
  min-height: 50px;
  padding: 8px 14px;
  flex: 0 0 50px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.batch-page .node-pick-list {
  min-height: 0;
  max-height: 290px;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b9c5d3 transparent;
}

.batch-page .node-opt {
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #505c6e;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.batch-page .node-opt:hover {
  color: #225eaf;
  background: #f6f9fd;
}

.batch-page .node-opt.on {
  color: #225eaf;
  background: #edf4ff;
  border-color: #dbe8fc;
  box-shadow: inset 3px 0 0 #3a83f7;
}

.batch-page .node-opt-main {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.batch-page .node-opt-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.batch-page .node-opt-copy b {
  font-size: 13px;
  font-weight: 700;
}

.batch-page .node-opt-copy small {
  color: #7b8594;
  font-size: 11px;
}

.batch-page .node-pick-pop .loc-chip,
.batch-page .node-pick-pop .user-chip,
.batch-page .node-pick-pop .num-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.batch-page .node-pick-pop .loc-chip {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  color: #256be0;
}

.batch-page .node-pick-pop .user-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  color: #3d4756;
  font-variant-numeric: tabular-nums;
}

.batch-page .node-pick-pop .num-chip {
  height: 24px;
  padding: 0 8px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #edf4ff;
  color: #225eaf;
}

.batch-page .node-opt.full .num-chip {
  background: #fff4e5;
  color: #b45309;
}

.batch-page .node-opt-empty {
  padding: 18px 12px;
  color: #8a93a1;
  font-size: 12px;
  text-align: center;
}

.batch-page .ops-field-label:has(.help-q) {
  margin-top: 0;
  margin-bottom: 9px;
  gap: 10px;
}

.batch-page .device-pick {
  margin-top: 0;
}

.batch-format {
  margin-top: 20px;
}

.batch-page .fmt-pills {
  padding: 0;
  gap: 6px;
}

.batch-page .fmt-pills .role-chip {
  margin: 0;
  padding: 5px 8px;
  color: #556173;
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 5px;
  font-size: 10px;
}

.batch-editor {
  min-width: 0;
  min-height: 0;
  padding: 18px 18px 0;
  display: flex;
  flex-direction: column;
}

.batch-page .batch-editor .soft-area,
.batch-page .batch-editor textarea {
  min-height: 260px;
  flex: 1;
  padding: 16px;
  resize: none;
  color: #1f2a3d;
  background: #f8fafd;
  border: 1px solid #dbe4ef;
  border-radius: 7px !important;
  box-shadow: inset 0 1px 2px rgba(24, 32, 51, 0.03);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.batch-page .batch-editor textarea:focus {
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.12);
}

.batch-actions {
  margin: 18px -18px 0;
}

.batch-feedback {
  min-width: 0;
  margin-right: auto;
}

.batch-feedback p {
  margin: 0;
}

.batch-feedback p:empty {
  display: none;
}

/* Account list */
.accounts-page .page-accs {
  width: 100%;
  height: 100%;
  padding: 22px 26px 26px;
  display: block;
  overflow: hidden;
}

.accounts-surface {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.accounts-head {
  flex: 0 0 auto;
}

.accounts-summary {
  display: flex;
  align-items: center;
  gap: 7px;
}

.accounts-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.accounts-page .acc-count {
  min-width: 54px;
  padding: 6px 9px;
  color: #2b68c0;
  background: #edf4ff;
  border: 1px solid #dbe8fc;
  border-radius: 5px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.accounts-page .acc-live {
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--console-muted);
  font-size: 10px;
}

.accounts-page .acc-live.on {
  color: #2b68c0;
}

.accounts-page .acc-live.on::before {
  content: "";
}

.accounts-page .acc-bar {
  flex: 0 0 auto;
  padding: 11px 14px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--console-line);
}

.accounts-page .acc-filter {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--console-line);
  border-radius: 12px;
}

.accounts-page .acc-tool-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.accounts-page .acc-tool-nav,
.accounts-page .acc-tool-filters,
.accounts-page .acc-tool-group {
  padding-right: 10px;
  border-right: 1px solid #e6edf6;
}

.accounts-page .acc-tool-batch {
  margin-left: auto;
  padding-left: 2px;
}

.accounts-page .accounts-actions .btn,
.accounts-page .acc-filter .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
}

.accounts-page .pick-all {
  height: 36px;
  padding: 0 10px;
  flex: 0 0 auto;
  color: #667285;
  background: #ffffff;
  border: 1px solid #d9e2ed;
  border-radius: 6px;
}

.accounts-page .pick-all input {
  width: 15px;
  height: 15px;
  accent-color: #3a83f7;
}

.accounts-page .acc-search,
.accounts-page .acc-sel {
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  color: #283447;
  background: #ffffff;
  border: 1px solid #d9e2ed;
  border-radius: 6px;
  box-shadow: none;
  font-size: 11px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.accounts-page .acc-search {
  width: auto;
  min-width: 220px;
  flex: 1 1 320px;
}

.accounts-page .acc-sel {
  flex: 0 1 150px;
  max-width: 170px;
}

.accounts-page .acc-search:focus,
.accounts-page .acc-sel:focus {
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.11);
}

.accounts-page .acc-cards {
  min-height: 0;
  flex: 1;
  padding: 0 14px 14px;
  overflow: auto;
  scrollbar-color: #bac7d8 transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.accounts-page .acc-head,
.accounts-page .acc-item {
  min-width: 1540px;
  grid-template-columns: 28px 72px 52px minmax(96px, max-content) minmax(168px, max-content) minmax(82px, 0.7fr) minmax(112px, 1fr) minmax(94px, 0.9fr) minmax(92px, 0.9fr) minmax(84px, 0.8fr) minmax(84px, 0.8fr) minmax(92px, 0.9fr) minmax(200px, 1.6fr) 56px;
  gap: 9px;
}

.accounts-page .acc-head {
  top: 0;
  z-index: 2;
  min-height: 38px;
  padding: 8px 10px;
  color: #778193;
  background: #ffffff;
  border-bottom: 1px solid var(--console-line);
  font-size: 10px;
  font-weight: 700;
}

.accounts-page .acc-item {
  min-height: 49px;
  padding: 8px 10px;
  margin: 0;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.accounts-page .acc-item:hover {
  background: #f6f9fd;
  box-shadow: inset 3px 0 0 #b8d2fa;
}

.accounts-page .acc-item:has(input[data-user]:checked) {
  background: #edf4ff;
  box-shadow: inset 3px 0 0 #3a83f7;
}

.accounts-page .acc-item .user-chip,
.accounts-page .acc-item .acc-uid,
.accounts-page .acc-item .loc-chip,
.accounts-page .acc-item .role-chip,
.accounts-page .acc-item .acc-gs,
.accounts-page .acc-item .acc-main,
.accounts-page .acc-item .acc-time,
.accounts-page .ico-chip,
.accounts-page .kind-chip {
  border-radius: 5px;
}

.accounts-page .acc-item .user-chip {
  color: #1f2a3d;
  background: #eff3f8;
}
.accounts-page .acc-item .acc-uid {
  color: #3d4a5c;
  background: #e8edf4;
}

.accounts-page .acc-item .loc-chip {
  max-width: 148px;
  color: #2c6ac4;
  background: #eaf2ff;
}

.accounts-page .acc-item .loc-chip::before {
  background: #3a83f7;
}

.accounts-page .acc-item .acc-main {
  justify-self: start;
  text-align: left;
  color: #7d3d58;
  background: #f4e6ec;
}

.accounts-page .acc-item .role-chip {
  margin-left: 0;
  max-width: 100%;
  min-width: 0;
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6d5a3e;
  background: #f6f1e9;
}

.accounts-page .acc-empty {
  min-width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--console-muted);
  font-size: 12px;
}

.accounts-page.acc-pick-on .acc-list-pane,
.accounts-page.acc-pick-on .acc-list-only {
  display: none !important;
}

.accounts-page.acc-list-on .acc-pick-pane {
  display: none !important;
}

.accounts-page .acc-list-pane {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.accounts-page .acc-waves {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border-top: 1px solid #e6edf5;
  scrollbar-color: #bac7d8 transparent;
  scrollbar-width: thin;
}

.accounts-page .acc-batch-card {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 16px;
  margin: 0;
  color: var(--console-ink);
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  touch-action: manipulation;
  animation: acc-row-in 0.4s cubic-bezier(0.22, 0.8, 0.32, 1) both;
  animation-delay: calc(var(--i) * 32ms);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.accounts-page .acc-batch-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 0;
  background: var(--console-blue);
  border-radius: 0 2px 2px 0;
  transition: width 0.18s ease;
}

.accounts-page .acc-batch-card.is-all {
  background: #f5f8fc;
  border-bottom-color: #e2eaf3;
}

.accounts-page .acc-batch-card:hover {
  background: #f4f8ff;
  transform: translateX(3px);
}

.accounts-page .acc-batch-card:hover::before {
  width: 3px;
}

.accounts-page .acc-batch-card.is-all:hover {
  background: #e8f1fb;
}

.accounts-page .acc-batch-card:focus-visible {
  outline: none;
  background: #eef4fb;
  transform: translateX(3px);
}

.accounts-page .acc-batch-card:focus-visible::before {
  width: 3px;
}

.accounts-page .acc-batch-card:active {
  background: #eaf2fb;
  transform: translateX(1px) scale(0.997);
}

.accounts-page .acc-batch-card.is-edit {
  cursor: default;
  background: #f4f8ff;
  transform: none;
  box-shadow: inset 0 0 0 1px #8fb0de;
}

.accounts-page .acc-batch-card.is-edit::before {
  width: 3px;
}

.accounts-page .acc-batch-when {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accounts-page .acc-batch-day {
  color: var(--console-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  transition: transform 0.18s ease;
}

.accounts-page .acc-batch-clock {
  color: var(--console-muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.accounts-page .acc-batch-mark {
  padding: 1px 6px;
  color: #2b68c0;
  background: #edf4ff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.accounts-page .acc-batch-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
  min-width: 7.5em;
  white-space: nowrap;
}

.accounts-page .acc-batch-n,
.accounts-page .acc-batch-on {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--console-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.accounts-page .acc-batch-on.is-on::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a83f7;
  box-shadow: 0 0 0 0 rgba(58, 131, 247, 0.45);
  animation: acc-on-dot 1.6s ease-in-out infinite;
}

.accounts-page .acc-batch-n b,
.accounts-page .acc-batch-on b {
  color: var(--console-ink);
  font-weight: 700;
}

.accounts-page .acc-batch-on.is-on,
.accounts-page .acc-batch-on.is-on b {
  color: #2b68c0;
}

.accounts-page .acc-batch-ops {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.accounts-page .acc-batch-edit {
  margin: 0;
  padding: 3px 10px;
  color: #1d4f9a;
  background: #ffffff;
  border: 1px solid #c5d6ee;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.accounts-page .acc-batch-edit:hover {
  color: #163f7c;
  background: #f3f7fd;
  border-color: #9db8e3;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(45, 104, 192, 0.16);
}

.accounts-page .acc-batch-edit.is-del {
  color: #8a3030;
  border-color: #e0c4c4;
  background: #fff;
}

.accounts-page .acc-batch-edit.is-del:hover {
  background: #fdf4f4;
  border-color: #d3a3a3;
}

.accounts-page .acc-batch-edit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.16);
}

.accounts-page .acc-batch-name {
  width: min(280px, 100%);
  height: 30px;
  margin: 0;
  padding: 0 8px;
  color: var(--console-ink);
  background: #ffffff;
  border: 1px solid #8fb0de;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  transform-origin: left center;
  animation: acc-edit-in 0.18s ease both;
}

.accounts-page .acc-batch-name:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.16);
}








.accounts-page .acc-batch-bar {
  display: none;
}

.console-page #bc-group {
  height: 36px;
  min-height: 36px;
  min-width: 118px;
  max-width: 168px;
  padding: 0 10px;
  color: var(--console-ink);
  background: #ffffff;
  border: 1px solid #d7e1ed;
  border-radius: 6px;
  font-size: 12px;
}

.console-page #bc-group:focus {
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.14);
  outline: none;
}

.ask-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 32, 51, 0.32);
}

.ask-card {
  width: min(400px, 100%);
  padding: 18px 18px 14px;
  color: var(--console-ink, #182033);
  background: #ffffff;
  border: 1px solid var(--console-line, #e0e7f0);
  border-radius: 8px;
}

.ask-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.3;
}

.ask-hint {
  margin: 6px 0 0;
  color: var(--console-muted, #667285);
  font-size: 12px;
  line-height: 1.45;
}

.ask-input {
  display: block;
  width: 100%;
  height: 38px;
  margin: 14px 0 0;
  padding: 0 11px;
  color: var(--console-ink, #182033);
  background: #ffffff;
  border: 1px solid #d7e1ed;
  border-radius: 6px;
  font-size: 13px;
}

.ask-input:focus {
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.14);
  outline: none;
}

.ask-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.ask-actions .btn {
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #3a83f7;
  font-size: 12px;
  font-weight: 650;
}

.ask-actions .btn:hover {
  background: #256be0;
}

.ask-actions .btn.ghost {
  color: #4e5969;
  background: #ffffff;
  border: 1px solid #d8e1ec;
}

.ask-actions .btn.ghost:hover {
  color: #256be0;
  background: #f2f6fd;
  border-color: #a8c8fb;
}

.ask-actions .btn.danger {
  color: #ffffff;
  background: #d05555;
  border: 0;
}

.ask-actions .btn.danger:hover {
  background: #bb4141;
}

@media (prefers-reduced-motion: reduce) {
  .ask-layer,
  .ask-card {
    animation: none;
  }
}

/* Export */
.export-workspace {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 14px;
}

.export-filter,
.export-results {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.export-results {
  animation-delay: 0.06s;
}

.export-fields {
  min-height: 0;
  flex: 1;
  padding: 20px 18px;
}

.export-page #ex-fields {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.export-page #ex-fields button {
  min-width: 0;
}

.export-range {
  margin-top: 18px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.export-page .soft-field {
  padding: 0;
  gap: 7px;
}

.export-page .soft-field > span {
  padding: 0;
  color: #667285;
  font-size: 10px;
  font-weight: 650;
}

.export-page .soft-field input {
  min-height: 40px;
  padding: 9px 11px;
  color: #283447;
  background: #f8fafd;
  border: 1px solid #d9e2ed;
  border-radius: 6px;
  box-shadow: none;
  font-size: 12px;
}

.export-page .soft-field input:focus {
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.11);
}

.export-query {
  grid-column: 1 / -1;
}

.export-page .ops-list,
.nodes-page .ops-list {
  min-height: 0;
  flex: 1;
  padding: 8px 10px 12px;
  overflow: auto;
  scrollbar-color: #bac7d8 transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.export-page .ex-item {
  min-height: 52px;
  margin: 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(4, minmax(70px, auto)) minmax(90px, auto);
  gap: 8px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  cursor: default;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.export-page .ex-item:hover {
  background: #f6f9fd;
  box-shadow: inset 3px 0 0 #b8d2fa;
}

.export-page .ex-item .user-chip {
  min-width: 0;
  overflow: hidden;
  color: #1f2a3d;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.export-page .num-chip,
.export-page .loc-chip {
  border-radius: 5px;
  background: #f2f5f9;
}

/* Nodes */
.nodes-surface {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.node-columns,
.nodes-page .node-item {
  min-width: 720px;
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(150px, 1fr) minmax(220px, 1.4fr) minmax(110px, 0.7fr);
  align-items: center;
  gap: 12px;
}

.node-columns {
  min-height: 39px;
  padding: 8px 20px;
  color: #778193;
  background: #fbfcfe;
  border-bottom: 1px solid var(--console-line);
  font-size: 10px;
  font-weight: 700;
}

.nodes-page .ops-list {
  padding-top: 0;
}

.nodes-page .node-item {
  min-height: 57px;
  margin: 0;
  padding: 10px 10px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  cursor: default;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.nodes-page .node-item:hover {
  background: #f6f9fd;
  box-shadow: inset 3px 0 0 #b8d2fa;
}

.nodes-page .node-item .user-chip {
  color: #1f2a3d;
  font-size: 12px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.nodes-page .node-item .loc-chip,
.nodes-page .node-item .num-chip,
.nodes-page .lat {
  justify-self: start;
  border-radius: 5px;
}

.nodes-page .node-item .loc-chip,
.nodes-page .node-item .num-chip {
  background: #f2f5f9;
}

.nodes-page .node-item .loc-chip::before {
  background: #3a83f7;
}

.nodes-page .lat {
  min-width: 72px;
  padding: 5px 8px;
  text-align: center;
  background: #f2f5f9;
  border: 1px solid transparent;
  font-size: 11px;
}

.nodes-page .lat-ok { color: #256be0; background: #edf4ff; border-color: #d6e5fd; }
.nodes-page .lat-slow { color: #93651b; background: #fff6df; border-color: #f3e2b6; }
.nodes-page .lat-bad { color: #ac3f3f; background: #fff0f0; border-color: #f0d2d2; }
.nodes-page .lat-wait { color: #687385; background: #f2f5f9; }

@keyframes acc-row-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes acc-on-dot {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(58, 131, 247, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(58, 131, 247, 0); }
}

@keyframes acc-edit-in {
  from { opacity: 0; transform: scaleX(0.88); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes ops-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes node-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes node-menu-up-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ops-dot {
  0%, 70%, 100% { opacity: 0.28; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

@keyframes ops-pulse {
  0% { box-shadow: 0 0 0 0 rgba(58, 131, 247, 0.28); }
  65%, 100% { box-shadow: 0 0 0 5px rgba(58, 131, 247, 0); }
}

@media (max-width: 1120px) {
  .accounts-page .accounts-head {
    align-items: flex-start;
  }
  .accounts-summary {
    align-items: flex-end;
    flex-direction: column;
  }
  .export-workspace {
    grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .ops-page,
  .ops-page .app,
  .ops-page .shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .ops-page .ops-content,
  .accounts-page .page-accs {
    height: auto;
    min-height: calc(100dvh - 62px);
    padding: 16px;
    overflow: visible;
  }
  .batch-surface,
  .nodes-surface {
    min-height: 620px;
  }
  .batch-workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .accounts-surface {
    min-height: 680px;
  }
  .export-workspace {
    height: auto;
    grid-template-columns: 1fr;
  }
  .export-filter {
    min-height: 420px;
  }
  .export-results {
    min-height: 480px;
  }
}

@media (max-width: 700px) {
  .ops-page .ops-content,
  .accounts-page .page-accs {
    padding: 12px;
  }
  .ops-head {
    min-height: 62px;
    padding: 12px;
  }
  .ops-head-mark {
    display: none;
  }
  .batch-surface {
    min-height: 760px;
  }
  .batch-workspace {
    grid-template-columns: 1fr;
  }
  .batch-options {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--console-line);
  }
  .batch-page .kind-row {
    grid-template-columns: 1fr 1fr;
  }
  .batch-nodes,
  .batch-format {
    margin-top: 16px;
  }
  .batch-editor {
    padding: 16px 16px 0;
  }
  .batch-actions {
    margin: 16px -16px 0;
  }
  .accounts-page .acc-waves {
    padding: 0;
  }
  .accounts-page .acc-batch-card {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 12px;
  }
  .accounts-page .acc-batch-ops {
    grid-column: 2;
    grid-row: 1;
  }
  .accounts-page .acc-batch-meta {
    grid-column: 1;
    justify-content: flex-start;
    min-width: 0;
  }
  .accounts-page .acc-batch-day {
    font-size: 13px;
  }
  .accounts-page .accounts-head {
    flex-direction: column;
  }
  .accounts-summary {
    width: 100%;
    align-items: center;
    flex-direction: row;
  }
  .accounts-page .acc-tool-nav,
  .accounts-page .acc-tool-filters,
  .accounts-page .acc-tool-group {
    padding-right: 0;
    border-right: none;
    width: 100%;
  }
  .accounts-page .acc-tool-batch {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .accounts-page .acc-search {
    min-width: 0;
    flex: 1 1 160px;
  }
  .accounts-page .acc-sel {
    max-width: none;
  }
  .export-page .ex-item {
    min-width: 680px;
  }
  .node-columns,
  .nodes-page .node-item {
    min-width: 660px;
  }
  .nodes-surface {
    min-height: 580px;
  }
}

@media (max-width: 440px) {
  .batch-page .kind-row {
    grid-template-columns: 1fr;
  }
  .batch-page .kind-pick {
    min-height: 58px;
  }
  .accounts-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .accounts-page .acc-tool-batch {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
  }
  .accounts-page .acc-tool-batch .btn {
    min-width: 0;
    padding-inline: 8px;
  }
  .accounts-page .acc-tool-filters,
  .accounts-page .acc-tool-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .accounts-page .acc-search {
    grid-column: 1 / -1;
  }
  .export-range {
    grid-template-columns: 1fr;
  }
  .export-query {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-surface,
  .ops-loading i,
  .ops-live i,
  .acc-live.on::before,
  .accounts-page .acc-batch-card,
  .accounts-page .acc-batch-on.is-on::before,
  .accounts-page .acc-batch-name {
    animation: none;
  }
  .ops-page .btn,
  .batch-page .kind-pick,
  .accounts-page .acc-item,
  .accounts-page .acc-batch-card,
  .export-page .ex-item,
  .nodes-page .node-item {
    transition: none;
  }
}

/* Final responsive layout overrides */
.batch-surface {
  width: min(1600px, 100%);
  margin-inline: auto;
}

.batch-page .batch-workspace {
  grid-template-columns: minmax(300px, 330px) minmax(620px, 1fr);
}

.nodes-surface {
  width: min(1840px, 100%);
  max-width: 1840px;
  margin-inline: auto;
}

.nodes-page .node-columns {
  display: none;
}

.nodes-page .ops-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.nodes-page .node-item {
  min-width: 0;
  min-height: 108px;
  margin: 0;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "node-ip node-lat"
    "node-region node-use";
  align-items: center;
  gap: 13px 12px;
  background: #ffffff;
  border: 1px solid #e0e7f0;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(24, 32, 51, 0.035);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nodes-page .node-item:hover {
  background: #ffffff;
  border-color: #b9d2f7;
  box-shadow: 0 9px 22px rgba(58, 131, 247, 0.1);
  transform: translateY(-2px);
}

.nodes-page .node-item .user-chip {
  grid-area: node-ip;
  align-self: end;
  font-size: 13px;
}

.nodes-page .node-item .loc-chip {
  grid-area: node-region;
  align-self: start;
  justify-self: start;
}

.nodes-page .node-item .num-chip {
  grid-area: node-use;
  align-self: start;
  justify-self: end;
}

.nodes-page .node-item .lat {
  grid-area: node-lat;
  align-self: end;
  justify-self: end;
}

@media (max-width: 1080px) {
  .batch-page .batch-workspace {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .batch-page .batch-workspace {
    grid-template-columns: 1fr;
  }

  .batch-page .node-pick-pop {
    width: 100%;
    right: 0;
  }

  .nodes-page .ops-list {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }

  .nodes-page .node-item {
    min-width: 0;
    min-height: 100px;
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nodes-page .node-item,
  .batch-page .node-pick-pop {
    animation: none;
    transition: none;
  }
}

/* Text-only product brand */
.console-page .brand {
  min-height: 48px;
  padding: 4px 12px 24px;
  gap: 0;
}

.console-page .brand::before {
  display: none;
}

.console-page .brand-copy strong {
  font-size: 16px;
}

/* Account menu, utility pages, and authentication ---------------------- */
.console-page .me-pop {
  width: min(342px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(24, 32, 51, 0.16);
  backdrop-filter: none;
  animation: me-pop-in 0.18s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.console-page .me-head {
  padding: 16px;
  gap: 11px;
  background: #fbfcfe;
  border-bottom: 1px solid #e4eaf2;
}

.console-page .me-ava {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  background: #eaf2ff;
  box-shadow: 0 0 0 1px #d4e3fb;
}

.console-page .me-head .name {
  color: #182033;
  font-size: 15px;
  font-weight: 720;
}

.console-page .me-head .sub {
  color: #7b8594;
  font-size: 10px;
}

.console-page .me-stats {
  gap: 7px;
  padding: 12px 14px;
  background: #ffffff;
}

.console-page .me-stats div {
  min-width: 0;
  padding: 9px 7px;
  background: #f6f8fb;
  border: 1px solid #e5eaf1;
  border-radius: 6px;
}

.console-page .me-stats b {
  color: #1f2a3d;
  font-size: 12px;
}

.console-page .me-stats span {
  color: #7b8594;
  font-size: 9px;
}

.me-actions {
  padding: 0 14px 12px;
  display: grid;
  gap: 6px;
}

.me-action {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #283447;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.me-action:hover {
  color: #2567c6;
  background: #f5f8fe;
  border-color: #bdd3f5;
  box-shadow: 0 5px 14px rgba(58, 131, 247, 0.08);
  transform: translateY(-1px);
}

.me-action span {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.me-action b {
  font-size: 11px;
  font-weight: 700;
}

.me-action small {
  color: #8791a0;
  font-size: 9px;
}

.me-action i {
  color: #7ea8e9;
  font-style: normal;
  font-size: 15px;
}

.console-page .me-out {
  min-height: 43px;
  justify-content: center;
  color: #b43d3d;
  background: #fffafa;
  border-top: 1px solid #f0dede;
  font-size: 11px;
  font-weight: 650;
}

.console-page .me-out:hover {
  background: #fff2f2;
}

.utility-page .utility-content {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
}

.utility-surface {
  width: min(520px, 100%);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(24, 32, 51, 0.09);
  animation: utility-in 0.4s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.utility-head {
  min-height: 43px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fbfcfe;
  border-bottom: 1px solid #e2e8f0;
}

.utility-head a {
  color: #2d6dcc;
  font-size: 10px;
  font-weight: 650;
}

.utility-head > span {
  color: #8b95a4;
  font-size: 9px;
  font-weight: 750;
}

.utility-form {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.utility-title {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.utility-title h2 {
  margin: 0;
  color: #182033;
  font-size: 16px;
  font-weight: 720;
}

.utility-title > div > span {
  display: block;
  margin-top: 3px;
  color: #7c8796;
  font-size: 10px;
}

.utility-field {
  display: grid;
  gap: 7px;
}

.utility-field > span {
  color: #637084;
  font-size: 10px;
  font-weight: 700;
}

.utility-page .utility-field input:not([type=checkbox]):not([type=radio]) {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #263247;
  background: #f7f9fc;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  box-shadow: none;
  font-size: 12px;
}

.utility-page .utility-field input:focus {
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.11);
}

.utility-page .auth-pass {
  width: 100%;
}

.utility-page .auth-eye {
  top: 50%;
  transform: translateY(-50%);
}

.utility-page .btn.wide {
  min-height: 39px;
  border-radius: 6px;
  background: #3a83f7;
  box-shadow: 0 6px 16px rgba(58, 131, 247, 0.2);
}

.utility-feedback p {
  margin: 0;
}

.utility-feedback:empty,
.utility-feedback p:empty {
  display: none;
}

.auth-page {
  min-height: 100dvh;
  display: block;
  overflow: auto;
  color: #182033;
  background: #f4f7fb;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 7px;
  background: #3a83f7;
}

.auth-stage {
  width: 100%;
  min-height: 100dvh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(420px, 100%);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(24, 32, 51, 0.11);
  animation: auth-card-in 0.48s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.auth-brand {
  min-height: 72px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fbfcfe;
  border-bottom: 1px solid #e3e9f1;
}

.auth-brand img {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d5e4fb;
  animation: auth-avatar-float 3.6s ease-in-out infinite;
}

.auth-brand > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.auth-brand strong {
  color: #182033;
  font-size: 14px;
  font-weight: 720;
}

.auth-brand small {
  color: #7c8796;
  font-size: 8px;
  font-weight: 750;
}

.auth-title {
  padding: 22px 22px 4px;
}

.auth-title h1 {
  margin: 0;
  color: #182033;
  font-size: 22px;
  font-weight: 740;
}

.auth-title > span {
  display: block;
  margin-top: 4px;
  color: #7c8796;
  font-size: 11px;
}

.auth-page .auth-form {
  padding: 18px 22px 22px;
}

.auth-field {
  margin-bottom: 13px;
  display: grid;
  gap: 7px;
}

.auth-field > span {
  color: #637084;
  font-size: 10px;
  font-weight: 700;
}

.auth-page .auth-form .auth-field input:not([type=checkbox]):not([type=radio]) {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  color: #263247;
  background: #f7f9fc;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  box-shadow: none;
  font-size: 12px;
}

.auth-page .auth-form .auth-field input:not([type=checkbox]):not([type=radio]):focus {
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.11);
}

.auth-captcha {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.auth-captcha-q {
  min-width: 74px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  color: #182033;
  background: #f7f9fc;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.auth-page .auth-form .auth-captcha input:not([type=checkbox]):not([type=radio]) {
  min-width: 0;
}

.auth-captcha-refresh {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  background: #ffffff;
  color: #2d6dcc;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.auth-captcha-refresh:hover {
  border-color: #78aafc;
  background: #f7f9fc;
}

.auth-page .err {
  min-height: 18px;
  margin: 0 0 12px;
  color: #c23b32;
  font-size: 12px;
}

.auth-page .auth-pass {
  width: 100%;
}

.auth-page .auth-pass input {
  padding-right: 43px !important;
}

.auth-page .auth-eye {
  top: 50%;
  transform: translateY(-50%);
}

.auth-page .auth-extra {
  margin: 3px 0 17px;
  color: #536074;
  font-size: 11px;
}

.auth-page .auth-remember {
  color: #536074;
}

.auth-page .auth-remember input {
  accent-color: #3a83f7;
}

.auth-page .auth-extra a {
  color: #2d6dcc;
  font-weight: 650;
}

.auth-page .auth-go {
  min-height: 40px;
  border-radius: 6px;
  background: #3a83f7;
  box-shadow: 0 7px 18px rgba(58, 131, 247, 0.22);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.auth-page .auth-go:hover {
  background: #256be0;
  box-shadow: 0 9px 22px rgba(58, 131, 247, 0.28);
  transform: translateY(-1px);
}

.auth-card-foot {
  min-height: 39px;
  display: grid;
  place-items: center;
  color: #8993a1;
  background: #fbfcfe;
  border-top: 1px solid #e7ebf1;
  font-size: 9px;
  font-weight: 650;
}

@keyframes me-pop-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes utility-in {
  from { opacity: 0; transform: translateY(8px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes auth-avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 760px) {
  .utility-page .utility-content {
    min-height: calc(100dvh - 62px);
    padding: 14px;
  }

  .utility-form {
    padding: 18px 16px;
  }

  .auth-stage {
    padding: 18px 14px;
  }

  .auth-card {
    width: min(420px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .console-page .me-pop,
  .utility-surface,
  .auth-card,
  .auth-brand img {
    animation: none;
  }

  .me-action,
  .auth-page .auth-go {
    transition: none;
  }
}

/* Public home refinement ------------------------------------------------ */
.auth-page::before {
  display: none;
}

.home-page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr) 42px;
  overflow: hidden;
  color: #182033;
  background: #f4f7fb;
}

.home-nav {
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border-bottom: 1px solid #e1e7ef;
}

.home-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #182033;
}

.home-brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d4e3fb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-brand:hover img {
  transform: rotate(-4deg) scale(1.04);
  box-shadow: 0 6px 15px rgba(58, 131, 247, 0.18);
}

.home-brand > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.home-brand strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-brand small {
  color: #7b8594;
  font-size: 8px;
  font-weight: 750;
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-nav-actions .btn {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 6px;
  background: #3a83f7;
  font-size: 11px;
}

.home-link {
  padding: 7px 10px;
  color: #536074;
  font-size: 11px;
  font-weight: 650;
  transition: color 0.15s ease, background 0.15s ease;
}

.home-link:hover {
  color: #2d6dcc;
  background: #edf4ff;
}

.home-main {
  min-height: 0;
  padding: 38px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.home-page .home-hero {
  width: min(760px, 100%);
  min-height: 0;
  flex: 1;
  margin: 0 auto;
  padding: 24px 20px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  animation: home-hero-in 0.52s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.home-mark {
  width: 104px;
  height: 104px;
  margin-bottom: 20px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(58, 131, 247, 0.18), 0 0 0 6px rgba(255, 255, 255, 0.7);
  animation: home-mark-float 4s ease-in-out infinite;
}

.home-page .home-kicker {
  margin: 0 0 8px;
  color: #3a83f7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-page .home-hero h1 {
  margin: 0;
  color: #182033;
  font-size: 46px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.15;
}

.home-lead {
  margin: 11px 0 0;
  color: #707b8b;
  font-size: 13px;
  font-weight: 550;
}

.home-page .home-acts {
  margin-top: 26px;
  display: flex;
  gap: 10px;
}

.home-page .home-acts .btn {
  min-width: 112px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 6px;
  background: #3a83f7;
  box-shadow: 0 8px 20px rgba(58, 131, 247, 0.2);
  font-size: 12px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.home-page .home-acts .btn:hover {
  background: #256be0;
  box-shadow: 0 10px 24px rgba(58, 131, 247, 0.27);
  transform: translateY(-2px);
}

.home-page .home-acts .btn.ghost {
  color: #3d4a5d;
  background: #ffffff;
  border: 1px solid #d6e0ec;
  box-shadow: 0 5px 14px rgba(24, 32, 51, 0.05);
}

.home-page .home-acts .btn.ghost:hover {
  color: #2d6dcc;
  background: #f7faff;
  border-color: #a9c8f8;
}

.home-garden {
  width: min(940px, 86vw);
  height: 112px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  align-items: end;
  gap: 10px;
  border-bottom: 4px solid #182033;
}

.home-garden i {
  position: relative;
  display: block;
  height: 48px;
  background: #dbe9fd;
  border: 1px solid #c4d9f7;
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
  animation: garden-grow 0.48s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.home-garden i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 2px;
  height: 24px;
  background: #3a83f7;
  transform: translateX(-50%);
}

.home-garden i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 35px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #3a83f7;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

.home-garden i:nth-child(2),
.home-garden i:nth-child(6) { height: 70px; animation-delay: 0.05s; }
.home-garden i:nth-child(3),
.home-garden i:nth-child(5) { height: 88px; animation-delay: 0.1s; }
.home-garden i:nth-child(4) { height: 104px; animation-delay: 0.15s; background: #cfe1fc; }

.home-foot {
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8993a2;
  background: #ffffff;
  border-top: 1px solid #e1e7ef;
  font-size: 9px;
  font-weight: 650;
}

@keyframes home-hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes garden-grow {
  from { opacity: 0; transform: scaleY(0.4); }
  to { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 700px) {
  .home-page {
    grid-template-rows: 64px minmax(0, 1fr) 38px;
  }

  .home-nav {
    padding: 0 14px;
  }

  .home-brand img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .home-brand strong {
    font-size: 12px;
  }

  .home-nav-actions .home-link {
    display: none;
  }

  .home-main {
    padding: 20px 14px 0;
  }

  .home-mark {
    width: 84px;
    height: 84px;
  }

  .home-page .home-hero h1 {
    font-size: 34px;
  }

  .home-page .home-acts {
    width: min(320px, 100%);
  }

  .home-page .home-acts .btn {
    flex: 1;
    min-width: 0;
  }

  .home-garden {
    width: 100%;
    height: 84px;
    gap: 5px;
    padding-inline: 2px;
  }

  .home-garden i:nth-child(n) {
    max-height: 78px;
  }

  .home-foot {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero,
  .home-mark,
  .home-garden i {
    animation: none;
  }

  .home-brand img,
  .home-page .home-acts .btn {
    transition: none;
  }
}

/* Administration workspace --------------------------------------------- */
.admin-page {
  --admin-line: #dfe6ef;
  --admin-soft: #f7f9fc;
  --admin-ink: #182033;
  --admin-muted: #6f7a8a;
  background: #f4f7fb;
}

.admin-page .admin-menu {
  counter-reset: admin-nav;
}

.admin-page .admin-menu a {
  counter-increment: admin-nav;
}

.admin-page .admin-menu a::before {
  content: counter(admin-nav, decimal-leading-zero);
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  color: rgba(239, 245, 241, 0.48);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 750;
}

.admin-page .admin-menu a.on::before {
  color: #ffffff;
  background: #3a83f7;
}

.admin-page .top {
  flex: 0 0 68px;
}

.admin-page .admin-logout {
  min-width: 58px;
  margin-left: auto;
  color: #526073;
  background: #ffffff;
  border: 1px solid #d8e1ec;
  border-radius: 6px;
}

.admin-page .hostbar {
  min-height: 43px;
  flex: 0 0 auto;
  padding: 8px 26px;
  gap: 7px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--admin-line);
  color: var(--admin-muted);
  font-size: 10px;
}

.admin-page .hostbar span {
  min-height: 25px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  color: #526073;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 5px;
}

.admin-page .hostbar .warm {
  color: #8e6219;
  background: #fff7e3;
  border-color: #f0ddb0;
}

.admin-page .hostbar .hot {
  color: #aa3e3e;
  background: #fff0f0;
  border-color: #efcece;
}

.admin-page .admin-content {
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1;
  display: block;
  padding: 18px 22px 30px;
  overflow: auto;
  scrollbar-color: #bac7d8 transparent;
  scrollbar-width: thin;
}

.admin-section {
  width: 100%;
  animation: admin-section-in 0.34s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.admin-section[hidden] {
  display: none;
}

.admin-page .stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-page .stat {
  min-height: 92px;
  padding: 15px 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-page .stat:hover {
  border-color: #bad2f6;
  box-shadow: 0 8px 20px rgba(58, 131, 247, 0.08);
  transform: translateY(-1px);
}

.admin-page .stat .k {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 650;
}

.admin-page .stat .v {
  margin-top: 9px;
  color: var(--admin-ink);
  font-size: 21px;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}

.admin-page .split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-page .panel {
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  box-shadow: none;
  animation: admin-panel-in 0.38s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.admin-page .panel h2 {
  min-height: 50px;
  margin: 0;
  padding: 15px 16px;
  color: var(--admin-ink);
  background: #fbfcfe;
  border-bottom: 1px solid var(--admin-line);
  font-size: 13px;
  font-weight: 720;
}

.admin-page .panel .hint {
  margin: 0;
  padding: 12px 16px !important;
  color: #707b8b;
  background: #fbfcfe;
  border-bottom: 1px solid #e7ecf2;
  font-size: 10px;
  line-height: 1.6;
}

.admin-page .panel code {
  color: #2d6dcc;
  background: #edf4ff;
  border-radius: 4px;
  padding: 2px 5px;
}

.admin-page .form-grid {
  padding: 12px 12px 4px;
  gap: 8px;
}

.admin-page .field {
  min-height: 48px;
  padding: 4px;
}

.admin-page .field input,
.admin-page .field textarea,
.admin-page .field select,
.admin-page .search-bar input,
.admin-page .search-bar select {
  min-height: 38px;
  padding: 8px 10px;
  color: #263247;
  background: #f7f9fc;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  box-shadow: none;
  font-size: 11px;
}

.admin-page .field textarea {
  min-height: 144px !important;
  resize: vertical;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace !important;
  line-height: 1.55;
}

.admin-page .field input:focus,
.admin-page .field textarea:focus,
.admin-page .field select:focus,
.admin-page .search-bar input:focus,
.admin-page .search-bar select:focus {
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.11);
}

.admin-page .btn {
  min-height: 32px;
  padding: 5px 11px;
  color: #ffffff;
  background: #3a83f7;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 680;
  box-shadow: 0 5px 14px rgba(58, 131, 247, 0.17);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.admin-page .btn:hover {
  background: #256be0;
  transform: translateY(-1px);
}

.admin-page .btn.ghost {
  color: #526073;
  background: #ffffff;
  border: 1px solid #d8e1ec;
  box-shadow: none;
}

.admin-page .btn.ghost:hover {
  color: #2d6dcc;
  background: #f5f8fe;
  border-color: #b9d2f7;
}

.admin-page .btn.danger {
  color: #b33f3f;
  background: #fffafa;
  border: 1px solid #efd4d4;
  box-shadow: none;
}

.admin-page .search-bar {
  min-height: 58px;
  margin: 0;
  padding: 10px 12px;
  gap: 8px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--admin-line);
}

.admin-page .search-bar input,
.admin-page .search-bar select {
  flex: 1;
}

.admin-page .table {
  min-width: 760px;
}

.admin-page .panel:has(.table),
.admin-page #adm-table,
.admin-page #user-table,
.admin-page #acc-table,
.admin-page #px-table,
.admin-page #code-table,
.admin-page #log-table {
  overflow-x: auto;
  scrollbar-color: #bac7d8 transparent;
  scrollbar-width: thin;
}

.admin-page .table th,
.admin-page .table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
  font-size: 10px;
  white-space: nowrap;
}

.admin-page .table th {
  color: #707b8b;
  background: #fbfcfe;
  font-weight: 700;
}

.admin-page .table tbody tr {
  transition: background 0.14s ease;
}

.admin-page .table tbody tr:hover {
  background: #f5f8fe;
}

.admin-page .ops {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-page .ops .btn {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 9px;
}

.admin-page .row {
  min-height: 46px;
  padding: 10px 16px;
  border-bottom-color: #edf1f6;
}

.admin-page .code-out {
  min-height: 54px;
  margin: 0 12px 12px;
  padding: 11px;
  color: #314056;
  background: #f6f8fb;
  border: 1px solid #e0e7f0;
  border-radius: 6px;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.admin-page #pg-stress .stats {
  padding: 0 12px 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-page #pg-stress .stat {
  min-height: 82px;
}

.admin-page #err,
.admin-page #ok {
  position: fixed;
  left: -9999px;
}

.admin-auth-page .admin-auth-card {
  width: min(420px, 100%);
}

.admin-auth-page .auth-form {
  padding-top: 18px;
}

@keyframes admin-section-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes admin-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .admin-page .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-page #pg-stress .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-page,
  .admin-page .app,
  .admin-page .shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .admin-page .hostbar {
    position: static;
    padding: 8px 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .admin-page .hostbar span {
    flex: 0 0 auto;
  }

  .admin-page .admin-content {
    min-height: calc(100dvh - 105px);
    padding: 14px;
    overflow: visible;
  }

  .admin-page .split,
  .admin-page .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .stats,
  .admin-page #pg-stress .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admin-page .admin-logout {
    min-width: 50px;
    padding-inline: 8px;
  }

  .admin-page .stats,
  .admin-page #pg-stress .stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-page .stat {
    min-height: 78px;
    padding: 12px;
  }

  .admin-page .search-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-section,
  .admin-page .panel {
    animation: none;
  }

  .admin-page .stat,
  .admin-page .btn,
  .admin-page .table tbody tr {
    transition: none;
  }
}

/* Administration tools aligned with the front workspace */
.admin-section {
  counter-reset: admin-tool;
}

.admin-page .panel h2 {
  counter-increment: admin-tool;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page .panel h2::before {
  content: counter(admin-tool, decimal-leading-zero);
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  color: #276cca;
  background: #e7f0ff;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 750;
}

.admin-proxy-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 12px;
}

.admin-proxy-tools .admin-tool {
  min-height: 100%;
}

.admin-tool-actions {
  padding: 4px 16px 16px;
  display: flex;
  justify-content: flex-end;
}

.admin-assign-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.admin-assign-body .field {
  padding: 0;
  display: grid;
  gap: 7px;
}

.admin-assign-body .field > span {
  color: #637084;
  font-size: 10px;
  font-weight: 700;
}

.admin-assign-body .btn {
  width: 100%;
}

.admin-page #pg-proxies > .admin-tool {
  animation-delay: 0.05s;
}

@media (max-width: 960px) {
  .admin-proxy-tools {
    grid-template-columns: 1fr;
  }
}

/* Expanded account controls */
.account-detail-page .ctrl-fold-body {
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.28s ease, opacity 0.18s ease, transform 0.18s ease;
}

.account-detail-page .ctrl-fold.open .ctrl-fold-body {
  max-height: 2800px;
  opacity: 1;
  transform: translateY(0);
}

.account-detail-page .ctrl-fold.open > .ctrl-fold-hd {
  background: #edf4ff;
  border-bottom: 1px solid #cfdef4;
}

.account-detail-page .ctrl-fold.open > .ctrl-fold-hd:hover {
  background: #e8f1ff;
}

.account-detail-page .ctrl-fold.open .ctrl-sub-rows {
  padding: 9px;
  background: #f7f9fc;
}

.account-detail-page .ctrl-fold.open .ctrl-sub {
  min-height: 58px;
  margin: 0;
  padding: 10px 11px;
  background: #ffffff;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.account-detail-page .ctrl-fold.open .ctrl-sub:hover {
  background: #ffffff;
  border-color: #b9d2f7;
  box-shadow: 0 5px 14px rgba(58, 131, 247, 0.08);
  transform: translateY(-1px);
}

.account-detail-page .ctrl-fold.open .ctrl-nest {
  min-width: 0;
  margin: 0;
  padding: 0;
  border-left: 0;
}

.account-detail-page .ctrl-fold.open .ctrl-nest .ctrl-sub {
  height: 100%;
  color: #4f5c70;
  background: #fbfcfe;
  border-style: dashed;
}

.account-detail-page .ctrl-fold.open .ctrl-mid {
  min-width: 0;
  justify-content: flex-start;
  color: #738093;
  font-size: 10px;
}

.account-detail-page .ctrl-fold.open .ctrl-mid:empty {
  display: none;
}

.account-detail-page .ctrl-fold.open .ctrl-plain .ctrl-name {
  color: #667285;
  font-size: 10px;
  font-weight: 650;
}

@media (min-width: 1100px) {
  .account-detail-page .ctrl-fold.open .ctrl-sub-rows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .account-detail-page .ctrl-fold.open .ctrl-row.ctrl-sub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 5px;
  }

  .account-detail-page .ctrl-fold.open .ctrl-row.ctrl-sub .ctrl-name {
    grid-column: 1;
    grid-row: 1;
  }

  .account-detail-page .ctrl-fold.open .ctrl-row.ctrl-sub .ctrl-mid {
    grid-column: 1;
    grid-row: 2;
  }

  .account-detail-page .ctrl-fold.open .ctrl-row.ctrl-sub > .sw {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .account-detail-page .ctrl-fold.open .ctrl-row.ctrl-sub:has(.ctrl-spec) {
    grid-column: 1 / -1;
  }

  .account-detail-page .ctrl-fold.open .ctrl-row.ctrl-sub:has(.ctrl-spec) .ctrl-mid {
    grid-column: 1 / -1;
    width: 100%;
  }

  .account-detail-page .ctrl-fold.open .ctrl-row.ctrl-sub:has(.ctrl-spec) > .sw {
    grid-row: 1;
  }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .account-detail-page .ctrl-fold.open .ctrl-sub-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .account-detail-page .ctrl-fold.open .ctrl-row.ctrl-sub:has(.ctrl-spec) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 719px) {
  .account-detail-page .ctrl-fold.open .ctrl-sub-rows {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-detail-page .ctrl-fold-body,
  .account-detail-page .ctrl-fold.open .ctrl-sub {
    transition: none;
  }
}

/* Final notification, account table, and admin normalization ----------- */
.toast-box {
  top: 82px;
  right: 20px;
  width: min(420px, calc(100vw - 28px));
  gap: 12px;
}

.toast {
  position: relative;
  min-height: 64px;
  padding: 16px 20px 16px 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #263247;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dfe6ef;
  border-left: 4px solid var(--toast-accent);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(24, 32, 51, 0.14);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
  animation: toast-refined-in 0.2s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.toast::before {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--toast-accent);
  opacity: 0.35;
  transform-origin: left;
  animation: toast-life 2.8s linear both;
}

.toast.ok {
  --toast-accent: #256be0;
  color: #263247;
}

.toast.ok::before {
  content: "✓";
  background: #256be0;
}

.toast.err {
  --toast-accent: #d05555;
  color: #263247;
}

.toast.err::before {
  content: "!";
  background: #d05555;
}

.toast.info {
  --toast-accent: #3a83f7;
  color: #263247;
}

.toast.info::before {
  content: "i";
  background: #3a83f7;
}

.toast.out {
  opacity: 0;
  transform: translateX(14px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.hold {
  min-height: 64px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.toast.hold::after {
  width: 42%;
  opacity: 0.55;
  animation: toast-hold-bar 1.6s ease-in-out infinite;
}

@keyframes toast-hold-bar {
  0%,
  100% {
    transform: scaleX(0.28);
    opacity: 0.28;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.7;
  }
}

.accounts-page .acc-head,
.accounts-page .acc-item {
  min-width: 1796px;
  grid-template-columns:
    28px
    40px
    68px
    52px
    minmax(96px, max-content)
    minmax(168px, max-content)
    minmax(132px, 1fr)
    minmax(168px, 1.35fr)
    minmax(118px, 0.9fr)
    minmax(96px, 0.85fr)
    86px
    86px
    100px
    220px
    56px;
  gap: 10px;
  padding-inline: 10px;
}

.accounts-page .acc-head > span:nth-child(-n + 4),
.accounts-page .acc-item > :nth-child(-n + 4) {
  justify-self: center;
  text-align: center;
}

.accounts-page .acc-head > span:nth-child(n + 10),
.accounts-page .acc-item > :nth-child(n + 10) {
  justify-self: center;
  text-align: center;
}

.accounts-page .acc-item .ico-chip,
.accounts-page .acc-item .acc-lands,
.accounts-page .acc-item .acc-time {
  justify-self: center;
}

.accounts-page .acc-item .acc-lands {
  width: 220px;
  justify-content: center;
}

.admin-page .admin-menu {
  counter-reset: none;
}

.admin-page .admin-menu a::before,
.admin-page .panel h2::before {
  display: none;
}

.admin-page .admin-menu a {
  gap: 10px;
}

.admin-page .admin-menu svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-page .admin-menu a.on {
  background: rgba(58, 131, 247, 0.18);
  box-shadow: inset 3px 0 0 #3a83f7;
}

.admin-page .admin-section,
.admin-page .panel {
  animation: none;
}

.admin-page .panel h2 {
  min-height: 46px;
  padding: 13px 15px;
  gap: 0;
  color: #263247;
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 700;
}

.admin-page .stat:hover,
.admin-page .btn:hover {
  transform: none;
}

.admin-page .stat:hover {
  box-shadow: none;
  border-color: #b9cbe3;
}

.admin-page .panel .hint {
  padding-block: 9px !important;
  line-height: 1.45;
}

@keyframes toast-refined-in {
  from { opacity: 0; transform: translateX(12px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-life {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 700px) {
  .toast-box {
    top: 70px;
    right: 14px;
  }

  .toast {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast::after {
    animation: none;
  }
}

.redeem-workspace {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.2fr);
  gap: 14px;
}

.redeem-picks,
.redeem-codes,
.redeem-results {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.redeem-pick-tools {
  padding: 10px 14px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.redeem-accs {
  min-height: 280px;
}

.rd-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
}

.rd-item.off {
  opacity: 0.62;
}

.rd-item .user-chip {
  min-width: 0;
}

.redeem-editor {
  flex: 1;
  min-height: 0;
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
}

.redeem-page #rd-codes {
  flex: 1;
  min-height: 220px;
  resize: vertical;
}

.redeem-tip {
  margin: 10px 0 0;
  color: #7a8699;
  font-size: 12px;
  line-height: 1.5;
}

.ctrl-redeem {
  padding: 4px 2px 8px;
}

.ctrl-redeem .soft-area,
.ctrl-redeem textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}

.ctrl-redeem-act {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.account-detail-page .ctrl-redeem,
.console-page .ctrl-redeem {
  padding: 2px 2px 4px;
}

.account-detail-page .ctrl-redeem textarea,
.console-page .ctrl-redeem textarea {
  min-height: 96px;
  padding: 10px 11px;
  color: #283447;
  background: #f8fafd;
  border: 1px solid #d9e2ed;
  border-radius: 6px;
  font-size: 12px;
}

.account-detail-page .ctrl-redeem textarea:focus,
.console-page .ctrl-redeem textarea:focus {
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.11);
}

.rd-row {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
}

.rd-row > header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rd-log {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  background: #f4f7fb;
  border: 1px solid #d9e2ed;
  color: #4b5870;
  font-size: 11px;
}

.rd-chip.ok {
  color: #256be0;
  background: #eef8f1;
  border-color: #bcd5fc;
}

.rd-chip.bad {
  color: #b34747;
  background: #fff4f4;
  border-color: #efd6d6;
}

.redeem-results {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .redeem-workspace {
    grid-template-columns: 1fr;
  }
}

.mobile-account-open,
.mobile-bottom-nav,
.mobile-more-sheet,
.mobile-more-backdrop {
  display: none;
}

/* Xiaoduo quota */
.member-content {
  place-items: start center;
}

.member-surface {
  width: min(760px, 100%);
}

.member-summary {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  border-bottom: 1px solid #e4eaf2;
}

.member-summary > div {
  min-height: 82px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}

.member-summary span {
  color: #758092;
  font-size: 10px;
  font-weight: 650;
}

.member-summary b {
  color: #182033;
  font-size: 18px;
  font-weight: 740;
}

.member-rule {
  padding: 11px 18px;
  color: #5f6d80;
  background: #edf4ff;
  border-bottom: 1px solid #d6e5fa;
  font-size: 10px;
}

.member-grants {
  padding: 12px 18px 18px;
  display: grid;
  gap: 7px;
}

.member-grant {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, auto) 58px;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}

.member-grant > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.member-grant b {
  color: #2d6dcc;
  font-size: 14px;
}

.member-grant span {
  overflow: hidden;
  color: #748092;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-grant i {
  padding: 4px 6px;
  color: #256be0;
  background: #edf4ff;
  border-radius: 5px;
  text-align: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.member-grant.expired {
  opacity: 0.62;
}

.member-grant.expired i {
  color: #7b8492;
  background: #eff2f5;
}

@media (max-width: 700px) {
  .member-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .member-grants {
    padding: 10px 12px 14px;
  }

  .member-grant {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .member-grant > span {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

/* 账号日志顶部：现在在干嘛、为什么、接下来做什么 */
.log-plan { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #f3f7ff; border: 1px solid #dbe6ff; }
.log-plan-grow { background: #fff8ec; border-color: #f6dfb4; }
.log-plan-wait { background: #f4f6f8; border-color: #e1e5ea; }
.log-plan-stop { background: #eef7ef; border-color: #bcd5fc; }
.log-plan-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-plan-mode { padding: 2px 10px; border-radius: 999px; background: #2f6ef5; color: #fff; font-size: 12px; font-weight: 600; }
.log-plan-grow .log-plan-mode { background: #c27a00; }
.log-plan-wait .log-plan-mode { background: #6b7785; }
.log-plan-stop .log-plan-mode { background: #256be0; }
.log-plan-head { font-weight: 600; color: #1d2433; }
.log-plan-stuck { margin-left: auto; font-size: 12px; color: #b4570b; }
.log-plan-why { margin-top: 6px; color: #3a4456; font-size: 13px; line-height: 1.5; }
.log-plan-borrow { margin-top: 6px; font-size: 12px; color: #8a5a00; }
.log-plan-next { margin: 8px 0 0; padding-left: 20px; color: #4a5568; font-size: 13px; line-height: 1.7; }
.log-row.log-kind-plan .log-tag { background: #dbe6ff; color: #1f4fbf; }
.log-row .log-m { word-break: break-word; }
.ctrl-art-stock { margin-left: 6px; font-size: 12px; color: #6b7785; }

/* 营业统计 */
.biz-open {
  height: 24px;
  padding: 0 10px;
  border: 1px solid #d8e1ec;
  border-radius: 999px;
  background: #ffffff;
  color: #256be0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
}
.biz-open:hover { background: #f2f6fd; border-color: #a8c8fb; }
.biz-open:focus-visible { outline: 2px solid #3a83f7; outline-offset: 2px; }
.biz-card { width: min(440px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.biz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.biz-x {
  width: 28px; height: 28px; border: 0; border-radius: 999px;
  background: #f2f4f7; color: #4e5969; font-size: 18px; line-height: 1; cursor: pointer;
}
.biz-x:hover { background: #e6ebf2; }
.biz-x:focus-visible, .biz-day:focus-visible { outline: 2px solid #3a83f7; outline-offset: 2px; }
.biz-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.biz-day {
  height: 28px; padding: 0 12px; border: 1px solid #d8e1ec; border-radius: 999px;
  background: #ffffff; color: #4e5969; font-size: 12px; cursor: pointer;
}
.biz-day.on { background: #3a83f7; border-color: #3a83f7; color: #ffffff; font-weight: 650; }
.biz-pick { margin-top: 10px; font-size: 12px; color: var(--console-muted, #667285); }
.biz-pick select { margin-left: 6px; height: 28px; border: 1px solid #d7e1ed; border-radius: 6px; padding: 0 6px; font-size: 12px; }
.biz-title { margin-top: 14px; font-size: 14px; font-weight: 700; text-align: center; color: #8a5a1c; }
.biz-sec { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fbf6ec; }
.biz-sec h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #8a5a1c; }
.biz-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: #3d3427; border-bottom: 1px dashed rgba(138, 90, 28, 0.15); }
.biz-row:last-child { border-bottom: 0; }
.biz-row b { font-variant-numeric: tabular-nums; }

/* 账号列表：批量调度 */
.sched-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sched-card .sched-presets { padding: 0; }
.sched-rows {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-top: 1px solid var(--console-line, #e0e7f0);
  padding-top: 4px;
}
.sched-stamp { color: #256be0; font-variant-numeric: tabular-nums; }
.bc-tally,
.bc-gtally {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  background: #eef0f3;
  color: #4e5969;
}
.bc-gtally { margin-left: auto; margin-right: 10px; }
.bc-tally:empty,
.bc-gtally:empty { display: none; }
.tally-all-on { background: #bcd5fc; color: #256be0; }
.tally-all-off { background: #eef0f3; color: #5b6472; }
.tally-mixed { background: #fff1c9; color: #8a5a00; }

/* 打磨 2026-10-19：账号表一屏放下、休息中状态、焦点可见 ------------------ */
.dot-pill.rest { background: #efeafd; color: #5b48b5; }
.console-page .dot-pill.rest { background: #efeafd; color: #5b48b5; }

.console-page select:focus-visible,
.console-page textarea:focus-visible,
.console-page [role="button"]:focus-visible,
.console-page [tabindex="0"]:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: 2px;
}

.accounts-page .workspace-index,
.nodes-page .workspace-index {
  display: none;
}

/* 桌面账号表（自适应）：表头和每一行都是 subgrid，整张表共用一套列，
   每列至少等于这一列里最长的那格，所以数字、ID、节点永远完整显示、不会压到隔壁。
   屏幕宽：多出来的宽度平均分给各列。屏幕窄：角色名和田地先折成两行让位，
   再不够才在表格里横向滚。 */
@media (min-width: 761px) {
  .accounts-page #acc-list.acc-cards {
    display: grid;
    grid-template-columns:
      max-content
      max-content
      repeat(5, minmax(max-content, 1fr))
      minmax(min-content, max-content)
      repeat(5, minmax(max-content, 1fr))
      minmax(min-content, max-content)
      max-content;
    grid-auto-rows: max-content;
    align-content: start;
    column-gap: 10px;
    row-gap: 0;
  }

  .accounts-page #acc-list > .acc-head,
  .accounts-page #acc-list > .acc-item {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    column-gap: normal;
    min-width: 0;
    width: auto;
    padding-inline: 10px;
  }

  .accounts-page #acc-list > .acc-empty {
    grid-column: 1 / -1;
  }

  .accounts-page .acc-item > * {
    min-width: 0;
    max-width: none;
  }

  .accounts-page .acc-item .ico-chip,
  .accounts-page .acc-item .user-chip,
  .accounts-page .acc-item .acc-uid,
  .accounts-page .acc-item .loc-chip,
  .accounts-page .acc-item .acc-gs,
  .accounts-page .acc-item .acc-main {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .accounts-page .acc-item .acc-lands {
    width: auto;
    min-width: 122px;
    gap: 4px;
    justify-self: start;
    flex-wrap: wrap;
  }

  .accounts-page .acc-item .acc-lands .ico-chip {
    padding: 0 6px;
  }

  /* 角色名是玩家自己起的、长度没上限：最多两行，再长就省略，鼠标悬停看全名 */
  .accounts-page .acc-item .role-chip {
    min-width: 6em;
    max-width: 16em;
    height: auto;
    min-height: 24px;
    padding-block: 3px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* 1366~1600 的常见笔记本屏：缩一点列间距，让一整行（含「统计」）一屏放下 */
@media (min-width: 761px) and (max-width: 1600px) {
  .accounts-page #acc-list.acc-cards {
    column-gap: 4px;
    padding-inline: 2px;
  }

  .accounts-page #acc-list > .acc-head,
  .accounts-page #acc-list > .acc-item {
    padding-inline: 2px;
  }
}

.accounts-page .acc-item .ico-chip b,
.accounts-page .acc-item .acc-main,
.accounts-page .acc-item .acc-uid {
  font-variant-numeric: tabular-nums;
}

.acc-m-meta,
.acc-m-res {
  display: none;
}

.accounts-page.acc-pick-on .accounts-surface {
  height: auto;
  max-height: 100%;
}

.accounts-page.acc-pick-on .acc-waves {
  flex: 0 1 auto;
}

.accounts-page.acc-pick-on .acc-waves > :last-child {
  border-bottom: 0;
}

/* 控制台（统计看板）：一句话今天收了多少金币 + 7 天走势；中间「花圃」一格一个号；右栏资产和要处理的号 */
.home-page {
  --hb-ink: #182033;
  --hb-muted: #6f7886;
  --hb-line: #e0e7f0;
  --hb-paper: #ffffff;
  --hb-soil: #f5f8fc;
  --hb-leaf: #256be0;
  --hb-gold: #256be0;
}

.home-page .page.home-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas:
    "hero hero"
    "bed side";
  grid-template-rows: auto;
  grid-auto-rows: auto;
  align-items: start;
  gap: 16px;
  overflow: auto;
  align-content: start;
}

.home-board .hb-h {
  margin: 0;
  color: var(--hb-ink);
  font-size: 15px;
  font-weight: 700;
}

.home-board .hb-count {
  margin-left: 6px;
  color: var(--hb-muted);
  font-size: 12px;
  font-weight: 500;
}

.home-board .hb-hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 28px;
  padding: 24px 28px;
  background: var(--hb-paper);
  border: 1px solid var(--hb-line);
  border-radius: 10px;
}

.home-board .hb-day {
  margin: 0 0 6px;
  color: var(--hb-muted);
  font-size: 13px;
}

.home-board .hb-hero-line {
  margin: 0;
  color: var(--hb-ink);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
}

.home-board .hb-hero-line b {
  color: var(--hb-gold);
  font-size: 44px;
  font-weight: 760;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.home-board .hb-hero-sub {
  margin: 8px 0 0;
  color: var(--hb-muted);
  font-size: 13px;
}

.home-board .hb-earn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--hb-line);
  list-style: none;
}

.home-board .hb-earn li {
  display: grid;
  gap: 2px;
}

.home-board .hb-earn span {
  color: var(--hb-muted);
  font-size: 12px;
}

.home-board .hb-earn b {
  color: var(--hb-ink);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-board .hb-delta {
  color: var(--hb-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.home-board .hb-delta.up { color: var(--hb-leaf); }
.home-board .hb-delta.down { color: #c2483d; }

.home-board .hb-trend {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.home-board .hb-trend figcaption {
  color: var(--hb-muted);
  font-size: 12px;
  text-align: right;
}

.home-board .hb-bars {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.home-board .hb-bar {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.home-board .hb-bar i {
  display: block;
  min-height: 2px;
  border-radius: 4px 4px 1px 1px;
  background: #d6e5fd;
}

.home-board .hb-bar.now i { background: var(--hb-gold); }

.home-board .hb-bar span {
  color: var(--hb-muted);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.home-board .hb-bar.now span {
  color: var(--hb-ink);
  font-weight: 650;
}

.home-board .hb-bed {
  grid-area: bed;
  min-width: 0;
  padding: 20px 24px 22px;
  background: var(--hb-paper);
  border: 1px solid var(--hb-line);
  border-radius: 10px;
}

.home-board .hb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.home-board .hb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--hb-muted);
  font-size: 12px;
}

.home-board .hb-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-board .hb-legend b {
  color: var(--hb-ink);
  font-variant-numeric: tabular-nums;
}

.home-board .hb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.home-board .hb-dot.on { background: #3a83f7; }
.home-board .hb-dot.rest { background: #94a3b8; }
.home-board .hb-dot.kick { background: #e0533d; }
.home-board .hb-dot.off { background: #fff; box-shadow: inset 0 0 0 1.5px #b6c0cd; }

.home-board .hb-note {
  margin: 6px 0 14px;
  color: var(--hb-muted);
  font-size: 12px;
}

.home-board .hb-sub {
  margin: 22px 0 8px;
  font-size: 13px;
}

.home-board .hb-work {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-board .hb-work li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eef1ec;
  font-size: 13px;
}

.home-board .hb-work span { color: #4b564f; }

.home-board .hb-work b {
  color: var(--hb-ink);
  font-variant-numeric: tabular-nums;
}

.home-board .hb-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 0;
  color: var(--hb-muted);
  font-size: 13px;
}

.home-board .hb-side {
  grid-area: side;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px;
  background: var(--hb-paper);
  border: 1px solid var(--hb-line);
  border-radius: 10px;
}

.home-board .hb-assets,
.home-board .hb-todo {
  display: grid;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.home-board .hb-assets li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
  color: #4e5969;
  font-size: 13px;
}

.home-board .hb-assets li:last-child { border-bottom: 0; }

.home-board .hb-assets b {
  margin-left: auto;
  color: var(--hb-ink);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-board .hb-ic {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.home-board .hb-ic svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-board .hb-ic { background: #edf4ff; color: #256be0; }

.home-board .hb-todo li a {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

.home-board .hb-todo li + li { border-top: 1px solid #eef2f7; }
.home-board .hb-todo li a:hover b { color: #256be0; }

.home-board .hb-todo b {
  overflow: hidden;
  color: var(--hb-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-board .hb-todo span {
  color: #c2483d;
  font-size: 12px;
}

.home-board .hb-todo .hb-ok,
.home-board .hb-todo .hb-more a {
  color: var(--hb-muted);
  font-size: 12px;
}

.home-board .hb-todo .hb-ok { padding: 8px 0; }

.home-board .hb-go {
  justify-content: center;
}

@media (max-width: 1180px) {
  .home-page .page.home-board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "bed"
      "side";
  }
  .home-board .hb-side {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .home-board .hb-go { grid-column: 1 / -1; }
}

/* 控制台 v4：全站蓝白一套。收益一行平铺不加框，花圃按蓝色深浅，公告蓝白，侧栏白底 */
.home-board .hb-bar.now i { background: #3a83f7; }

.home-board .hb-plots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--hb-soil);
  border-radius: 10px;
}
.home-board .hb-plot {
  --c: #3a83f7;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  min-height: 56px;
  padding: 18px 8px 7px;
  border-radius: 8px;
  border: 1px solid #d6e5fd;
  background: #fff;
  color: var(--hb-ink);
  text-decoration: none;
  outline-offset: 2px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.home-board .hb-plot:hover,
.home-board .hb-plot:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 107, 224, 0.14);
  outline: 2px solid var(--c);
}
.home-board .hb-plot-st {
  position: absolute;
  left: 8px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.home-board .hb-plot b {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-board .hb-plot small {
  font-size: 11px;
  color: #4e5969;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.home-board .hb-plot.on.lv1 { background: #f2f7ff; }
.home-board .hb-plot.on.lv2 { background: #dceaff; border-color: #c4dafd; }
.home-board .hb-plot.on.lv3 { background: #bcd5fc; border-color: #a6c7fb; }
.home-board .hb-plot.on.lv4 { background: #8fb9f9; border-color: #7aabf8; }
.home-board .hb-plot.on.lv4 small { color: #182033; }
.home-board .hb-plot.rest { --c: #94a3b8; background: #f1f4f8; border-color: #e0e7f0; }
.home-board .hb-plot.kick { --c: #e0533d; background: #fdeeec; border-color: #f6c9c2; }
.home-board .hb-plot.kick small { color: #c2483d; }
.home-board .hb-plot.off {
  --c: #b6c0cd;
  background: #fff;
  border: 1px dashed #c9d3df;
}
.home-board .hb-plot.off small,
.home-board .hb-plot.rest small {
  color: var(--hb-muted);
  font-weight: 600;
}

/* 花圃工具条：状态筛选 / 搜索 / 排序 / 小格 */
.home-board .hb-plot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 10px;
}
.home-board .hb-plot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 100%;
}
.home-board .hb-plot-bar .hb-plot-q { flex: 0 1 220px; width: 220px; min-width: 0; }
.home-board .hb-plot-bar .hb-plot-sort { flex: 0 0 auto; width: auto; }
/* 筛选按钮已经带了状态点和数量，上面的图例就不重复显示 */
.home-board .hb-head .hb-legend { display: none; }
.home-board .hb-plot-tabs button,
.home-board .hb-plot-dense,
.home-board .hb-plot-more button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--hb-line);
  border-radius: 999px;
  background: #fff;
  color: #4e5969;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.home-board .hb-plot-tabs button b {
  color: var(--hb-ink);
  font-variant-numeric: tabular-nums;
}
.home-board .hb-plot-tabs button:hover,
.home-board .hb-plot-dense:hover,
.home-board .hb-plot-more button:hover {
  border-color: #bcd5fc;
  color: #256be0;
}
.home-board .hb-plot-tabs button.on,
.home-board .hb-plot-dense.on {
  border-color: #3a83f7;
  background: #edf4ff;
  color: #256be0;
}
.home-board .hb-plot-tabs button:focus-visible,
.home-board .hb-plot-dense:focus-visible,
.home-board .hb-plot-more button:focus-visible,
.home-board .hb-plot-q:focus-visible,
.home-board .hb-plot-sort:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: 1px;
}
.home-board .hb-plot-q,
.home-board .hb-plot-sort {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--hb-line);
  border-radius: 8px;
  background: #fff;
  color: var(--hb-ink);
  font: inherit;
  font-size: 12px;
}
.home-board .hb-plot-q { width: 170px; }
.home-board .hb-plot-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--hb-muted);
  font-size: 12px;
}
.home-board .hb-plot-more[hidden] { display: none; }

/* 小格：只留状态点和底色，名字和金币放到鼠标提示里，一屏能看上千个号 */
.home-board .hb-plots.dense {
  grid-template-columns: repeat(auto-fill, minmax(22px, 1fr));
  gap: 4px;
  padding: 10px;
}
.home-board .hb-plots.dense .hb-plot {
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 5px;
}
.home-board .hb-plots.dense .hb-plot b,
.home-board .hb-plots.dense .hb-plot small { display: none; }
.home-board .hb-plots.dense .hb-plot-st {
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
}
.home-board .hb-plots.dense .hb-plot.on.lv1 .hb-plot-st,
.home-board .hb-plots.dense .hb-plot.on.lv2 .hb-plot-st,
.home-board .hb-plots.dense .hb-plot.on.lv3 .hb-plot-st,
.home-board .hb-plots.dense .hb-plot.on.lv4 .hb-plot-st { background: #256be0; }
.home-board .hb-plots.dense .hb-plot:hover,
.home-board .hb-plots.dense .hb-plot:focus-visible { transform: none; }

/* 左侧导航：和主色同色相的深海蓝打底、白字，选中项用主色蓝，和右边按钮呼应 */
.console-page .side {
  color: #ffffff;
  background: linear-gradient(180deg, #1f4280 0%, #19366b 100%);
  border-right: 0;
}
.console-page .brand,
.console-page .brand-copy strong {
  color: #ffffff;
}
.console-page .brand-copy small,
.console-page .menu::before {
  color: rgba(255, 255, 255, 0.55);
}
.console-page .menu a {
  color: rgba(255, 255, 255, 0.8);
}
.console-page .menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}
.console-page .menu a.on,
.batch-page .menu a[href="/batch"],
.accounts-page .menu a[href="/accounts"],
.account-detail-page .menu a[href="/accounts"],
.export-page .menu a[href="/export"],
.nodes-page .menu a[href="/nodes"],
.admin-page .admin-menu a.on {
  color: #ffffff;
  background: linear-gradient(90deg, #4d95fb 0%, #3a83f7 55%, #2c6fe2 100%);
  box-shadow: 0 4px 12px rgba(10, 30, 70, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-weight: 650;
}
.console-page .menu a.on::after,
.batch-page .menu a[href="/batch"]::after,
.accounts-page .menu a[href="/accounts"]::after,
.account-detail-page .menu a[href="/accounts"]::after,
.export-page .menu a[href="/export"]::after,
.nodes-page .menu a[href="/nodes"]::after {
  background: #ffffff;
}
.console-page .side .who {
  color: rgba(255, 255, 255, 0.7);
  border-top-color: rgba(255, 255, 255, 0.14);
}

/* 账号列表落地页（按导入时间）：顶部深蓝主卡是「全部账号」，下面导入记录和分组分两栏。
   这一段放在最后，盖掉前面 .acc-batch-card 的清单写法和 700px 里的旧列宽。 */
.accounts-page.acc-pick-on .accounts-surface {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.accounts-page.acc-pick-on .accounts-surface::before {
  display: none;
}
.accounts-page.acc-pick-on .accounts-head {
  min-height: 0;
  padding: 2px 2px 14px;
  background: transparent;
  border-bottom: 0;
}
.accounts-page.acc-pick-on #acc-page-title {
  font-size: 18px;
  font-weight: 700;
}
.accounts-page.acc-pick-on .acc-waves {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 4px;
  background: transparent;
  border-top: 0;
  overflow: visible;
}

.accounts-page .acc-pick-hero {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px 24px 18px;
  color: #ffffff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(77, 149, 251, 0.38) 0%, rgba(77, 149, 251, 0) 55%),
    linear-gradient(135deg, #1f4280 0%, #19366b 100%);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(25, 54, 107, 0.22);
  cursor: pointer;
  overflow: hidden;
  animation: acc-hero-in 0.5s cubic-bezier(0.22, 0.8, 0.32, 1) both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.accounts-page .acc-pick-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(25, 54, 107, 0.28);
}
.accounts-page .acc-pick-hero:focus-visible {
  outline: 3px solid #8fbcff;
  outline-offset: 3px;
}
.accounts-page .acc-hero-top {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.accounts-page .acc-hero-main {
  display: grid;
  gap: 4px;
}
.accounts-page .acc-hero-k {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}
.accounts-page .acc-hero-n {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.accounts-page .acc-hero-n b {
  color: #ffffff;
  font-size: 44px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.accounts-page .acc-hero-side {
  display: grid;
  gap: 6px;
  padding: 0 0 4px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.accounts-page .acc-hero-on {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}
.accounts-page .acc-hero-on b {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.accounts-page .acc-hero-on.is-on::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fbcff;
  animation: acc-on-dot 1.6s ease-in-out infinite;
}
.accounts-page .acc-hero-rate {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.accounts-page .acc-hero-go {
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px 16px;
  color: #19366b;
  background: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: gap 0.2s ease;
}
.accounts-page .acc-hero-go svg {
  width: 16px;
  height: 16px;
}
.accounts-page .acc-pick-hero:hover .acc-hero-go {
  gap: 8px;
}
.accounts-page .acc-hero-mix {
  display: flex;
  gap: 3px;
  height: 8px;
}
.accounts-page .acc-hero-mix i {
  min-width: 4px;
  border-radius: 4px;
  background: #8fbcff;
}
.accounts-page .acc-hero-mix i.mix-1 { background: #5c9dfb; }
.accounts-page .acc-hero-mix i.mix-2 { background: #c9defe; }
.accounts-page .acc-hero-mix i.mix-3 { background: #3a83f7; }
.accounts-page .acc-hero-foot {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.accounts-page .acc-pick-panel {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e0e7f0;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(24, 32, 51, 0.04);
  overflow: hidden;
}
.accounts-page .acc-pick-panel-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 18px 10px;
}
.accounts-page .acc-pick-panel-head h3 {
  margin: 0;
  color: var(--console-ink);
  font-size: 14px;
  font-weight: 700;
}
.accounts-page .acc-pick-panel-head span {
  color: var(--console-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.accounts-page .acc-pick-rows {
  display: grid;
  gap: 2px;
  padding: 0 8px 8px;
}
.accounts-page .acc-pick-none {
  padding: 18px 12px 22px;
  color: var(--console-muted);
  font-size: 12px;
  text-align: center;
}

.accounts-page .acc-pick-pane .acc-batch-card {
  grid-template-columns: 44px minmax(0, 1fr) minmax(128px, auto) auto;
  gap: 14px;
  min-height: 62px;
  padding: 9px 10px;
  background: #ffffff;
  border: 0;
  border-radius: 10px;
}
.accounts-page .acc-pick-pane .acc-batch-card::before {
  display: none;
}
.accounts-page .acc-pick-pane .acc-batch-card:hover,
.accounts-page .acc-pick-pane .acc-batch-card:focus-visible {
  background: #f3f8ff;
  transform: none;
}
.accounts-page .acc-pick-pane .acc-batch-card:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: -2px;
}
.accounts-page .acc-pick-pane .acc-batch-card:active {
  background: #e8f1fe;
  transform: scale(0.997);
}
.accounts-page .acc-pick-pane .acc-batch-card.is-edit {
  background: #f3f8ff;
  box-shadow: inset 0 0 0 1px #8fb0de;
}

.accounts-page .acc-batch-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  color: #256be0;
  background: #edf4ff;
  border-radius: 10px;
  line-height: 1;
  transition: background 0.18s ease;
}
.accounts-page .acc-batch-badge b {
  font-size: 17px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.accounts-page .acc-batch-badge small {
  color: #6b8fc9;
  font-size: 10px;
  font-weight: 600;
}
.accounts-page .acc-batch-card.is-today .acc-batch-badge {
  color: #ffffff;
  background: linear-gradient(160deg, #4d95fb 0%, #2c6fe2 100%);
  box-shadow: 0 4px 10px rgba(44, 111, 226, 0.25);
}
.accounts-page .acc-batch-card.is-today .acc-batch-badge small {
  color: rgba(255, 255, 255, 0.85);
}
.accounts-page .acc-pick-pane .acc-batch-card:not(.is-today):hover .acc-batch-badge {
  background: #dceaff;
}

.accounts-page .acc-pick-pane .acc-batch-when {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.accounts-page .acc-batch-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.accounts-page .acc-pick-pane .acc-batch-day {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}
.accounts-page .acc-pick-pane .acc-batch-mark {
  flex: 0 0 auto;
  padding: 2px 8px;
  color: #2b68c0;
  background: #edf4ff;
  border-radius: 999px;
  font-size: 11px;
}
.accounts-page .acc-pick-pane .acc-batch-clock {
  color: var(--console-muted);
  font-size: 12px;
}

.accounts-page .acc-pick-pane .acc-batch-meta {
  min-width: 0;
  display: grid;
  gap: 7px;
  justify-items: stretch;
}
.accounts-page .acc-batch-nums {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}
.accounts-page .acc-pick-pane .acc-batch-n b,
.accounts-page .acc-pick-pane .acc-batch-on b {
  font-size: 13px;
}
.accounts-page .acc-batch-meter {
  height: 4px;
  background: #edf1f6;
  border-radius: 4px;
  overflow: hidden;
}
.accounts-page .acc-batch-meter i {
  display: block;
  height: 100%;
  background: #3a83f7;
  border-radius: inherit;
  transition: width 0.4s ease;
}

.accounts-page .acc-pick-pane .acc-batch-edit {
  padding: 5px 12px;
  color: #256be0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}
.accounts-page .acc-pick-pane .acc-batch-edit:hover {
  color: #19366b;
  background: #ffffff;
  border-color: #c5d6ee;
  box-shadow: 0 2px 6px rgba(45, 104, 192, 0.12);
  transform: none;
}
.accounts-page .acc-pick-pane .acc-batch-edit.is-del {
  color: #c2483d;
  border-color: transparent;
}
.accounts-page .acc-pick-pane .acc-batch-edit.is-del:hover {
  background: #fdf4f3;
  border-color: #ecc9c5;
}


@keyframes acc-hero-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 760px) {
  .accounts-page.acc-pick-on .accounts-head {
    padding: 0 0 10px;
  }
  .accounts-page .acc-pick-hero {
    padding: 18px 18px 16px;
    gap: 14px;
  }
  .accounts-page .acc-hero-top {
    gap: 16px;
  }
  .accounts-page .acc-hero-n b {
    font-size: 36px;
  }
  .accounts-page .acc-hero-go {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .accounts-page .acc-pick-pane .acc-batch-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "badge when ops"
      "badge meta meta";
    row-gap: 6px;
    column-gap: 12px;
  }
  .accounts-page .acc-pick-pane .acc-batch-badge {
    grid-area: badge;
    width: 40px;
    height: 40px;
    align-self: start;
  }
  .accounts-page .acc-pick-pane .acc-batch-when { grid-area: when; }
  .accounts-page .acc-pick-pane .acc-batch-meta { grid-area: meta; }
  .accounts-page .acc-pick-pane .acc-batch-ops { grid-area: ops; }
}

@media (prefers-reduced-motion: reduce) {
  .accounts-page .acc-pick-hero,
  .accounts-page .acc-hero-on.is-on::before {
    animation: none;
  }
  .accounts-page .acc-pick-hero,
  .accounts-page .acc-batch-meter i,
  .accounts-page .acc-hero-go {
    transition: none;
  }
}

/* 批量添加页：顶部深蓝主卡边输边数（能导几个、重复、格式不对、剩余点数），
   下面左栏是导入设置卡，右栏是账号输入卡，底栏写清楚这次怎么导。跟账号列表落地页同一套。 */
.batch-page .ops-content {
  overflow: auto;
}
.batch-page .batch-surface {
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.batch-page .batch-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 10px 32px;
  padding: 22px 24px 18px;
  color: #ffffff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(77, 149, 251, 0.38) 0%, rgba(77, 149, 251, 0) 55%),
    linear-gradient(135deg, #1f4280 0%, #19366b 100%);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(25, 54, 107, 0.22);
  animation: acc-hero-in 0.5s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}
.batch-page .batch-hero-main {
  display: grid;
  gap: 4px;
}
.batch-page .batch-hero-k {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}
.batch-page .batch-hero-n {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.batch-page .batch-hero-n b {
  min-width: 1ch;
  color: #ffffff;
  font-size: 44px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.batch-page .batch-hero-stats {
  display: flex;
  gap: 0;
  padding-bottom: 4px;
}
.batch-page .batch-hero-stat {
  display: grid;
  gap: 3px;
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.batch-page .batch-hero-stat em {
  font-style: normal;
}
.batch-page .batch-hero-stat b {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.batch-page .batch-hero.has-bad .batch-hero-stat:nth-child(2) b,
.batch-page .batch-hero.is-over .batch-hero-stat:nth-child(3) b {
  color: #ffb4ab;
}
.batch-page .batch-hero-tip {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}
.batch-page .batch-hero.has-bad .batch-hero-tip,
.batch-page .batch-hero.is-over .batch-hero-tip {
  color: #ffd2cc;
}

.batch-page .batch-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  overflow: visible;
}
.batch-page .batch-options,
.batch-page .batch-editor {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e0e7f0;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(24, 32, 51, 0.04);
}
.batch-page .batch-options {
  padding: 6px 18px 18px;
  display: grid;
  align-content: start;
  gap: 0;
}
.batch-page .batch-sec {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #eef2f7;
}
.batch-page .batch-sec:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.batch-page .batch-sec-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--console-ink);
  font-size: 13px;
  font-weight: 700;
}

.batch-page .kind-row {
  gap: 8px;
}
.batch-page .batch-seg {
  grid-template-columns: 1fr 1fr;
}
.batch-page .kind-pick {
  min-height: 54px;
  padding: 10px 12px;
  border-color: #e3e9f2;
  border-radius: 10px;
  cursor: pointer;
}
.batch-page .kind-pick:hover {
  border-color: #b7cff2;
  transform: none;
}
.batch-page .kind-pick:has(input:checked) {
  color: #1f4280;
  background: #f1f6ff;
  border-color: #3a83f7;
  box-shadow: inset 0 0 0 1px #3a83f7;
}
.batch-page .kind-pick:has(input:focus-visible) {
  outline: 2px solid #3a83f7;
  outline-offset: 2px;
}
.batch-page .kind-pick b {
  font-size: 14px;
}
.batch-page .kind-pick small {
  color: #6f7886;
  font-size: 11px;
  line-height: 1.4;
}

.batch-page .batch-gs-fixed {
  margin-top: 8px;
}
.batch-page .batch-gs-fixed[hidden],
.batch-page #batch-gs-idx[hidden] {
  display: none;
}
.batch-page #batch-gs-idx,
.batch-page #batch-gs-num {
  border-radius: 10px;
}

.batch-page .node-pick-btn {
  min-height: 54px;
  padding: 10px 12px;
  border-color: #e3e9f2;
  border-radius: 10px;
}
.batch-page .node-pick-copy b {
  font-size: 14px;
}
.batch-page .node-pick-copy small {
  font-size: 11px;
}
.batch-page .node-pick-pop {
  border-radius: 12px;
}

.batch-page .batch-editor {
  padding: 14px 16px 0;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.batch-page .batch-editor-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 2px 10px;
}
.batch-page .batch-editor-head label {
  color: var(--console-ink);
  font-size: 14px;
  font-weight: 700;
}
.batch-page .batch-editor-count {
  color: var(--console-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.batch-page .batch-clear {
  margin: 0 0 0 auto;
  padding: 4px 12px;
  color: #256be0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.batch-page .batch-clear:hover {
  background: #f3f8ff;
  border-color: #c5d6ee;
}
.batch-page .batch-clear:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: 1px;
}
.batch-page .batch-editor .soft-area,
.batch-page .batch-editor textarea {
  min-height: 300px;
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
  border-radius: 10px !important;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.8;
}
.batch-page .batch-editor textarea:focus {
  background: #ffffff;
  border-color: #3a83f7;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.14);
}

.batch-page .batch-actions {
  margin: 14px -16px 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef2f7;
}
.batch-page .batch-summary {
  min-width: 0;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.batch-page .batch-summary span {
  padding: 4px 10px;
  color: #2b68c0;
  background: #edf4ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.batch-page .batch-feedback {
  margin: 0;
}
.batch-page .batch-submit {
  min-width: 132px;
  min-height: 40px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(90deg, #4d95fb 0%, #3a83f7 55%, #2c6fe2 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(44, 111, 226, 0.28);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.batch-page .batch-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(44, 111, 226, 0.34);
}
.batch-page .batch-submit:disabled {
  opacity: 0.7;
  transform: none;
  cursor: progress;
}

@media (max-width: 1100px) {
  .batch-page .batch-workspace {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .batch-page .batch-hero-stat {
    padding: 0 16px;
  }
}

@media (max-width: 760px) {
  .batch-page .ops-content {
    padding: 12px;
  }
  .batch-page .batch-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .batch-page .batch-hero-n b {
    font-size: 36px;
  }
  .batch-page .batch-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .batch-page .batch-hero-stat {
    padding: 0 0 0 12px;
  }
  .batch-page .batch-hero-stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .batch-page .batch-workspace {
    grid-template-columns: 1fr;
  }
  .batch-page .batch-options {
    padding: 4px 14px 14px;
    border: 1px solid #e0e7f0;
  }
  .batch-page .kind-row {
    grid-template-columns: 1fr;
  }
  .batch-page .batch-seg {
    grid-template-columns: 1fr 1fr;
  }
  .batch-page .batch-sec {
    margin: 0;
  }
  .batch-page .batch-editor {
    min-height: 0;
    padding: 12px 12px 0;
  }
  .batch-page .batch-editor textarea {
    min-height: 240px;
  }
  .batch-page .batch-actions {
    margin: 12px -12px 0;
    padding: 12px;
    flex-wrap: wrap;
  }
  .batch-page .batch-summary {
    width: 100%;
  }
  .batch-page .batch-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .batch-page .batch-hero {
    animation: none;
  }
  .batch-page .batch-submit {
    transition: none;
  }
}

/* 全站统一版式：所有控制台页铺满内容区、同样的边距；顶部一张深蓝主卡说这页的数，
   下面是白色圆角卡片。不要「大标题下面压一行小字」的头，也不要居中的小卡。放在最后，盖掉前面各页的宽度和居中写法。 */
.console-page .page.pg {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 22px 26px 26px;
  overflow: auto;
}
.console-page .page.pg:not(.home-board) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
}
.console-page .page.pg > * {
  flex-shrink: 0;
}
.console-page .top-heading > span {
  display: none;
}

.pg-hero,
.home-board .hb-hero,
.account-detail-page .acc-hero {
  color: #ffffff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(77, 149, 251, 0.38) 0%, rgba(77, 149, 251, 0) 55%),
    linear-gradient(135deg, #1f4280 0%, #19366b 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(25, 54, 107, 0.22);
  animation: acc-hero-in 0.5s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}
.pg-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 10px 32px;
  padding: 22px 24px 18px;
}
.pg-hero-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pg-hero-k {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}
.pg-hero-n {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.pg-hero-n em {
  font-style: normal;
}
.pg-hero-n b {
  min-width: 1ch;
  color: #ffffff;
  font-size: 44px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pg-hero-n-text b {
  overflow: hidden;
  font-size: 30px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pg-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  padding-bottom: 4px;
}
.pg-hero-stat {
  display: grid;
  gap: 3px;
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.pg-hero-stat b {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pg-hero.has-bad .pg-hero-stat.is-bad b {
  color: #ffb4ab;
}
.pg-hero-tip {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.pg-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e7f0;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(24, 32, 51, 0.04);
  animation: ops-enter 0.42s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}
.pg-card::before {
  display: none;
}
.pg-card-head {
  min-height: 52px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
}
.pg-card-title {
  margin: 0;
  color: var(--console-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.pg-card-link {
  padding: 5px 12px;
  color: #256be0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.pg-card-link:hover {
  background: #f3f8ff;
  border-color: #c5d6ee;
}
.pg-card-link:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: 1px;
}
.pg-card-body {
  padding: 16px 18px;
}
.pg-card-foot {
  margin-top: auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #eef2f7;
}
.pg-card-foot .batch-feedback {
  margin: 0 auto 0 0;
}
.console-page .btn.pg-btn {
  min-width: 132px;
  min-height: 40px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(90deg, #4d95fb 0%, #3a83f7 55%, #2c6fe2 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(44, 111, 226, 0.28);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.console-page .btn.pg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(44, 111, 226, 0.34);
}
.console-page .btn.pg-btn:disabled {
  opacity: 0.7;
  transform: none;
}

.pg-split {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.pg-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 420px));
  align-items: end;
  gap: 14px 16px;
}
.pg-split .pg-form {
  grid-template-columns: 1fr;
}
.pg-split .pg-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pg-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.pg-field > span {
  color: #4e5969;
  font-size: 12px;
  font-weight: 650;
}
.console-page .pg-field input:not([type=checkbox]):not([type=radio]),
.console-page .pg-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: #263247;
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
}
.console-page .pg-field textarea {
  min-height: 220px;
  line-height: 1.7;
  resize: vertical;
}
.console-page .pg-field input:focus,
.console-page .pg-field textarea:focus {
  background: #ffffff;
  border-color: #3a83f7;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.14);
}
.pg-field .auth-pass {
  width: 100%;
}
.pg-field .auth-eye {
  top: 50%;
  transform: translateY(-50%);
}
.pg-form .utility-feedback {
  grid-column: 1 / -1;
  margin: 0;
}
.pg-form .utility-feedback:not(:has(p:not(:empty))) {
  display: none;
}
.pg-form-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

/* 各页：把旧的固定宽度、居中、撑满高度去掉 */
.export-page .export-workspace,
.redeem-page .redeem-workspace {
  height: auto;
}
.redeem-page .redeem-workspace {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 1.3fr);
}
.export-page .pg-card .ops-list,
.redeem-page .pg-card .ops-list {
  min-height: 160px;
  max-height: 560px;
  overflow: auto;
}
.redeem-page .redeem-results {
  margin-top: 0;
}
.redeem-page .redeem-pick-tools {
  padding: 12px 18px 4px;
  grid-template-columns: auto minmax(0, 1fr);
}
.redeem-page .redeem-editor {
  flex: 1;
  display: flex;
}
.redeem-page .redeem-editor textarea {
  flex: 1;
  min-height: 300px;
  padding: 14px 16px;
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
  border-radius: 10px !important;
  line-height: 1.7;
}
.redeem-page .redeem-editor textarea:focus {
  background: #ffffff;
  border-color: #3a83f7;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.14);
}
.export-page .export-fields {
  display: grid;
  gap: 10px;
}
.nodes-page .nodes-surface,
.batch-page .batch-surface {
  width: 100%;
  max-width: none;
  margin: 0;
}
.nodes-page .nodes-surface {
  min-height: 0;
}
.nodes-page .nodes-surface .ops-list {
  padding: 16px 18px 18px;
}
.member-content .member-surface {
  width: 100%;
}
.member-content .member-grants {
  padding: 14px 18px 18px;
}
.farm-page #farm-list .row {
  padding: 10px 18px;
  border-bottom: 1px solid #eef2f7;
}

/* 账号列表：落地页没有表头；列表态表头就是这张白卡的头 */
.accounts-page .page-accs {
  padding: 22px 26px 26px;
}
.accounts-page.acc-list-on .accounts-surface {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border-radius: 14px;
}
.accounts-page.acc-list-on .accounts-surface::before {
  display: none;
}
.accounts-page.acc-pick-on .accounts-head {
  display: none !important;
}
.accounts-page .accounts-head {
  min-height: 56px;
  padding: 12px 18px;
  align-items: center;
}
.accounts-page .accounts-summary {
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

/* 控制台：今天的收益做成深蓝主卡 */
.home-board .hb-hero {
  padding: 22px 26px;
}
.home-board .hb-day {
  color: rgba(255, 255, 255, 0.72);
}
.home-board .hb-hero-line {
  color: rgba(255, 255, 255, 0.86);
}
.home-board .hb-hero-line b {
  color: #ffffff;
}
.home-board .hb-hero-sub {
  color: rgba(255, 255, 255, 0.62);
}
.home-board .hb-earn {
  border-top-color: rgba(255, 255, 255, 0.16);
}
.home-board .hb-earn span,
.home-board .hb-delta {
  color: rgba(255, 255, 255, 0.62);
}
.home-board .hb-earn b {
  color: #ffffff;
}
.home-board .hb-trend figcaption,
.home-board .hb-bar span {
  color: rgba(255, 255, 255, 0.62);
}
.home-board .hb-bar.now span {
  color: #ffffff;
}
.home-board .hb-bar i {
  background: rgba(255, 255, 255, 0.22);
}
.home-board .hb-bar.now i {
  background: #ffffff;
}
.home-board .hb-bed,
.home-board .hb-side {
  border-radius: 14px;
}

/* 游戏号详情：头像、资产这一块做成深蓝主卡，下面功能区是白卡 */
.account-detail-page .page.pg.account-content {
  padding: 22px 26px 26px;
}
.account-detail-page .page.pg .acc-col {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}
.account-detail-page .account-surface {
  gap: 16px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.account-detail-page .account-surface::before {
  display: none;
}
.account-detail-page .acc-hero {
  padding: 14px 20px 18px;
  gap: 14px;
  border-bottom: 0;
  border-radius: 14px;
}
.account-detail-page .acc-hero .account-backbar {
  min-height: 0;
  flex: 0 0 auto;
  padding: 0 0 10px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.account-detail-page .acc-hero .account-backbar a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}
.account-detail-page .acc-hero .account-backbar a:hover {
  color: #ffffff;
}
.account-detail-page .acc-hero .account-backbar > .acc-feat-eta,
.account-detail-page .acc-hero .account-backbar > .acc-feat-eta.off b {
  color: rgba(255, 255, 255, 0.66);
}
.account-detail-page .acc-hero .account-backbar > .acc-feat-eta b,
.account-detail-page .acc-hero .account-backbar > .acc-feat-eta.now b,
.account-detail-page .acc-hero .account-backbar > .acc-feat-eta.soon b {
  color: #ffffff;
}
.account-detail-page .acc-hero .avatar {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}
.account-detail-page .acc-hero .acc-title .name {
  color: #ffffff;
  font-size: 20px;
}
.account-detail-page .acc-hero .lvl-chip,
.account-detail-page .acc-hero .acc-meta .user-chip,
.account-detail-page .acc-hero .acc-meta .loc-chip {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 999px;
}
.account-detail-page .acc-hero .acc-meta .loc-chip::before {
  background: #8fc0ff;
}
.account-detail-page .acc-hero .acc-run {
  color: rgba(255, 255, 255, 0.66);
  border-left-color: rgba(255, 255, 255, 0.18);
}
.account-detail-page .acc-hero .acc-run b {
  color: #ffffff;
}
.account-detail-page.dash .acc-hero .acc-ops .dot-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.account-detail-page .acc-hero .acc-ops .btn {
  color: #19366b;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(10, 24, 54, 0.22);
}
.account-detail-page .acc-hero .acc-ops .btn:hover {
  background: #eef4ff;
}
.account-detail-page .acc-hero .acc-assets .chip,
.account-detail-page .acc-hero .acc-assets .chip + .chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}
.account-detail-page .acc-hero .acc-assets .chip:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
}
.account-detail-page .acc-hero .acc-assets .k,
.account-detail-page .acc-hero .chip-water .k,
.account-detail-page .acc-hero .chip-dmd .k,
.account-detail-page .acc-hero .chip-gld .k {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
.account-detail-page .acc-hero .acc-assets b {
  color: #ffffff;
  font-size: 24px;
}
.account-detail-page .acc-hero .acc-base,
.account-detail-page .acc-hero .acc-delta {
  color: rgba(255, 255, 255, 0.66);
}
.account-detail-page .acc-hero .acc-delta.up {
  color: #bcd8ff;
}
.account-detail-page .acc-hero .acc-delta.down {
  color: #ffb4ab;
}
.account-detail-page .acc-work {
  background: #ffffff;
  border: 1px solid #e0e7f0;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(24, 32, 51, 0.04);
}
.account-detail-page .acc-tabs {
  padding: 10px 14px;
  background: #ffffff;
  border-bottom-color: #eef2f7;
}
.account-detail-page .acc-tabs button {
  border-radius: 999px;
  font-size: 12px;
}

/* 登录 / 注册 / 后台登录：铺满整屏，左边深蓝品牌栏，右边表单 */
.auth-page.auth-body {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(380px, 42%) minmax(0, 1fr);
  background: #f4f7fb;
}
.auth-page::before {
  display: none;
}
.auth-side {
  min-height: 100dvh;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(160deg, #1f4280 0%, #19366b 100%);
}
.auth-side-title {
  margin: 0;
  font-size: 44px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.auth-page .auth-stage {
  min-height: 100dvh;
  padding: 40px 28px;
}
.auth-page .auth-card {
  width: min(400px, 100%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.auth-page .auth-card .auth-brand {
  display: none;
}
.auth-page .auth-title {
  padding: 0 0 6px;
}
.auth-page .auth-title h1 {
  font-size: 28px;
}
.auth-page .auth-title > span {
  display: none;
}
.auth-page .auth-form {
  padding-left: 0;
  padding-right: 0;
}
.auth-page .auth-go {
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d95fb 0%, #3a83f7 55%, #2c6fe2 100%);
  box-shadow: 0 6px 16px rgba(44, 111, 226, 0.28);
}

@media (max-width: 1100px) {
  .pg-split,
  .redeem-page .redeem-workspace {
    grid-template-columns: 1fr;
  }
  .pg-hero-stat {
    padding: 0 16px;
  }
}

@media (max-width: 1080px) {
  .console-page .page.pg {
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .auth-page.auth-body {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .auth-page .auth-stage {
    min-height: 0;
    padding: 24px 20px 32px;
    place-items: start center;
  }
}

@media (max-width: 760px) {
  .console-page .page.pg,
  .accounts-page .page-accs,
  .account-detail-page .page.pg.account-content {
    padding: 12px;
  }
  .console-page .page.pg:not(.home-board) {
    gap: 12px;
  }
  .pg-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .pg-hero-n b {
    font-size: 36px;
  }
  .pg-hero-n-text b {
    font-size: 24px;
  }
  .pg-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pg-hero-stat {
    padding: 0 0 0 12px;
  }
  .pg-hero-stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .pg-hero-stat b {
    font-size: 18px;
  }
  .pg-card-head,
  .pg-card-body,
  .pg-card-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .pg-card-foot {
    flex-wrap: wrap;
  }
  .console-page .btn.pg-btn {
    width: 100%;
  }
  .pg-form {
    grid-template-columns: 1fr;
  }
  .home-board .hb-hero {
    padding: 18px;
  }
  .account-detail-page .acc-hero {
    padding: 12px 14px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-hero,
  .pg-card,
  .home-board .hb-hero,
  .account-detail-page .acc-hero {
    animation: none;
  }
}

/* 账号列表（查看全部/分组）：和其它页一样，顶部深蓝主卡，操作按钮放主卡右边 */
.accounts-page .acc-list-hero {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.accounts-page .acc-list-hero .pg-hero-n em {
  white-space: nowrap;
}
.accounts-page .acc-list-hero .accounts-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}
.accounts-page .acc-list-hero .accounts-actions .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: none;
}
.accounts-page .acc-list-hero .accounts-actions .btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.accounts-page .acc-list-hero .accounts-actions #acc-on {
  color: #1f4280;
  background: #ffffff;
  border-color: #ffffff;
  font-weight: 700;
}
.accounts-page .acc-list-hero .accounts-actions #acc-on:hover {
  background: #edf4ff;
}
.accounts-page .acc-list-hero .accounts-actions .btn.danger {
  color: #ffb4ab;
  border-color: rgba(255, 180, 171, 0.4);
}
.accounts-page .acc-list-hero .accounts-actions .btn:disabled {
  opacity: 0.55;
}
.accounts-page.acc-list-on .accounts-surface .acc-bar {
  border-top: 0;
}
@media (max-width: 1280px) {
  .accounts-page .acc-list-hero {
    grid-template-columns: auto 1fr;
  }
  .accounts-page .acc-list-hero .accounts-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .accounts-page .acc-list-hero {
    grid-template-columns: 1fr;
  }
  .accounts-page .acc-list-hero .pg-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .accounts-page .acc-list-hero .pg-hero-stat {
    padding: 0 8px;
    white-space: nowrap;
  }
  .accounts-page .acc-list-hero .pg-hero-stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .accounts-page .acc-list-hero .accounts-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .accounts-page .acc-list-hero .accounts-actions .btn {
    width: 100%;
    padding-inline: 6px;
  }
}

/* 序号：第几行，跟着当前筛选和排序从 1 数起 */
.accounts-page .acc-item .acc-seq {
  min-width: 2ch;
  color: #8a97ab;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 导入记录行：人数和「改名」在同一条中线上；进度条挂在人数下面，不把人数往上顶 */
.accounts-page .acc-pick-pane .acc-batch-meta {
  position: relative;
  align-self: center;
  display: block;
}
.accounts-page .acc-pick-pane .acc-batch-nums {
  align-items: center;
  line-height: 20px;
}
.accounts-page .acc-pick-pane .acc-batch-meter {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
}
.accounts-page .acc-pick-pane .acc-batch-ops {
  align-self: center;
}
.accounts-page .acc-pick-pane .acc-batch-edit {
  line-height: 20px;
  padding-block: 4px;
}

/* 全局日志重做：底部抽屉做成一张浮起来的卡；顶部深蓝条写条数/涉及几个号/异常，
   右边暂停、刷新、收起；下面一行筛选（状态分段按钮、账号、搜索）；列表 13px 字，
   时间 | 账号 | 类型 | 内容 | 重复次数。只用白和蓝，异常用红。 */
.global-log-enabled .page {
  padding-bottom: 58px;
}
.global-log-drawer {
  position: fixed;
  left: 248px;
  right: 0;
  bottom: 0;
  z-index: 32;
  height: min(560px, 62dvh);
  padding: 0 20px;
  color: #22304a;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.32, 1);
  pointer-events: none;
}
.global-log-drawer.open {
  transform: translateY(0);
}
.global-log-handle {
  position: absolute;
  left: 50%;
  top: -44px;
  z-index: 2;
  height: 36px;
  padding: 0 8px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f4280;
  background: #ffffff;
  border: 1px solid #d5e2f5;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(25, 54, 107, 0.16);
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.global-log-handle:hover {
  border-color: #9fc1f8;
  box-shadow: 0 10px 26px rgba(25, 54, 107, 0.22);
}
.global-log-handle:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: 2px;
}
.global-log-drawer.open .global-log-handle {
  color: #ffffff;
  background: #1f4280;
  border-color: #1f4280;
}
.global-log-handle i {
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
  transition: transform 0.22s ease;
}
.global-log-drawer.open .global-log-handle i {
  transform: translateY(-2px) rotate(225deg);
}
.global-log-handle b {
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #256be0;
  background: #edf4ff;
  border-radius: 999px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.global-log-drawer.open .global-log-handle b {
  color: #1f4280;
  background: #ffffff;
}
.global-log-handle b.has-error {
  color: #ffffff;
  background: #c2483d;
}

.global-log-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dde6f2;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -16px 40px rgba(25, 54, 107, 0.18);
  pointer-events: auto;
}

.global-log-hero {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 28px;
  padding: 16px 20px;
  color: #ffffff;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(77, 149, 251, 0.36) 0%, rgba(77, 149, 251, 0) 55%),
    linear-gradient(135deg, #1f4280 0%, #19366b 100%);
}
.global-log-hero-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.global-log-hero-k {
  font-size: 16px;
  font-weight: 750;
  white-space: nowrap;
}
.global-log-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  white-space: nowrap;
}
.global-log-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fb2ff;
  animation: global-log-pulse 1.8s ease-in-out infinite;
}
.global-log-live.is-paused::before {
  background: rgba(255, 255, 255, 0.5);
  animation: none;
}
@keyframes global-log-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 178, 255, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(127, 178, 255, 0); }
}
.global-log-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  min-width: 0;
}
.global-log-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}
.global-log-stat b {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.global-log-drawer.has-err .global-log-stat.is-bad b {
  color: #ffb4ab;
}
.global-log-hero-actions {
  display: flex;
  gap: 8px;
}
.global-log-hero-actions button {
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.global-log-hero-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}
.global-log-hero-actions button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.global-log-hero-actions button[aria-pressed="true"] {
  color: #1f4280;
  background: #ffffff;
  border-color: #ffffff;
}
.global-log-hero-actions button.is-icon {
  width: 32px;
  padding: 0;
}
.global-log-hero-actions button.is-icon svg {
  width: 16px;
  height: 16px;
}

.global-log-tools {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(160px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #e6edf6;
}
.global-log-seg {
  display: inline-flex;
  padding: 3px;
  background: #f1f5fb;
  border: 1px solid #e0e8f3;
  border-radius: 999px;
}
.global-log-seg button {
  height: 30px;
  padding: 0 16px;
  color: #50607a;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.global-log-seg button:hover {
  color: #1f4280;
}
.global-log-seg button.on {
  color: #ffffff;
  background: #3a83f7;
  box-shadow: 0 4px 10px rgba(58, 131, 247, 0.28);
}
.global-log-seg button[data-level="err"].on {
  background: #c2483d;
  box-shadow: 0 4px 10px rgba(194, 72, 61, 0.24);
}
.global-log-seg button:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: 1px;
}
.global-log-tools select,
.global-log-tools input[type=search] {
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  color: #22304a;
  background: #f7f9fd;
  border: 1px solid #dde6f2;
  border-radius: 999px;
  box-shadow: none;
  font-size: 13px;
}
.global-log-tools select:focus,
.global-log-tools input[type=search]:focus {
  outline: none;
  background: #ffffff;
  border-color: #78aafc;
  box-shadow: 0 0 0 3px rgba(58, 131, 247, 0.14);
}

.global-log-list {
  min-height: 0;
  flex: 1;
  padding: 6px 12px 16px;
  overflow-y: auto;
  scrollbar-color: #c2d1e6 transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.global-log-row {
  display: grid;
  grid-template-columns: 72px minmax(120px, 180px) 76px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f8;
  border-radius: 10px;
  font-size: 13px;
  transition: background 0.14s ease;
}
.global-log-row:hover {
  background: #f4f8ff;
}
.global-log-row.err {
  background: #fdf4f3;
  border-bottom-color: #f6e1de;
}
.global-log-time {
  color: #8592a6;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.global-log-user {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #1f4280;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.global-log-user:hover {
  color: #256be0;
  text-decoration: underline;
}
.global-log-status {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a83f7;
  box-shadow: 0 0 0 3px #e3eeff;
}
.global-log-row.err .global-log-status {
  background: #c2483d;
  box-shadow: 0 0 0 3px #f8dcd8;
}
.global-log-kind {
  justify-self: start;
  max-width: 100%;
  padding: 3px 10px;
  overflow: hidden;
  color: #256be0;
  background: #edf4ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-log-row.err .global-log-kind {
  color: #c2483d;
  background: #fbe7e4;
}
.global-log-message {
  min-width: 0;
  overflow: hidden;
  color: #2c3a52;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-log-row.err .global-log-message {
  color: #a43a30;
}
.global-log-repeat {
  color: #8592a6;
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.global-log-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #8592a6;
  font-size: 13px;
}

@media (max-width: 1380px) {
  .global-log-drawer { left: 224px; }
}
@media (max-width: 1180px) {
  .global-log-hero {
    grid-template-columns: 1fr auto;
  }
  .global-log-stats {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .global-log-stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .global-log-drawer,
  .global-log-handle,
  .global-log-handle i,
  .global-log-row { transition: none; }
  .global-log-live::before { animation: none; }
}

/* 网站公告弹窗：登录后打开任意页面，有没看过的公告就弹出来；顶栏铃铛随时再看 */
.notice-bell {
  position: relative;
  width: 38px;
  height: 38px;
  margin-left: auto;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  color: #256be0;
  background: #edf4ff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.notice-bell[hidden] {
  display: none;
}

.notice-bell:hover {
  background: #dceaff;
  transform: translateY(-1px);
}

.notice-bell:focus-visible {
  outline: 2px solid #3a83f7;
  outline-offset: 2px;
}

.notice-bell svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.notice-bell.has-new::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #c2483d;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.notice-bell + .me-wrap,
.console-page .notice-bell + .me-wrap {
  margin-left: 10px;
}

.site-notice-on {
  overflow: hidden;
}

.site-notice-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 60, 0.42);
  backdrop-filter: blur(3px);
  animation: site-notice-fade 0.18s ease-out;
}

.site-notice-card {
  width: min(560px, 100%);
  max-height: min(680px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1c2840;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 30, 60, 0.28);
  animation: site-notice-pop 0.24s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.site-notice-hd {
  min-height: 60px;
  padding: 0 14px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f4280 0%, #19366b 100%);
}

.site-notice-ic {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.site-notice-ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.site-notice-hd strong {
  font-size: 16px;
  font-weight: 720;
}

.site-notice-n {
  padding: 2px 9px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.site-notice-x {
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.site-notice-x:hover {
  background: rgba(255, 255, 255, 0.24);
}

.site-notice-main {
  min-height: 0;
  flex: 1;
  padding: 20px 22px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-notice-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.site-notice-title h2 {
  min-width: 0;
  margin: 0;
  color: #13203a;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-notice-title time {
  margin-left: auto;
  flex: 0 0 auto;
  color: #7a879b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.site-notice-body {
  color: #344154;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.site-notice-body p {
  margin: 0 0 8px;
}

.site-notice-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.site-notice-body a {
  color: #256be0;
}

.site-notice-ft {
  padding: 14px 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf1f7;
}

.site-notice-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5d6a7e;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.site-notice-pager button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #256be0;
  background: #edf4ff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.site-notice-pager button:disabled {
  color: #b3bfd0;
  background: #f3f6fa;
  cursor: default;
}

.site-notice-pager span {
  min-width: 44px;
  text-align: center;
}

.site-notice-ok {
  min-width: 120px;
  min-height: 40px;
  margin-left: auto;
  border-radius: 999px;
}

@keyframes site-notice-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes site-notice-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-notice-layer,
  .site-notice-card {
    animation: none;
  }
}
