/* ============================================
   Veloramp Design System — Premium SaaS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #C2440E;
  --primary-hover: #A83A0C;
  --primary-light: #FEF3EE;
  --success: #059669;
  --success-light: #D1FAE5;
  --warning: #D97706;
  --warning-light: #FFF7ED;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --bg: #FAFAF8;
  --card: #FFFFFF;
  --text: #18181B;
  --text-secondary: #71717A;
  --text-tertiary: #A1A1AA;
  --border: #E8E8E4;
  --border-dark: #D4D4CF;
  --sidebar-width: 240px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5 { letter-spacing: -0.02em; line-height: 1.3; }

/* ---- Layout ---- */
.app-layout {
  display: flex;
  min-height: 100vh;
}
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
  max-width: 1200px;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.sidebar-logo {
  padding: 24px 20px 20px;
}
.sidebar-logo h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.sidebar-logo .company-name {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-weight: 400;
}
.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  margin-bottom: 2px;
}
.sidebar-nav a:hover {
  background: #F4F4F5;
  color: var(--text);
  text-decoration: none;
}
.sidebar-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.sidebar-nav .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.sidebar-footer {
  padding: 16px 16px;
  border-top: 1px solid var(--border);
}
.sidebar-footer .user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sidebar-footer .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-footer .user-info {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}
.sidebar-footer .user-role {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
}
.sidebar-footer button {
  width: 100%;
}

/* ---- Bottom nav (mobile) ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 6px 0 2px;
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.bottom-nav a .nav-icon { font-size: 20px; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a:hover { text-decoration: none; }

/* ---- Page Header ---- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.page-header .page-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 2px;
}

/* ---- Greeting ---- */
.greeting {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.card:hover { /* no default hover for cards */ }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ---- Stat Cards ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  border-left: 3px solid var(--primary);
  position: relative;
}
.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-card .stat-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; text-decoration: none; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; text-decoration: none; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #B45309; text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 12px; font-weight: 500; }
.btn-ghost { background: none; color: var(--text-secondary); border: none; padding: 6px 10px; }
.btn-ghost:hover { color: var(--text); background: #F4F4F5; text-decoration: none; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-yellow { background: #FEF9C3; color: #854D0E; }
.badge-orange { background: var(--warning-light); color: #9A3412; }
.badge-red { background: #FEF2F2; color: #991B1B; }
.badge-blue { background: var(--primary-light); color: #9A3412; }
.badge-gray { background: #F3F4F6; color: #374151; }
.badge-indigo { background: #E0E7FF; color: #3730A3; }

/* ---- Flag Alert Cards ---- */
.flag-card {
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 3px solid;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--card);
}
.flag-card.flag-red { background: #FEF2F2; border-color: #DC2626; }
.flag-card.flag-orange { background: #FFF7ED; border-color: #EA580C; }
.flag-card.flag-yellow { background: #FEFCE8; border-color: #CA8A04; }
.flag-info { flex: 1; min-width: 200px; }
.flag-info .flag-employee { font-weight: 600; font-size: 14px; color: var(--text); }
.flag-info .flag-reason { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.flag-info .flag-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; font-weight: 500; letter-spacing: 0.02em; }
.flag-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- Avatar Circle ---- */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* ---- Employee Cards ---- */
.emp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.emp-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.emp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.emp-card .emp-name { font-weight: 600; font-size: 15px; color: var(--text); }
.emp-card .emp-role { font-size: 12px; color: var(--text-tertiary); margin-top: 3px; }
.emp-card .emp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---- Health Score Circle ---- */
.health-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.health-green { background: #059669; }
.health-yellow { background: #D97706; }
.health-orange { background: #EA580C; }
.health-red { background: #DC2626; }

/* ---- Progress Bar ---- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #F4F4F5;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
tbody tr:hover { background: var(--bg); }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--bg); }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.15s;
  background: var(--card);
  color: var(--text);
}
.form-control::placeholder { color: var(--text-tertiary); }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control {
  appearance: auto;
}

/* ---- Search ---- */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A1A1AA' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.598.856a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 12px center;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-tertiary); }
.search-input:focus { outline: none; border-color: var(--primary); }
.filter-group { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--card);
  color: var(--text-secondary);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--border-dark); color: var(--text); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.modal-header {
  padding: 24px 28px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-body { padding: 0 28px 24px; }
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---- Loading / Empty ---- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.7; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; color: var(--text-secondary); line-height: 1.6; }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg);
  border-radius: 12px;
  margin-left: 4px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-dark);
  border: 2px solid var(--card);
}
.timeline-item.sent::before { background: var(--primary); }
.timeline-item.responded::before { background: var(--success); }
.timeline-item.failed::before { background: var(--danger); }
.timeline-date { font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; font-weight: 500; }
.timeline-content { font-size: 14px; color: var(--text); line-height: 1.5; }
.timeline-response {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}
.sentiment-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* ---- Profile Header ---- */
.profile-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-info h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.profile-info .profile-meta { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Section ---- */
.section { margin-bottom: 32px; }
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

/* ---- Login Page — Split Layout ---- */
.login-split {
  display: flex;
  min-height: 100vh;
}
.login-brand {
  flex: 1;
  background: #2D1810;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}
.login-brand h1 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.login-brand img {
  display: block;
}
.login-brand .login-tagline {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.5;
}
.login-brand .login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-brand .login-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.login-brand .login-feature .feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.login-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}
.login-box {
  width: 100%;
  max-width: 400px;
}
.login-box h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.login-box p { color: var(--text-secondary); margin-bottom: 28px; font-size: 15px; }
#clerk-auth { min-height: 200px; }

/* Legacy login-page class (for backwards compat) */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* ---- Setup Page ---- */
.setup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* ---- Utilities ---- */
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-sm { font-size: 12px; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* ---- Admin-specific ---- */
.admin-sidebar .sidebar-logo h1 span {
  font-size: 11px;
  font-weight: 600;
  color: var(--warning);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.risk-indicators { display: flex; gap: 4px; flex-wrap: wrap; }
.risk-dot {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 600; cursor: help;
}
.risk-dot.risk-yellow { background: #FEFCE8; color: #854D0E; }
.risk-dot.risk-orange { background: var(--warning-light); color: #9A3412; }
.risk-dot.risk-red { background: var(--danger-light); color: #991B1B; }
.conn-icon { font-size: 16px; text-align: center; }
.health-indicator { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.health-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.health-dot.green { background: var(--success); }
.health-dot.yellow { background: #D97706; }
.health-dot.red { background: var(--danger); }
tr.has-risks { border-left: 3px solid var(--warning); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-item { margin-bottom: 12px; }
.detail-item .detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); font-weight: 600; }
.detail-item .detail-value { font-size: 14px; font-weight: 500; margin-top: 4px; color: var(--text); }
.audit-row { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.audit-row .audit-action { font-weight: 500; color: var(--text); }
.audit-row .audit-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* ============================================
   Responsive — Mobile (< 768px)
   ============================================ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottom-nav { display: block; }
  .main-content {
    margin-left: 0;
    padding: 20px 16px;
    padding-bottom: 72px;
  }
  .page-header h2 { font-size: 22px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  table { font-size: 13px; }
  th, td { padding: 10px 8px; }
  .card { padding: 16px; border-radius: 12px; }
  .modal { border-radius: 16px; }
  .modal-header { padding: 20px 20px 12px; }
  .modal-body { padding: 0 20px 20px; }
  .modal-footer { padding: 12px 20px; }

  /* Login split → stacked */
  .login-split { flex-direction: column; }
  .login-brand { padding: 40px 24px; flex: 0; }
  .login-brand h1 { font-size: 28px; }
  .login-brand .login-tagline { font-size: 16px; margin-bottom: 24px; }
  .login-brand .login-features { display: none; }
  .login-form { padding: 24px; }

  /* Detail grid */
  .detail-grid { grid-template-columns: 1fr; }

  /* Hide table on mobile, show cards */
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}
@media (min-width: 769px) {
  .mobile-only { display: none; }
}
