.admin-app {
  display: flex;
  min-height: 100vh;
  background: var(--gray-50);
  color: var(--gray-900);
}
.admin-app .main { flex: 1; min-width: 0; }

@media (max-width: 820px) {
  .admin-app { flex-direction: column; }
}

.admin-app .sidebar {
  width: 238px;
  flex: none;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-app .sb-brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; }
.admin-app .sidebar .brand-name { font-weight: 800; font-size: 16px; line-height: 1.1; }
.admin-app .sidebar .brand-name span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  margin-top: 3px;
}

.admin-app .nav { padding: 6px 12px; flex: 1; }
.admin-app .nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  margin-bottom: 3px;
}
.admin-app .nav-link:hover { background: var(--gray-50); color: var(--gray-900); }
.admin-app .nav-link.nuxt-link-exact-active { background: var(--blue-50); color: var(--blue-700); }

.admin-app .sb-user { padding: 14px 16px; border-top: 1px solid var(--gray-200); }
.admin-app .sb-user .u-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-app .u-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.admin-app .u-meta { min-width: 0; }
.admin-app .u-meta .un {
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-app .u-meta .ur { font-size: 11.5px; color: var(--gray-500); text-transform: capitalize; }
.admin-app .sb-user .logout { width: 100%; justify-content: center; }

@media (max-width: 820px) {
  .admin-app .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
  .admin-app .sb-brand { padding: 14px 16px; }
  .admin-app .nav { display: flex; padding: 8px; }
  .admin-app .nav-link { margin-bottom: 0; white-space: nowrap; }
  .admin-app .sb-user { border-top: none; border-left: 1px solid var(--gray-200); }
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar h1 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.admin-topbar .sub { font-size: 12.5px; color: var(--gray-500); font-weight: 500; }
.admin-topbar .top-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.admin-topbar .session-filter {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-900);
  background: #fff;
}
.admin-topbar .session-filter:focus { outline: none; border-color: var(--blue-500); }

.admin-page .content { padding: 26px; }
.admin-page .foot { text-align: center; font-size: 12.5px; color: var(--gray-500); padding: 22px; }
.admin-page .foot b { color: var(--gray-900); }

.stat {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat .lbl { font-size: 12.5px; color: var(--gray-500); font-weight: 600; margin-top: 4px; }

.src-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13px;
  margin-bottom: 22px;
  line-height: 1.55;
}
.src-banner .app-icon { color: var(--blue-600); margin-top: 1px; }

.empty-state { text-align: center; padding: 60px 24px; color: var(--gray-500); }
.empty-state .ei {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.empty-state h3 { font-size: 18px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.empty-state p { max-width: 420px; margin: 0 auto 18px; line-height: 1.6; font-size: 14px; }
.empty-state .empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 200px; position: relative; }
.toolbar .search .app-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}
.toolbar .search input {
  width: 100%;
  padding: 11px 15px 11px 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 14px;
  background: #fff;
  color: var(--gray-900);
}
.toolbar .search input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}
.toolbar .count-pill {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-500);
  background: #fff;
  border: 1px solid var(--gray-200);
  padding: 8px 13px;
  border-radius: var(--radius-pill);
}

.dashboard .section {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  margin: 0 0 14px;
}
.dashboard .stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 28px; }
.dashboard .panel {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.dashboard .panel h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard .panel h3 .app-icon { color: var(--blue-600); }
.dashboard .dist-row {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.dashboard .dist-row .dl { font-size: 13px; font-weight: 600; }
.dashboard .dist-track { height: 12px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.dashboard .dist-fill { height: 100%; border-radius: 999px; background: var(--blue-600); transition: width .5s ease; }
.dashboard .dist-row .dv { font-size: 12.5px; font-weight: 700; color: var(--gray-500); text-align: right; }
.dashboard .muted { color: var(--gray-500); font-size: 13.5px; }

@media (max-width: 1000px) {
  .dashboard .stats { grid-template-columns: repeat(2, 1fr); }
}

.modal .hint { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; margin-bottom: 12px; }

.mp-info { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.mp-chip {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mp-chip .app-icon { color: var(--blue-600); }

.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-card { border: 1px solid var(--gray-200); border-radius: 14px; padding: 16px; height: 100%; }
.mp-card.empty {
  border-style: dashed;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  min-height: 140px;
  text-align: center;
}
.mp-card .mc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mp-card .mc-slot { font-weight: 800; font-size: 14px; }
.mp-card .mc-date { font-size: 11px; color: var(--gray-500); }
.mp-card .mc-score { font-size: 28px; font-weight: 800; }
.mp-card .mc-score .of { font-size: 14px; color: var(--gray-500); }
.mp-card .mc-band {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 6px 0 12px;
}
.mp-card .mc-bar { margin-bottom: 9px; }
.mp-card .mc-bar .bt {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.mp-card .mc-bar .bv { color: var(--gray-500); }
.mp-card .mc-track { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.mp-card .mc-fill { height: 100%; border-radius: 999px; }
.mp-card .mc-foot { font-size: 12.5px; color: var(--gray-500); margin-top: 8px; }

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

.file-input { display: none; }
.viewer-note { font-size: 13px; }
.self-tag { font-size: 11px; color: var(--gray-500); font-weight: 600; }

.today-token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600) 60%, var(--blue-500));
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .28);
}
.today-token .tt-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
}
.today-token .tt-code {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  margin: 6px 0 4px;
}
.today-token .tt-meta { font-size: 12.5px; opacity: .85; }
.today-token .btn-primary { background: #fff; color: var(--blue-700); }
.today-token .btn-primary:hover { background: var(--blue-50); }

.tt-badge { margin-left: 8px; vertical-align: middle; }

@media (max-width: 900px) {
  .dashboard .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .admin-page .content { padding: 16px; }
  .admin-topbar { padding: 14px 16px; }
  .admin-topbar h1 { font-size: 18px; }
  .admin-topbar .top-actions { width: 100%; }
  .admin-topbar .top-actions .btn,
  .admin-topbar .session-filter { flex: 1 1 auto; justify-content: center; }
  .dashboard .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dashboard .panel { padding: 18px 16px; }
  .dashboard .dist-row { grid-template-columns: 74px 1fr 34px; gap: 8px; }
  .today-token { padding: 18px; gap: 14px; }
  .today-token .tt-code { font-size: 26px; }
  .today-token .btn { width: 100%; justify-content: center; }
  .toolbar { gap: 8px; }
  .empty-state { padding: 40px 16px; }
}

@media (max-width: 420px) {
  .dashboard .stats { grid-template-columns: 1fr; }
}
