/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ===== Fluent Design 2 设计令牌 ===== */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", "JetBrains Mono", Consolas, "SFMono-Regular", monospace;

  --bg-canvas: #f3f3f3;
  --bg-layer: #ffffff;
  --bg-layer-alt: #fbfbfb;
  --bg-subtle: #f5f5f5;
  --bg-subtle-hover: #ededed;
  --bg-acrylic: rgba(243, 243, 243, 0.78);

  --stroke: #e3e3e3;
  --stroke-strong: #bdbdbd;
  --stroke-subtle: #efefef;

  --text: #1b1b1b;
  --text-2: #5c5c5c;
  --text-3: #8a8a8a;

  --accent: #0f6cbd;
  --accent-hover: #115ea3;
  --accent-pressed: #0f548c;
  --accent-subtle: #ebf3fc;
  --accent-border: #cfe4fa;

  --danger: #c42b1c;
  --danger-bg: #fdf3f2;
  --success: #0e700e;
  --success-bg: #f1faf1;
  --warn: #9d5d00;
  --warn-bg: #fff9f5;
  --purple: #7719aa;
  --purple-bg: #f7f2fa;

  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 2px rgba(0, 0, 0, 0.06);
  --shadow-4: 0 2px 4px rgba(0, 0, 0, 0.07), 0 0 2px rgba(0, 0, 0, 0.06);
  --shadow-8: 0 4px 8px rgba(0, 0, 0, 0.08), 0 0 2px rgba(0, 0, 0, 0.06);
  --shadow-16: 0 8px 16px rgba(0, 0, 0, 0.1), 0 0 2px rgba(0, 0, 0, 0.08);
  --shadow-64: 0 32px 64px rgba(0, 0, 0, 0.2), 0 0 8px rgba(0, 0, 0, 0.1);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
}

html[data-theme="dark"] {
  --bg-canvas: #1b1b1b;
  --bg-layer: #272727;
  --bg-layer-alt: #2b2b2b;
  --bg-subtle: #333333;
  --bg-subtle-hover: #3d3d3d;
  --bg-acrylic: rgba(30, 30, 30, 0.82);

  --stroke: #3d3d3d;
  --stroke-strong: #5a5a5a;
  --stroke-subtle: #303030;

  --text: #ffffff;
  --text-2: #c7c7c7;
  --text-3: #9b9b9b;

  --accent: #479ef5;
  --accent-hover: #62abf5;
  --accent-pressed: #2886de;
  --accent-subtle: rgba(71, 158, 245, 0.15);
  --accent-border: rgba(71, 158, 245, 0.4);

  --danger: #ff99a4;
  --danger-bg: rgba(255, 153, 164, 0.12);
  --success: #6ccb5f;
  --success-bg: rgba(108, 203, 95, 0.12);
  --warn: #fce100;
  --warn-bg: rgba(252, 225, 0, 0.1);
  --purple: #c9a7f0;
  --purple-bg: rgba(201, 167, 240, 0.12);

  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-4: 0 2px 4px rgba(0, 0, 0, 0.34);
  --shadow-8: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-16: 0 8px 16px rgba(0, 0, 0, 0.45);
  --shadow-64: 0 32px 64px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-subtle);
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--stroke-strong);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== 布局 ===== */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  background: var(--bg-acrylic);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border-right: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  min-height: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #7719aa);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-4);
  flex: none;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  line-height: 14px;
}

.nav {
  padding: 4px 8px;
  overflow-y: auto;
  flex: 1 1;
  min-height: 0;
}

.nav-sec {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  padding: 14px 8px 6px;
  letter-spacing: 0.2px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 13.5px;
}
.nav-item:hover {
  background: var(--bg-subtle-hover);
}
.nav-item.active {
  background: var(--bg-layer);
  box-shadow: var(--shadow-2);
  font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.nav-item svg {
  flex: none;
  opacity: 0.85;
}
.nav-badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--stroke);
  background: var(--bg-layer);
  box-shadow: var(--shadow-2);
  z-index: 30;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
}

.spacer {
  flex: 1 1;
}

.content {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px 24px 64px;
  min-height: 0;
}

.content-wide {
  max-width: 1320px;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 26px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
}
.page-sub {
  color: var(--text-2);
  font-size: 13px;
  margin-top: 2px;
}
.page-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-primary:active:not(:disabled) {
  background: var(--accent-pressed);
}

.btn-secondary {
  background: var(--bg-layer);
  border-color: var(--stroke-strong);
  color: var(--text);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-subtle);
}
.btn-secondary:active:not(:disabled) {
  background: var(--bg-subtle-hover);
}

.btn-subtle {
  color: var(--text-2);
}
.btn-subtle:hover:not(:disabled) {
  background: var(--bg-subtle-hover);
  color: var(--text);
}

.btn-danger {
  color: var(--danger);
  border-color: transparent;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-bg);
}

.btn-sm {
  height: 26px;
  padding: 0 8px;
  font-size: 12.5px;
  gap: 4px;
}
.btn-lg {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  border: 1px solid transparent;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.btn-icon:hover {
  background: var(--bg-subtle-hover);
  color: var(--text);
}
.btn-icon.danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-layer);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.card.pad {
  padding: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--stroke-subtle);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
}
.card-desc {
  font-size: 12px;
  color: var(--text-3);
}
.card-body {
  padding: 16px;
}
.card-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--stroke-subtle);
  background: var(--bg-layer-alt);
  display: flex;
  gap: 8px;
  align-items: center;
}

.hoverable {
  transition: box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}
.hoverable:hover {
  box-shadow: var(--shadow-8);
  border-color: var(--stroke-strong);
}

/* ===== 栅格 ===== */
.grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wrap {
  flex-wrap: wrap;
}

/* ===== 统计卡 ===== */
.stat {
  padding: 14px 16px;
  background: var(--bg-layer);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-value {
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  margin-top: 6px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.stat-hint {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ===== 表单 ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-hint {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 16px;
}

.input,
.textarea,
.select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong);
  background: var(--bg-layer);
  color: var(--text);
  transition: border-color 0.1s ease;
  font-size: 13px;
}
.select {
  padding-right: 4px;
  cursor: pointer;
}
.textarea {
  height: auto;
  padding: 6px 8px;
  resize: vertical;
  line-height: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--text-3);
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  border-bottom-width: 2px;
  padding-bottom: 0;
}
.textarea:focus {
  padding-bottom: 5px;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}
.input.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ===== 开关 ===== */
.switch {
  position: relative;
  width: 40px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid var(--stroke-strong);
  background: transparent;
  cursor: pointer;
  flex: none;
  transition: background 0.14s ease, border-color 0.14s ease;
  padding: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 0.16s cubic-bezier(0.3, 0, 0.2, 1), background 0.14s ease;
}
.switch.on {
  background: var(--accent);
  border-color: var(--accent);
}
.switch.on::after {
  background: #fff;
  transform: translateX(20px);
}
.switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===== 徽章 / 标签 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-2);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-blue {
  background: var(--accent-subtle);
  color: var(--accent);
}
.badge-green {
  background: var(--success-bg);
  color: var(--success);
}
.badge-orange {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge-red {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge-purple {
  background: var(--purple-bg);
  color: var(--purple);
}
.badge-gray {
  background: var(--bg-subtle);
  color: var(--text-2);
}
.badge-outline {
  background: transparent;
  border-color: var(--stroke-strong);
  color: var(--text-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  border: 1px solid var(--stroke-strong);
  background: var(--bg-layer);
  font-size: 12.5px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.1s ease;
  color: var(--text-2);
}
.chip:hover {
  background: var(--bg-subtle);
}
.chip.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}

/* ===== 表格 ===== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-3);
  padding: 8px 12px;
  background: var(--bg-layer-alt);
  border-bottom: 1px solid var(--stroke);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}
.table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--stroke-subtle);
  vertical-align: middle;
}
.table tbody tr:hover td {
  background: var(--bg-subtle);
}
.table tr.clickable {
  cursor: pointer;
}
.table input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--accent);
}
.table .num {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  white-space: nowrap;
}

/* ===== 对话框 ===== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 100;
  overflow-y: auto;
  animation: fadeIn 0.12s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.dialog {
  width: 100%;
  max-width: 560px;
  background: var(--bg-layer);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-64);
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  animation: dialogIn 0.18s cubic-bezier(0.3, 0, 0.2, 1);
  margin: auto;
}
.dialog.wide {
  max-width: 900px;
}
.dialog.xwide {
  max-width: 1100px;
}
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
.dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke-subtle);
  flex: none;
}
.dialog-title {
  font-size: 16px;
  font-weight: 600;
}
.dialog-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dialog-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--stroke-subtle);
  background: var(--bg-layer-alt);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  flex: none;
}

/* ===== 空状态 ===== */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 20px;
  color: var(--text-3);
  text-align: center;
}
.empty svg {
  opacity: 0.55;
}
.empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.empty-desc {
  font-size: 12.5px;
  max-width: 420px;
}

/* ===== Toast ===== */
.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}
.toast {
  min-width: 220px;
  max-width: 360px;
  background: var(--bg-layer);
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-16);
  padding: 10px 14px;
  font-size: 13px;
  animation: toastIn 0.18s cubic-bezier(0.3, 0, 0.2, 1);
}
.toast.ok {
  border-left-color: var(--success);
}
.toast.error {
  border-left-color: var(--danger);
  color: var(--danger);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ===== 代码 ===== */
.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  background: var(--bg-subtle);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  overflow: auto;
  white-space: pre;
  max-height: 320px;
  color: var(--text);
  margin: 0;
}
.kv {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-gap: 6px 12px;
  gap: 6px 12px;
  font-size: 12.5px;
}
.kv dt {
  color: var(--text-3);
}
.kv dd {
  margin: 0;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 12px;
}

.divider {
  height: 1px;
  background: var(--stroke-subtle);
  margin: 4px 0;
}

.hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 17px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 2px;
}
.section-label::after {
  content: "";
  flex: 1 1;
  height: 1px;
  background: var(--stroke-subtle);
}

/* ===== 分段控件 ===== */
.segmented {
  display: inline-flex;
  padding: 2px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  gap: 2px;
}
.segmented button {
  height: 26px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-2);
}
.segmented button.active {
  background: var(--bg-layer);
  box-shadow: var(--shadow-2);
  color: var(--text);
  font-weight: 600;
}

/* ===== 列表行 ===== */
.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--stroke-subtle);
  transition: background 0.1s ease;
}
.list-row:last-child {
  border-bottom: none;
}
.list-row:hover {
  background: var(--bg-subtle);
}

/* ===== 控制台 ===== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trace {
  border-left: 2px solid var(--stroke);
  margin-left: 7px;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trace-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 17px;
}
.trace-item .mark {
  margin-top: 3px;
}

/* ===== 群组卡 ===== */
.group-card {
  position: relative;
  padding: 14px 16px 12px;
}
.group-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s ease;
}
.swatch:hover {
  transform: scale(1.12);
}
.swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg-layer) inset;
}

/* ===== 移动端 ===== */
.menu-btn {
  display: none;
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 258px;
    transform: translateX(-105%);
    transition: transform 0.2s cubic-bezier(0.3, 0, 0.2, 1);
    box-shadow: var(--shadow-16);
  }
  .sidebar.open {
    transform: none;
  }
  .menu-btn {
    display: inline-grid;
  }
  .content {
    padding: 16px 14px 60px;
  }
  .page-title {
    font-size: 22px;
    line-height: 28px;
  }
  .dialog-overlay {
    padding: 12px 8px;
  }
}

/* ===== 应用图标 ===== */
.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #7719aa);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  flex: none;
  box-shadow: var(--shadow-2);
}

/* ===== 登录页 ===== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 108, 189, 0.14), transparent 60%),
    radial-gradient(1000px 500px at 110% 110%, rgba(119, 25, 170, 0.14), transparent 60%),
    var(--bg-canvas);
}
.login-orb {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.login-orb-a {
  background: #0f6cbd;
  top: -180px;
  left: -140px;
}
.login-orb-b {
  background: #7719aa;
  bottom: -200px;
  right: -160px;
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 404px;
  background: var(--bg-layer);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-64);
  padding: 26px 26px 20px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.login-hint {
  font-size: 11.5px;
  line-height: 17px;
  color: var(--text-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.login-tip {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  line-height: 16px;
  color: var(--text-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.login-foot {
  position: absolute;
  bottom: 18px;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ===== 用户菜单 ===== */
.user-menu {
  position: relative;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px 0 4px;
  border-radius: 15px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}
.user-chip:hover {
  background: var(--bg-subtle-hover);
}
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7719aa);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  flex: none;
}
.user-name {
  font-size: 13px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: 38px;
  width: 224px;
  background: var(--bg-layer);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-16);
  padding: 6px;
  z-index: 60;
  animation: dialogIn 0.12s ease;
}
.user-dropdown-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--stroke-subtle);
  margin-bottom: 4px;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.user-menu-item:hover {
  background: var(--bg-subtle-hover);
}
.user-menu-item.danger {
  color: var(--danger);
}
.btn-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.badge.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* 打印/动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

