:root {
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

body {
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  background: #f4f7fb;
  font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.touch-btn {
  min-height: 52px;
  font-size: 1rem;
}

.card {
  border-radius: 14px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.table {
  font-size: 0.92rem;
}

.container {
  max-width: 980px;
}

@media (max-width: 430px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Frontend */
.frontend-body {
  min-height: 100vh;
  background:
    radial-gradient(980px 520px at 100% -8%, rgba(59, 130, 246, 0.12), transparent 54%),
    radial-gradient(820px 460px at -8% 100%, rgba(6, 182, 212, 0.12), transparent 56%),
    #f5f7fb;
}

.app-main-shell {
  max-width: 1024px;
}

/* ── mp-shell ── */
.mp-shell {
  background: #f8f9fb;
  border: 1px solid #eceff4;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(20, 26, 38, 0.1);
  padding: 20px;
}

/* ── Topbar ── */
.mp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #0a0a0c;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.mp-brand-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mp-brand-mark circle {
  fill: currentColor;
  stroke: none;
}

.mp-brand-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #111318;
}

.mp-brand-sub {
  color: #8b95a6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 2px;
}

.mp-logout {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #8f98a6;
  display: grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.14s ease;
}

.mp-logout svg {
  width: 16px;
  height: 16px;
}

.mp-logout:hover {
  background: #eef1f6;
  border-color: #e0e5ed;
  color: #687282;
}

.mp-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #667184;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  border: 1px solid #dbe1ea;
  background: #f5f7fb;
  border-radius: 999px;
  padding: 6px 14px;
  transition: all 0.14s ease;
}

.mp-text-btn:hover {
  color: #3b4a5e;
  border-color: #c8d0dd;
  background: #edf1f7;
}

/* ── Hero ── */
.mp-hero {
  border-radius: 20px;
  background: linear-gradient(100deg, #060810 0%, #0d0e18 60%, #1a1b38 100%);
  color: #ffffff;
  padding: 22px 28px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.mp-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.mp-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #a5f3c8;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  border-radius: 999px;
  padding: 3px 10px 3px 7px;
}

.mp-hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.3);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.3);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12);
  }
}

.mp-hero-count {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.mp-hero-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.2px;
}

.mp-hero-text {
  margin: 8px 0 0;
  color: #8a93aa;
  font-size: 0.9rem;
}

/* ── Section heading ── */
.mp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mp-section-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.2px;
  font-weight: 800;
  color: #171a20;
}

.mp-section-head span {
  font-size: 0.76rem;
  color: #98a1af;
  font-weight: 700;
}

/* ── Grid ── */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ── Cards ── */
.mp-card {
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid #e8ecf3;
  background: #ffffff;
  color: #171a21;
  padding: 16px 16px 14px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 2px 8px rgba(20, 26, 38, 0.05);
}

.mp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 26, 38, 0.1);
  border-color: #d5dce8;
  color: #171a21;
}

.mp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

/* ── Project icon ── */
.mp-project-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.mp-icon-a {
  background: linear-gradient(135deg, #4a58ea, #5a44d8);
}

.mp-icon-b {
  background: linear-gradient(135deg, #1bb7d5, #2299c6);
}

.mp-icon-c {
  background: linear-gradient(135deg, #ff8d1c, #f97316);
}

.mp-icon-d {
  background: linear-gradient(135deg, #ff547d, #ef3358);
}

.mp-icon-e {
  background: linear-gradient(135deg, #17bb89, #18a36f);
}

.mp-icon-f {
  background: linear-gradient(135deg, #9a49ff, #7d38dc);
}

/* ── Expiry badges ── */
.mp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.mp-badge-forever {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.mp-badge-normal {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.mp-badge-soon {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.mp-badge-expired {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ── Card body ── */
.mp-card-title {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 4px;
  word-break: break-all;
}

.mp-card-sub {
  color: #9aa3b4;
  font-size: 0.8rem;
}

/* ── Card footer ── */
.mp-card-foot {
  margin-top: auto;
  border-top: 1px solid #f0f2f6;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #9aa3b3;
  font-weight: 600;
}

.mp-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.mp-card-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  transition: all 0.14s ease;
}

.mp-card:hover .mp-card-open {
  background: #111318;
  border-color: #111318;
  color: #ffffff;
}

/* ── Empty state ── */
.mp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.mp-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #f1f3f8;
  border: 1px solid #e4e8f0;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #94a3b8;
}

.mp-empty-icon svg {
  width: 36px;
  height: 36px;
}

.mp-empty-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.mp-empty-sub {
  font-size: 0.86rem;
  color: #94a3b8;
  max-width: 28ch;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .mp-shell {
    border-radius: 16px;
    padding: 14px;
  }

  .mp-brand-title {
    font-size: 1.64rem;
  }

  .mp-hero {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .mp-grid {
    grid-template-columns: 1fr;
  }

  .mp-card {
    min-height: 0;
  }
}

.board-shell {
  background:
    radial-gradient(680px 240px at 50% -20%, rgba(202, 230, 216, 0.22), transparent 70%),
    #f8f9fb;
  border: 1px solid #e6ebf2;
  border-radius: 24px;
  padding: 18px 18px 22px;
  box-shadow: 0 18px 40px rgba(12, 18, 27, 0.08);
}

.board-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f6;
}

.board-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #08090b;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.board-brand-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-brand-mark circle {
  fill: currentColor;
  stroke: none;
}

.board-brand-title {
  font-size: clamp(1.46rem, 2.2vw, 2rem);
  line-height: 1.06;
  font-weight: 800;
  color: #11161e;
  letter-spacing: -0.3px;
}

.board-brand-sub {
  color: #8a93a3;
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 800;
  margin-top: 3px;
}

.board-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.board-back-link {
  text-decoration: none;
  color: #707a8b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15px;
  border-radius: 999px;
  border: 1px solid #e0e5ec;
  padding: 6px 10px;
  background: #f4f6f9;
}

.board-back-link:hover {
  color: #535c6b;
  border-color: #cfd6e1;
}

.board-master-btn {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #d8dde5;
  background: #eceff3;
  color: #222a35;
  font-size: 0.78rem;
  padding: 0 14px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.board-master-btn:hover {
  background: #e3e8ef;
}

.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 12px;
}

.board-meta-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f4f7fb;
  color: #778296;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  padding: 5px 10px;
}

.board-meta-status {
  color: #246c4d;
  border-color: #cfe2d8;
  background: #e8f4ee;
  cursor: pointer;
}

.board-meta-status-ok {
  color: #246c4d;
  border-color: #cfe2d8;
  background: #e8f4ee;
}

.board-meta-status-warn {
  color: #9c5e0f;
  border-color: #f0d9af;
  background: #fff5e4;
}

.board-meta-status-error {
  color: #9d2e2e;
  border-color: #f0c3c3;
  background: #fdecec;
}

.board-meta-status-loading {
  color: #2a5e86;
  border-color: #c9dff1;
  background: #e9f4fc;
}

.board-meta-current {
  flex: 1 1 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1c5f44;
  border-color: #c7dfd2;
  background: #e3f2eb;
}

/* ── 音量控制条 ── */
.board-volume-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid #dde5f0;
  background: linear-gradient(135deg, #f6f9fd 0%, #f0f4fa 100%);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.board-volume-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid #dde4ef;
  background: #ffffff;
  color: #4b6080;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.board-volume-icon:hover {
  background: #eff3fa;
  border-color: #c8d4e8;
  color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.board-volume-track-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Custom range slider */
.board-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  /* 使用 CSS 变量控制已播放区域颜色 */
  background: linear-gradient(to right,
      #3b82f6 0%,
      #3b82f6 var(--vol-pct, 80%),
      #dde5f0 var(--vol-pct, 80%),
      #dde5f0 100%);
  transition: background 0.05s linear;
}

.board-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.board-volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.board-volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 2px 8px rgba(59, 130, 246, 0.4);
}

.board-volume-slider:hover::-moz-range-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 2px 8px rgba(59, 130, 246, 0.4);
}

.board-volume-label {
  min-width: 36px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4b6080;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.board-speaker-panel {
  margin-bottom: 12px;
  border: 1px solid #d8e4ee;
  border-radius: 12px;
  padding: 10px;
  background: #f5f8fc;
}

.board-speaker-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #324558;
  margin-bottom: 8px;
}

.board-speaker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.board-speaker-item {
  min-height: 36px;
  border: 1px solid #cfdae5;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2a38;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-speaker-item:hover {
  border-color: #b8c8d8;
  background: #f9fbfd;
}

.board-speaker-item.is-active {
  border-color: #1b6d4d;
  background: #dff2e8;
  color: #14543b;
}

.board-speaker-hint {
  margin-top: 8px;
  min-height: 1.1rem;
  font-size: 0.76rem;
  color: #6d8094;
}

.board-loading {
  color: #7e8898;
  font-size: 0.84rem;
  margin-bottom: 11px;
  letter-spacing: 0.2px;
  min-height: 1.25rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease;
}

.board-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* 修复 1：错误 banner */
.board-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #f5b8b8;
  background: #fff1f1;
  color: #8b2020;
  font-size: 0.84rem;
}

.board-error-msg {
  flex: 1 1 0;
  min-width: 0;
  word-break: break-word;
  font-weight: 600;
}

.board-error-retry,
.board-error-dismiss {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #e89898;
  background: #fde8e8;
  color: #7a1c1c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.board-error-retry:hover,
.board-error-dismiss:hover {
  background: #fbd5d5;
}

.board-error-dismiss {
  padding: 4px 9px;
}

/* 修复 3：空状态 */
.board-empty-state {
  grid-column: 1 / -1;
  padding: 32px 16px;
  text-align: center;
  color: #8a95a7;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px dashed #dbe1ea;
  border-radius: 14px;
  background: #f8fafc;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.board-pad-btn {
  min-height: 84px;
  border-radius: 14px;
  border: 1px solid #c6e2d2;
  background:
    linear-gradient(180deg, #dff2e8 0%, #d6ebdf 100%);
  color: #206f52;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all 0.16s ease;
}

.board-pad-main {
  font-size: 1.36rem;
  line-height: 1.05;
  font-weight: 800;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.board-pad-sub {
  margin-top: 5px;
  font-size: 0.76rem;
  letter-spacing: 1.15px;
  font-weight: 800;
  opacity: 0.86;
}

.board-pad-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 16px rgba(20, 77, 55, 0.14);
}

.board-pad-btn:active {
  transform: translateY(0);
}

.board-pad-btn.is-active {
  border-color: #176645;
  background: linear-gradient(145deg, #198a59, #136b45);
  color: #f5fffb;
  box-shadow: 0 10px 18px rgba(21, 104, 69, 0.32);
}

@media (max-width: 1199.98px) {
  .board-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  }
}

@media (max-width: 991.98px) {
  .board-pad-main {
    font-size: 1.24rem;
  }
}

@media (max-width: 767.98px) {
  .board-shell {
    border-radius: 14px;
    padding: 12px;
  }

  .board-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .board-actions {
    width: 100%;
    justify-content: space-between;
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-meta {
    gap: 7px;
  }

  .board-meta-pill {
    font-size: 0.76rem;
  }

  .board-meta-current {
    width: 100%;
  }
}

/* Frontend Refresh */
.frontend-body {
  background:
    radial-gradient(880px 420px at 110% -10%, rgba(222, 107, 72, 0.18), transparent 58%),
    radial-gradient(760px 380px at -10% 100%, rgba(13, 148, 136, 0.14), transparent 60%),
    linear-gradient(180deg, #f6efe5 0%, #f4f6f2 38%, #eef3f7 100%);
  color: #172033;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app-main-shell {
  max-width: 1180px;
  position: relative;
}

.app-main-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.mp-shell,
.board-shell {
  position: relative;
  overflow: hidden;
}

.mp-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(236, 72, 153, 0.03), rgba(13, 148, 136, 0.02));
  border: 1px solid rgba(163, 174, 189, 0.26);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 32px 64px rgba(52, 60, 72, 0.12);
  backdrop-filter: blur(14px);
}

.mp-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 200px at 100% 0, rgba(245, 158, 11, 0.12), transparent 60%),
    radial-gradient(460px 240px at 0 100%, rgba(20, 184, 166, 0.12), transparent 62%);
  pointer-events: none;
}

.mp-topbar,
.board-topbar {
  position: relative;
  z-index: 1;
}

.mp-topbar {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.mp-brand-mark,
.board-brand-mark,
.auth-mark-icon {
  background: linear-gradient(135deg, #192030, #334155);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.mp-brand-title,
.board-brand-title,
.auth-system-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: -0.04em;
}

.mp-brand-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.mp-brand-sub,
.board-brand-sub {
  color: #7a8495;
  letter-spacing: 2.6px;
}

.mp-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #243044;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mp-user-chip-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8a94a6;
  white-space: nowrap;
}

.mp-user-chip strong {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.mp-text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  white-space: nowrap;
}

.mp-logout {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.mp-hero {
  padding: 28px 30px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 24%, rgba(56, 189, 248, 0.14), transparent 0 28%),
    radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.12), transparent 0 18%),
    linear-gradient(135deg, #121826 0%, #1a2233 42%, #29354b 100%);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.mp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 34%, transparent 62%),
    radial-gradient(circle at 78% 20%, rgba(244, 114, 182, 0.1), transparent 0 22%);
  pointer-events: none;
}

.mp-hero-title {
  max-width: 12ch;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.mp-hero-text {
  max-width: 52ch;
  color: #c1cada;
  font-size: 0.96rem;
  margin-bottom: 0;
}

.mp-ledger {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mp-ledger-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.mp-ledger-label {
  display: block;
  margin-bottom: 6px;
  color: #8791a6;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mp-ledger-item strong {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 800;
}

.mp-section-head {
  margin: 18px 0 16px;
}

.mp-section-head h2 {
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #425064;
}

.mp-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mp-card {
  min-height: 188px;
  padding: 18px 18px 14px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.mp-card::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), transparent 72%);
  pointer-events: none;
}

.mp-card:hover {
  transform: translateY(-5px) rotate(-0.3deg);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

.mp-project-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1.26rem;
}

.mp-card-title {
  font-size: 1.08rem;
  margin-bottom: 4px;
  line-height: 1.32;
}

.mp-card-sub {
  color: #728197;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.mp-card-kicker {
  margin-top: 14px;
  margin-bottom: 8px;
  color: #8a96a8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mp-card-meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3f7;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #516072;
  font-size: 0.66rem;
  font-weight: 700;
}

.mp-card-foot {
  margin-top: 12px;
  border-top-color: rgba(148, 163, 184, 0.14);
  padding-top: 10px;
}

.mp-card-status {
  font-size: 0.7rem;
  color: #667588;
}

.mp-card-open {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: #182032;
  color: #fffaf4;
  border-color: #182032;
  font-size: 0.76rem;
}

.mp-empty {
  padding: 74px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(148, 163, 184, 0.34);
}

.board-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 250, 248, 0.78)),
    linear-gradient(135deg, rgba(245, 158, 11, 0.03), rgba(20, 184, 166, 0.02));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 30px;
  padding: 22px 22px 26px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
}

.board-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(320px 160px at 8% 0, rgba(245, 158, 11, 0.1), transparent 60%),
    radial-gradient(440px 220px at 100% 0, rgba(20, 184, 166, 0.08), transparent 62%);
}

.board-topbar {
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.board-brand-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.board-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.board-back-link,
.board-master-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 16px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  font-size: 0.84rem;
  font-weight: 800;
}

.board-back-link {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(148, 163, 184, 0.2);
  color: #465468;
  white-space: nowrap;
}

.board-master-btn {
  background: #1f2937;
  border-color: #1f2937;
  color: #fffaf4;
}

.board-meta {
  gap: 10px 12px;
}

.board-meta-pill {
  min-height: 36px;
  border-radius: 14px;
  padding: 7px 12px;
}

.board-volume-bar,
.board-speaker-panel {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.board-grid {
  gap: 14px;
}

.board-pad-btn {
  min-height: 96px;
  border-radius: 20px;
  border-color: rgba(24, 96, 74, 0.18);
  background:
    linear-gradient(180deg, #f7fbf9 0%, #e9f4ef 100%);
  color: #22453a;
  box-shadow: 0 16px 26px rgba(20, 77, 55, 0.08);
}

.board-pad-btn:hover {
  transform: translateY(-3px) rotate(-0.35deg);
  box-shadow: 0 22px 34px rgba(20, 77, 55, 0.12);
}

.board-pad-btn.is-active {
  background:
    linear-gradient(140deg, #1a8d61, #126447 70%);
  border-color: #176645;
}

.board-pad-main {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.44rem;
}

.board-pad-sub {
  letter-spacing: 1.6px;
}

.auth-panel-user {
  max-width: 540px;
}

.auth-panel-user .auth-mark,
.auth-panel-user .auth-form {
  position: relative;
  z-index: 1;
}

.auth-panel-user .auth-mark {
  margin-bottom: 28px;
}

.auth-panel-user .auth-system-title {
  font-size: clamp(1.9rem, 3.7vw, 2.5rem);
}

.auth-panel-user .auth-system-sub {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
  color: #748094;
  line-height: 1.7;
}

.auth-note-user {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.05);
}

.auth-action-btn-secondary,
.auth-action-btn-primary,
.auth-submit-dark {
  min-height: 58px;
  border-radius: 16px;
}

.auth-action-row {
  gap: 12px;
  margin-top: 4px;
}

.auth-submit-dark {
  background: linear-gradient(135deg, #182032, #30415e);
  border-color: #182032;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.auth-submit-dark:hover,
.auth-submit-dark:focus {
  background: linear-gradient(135deg, #22304a, #3b4d6d);
}

.auth-action-btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.auth-action-btn-primary {
  background: linear-gradient(135deg, #182032, #30415e);
  border-color: #182032;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.auth-action-btn-primary:hover,
.auth-action-btn-primary:focus {
  background: linear-gradient(135deg, #22304a, #3b4d6d);
}

.auth-panel-user .auth-mark-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.auth-panel-user .auth-eyebrow {
  margin-bottom: 12px;
}

.auth-panel-user .auth-input {
  min-height: 58px;
  border-radius: 16px;
}

.auth-panel-user .auth-field-icon,
.auth-panel-user .auth-field-right {
  width: 19px;
  height: 19px;
}

.auth-panel-user .auth-field .auth-input[type="password"] {
  padding-right: 44px;
}

.auth-panel-user .auth-input[name="captcha"] {
  padding-left: 16px;
}

.auth-panel-user .auth-remember {
  font-size: 0.92rem;
}

.auth-panel-user .btn.btn-sm.btn-outline-secondary {
  min-height: 40px;
  border-radius: 12px;
}

@media (max-width: 991.98px) {
  .mp-ledger {
    grid-template-columns: 1fr;
  }

  .mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .app-main-shell {
    max-width: 100%;
  }

  .mp-top-actions {
    width: 100%;
  }

  .mp-user-chip {
    width: 100%;
    justify-content: center;
  }

  .board-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-actions {
    width: 100%;
  }

  .mp-shell,
  .board-shell {
    border-radius: 22px;
  }
}

@media (max-width: 575.98px) {
  .mp-shell {
    padding: 16px;
  }

  .mp-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .mp-user-chip {
    grid-column: 1 / -1;
  }

  .mp-text-btn,
  .mp-logout {
    width: 100%;
  }

  .mp-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mp-card {
    min-height: 0;
  }

  .mp-hero {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .board-shell {
    padding: 16px;
    border-radius: 22px;
  }

  .board-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .board-back-link,
  .board-master-btn {
    width: 100%;
  }

  .auth-action-row {
    grid-template-columns: 1fr;
  }
}

.ios-hero {
  border: 1px solid #e3e8f1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ios-eyebrow {
  font-size: 0.78rem;
  color: #64748b;
  letter-spacing: 0.2px;
}

.ios-title {
  font-weight: 800;
  color: #0f172a;
}

.ios-logout-btn {
  border-radius: 999px;
  border: 1px solid #d5deeb;
  min-height: 42px;
  padding-inline: 16px;
}

.ios-project-card {
  border-radius: 20px;
  border: 1px solid #e4e9f2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px;
  color: #0f172a;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ios-project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
}

.ios-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ios-project-name {
  font-size: 1.04rem;
  font-weight: 750;
}

.ios-project-pill {
  border-radius: 999px;
  background: #e8f7ef;
  color: #11663e;
  border: 1px solid #c7ecd8;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
}

.ios-project-meta {
  font-size: 0.85rem;
  color: #64748b;
  display: grid;
  gap: 4px;
}

.ios-project-meta span {
  color: #1e293b;
}

.listen-topbar {
  position: sticky;
  top: calc(var(--safe-top) + 8px);
  z-index: 20;
  margin-bottom: 12px;
  border: 1px solid #dfe7f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 12px 14px;
}

.listen-top-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.listen-status {
  font-weight: 700;
  color: #0f172a;
}

.listen-current {
  font-size: 0.86rem;
  color: #475569;
}

.ios-secondary-btn {
  border-radius: 14px;
  border: 1px solid #cfd9e7;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  font-weight: 650;
}

.ios-player-btn {
  border: 1px solid #d6dfeb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-weight: 650;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.05);
  transition: all 0.15s ease;
}

.ios-player-btn.is-active {
  border-color: #7cb7f8;
  background: linear-gradient(135deg, #eff7ff, #e8f2ff);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

/* Auth */
.auth-body {
  min-height: 100vh;
  background: #f2f3f5;
}

.auth-wrap {
  min-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 2rem);
  display: grid;
  place-items: center;
}

.auth-wrap-user {
  position: relative;
}

.auth-wrap-user::before,
.auth-wrap-user::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.auth-wrap-user::before {
  top: 4vh;
  right: 3vw;
  width: min(34vw, 320px);
  height: min(34vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 72%);
}

.auth-wrap-user::after {
  left: 2vw;
  bottom: 2vh;
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, rgba(14, 165, 233, 0) 70%);
}

.auth-wrap-admin {
  position: relative;
}

.auth-wrap-admin::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(8, 15, 25, 0.96), rgba(14, 24, 37, 0.92)),
    radial-gradient(720px 420px at 12% 10%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(680px 400px at 88% 88%, rgba(56, 189, 248, 0.12), transparent 58%);
  z-index: 0;
}

.auth-panel {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.auth-panel-minimal {
  padding: 8px 10px;
}

.auth-panel-user {
  max-width: 480px;
}

.auth-panel-admin {
  width: 100%;
  max-width: 560px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 23, 34, 0.94), rgba(10, 16, 25, 0.98)),
    linear-gradient(135deg, rgba(251, 146, 60, 0.06), rgba(56, 189, 248, 0.04));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  color: #e5edf7;
}

.auth-admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: rgba(251, 146, 60, 0.1);
  color: #fdba74;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.auth-admin-back {
  color: #c7d2e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-admin-back:hover,
.auth-admin-back:focus {
  color: #ffffff;
}

.auth-mark {
  margin-bottom: 28px;
  text-align: center;
}

.auth-mark-admin {
  text-align: left;
}

.auth-mark-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #0b0b0d;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
}

.auth-mark-icon-admin {
  margin: 0 0 18px;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #111827;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.24);
}

.auth-mark-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-mark-icon circle {
  fill: currentColor;
  stroke: none;
}

.auth-mark-icon-admin svg {
  width: 34px;
  height: 34px;
}

.auth-eyebrow {
  margin-bottom: 10px;
  color: #517198;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.auth-eyebrow-admin {
  color: #fb923c;
}

.auth-system-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.1vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #101216;
}

.auth-system-title-admin {
  color: #f8fafc;
}

.auth-system-sub {
  margin: 8px 0 0;
  color: #8a8f98;
  font-size: 0.92rem;
}

.auth-system-sub-admin {
  color: #94a3b8;
}

.auth-form-minimal {
  width: 100%;
}

.auth-form-admin {
  width: 100%;
}

.auth-note {
  margin-bottom: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.auth-note strong {
  font-size: 0.92rem;
}

.auth-note span {
  font-size: 0.88rem;
}

.auth-note-user {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d7e3f2;
  color: #3f526b;
}

.auth-note-admin {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #d5deeb;
}

.auth-field {
  position: relative;
}

.auth-field-icon,
.auth-field-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #8d939c;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.auth-field-icon {
  left: 14px;
}

.auth-field-right {
  right: 14px;
}

.auth-password-toggle {
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: #8d939c;
  line-height: 0;
  cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  color: #5d6572;
  outline: none;
}

.auth-password-toggle.is-active {
  color: #1b1f27;
}

.auth-field-icon svg,
.auth-field-right svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.auth-input {
  min-height: 56px;
  border-radius: 14px;
  border-color: #d7dbe1;
  background: #eef0f3;
  padding-left: 40px;
  color: #101216;
}

.auth-input::placeholder {
  color: #9aa0a8;
}

.auth-field .auth-input[type="password"] {
  padding-right: 40px;
}

.auth-input:focus {
  border-color: #babfc8;
  background: #f3f5f8;
  box-shadow: 0 0 0 0.2rem rgba(120, 126, 136, 0.15);
}

.auth-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f5c72;
  font-weight: 600;
}

.auth-remember input {
  width: 14px;
  height: 14px;
  accent-color: #2f79e8;
}

.auth-forgot {
  color: #16181d;
  font-weight: 700;
}

.auth-forgot-admin {
  color: #94a3b8;
}

.auth-switch-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.auth-switch-link:hover,
.auth-switch-link:focus {
  color: #2563eb;
}

.auth-submit {
  min-height: 56px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid #000000;
  color: #ffffff;
}

.auth-submit-dark {
  background: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.auth-submit-admin {
  border: 1px solid #fb923c;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff7ed;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.26);
}

.auth-submit-admin:hover,
.auth-submit-admin:focus {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #ffffff;
}

.auth-panel-admin .auth-field-icon,
.auth-panel-admin .auth-field-right {
  color: #94a3b8;
}

.auth-panel-admin .auth-input {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
}

.auth-panel-admin .auth-input::placeholder {
  color: #7f8ca1;
}

.auth-panel-admin .auth-input:focus {
  border-color: rgba(251, 146, 60, 0.48);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.16);
}

.auth-panel-admin .auth-remember {
  color: #d5deeb;
}

.auth-panel-admin .auth-remember input {
  accent-color: #f97316;
}

.auth-submit-arrow {
  font-size: 1.24rem;
  line-height: 1;
}

.auth-submit:hover,
.auth-submit:focus {
  color: #ffffff;
  background: #111111;
}

.auth-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-action-btn {
  min-height: 56px;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-action-btn-secondary {
  border: 1px solid #cfd5de;
  background: #f0f3f7;
  color: #1f2733;
}

.auth-action-btn-secondary:hover,
.auth-action-btn-secondary:focus {
  border-color: #bcc4d0;
  background: #e8edf4;
  color: #17202c;
}

.auth-action-btn-primary {
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
}

.auth-action-btn-primary:hover,
.auth-action-btn-primary:focus {
  background: #111111;
  color: #ffffff;
}

.auth-foot-note {
  margin-top: 24px;
  text-align: center;
  color: #9298a1;
  font-size: 0.92rem;
}

.auth-foot-note a {
  color: #121418;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .auth-panel {
    max-width: 100%;
  }

  .auth-panel-minimal {
    padding: 4px;
  }

  .auth-panel-admin {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .auth-admin-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-system-title {
    font-size: 1.64rem;
  }

  .auth-input,
  .auth-submit {
    min-height: 52px;
  }
}

/* ============================================================
   Admin – 全局基础
   ============================================================ */
.admin-body {
  margin: 0;
  min-height: 100vh;
  background: #eef2f7;
}

/* ============================================================
   按钮系统
   ============================================================ */
.admin-content .btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.16s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-content .btn-xs {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.75rem;
}

.admin-content .btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.8125rem;
}

.admin-content .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.admin-content .btn-lg {
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.admin-content .btn-primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.admin-content .btn-primary:hover,
.admin-content .btn-primary:focus {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.admin-content .btn-secondary {
  background: #475569;
  border-color: #475569;
  color: #fff;
}

.admin-content .btn-secondary:hover,
.admin-content .btn-secondary:focus {
  background: #334155;
  border-color: #334155;
  color: #fff;
}

.admin-content .btn-success {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.admin-content .btn-success:hover,
.admin-content .btn-success:focus {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

.admin-content .btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.admin-content .btn-danger:hover,
.admin-content .btn-danger:focus {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.admin-content .btn-warning {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.admin-content .btn-warning:hover,
.admin-content .btn-warning:focus {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
}

.admin-content .btn-outline-primary {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: transparent;
}

.admin-content .btn-outline-primary:hover,
.admin-content .btn-outline-primary:focus {
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-content .btn-outline-secondary {
  border-color: #94a3b8;
  color: #475569;
  background: transparent;
}

.admin-content .btn-outline-secondary:hover,
.admin-content .btn-outline-secondary:focus {
  background: #f1f5f9;
  color: #334155;
}

.admin-content .btn-outline-danger {
  border-color: #dc2626;
  color: #dc2626;
  background: transparent;
}

.admin-content .btn-outline-danger:hover,
.admin-content .btn-outline-danger:focus {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-content .btn-outline-warning {
  border-color: #d97706;
  color: #b45309;
  background: transparent;
}

.admin-content .btn-outline-warning:hover,
.admin-content .btn-outline-warning:focus {
  background: #fffbeb;
}

.admin-content .btn:disabled,
.admin-content .btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.admin-content .btn-group {
  display: inline-flex;
}

.admin-content .btn-group .btn {
  border-radius: 0;
  border-right-width: 0;
}

.admin-content .btn-group .btn:first-child {
  border-radius: 8px 0 0 8px;
}

.admin-content .btn-group .btn:last-child {
  border-radius: 0 8px 8px 0;
  border-right-width: 1px;
}

.admin-content .btn-group .btn:hover,
.admin-content .btn-group .btn:focus {
  z-index: 1;
}

/* 操作按钮容器 */
.admin-content .action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.admin-content .action-buttons .btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.admin-content .action-buttons-compact {
  gap: 5px;
}

/* 折叠表单 */
.admin-content .admin-form-collapse {
  border: 1px solid #e4ebf4;
  border-left: 3px solid #3b82f6;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f8faff;
}

.admin-content .admin-form-collapse+.admin-form-collapse {
  margin-top: 10px;
}

.admin-content .admin-form-collapse>summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: #1e3a5f;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content .admin-form-collapse>summary::-webkit-details-marker {
  display: none;
}

.admin-content .admin-form-collapse>summary::after {
  content: '展开';
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.admin-content .admin-form-collapse[open]>summary::after {
  content: '收起';
}

/* 行内更多菜单 */
.admin-content .inline-actions-menu {
  position: relative;
}

.admin-content .inline-actions-menu>summary {
  list-style: none;
}

.admin-content .inline-actions-menu>summary::-webkit-details-marker {
  display: none;
}

.admin-content .inline-actions-menu[open]>summary {
  z-index: 3;
}

.admin-content .inline-actions-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 132px;
  padding: 8px;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 6px;
  z-index: 10;
}

/* 项目权限格 */
.admin-content .project-check-grid {
  border: 1px solid #d9e4f0;
  border-radius: 10px;
  background: #ffffff;
  max-height: 180px;
  overflow: auto;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-content .project-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #fbfdff;
  font-size: 0.82rem;
  color: #1f2937;
  line-height: 1.2;
  cursor: pointer;
}

.admin-content .project-check-item:hover {
  border-color: #cbd8e7;
  background: #f0f7ff;
}

.admin-content .project-check-item .form-check-input {
  margin: 0;
  flex: 0 0 auto;
}

.admin-content form {
  margin-bottom: 0;
}

.admin-content form .btn {
  min-height: 40px;
}

.admin-content table .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.75rem;
}

.admin-content .input-group .btn {
  min-height: 44px;
}

.admin-content .table-responsive {
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: #ffffff;
}

.admin-content .form-control,
.admin-content .form-select {
  border-radius: 10px;
  border-color: #d5dfec;
  min-height: 44px;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-header-actions .btn {
  min-height: 40px;
  padding: 0 18px;
}

.btn-icon {
  min-height: 36px;
  width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   后台整体布局
   ============================================================ */
.admin-layout {
  min-height: 100vh;
  display: flex;
}

/* ── 侧边栏 ── */
.admin-sidebar {
  width: 240px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(180deg, #0d1526 0%, #111c35 60%, #0f172a 100%);
  color: #cbd5e1;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.28);
}

/* Brand */
.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-brand-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(6, 182, 212, 0.35);
}

.admin-brand-icon svg {
  width: 20px;
  height: 20px;
}

.admin-brand-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.admin-brand-sub {
  font-size: 0.68rem;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-top: 2px;
  white-space: nowrap;
}

/* 导航区分隔标题 */
.admin-nav-divider {
  padding: 14px 18px 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #3d5068;
  text-transform: uppercase;
}

/* 导航列表 */
.admin-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  gap: 2px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #94a3b8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.15s ease;
  background: transparent;
  border: 1px solid transparent;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.admin-nav-link:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-nav-link:hover .nav-icon {
  opacity: 1;
}

.admin-nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(6, 182, 212, 0.22) 100%);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-nav-link.active .nav-icon {
  opacity: 1;
}

/* 底部用户信息 */
.admin-sidebar-foot {
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  font-size: 0.68rem;
  color: #4d6380;
  white-space: nowrap;
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #94a3b8;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.07);
  transition: all 0.15s ease;
}

.admin-logout-btn:hover {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.14);
}

/* ── 主内容区 ── */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 20px;
  gap: 12px;
}

/* 顶部栏 */
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid #dce4ef;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: calc(var(--safe-top) + 8px);
  z-index: 25;
}

.admin-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.14s ease;
}

.admin-menu-toggle:hover {
  background: #eef2f8;
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-topbar-title {
  flex: 1;
  min-width: 0;
}

.topbar-page-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 4px 10px;
}

/* 内容面板 */
.admin-content {
  flex: 1;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

/* 遮罩 */
.admin-overlay {
  display: none;
}

@media (min-width: 992px) {
  .admin-body-studio .admin-sidebar {
    width: 0;
    flex-basis: 0;
    border-right: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .admin-body-studio .admin-brand,
  .admin-body-studio .admin-nav,
  .admin-body-studio .admin-nav-divider,
  .admin-body-studio .admin-sidebar-foot {
    opacity: 0;
    pointer-events: none;
  }
}

/* ── 响应式 ── */
@media (max-width: 991.98px) {
  .admin-main {
    padding: 10px 12px 16px;
    gap: 10px;
  }

  .admin-content {
    padding: 12px;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: none;
  }

  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
  }

  .admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.48);
  }

  .admin-overlay.show {
    display: block;
  }

  .action-buttons-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .action-buttons-mobile .btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.75rem;
    flex: 0 0 auto;
  }

  .admin-content .admin-form-collapse {
    padding: 8px;
  }

  .admin-content .inline-actions-pop {
    position: static;
    margin-top: 6px;
    box-shadow: none;
    border-color: #e1e8f2;
  }

  .admin-content .project-check-grid {
    grid-template-columns: 1fr;
    max-height: 168px;
  }
}


@media (min-width: 768px) {
  .action-buttons-mobile {
    display: none !important;
  }
}

/* ============================================================
   D: 全局组件 – 页头、筛选栏、仪表盘
   ============================================================ */

/* ── 统一页头 ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8eef6;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.page-header-icon svg {
  width: 20px;
  height: 20px;
}

.page-header-icon-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.page-header-icon-indigo {
  background: #e0e7ff;
  color: #4338ca;
}

.page-header-icon-violet {
  background: #ede9fe;
  color: #7c3aed;
}

.page-header-icon-amber {
  background: #fef3c7;
  color: #b45309;
}

.page-header-icon-emerald {
  background: #d1fae5;
  color: #059669;
}

.page-header-icon-red {
  background: #fee2e2;
  color: #dc2626;
}

.page-header-icon-slate {
  background: #f1f5f9;
  color: #475569;
}

.page-header-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.page-header-sub {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #64748b;
}

/* ── 筛选栏 ── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid #e2eaf4;
  border-radius: 12px;
  background: #f8fafd;
}

.filter-bar-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.filter-bar-search {
  min-width: 200px;
  flex: 1;
  min-height: 38px !important;
  font-size: 0.84rem;
}

.filter-bar-select {
  min-width: 110px;
  min-height: 38px !important;
  font-size: 0.84rem;
}

.filter-bar-stat {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar-inputs {
    flex-direction: column;
  }

  .filter-bar-search,
  .filter-bar-select {
    min-width: 0;
    width: 100%;
  }

  .filter-bar-stat {
    text-align: right;
  }
}

/* ── 仪表盘统计卡片 ── */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e5edf7;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  position: relative;
}

a.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  text-decoration: none;
  color: inherit;
}

.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-stat-icon svg {
  width: 22px;
  height: 22px;
}

.dash-stat-body {
  flex: 1;
  min-width: 0;
}

.dash-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.2px;
}

.dash-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin-top: 2px;
}

.dash-stat-arrow {
  font-size: 1rem;
  color: #cbd5e1;
  flex-shrink: 0;
}

a.dash-stat-card:hover .dash-stat-arrow {
  color: #94a3b8;
}

/* 颜色变体 */
.dash-stat-blue .dash-stat-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.dash-stat-indigo .dash-stat-icon {
  background: #e0e7ff;
  color: #4338ca;
}

.dash-stat-violet .dash-stat-icon {
  background: #ede9fe;
  color: #7c3aed;
}

.dash-stat-amber .dash-stat-icon {
  background: #fef3c7;
  color: #b45309;
}

.dash-stat-emerald .dash-stat-icon {
  background: #d1fae5;
  color: #059669;
}

.dash-stat-blue {
  border-top: 3px solid #3b82f6;
}

.dash-stat-indigo {
  border-top: 3px solid #6366f1;
}

.dash-stat-violet {
  border-top: 3px solid #8b5cf6;
}

.dash-stat-amber {
  border-top: 3px solid #f59e0b;
}

.dash-stat-emerald {
  border-top: 3px solid #10b981;
}

.dash-stat-emerald .dash-stat-value {
  color: #059669;
}

/* ── 仪表盘区块标题 ── */
.dash-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── 快捷入口 ── */
.dash-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.dash-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px dashed #d1dbe8;
  border-radius: 12px;
  background: #fafbfd;
  color: #475569;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.14s ease;
}

.dash-shortcut-item svg {
  width: 22px;
  height: 22px;
  color: #94a3b8;
  transition: color 0.14s ease;
}

.dash-shortcut-item:hover {
  border-color: #3b82f6;
  border-style: solid;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
}

.dash-shortcut-item:hover svg {
  color: #3b82f6;
}

@media (max-width: 575.98px) {
  .dash-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-shortcut-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Admin – UI Refresh
   ============================================================ */
:root {
  --admin-bg: #eef4fb;
  --admin-surface: rgba(255, 255, 255, 0.86);
  --admin-surface-strong: rgba(248, 251, 254, 0.96);
  --admin-panel: rgba(255, 255, 255, 0.92);
  --admin-panel-soft: rgba(244, 247, 251, 0.86);
  --admin-border: rgba(148, 163, 184, 0.18);
  --admin-text: #18324b;
  --admin-muted: #6f8298;
  --admin-accent: #0ea5e9;
  --admin-accent-warm: #f59e0b;
  --admin-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.admin-body {
  background:
    radial-gradient(960px 480px at 0% 0%, rgba(14, 165, 233, 0.14), transparent 58%),
    radial-gradient(820px 460px at 100% 0%, rgba(245, 158, 11, 0.1), transparent 54%),
    linear-gradient(180deg, #f3f7fb 0%, #eef4fa 38%, #e8eef6 100%);
  font-family: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #102033;
}

.admin-layout {
  position: relative;
}

.admin-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 0, black 36%, transparent 100%);
  opacity: 0.32;
}

.admin-sidebar {
  width: 272px;
  flex-basis: 272px;
  padding: 14px 12px;
  background:
    linear-gradient(180deg, rgba(6, 14, 27, 0.96) 0%, rgba(10, 22, 39, 0.96) 100%);
  border-right: 1px solid rgba(125, 211, 252, 0.08);
  box-shadow: 20px 0 48px rgba(0, 0, 0, 0.24);
}

.admin-brand,
.admin-sidebar-foot {
  border-color: rgba(148, 163, 184, 0.08);
}

.admin-brand {
  border: 1px solid rgba(125, 211, 252, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  margin-bottom: 10px;
}

.admin-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #38bdf8 0%, #14b8a6 54%, #f59e0b 100%);
  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.3);
}

.admin-brand-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.admin-brand-sub {
  color: #6f86a4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-nav-divider {
  padding-left: 8px;
  color: #5b728f;
  letter-spacing: 0.18em;
}

.admin-nav {
  gap: 8px;
  padding: 8px 0;
}

.admin-nav-link {
  min-height: 46px;
  border-radius: 16px;
  padding: 0 14px;
  font-weight: 700;
  color: #9eb0c8;
}

.admin-nav-link:hover {
  transform: translateX(2px);
}

.admin-nav-link.active {
  color: #eff8ff;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(20, 184, 166, 0.16));
  border-color: rgba(125, 211, 252, 0.22);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.08), 0 16px 30px rgba(2, 8, 23, 0.24);
}

.admin-user-info {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.admin-user-role {
  color: #7f95b2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-logout-btn {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 700;
}

.admin-main {
  padding: 18px 18px 24px;
  gap: 16px;
}

.admin-topbar {
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(16px);
}

.admin-menu-toggle {
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.96);
  color: #38506a;
}

.admin-menu-toggle:hover {
  background: rgba(239, 244, 249, 0.96);
  border-color: rgba(125, 211, 252, 0.18);
  color: #102033;
}

.topbar-kicker {
  margin-bottom: 2px;
  color: #7590a8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-page-name {
  color: #102033;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.36rem;
  letter-spacing: -0.04em;
}

.topbar-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(125, 211, 252, 0.08);
  color: #18506f;
  font-size: 0.78rem;
  font-weight: 700;
}

.topbar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.topbar-time {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #47627c;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-content {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.94));
  box-shadow: var(--admin-shadow);
  padding: 22px;
}

.admin-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(360px 180px at 100% 0, rgba(56, 189, 248, 0.14), transparent 62%),
    radial-gradient(280px 160px at 0 0, rgba(245, 158, 11, 0.12), transparent 58%);
}

.admin-content > * {
  position: relative;
  z-index: 1;
}

.admin-stage {
  margin-bottom: 22px;
}

.admin-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
  gap: 16px;
  padding: 22px 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 248, 252, 0.94) 52%, rgba(239, 244, 249, 0.96) 100%);
  color: var(--admin-text);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.admin-stage-kicker,
.admin-hero-kicker {
  margin-bottom: 8px;
  color: #0f6b94;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.admin-stage-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.04;
}

.admin-stage-subtitle {
  max-width: 46ch;
  margin: 10px 0 0;
  color: #61758d;
  font-size: 0.94rem;
  line-height: 1.72;
}

.admin-stage-meta {
  display: grid;
  gap: 12px;
}

.admin-stage-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 88px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(247, 250, 253, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-stage-label {
  color: #6a8098;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-stage-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: #13253c;
}

.page-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.page-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.page-header-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.page-header-sub {
  margin-top: 4px;
  color: #61758d;
  font-size: 0.82rem;
}

.admin-inline-note {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.04);
  color: #4d627c;
  font-size: 0.86rem;
}

.admin-content .card,
.admin-content .table-responsive,
.filter-bar,
.admin-content .admin-form-collapse {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
}

.admin-content .card {
  overflow: hidden;
}

.admin-content .card-body {
  padding: 20px;
}

.admin-content .admin-form-collapse {
  padding: 12px 14px;
}

.admin-content .admin-form-collapse > summary {
  color: #123150;
}

.admin-content .form-control,
.admin-content .form-select {
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-content .form-control:focus,
.admin-content .form-select:focus {
  border-color: rgba(14, 165, 233, 0.48);
  box-shadow: 0 0 0 0.24rem rgba(14, 165, 233, 0.12);
}

.admin-content .table {
  margin-bottom: 0;
}

.admin-content .table > :not(caption) > * > * {
  padding: 0.92rem 0.9rem;
  border-bottom-color: rgba(148, 163, 184, 0.14);
  background: transparent;
}

.admin-content .table thead th {
  color: #5a6f88;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom-width: 1px;
}

.admin-content .table tbody tr:hover {
  background: rgba(125, 211, 252, 0.06);
}

.admin-content .btn {
  border-radius: 14px;
  font-weight: 700;
}

.admin-content .btn-primary {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 12px 20px rgba(29, 78, 216, 0.18);
}

.admin-content .btn-primary:hover,
.admin-content .btn-primary:focus {
  background: linear-gradient(135deg, #16233a, #1e40af);
}

.admin-content .btn-success {
  background: linear-gradient(135deg, #0f766e, #059669);
  border-color: #059669;
}

.admin-content .btn-warning {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-color: #f59e0b;
}

.admin-content .btn-danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border-color: #dc2626;
}

.admin-content .btn-outline-primary,
.admin-content .btn-outline-secondary,
.admin-content .btn-outline-danger,
.admin-content .btn-outline-warning {
  background: rgba(255, 255, 255, 0.82);
}

.filter-bar {
  padding: 14px 16px;
}

.filter-bar-stat {
  color: #5a6f88;
}

.dash-stat-grid {
  gap: 14px;
  margin-bottom: 18px;
}

.dash-stat-card {
  align-items: flex-start;
  min-height: 124px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.92));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.dash-stat-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 28px 0 22px 0;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), transparent);
}

.dash-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.dash-stat-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dash-stat-value {
  margin-top: 6px;
  font-size: 1.92rem;
}

.dash-stat-arrow {
  align-self: flex-end;
  font-size: 1rem;
}

.admin-panel-card {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.admin-panel-card-compact {
  padding-top: 14px;
}

.dash-section-title {
  margin-bottom: 12px;
  color: #5e738c;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}

.dash-shortcut-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.dash-shortcut-item {
  min-height: 96px;
  border-radius: 18px;
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 250, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dash-shortcut-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
}

.dash-shortcut-item svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1199.98px) {
  .admin-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    width: 272px;
    flex-basis: 272px;
  }

  .admin-main {
    padding: 12px;
  }

  .admin-topbar,
  .admin-content {
    border-radius: 24px;
  }

  .admin-stage-grid {
    padding: 18px;
  }
}

@media (max-width: 767.98px) {
  .admin-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .admin-stage-title {
    font-size: 1.7rem;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header-right {
    width: 100%;
  }

  .page-header-right .btn {
    width: 100%;
  }

  .dash-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .admin-sidebar {
    padding: 10px;
  }

  .admin-topbar {
    padding: 12px 14px;
  }

  .topbar-page-name {
    font-size: 1.16rem;
  }

  .admin-content {
    padding: 14px;
    border-radius: 22px;
  }

  .admin-stage-grid,
  .admin-panel-card {
    padding: 16px;
    border-radius: 20px;
  }

  .admin-stage-card {
    border-radius: 16px;
  }

  .dash-stat-grid {
    grid-template-columns: 1fr;
  }

  .dash-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
