/* Steam Panel — Dark Navy + Desktop Layout */
:root {
  --bg-primary: #0e1621;
  --bg-secondary: #17212b;
  --bg-tertiary: #1e2c3a;
  --bg-hover: #232e3c;
  --bg-active: #2b3945;
  --accent: #5eb5f7;
  --accent-dark: #3a8fd4;
  --accent-glow: rgba(94, 181, 247, 0.15);
  --accent-glow-strong: rgba(94, 181, 247, 0.25);
  --text-primary: #e1e3e6;
  --text-secondary: #6c7883;
  --text-tertiary: #4b5966;
  --separator: rgba(255, 255, 255, 0.06);
  --card-bg: #1e2c3a;
  --card-bg-hover: #243240;
  --danger: #e53935;
  --danger-bg: rgba(229, 57, 53, 0.12);
  --success: #4caf50;
  --success-bg: rgba(76, 175, 80, 0.12);
  --warning: #ff9800;
  --warning-bg: rgba(255, 152, 0, 0.12);
  --overlay: rgba(0, 0, 0, 0.6);
  --sidebar-width: 280px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.35);
  --transition: 0.15s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== DESKTOP LAYOUT ===== */
#app {
  display: flex;
  min-height: 100dvh;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--separator);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--separator);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #7c4dff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-header h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.sidebar-header .version {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.sidebar-nav {
  padding: 12px 8px;
  flex: 1;
}

.sidebar-section {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  padding: 16px 12px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--accent-glow);
  color: var(--accent);
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.sidebar-item .badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.sidebar-show-more {
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
  opacity: .85;
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin: 4px 0;
}
.sidebar-show-more:hover {
  opacity: 1;
  background: var(--accent-glow);
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--separator);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar-user:hover {
  background: var(--bg-hover);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c4dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100dvh;
  background: var(--bg-primary);
}

/* ===== TOP BAR ===== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 22, 33, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--separator);
}

.top-bar h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--separator);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.top-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.top-btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 24px 32px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: var(--bg-primary);
  width: 100%;
}

.login-card {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-elevated);
}

.login-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent), #7c4dff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(94, 181, 247, 0.25);
}

.login-card h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 6px;
}

.login-card p {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--bg-active);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

/* ===== BUTTONS ===== */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--separator);
}

.btn-small {
  padding: 10px 24px;
  font-size: 14px;
  width: auto;
  border-radius: var(--radius-sm);
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  padding: 20px 0 8px;
}

/* ===== CARDS GRID ===== */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.account-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(94, 181, 247, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.account-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}

.account-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-card-info {
  flex: 1;
  min-width: 0;
}

.account-card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.account-card-login {
  font-size: 13px;
  color: var(--text-secondary);
}

.account-card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.status-online {
  background: var(--success-bg);
  color: var(--success);
}

.status-offline {
  background: rgba(108, 120, 131, 0.12);
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== ACCOUNT DETAIL ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-full {
  grid-column: 1 / -1;
}

.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  grid-column: 1 / -1;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  overflow: hidden;
  border: 3px solid var(--bg-active);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.profile-login {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  grid-column: 1 / -1;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--accent-glow-strong);
  background: var(--card-bg-hover);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== MENU CARDS (Games, Inventory, Friends) ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}

.menu-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(94, 181, 247, 0.15);
  transform: translateY(-1px);
}

.menu-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.menu-card-info {
  flex: 1;
}

.menu-card-title {
  font-size: 14px;
  font-weight: 600;
}

.menu-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.menu-card-chevron {
  color: var(--text-tertiary);
  font-size: 16px;
}

/* ===== ACTION CARDS ===== */
.actions-row {
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
}

.action-btn {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.action-btn:hover {
  background: var(--bg-hover);
}

.action-btn.danger {
  color: var(--danger);
}

.action-btn.danger:hover {
  background: var(--danger-bg);
  border-color: rgba(229, 57, 53, 0.2);
}

/* ===== DATA TABLE / LIST ===== */
.data-list {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 14px;
  transition: background var(--transition);
}

.list-item:hover {
  background: var(--card-bg-hover);
}

.list-item + .list-item {
  border-top: 1px solid var(--separator);
}

.list-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.list-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.list-item-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.list-item-badge {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  margin-bottom: 16px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-tertiary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition);
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar input::placeholder {
  color: var(--text-tertiary);
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOverlay 0.2s;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  background: var(--bg-secondary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-elevated);
  animation: scaleIn 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-handle {
  display: none;
}

.modal-sheet h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  text-align: center;
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}

.modal-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--text-secondary);
}

.modal-tab:hover {
  color: var(--text-primary);
}

.modal-tab.active {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Token info hint */
.token-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(94, 181, 247, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.token-info-icon {
  flex-shrink: 0;
  font-size: 14px;
}

/* Token preview card */
.token-preview-card {
  background: var(--bg-primary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 14px;
}

.token-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.token-preview-row + .token-preview-row {
  border-top: 1px solid var(--separator);
}

.token-preview-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
}

.token-preview-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.token-expired {
  color: var(--danger) !important;
  font-weight: 600 !important;
}

.token-valid {
  color: var(--success) !important;
}

/* ===== LOADING ===== */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bg-active);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 48px auto;
}

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

.loading-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 14px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 32px;
}

.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  left: auto;
  transform: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--separator);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  box-shadow: var(--shadow-elevated);
  animation: toastSlide 0.3s cubic-bezier(0.32, 0.72, 0, 1), toastOut 0.3s 2.5s ease forwards;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-success {
  border-left: 3px solid var(--success);
}

/* ===== FRIEND STATUS ===== */
.friend-online { color: var(--success); }
.friend-offline { color: var(--text-tertiary); }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-active);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
  .sidebar {
    width: 72px;
  }
  .sidebar-header h1,
  .sidebar-header .version,
  .sidebar-item span,
  .sidebar-item .badge,
  .sidebar-user-info,
  .sidebar-section {
    display: none;
  }
  .sidebar-header {
    justify-content: center;
    padding: 16px;
  }
  .sidebar-item {
    justify-content: center;
    padding: 12px;
  }
  .sidebar-user {
    justify-content: center;
    padding: 12px;
  }
  .main-content {
    margin-left: 72px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .top-bar {
    padding: 14px 16px;
  }
  .page-content {
    padding: 16px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .accounts-grid {
    grid-template-columns: 1fr;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .actions-row {
    flex-direction: column;
  }
  .modal-sheet {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-handle {
    display: block;
    width: 36px;
    height: 5px;
    background: var(--bg-active);
    border-radius: 100px;
    margin: 0 auto 20px;
  }
  .modal-overlay {
    align-items: flex-end;
  }
  .toast {
    top: auto;
    bottom: 24px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  /* Mobile bottom tab bar */
  .mobile-tab-bar {
    display: flex !important;
  }
}

/* Mobile tab bar (hidden on desktop) */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 22, 33, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  justify-content: space-around;
  padding: 8px 0 env(safe-area-inset-bottom, 20px);
  border-top: 1px solid var(--separator);
  z-index: 100;
}

.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 20px;
  font-family: inherit;
}

.mobile-tab-item svg {
  width: 22px;
  height: 22px;
  fill: var(--text-tertiary);
  transition: fill var(--transition);
}

.mobile-tab-item span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color var(--transition);
}

.mobile-tab-item.active svg {
  fill: var(--accent);
}

.mobile-tab-item.active span {
  color: var(--accent);
}

@media (max-width: 768px) {
  .page-content {
    padding-bottom: 100px;
  }
}

/* ===== BATCH TOKEN UPLOAD ===== */
.batch-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.batch-file-btn {
  width: auto;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.batch-file-name {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.batch-summary {
  margin-top: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
}

.batch-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: var(--text-secondary);
}

.batch-summary-row + .batch-summary-row {
  border-top: 1px solid var(--separator);
}

.batch-summary-total {
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== BATCH PROGRESS ===== */
.batch-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.batch-progress-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.batch-progress-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.batch-progress-counters {
  display: flex;
  gap: 6px;
}

.batch-counter {
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 100px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.batch-counter.ok {
  background: var(--success-bg);
  color: var(--success);
}

.batch-counter.err {
  background: var(--danger-bg);
  color: var(--danger);
}

.batch-progress-bar {
  height: 6px;
  background: var(--bg-primary);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 14px;
}

.batch-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.3s ease;
}

.batch-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.batch-list::-webkit-scrollbar {
  width: 6px;
}

.batch-list::-webkit-scrollbar-thumb {
  background: var(--separator);
  border-radius: 3px;
}

.batch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  animation: fadeOverlay 0.2s;
}

.batch-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.batch-status-pending {
  background: var(--bg-active);
  color: var(--text-tertiary);
}

.batch-status-running {
  background: var(--accent-glow);
  color: var(--accent);
}

.batch-status-ok {
  background: var(--success-bg);
  color: var(--success);
}

.batch-status-err {
  background: var(--danger-bg);
  color: var(--danger);
}

.batch-status-skip {
  background: var(--warning-bg);
  color: var(--warning);
}

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

.batch-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-item-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-item-sub code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
}

.batch-item-state {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-item-state.state-running {
  background: var(--accent-glow);
  color: var(--accent);
}

.batch-item-state.state-ok {
  background: var(--success-bg);
  color: var(--success);
}

.batch-item-state.state-err {
  background: var(--danger-bg);
  color: var(--danger);
}

.batch-item-state.state-skip {
  background: var(--warning-bg);
  color: var(--warning);
}

.batch-mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-glow);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
}

/* ===== VIEW TOGGLE (grid / list) ===== */
.view-toggle {
  display: inline-flex;
  background: var(--bg-primary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
}

.view-toggle-btn svg {
  fill: currentColor;
}

.top-btn-active {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
}

.top-btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(229, 57, 53, 0.25);
}

.top-btn-danger:hover {
  background: rgba(229, 57, 53, 0.2);
}

.top-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== SELECTION BAR ===== */
.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--accent-glow);
  border-bottom: 1px solid var(--separator);
  animation: fadeOverlay 0.2s;
  gap: 16px;
  flex-wrap: wrap;
}

.selection-bar-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.selection-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.selection-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.selection-bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.batch-progress-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
}
.batch-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--separator);
  border-radius: 100px;
  overflow: hidden;
  min-width: 80px;
}
.batch-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width .2s ease;
}
.batch-progress-stats {
  display: flex;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.bp-ok { color: var(--success); }
.bp-fail { color: var(--error); }

/* ===== SELECTION CHECKBOX ON CARD / ROW ===== */
.account-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--separator);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}

.account-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.account-card.selectable,
.account-row.selectable {
  user-select: none;
}

.account-card.selected,
.account-row.selected {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.account-card.selected:hover,
.account-row.selected:hover {
  border-color: var(--accent);
}

/* ===== ACCOUNT LIST VIEW ===== */
.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.account-row:hover {
  background: var(--card-bg-hover);
  border-color: rgba(94, 181, 247, 0.2);
}

.account-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}

.account-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-row-info {
  flex: 1;
  min-width: 0;
}

.account-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-row-login {
  font-size: 12px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-row-balance {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.account-row-chevron {
  font-size: 20px;
  color: var(--text-tertiary);
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .account-row-balance,
  .account-row-chevron {
    display: none;
  }
  .selection-bar {
    padding: 12px 16px;
  }
  .selection-bar-actions .top-btn {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ===== PROXY MANAGEMENT ===== */
.proxy-section {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.proxy-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-secondary);
  font-size: 13px;
}

.proxy-empty span {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.6;
}

.proxy-list {
  max-height: 400px;
  overflow-y: auto;
}

.proxy-list::-webkit-scrollbar {
  width: 6px;
}

.proxy-list::-webkit-scrollbar-thumb {
  background: var(--separator);
  border-radius: 3px;
}

.proxy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--separator);
  transition: background var(--transition);
}

.proxy-row:last-child {
  border-bottom: none;
}

.proxy-row:hover {
  background: var(--bg-hover);
}

.proxy-row-info {
  min-width: 0;
  flex: 1;
}

.proxy-row-host {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.proxy-row-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.proxy-usage {
  color: var(--accent);
  font-weight: 600;
}

.proxy-del-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  opacity: 0;
}

.proxy-row:hover .proxy-del-btn {
  opacity: 1;
}

.proxy-del-btn:hover {
  background: var(--danger);
  color: white;
}

.proxy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--separator);
  background: var(--bg-primary);
}

/* ===== REPORTS PAGE ===== */
.report-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.report-left-col {
  min-width: 0;
}
.report-right-col {
  position: sticky;
  top: 20px;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.report-texts-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.report-texts-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.report-ind-item {
  margin-bottom: 10px;
}
.report-ind-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.report-ind-text {
  font-size: 12px;
  resize: vertical;
}

.report-random-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.report-random-input {
  width: 52px;
  padding: 4px 6px !important;
  font-size: 11px !important;
  text-align: center;
}

.report-history-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 8px 0;
}
.report-history-arrow {
  font-size: 12px;
  color: var(--text-secondary);
  width: 14px;
  text-align: center;
}
.report-history-section.collapsed {
  display: none;
}

.report-page {
  max-width: 640px;
}

.report-form-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 24px;
}

.report-category-chain {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.report-category-step {
  flex: 1;
  min-width: 180px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-primary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.report-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.report-step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.report-step-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.report-category-arrow {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 18px;
  flex-shrink: 0;
}

.report-acc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.report-selected-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.report-acc-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 6px;
}

.report-acc-list::-webkit-scrollbar {
  width: 6px;
}

.report-acc-list::-webkit-scrollbar-thumb {
  background: var(--separator);
  border-radius: 3px;
}

.report-acc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.report-acc-item:hover {
  background: var(--bg-hover);
}

.report-acc-item:has(input:checked) {
  background: var(--accent-glow);
}

.report-acc-cb {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.report-acc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.report-acc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-acc-info {
  flex: 1;
  min-width: 0;
}

.report-acc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-acc-status {
  font-size: 11px;
}

.report-no-accs {
  background: var(--bg-primary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Report results */
.report-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.report-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.report-result-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.report-result-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-result-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}
.report-result-msg {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.report-result-msg.msg-ok {
  background: rgba(52,199,89,.08);
  border-left: 3px solid #32d74b;
  color: #a8e6b0;
}
.report-result-msg.msg-warn {
  background: rgba(255,159,10,.08);
  border-left: 3px solid #ff9f0a;
  color: #ffd08a;
}

/* Report history */
.report-history-section {
  margin-top: 8px;
}
.report-history-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 28px 0;
  font-size: 13px;
}
.report-history-group {
  background: var(--bg-primary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.report-history-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--separator);
  background: var(--bg-secondary);
}
.report-target-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.report-target-link:hover { text-decoration: underline; }
.report-history-stats {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.rh-stat {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.rh-confirmed { background: rgba(52,199,89,.15); color: #32d74b; }
.rh-failed { background: rgba(255,69,58,.12); color: #ff453a; }
.rh-total { background: rgba(255,255,255,.06); color: var(--text-secondary); }
.report-history-entries {
  display: flex;
  flex-direction: column;
}
.report-history-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--separator);
  font-size: 12px;
}
.report-history-entry:last-child { border-bottom: none; }
.rh-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.rh-icon-ok { background: rgba(52,199,89,.15); color: #32d74b; }
.rh-icon-err { background: rgba(255,69,58,.12); color: #ff453a; }
.rh-icon-unk { background: rgba(255,159,10,.12); color: #ff9f0a; }
.rh-entry-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rh-entry-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}
.rh-entry-date {
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
  white-space: nowrap;
}
.state-skip { background: rgba(255,159,10,.12); color: #ff9f0a; }
.batch-status-skip {
  background: rgba(255,159,10,.12);
  color: #ff9f0a;
}

.token-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.token-display {
  display: flex;
  align-items: center;
  gap: 10px;
}
.token-text {
  flex: 1;
  font-size: 11px;
  font-family: monospace;
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-secondary);
  max-height: 60px;
  overflow-y: auto;
}

.account-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.acc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
}
.acc-level {
  background: rgba(10, 132, 255, .12);
  color: #0a84ff;
}
.acc-region {
  background: rgba(48, 209, 88, .12);
  color: #30d158;
}


@media (max-width: 960px) {
  .report-page-layout {
    grid-template-columns: 1fr;
  }
  .report-right-col {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .report-category-chain {
    flex-direction: column;
  }
  .report-category-arrow {
    display: none;
  }
  .report-history-entry { flex-wrap: wrap; }
}
