.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #132190;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:root {
  --primary: #132190;
  --primary-dark: #010451;
  --primary-light: #e8eaff;
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #dee2e6;
  --text: #212529;
  --text-muted: #6c757d;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gradient: linear-gradient(135deg, #010451 0%, var(--primary) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  background: var(--gradient);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.logout-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.logout-btn:hover { background: rgba(255,255,255,0.25); }

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.page-title { font-size: 1.75rem; font-weight: 700; color: var(--primary-dark); }
.page-subtitle { color: var(--text-muted); margin-top: 0.25rem; margin-bottom: 1.5rem; }

.loading-state { color: var(--text-muted); padding: 2rem 0; }
.error-state { color: var(--danger); padding: 1rem; background: #fff3f3; border-radius: var(--radius); }
.hidden { display: none !important; }

.stats-bar {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.stats-bar span { font-weight: 500; }

.table-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.usage-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.usage-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.usage-table tbody tr:last-child td { border-bottom: none; }
.usage-table tbody tr:hover { background: var(--primary-light); }

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.tool-tag {
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-weight: 500;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #333;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-width: 400px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
