/* ============================================================
   SABER NATION COMMAND CENTER — style.css
   Dark theme: #111 bg, #E31B23 accent
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg: #111111;
  --bg-2: #1a1a1a;
  --bg-3: #222222;
  --bg-4: #2a2a2a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --accent: #E31B23;
  --accent-hover: #ff2d36;
  --accent-dim: rgba(227,27,35,0.12);
  --text: #e5e5e5;
  --muted: #888888;
  --muted-2: #555555;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.6);
  --sidebar-w: 220px;
  --topbar-h: 56px;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SHELL LAYOUT
   ============================================================ */
.shell {
  display: flex;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s var(--transition);
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.logo-sword {
  font-size: 22px;
  line-height: 1;
}
.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.sidebar-sub {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-close {
  display: none;
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}
.sidebar-close:hover { color: var(--text); background: var(--bg-3); }

.sidebar-nav {
  flex: 1;
  padding: 8px 8px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 1px;
}
.nav-item:hover {
  background: var(--bg-3);
  color: var(--text);
}
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}
.nav-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.nav-label { flex: 1; }

.sidebar-footer {
  padding: 12px 16px;
  font-size: 11px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ============================================================
   MAIN WRAP
   ============================================================ */
.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 50;
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 20px;
  transition: color 0.18s, background 0.18s;
}
.menu-btn:hover { color: var(--text); background: var(--bg-3); }

/* Global Search */
.topbar-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.search-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
}
.search-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.2); }
.search-input::placeholder { color: var(--muted); }

.search-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
}
.search-group-label {
  padding: 8px 14px 4px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.search-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-result:hover { background: var(--bg-4); }
.search-result-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.search-result-title { font-size: 13px; font-weight: 500; }
.search-result-sub { font-size: 12px; color: var(--muted); }
.search-loading, .search-empty { padding: 16px 14px; color: var(--muted); font-size: 13px; }

/* Topbar Right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Notifications */
.notif-btn {
  position: relative;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}
.notif-btn:hover { color: var(--text); background: var(--bg-3); }
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.notif-panel {
  position: absolute;
  top: calc(var(--topbar-h) + 4px);
  right: 60px;
  width: 320px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.notif-markall {
  font-size: 12px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.notif-markall:hover { text-decoration: underline; }
.notif-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.notif-item:hover { background: var(--bg-4); }
.notif-item.unread { background: rgba(227,27,35,0.05); }
.notif-item.unread .notif-msg::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.notif-msg { font-size: 13px; line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.notif-empty { padding: 20px 16px; color: var(--muted); font-size: 13px; text-align: center; }

/* User Menu */
.user-menu-wrap { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius);
  transition: background 0.18s;
}
.user-btn:hover { background: var(--bg-3); }
.user-name-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.user-role-pill {
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 10px;
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 8px;
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.user-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s;
}
.user-menu-item:hover { background: var(--bg-4); }
.user-menu-item.danger { color: var(--danger); }
.user-menu-sep { height: 1px; background: var(--border); margin: 6px 0; }

/* ============================================================
   CONTENT / MAIN AREA
   ============================================================ */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  background: var(--bg);
}

/* ============================================================
   VIEW HEADER
   ============================================================ */
.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.view-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.view-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--bg-3); color: var(--text); border-color: var(--border-hover); }

.btn-sm {
  padding: 5px 10px !important;
  font-size: 12px !important;
}

.btn-danger {
  color: var(--danger) !important;
  border-color: rgba(239,68,68,0.3) !important;
}
.btn-danger:hover { background: rgba(239,68,68,0.08) !important; }

.icon-btn {
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--bg-4); color: var(--text); }
.icon-btn.danger:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-header.urgent {
  background: rgba(239,68,68,0.05);
  border-bottom-color: rgba(239,68,68,0.2);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color 0.18s;
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-card.stat-warn { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }
.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.1;
}
.stat-of {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}
.stat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  background: var(--bg-4);
  border-radius: 4px;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.progress-bar.sm { height: 6px; margin-top: 4px; }
.progress-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s var(--transition);
}
.progress-fill.warn { background: var(--warning); }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
}

/* ============================================================
   OVERVIEW
   ============================================================ */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Phase progress */
.phase-progress-list { padding: 12px 18px; }
.phase-prog-item { margin-bottom: 12px; }
.phase-prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 4px;
}
.phase-prog-count { color: var(--muted); font-size: 12px; }
.phase-prog-mini { display: flex; align-items: center; gap: 8px; }

/* Activity */
.activity-list { padding: 4px 0; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-body { flex: 1; font-size: 13px; }
.activity-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Milestones */
.milestone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}
.milestone-item:last-child { border-bottom: none; }
.milestone-item.milestone-past { opacity: 0.5; }
.milestone-item.milestone-soon .milestone-label { color: var(--warning); }
.milestone-icon { font-size: 18px; }
.milestone-label { font-size: 13px; font-weight: 500; }
.milestone-date { font-size: 12px; color: var(--muted); }

/* ============================================================
   BADGES
   ============================================================ */
.badge-red {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.badge-yellow {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.badge-gray {
  background: var(--bg-4);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   TASKS
   ============================================================ */
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: var(--bg-3); }
.task-row.task-overdue { border-left: 3px solid var(--danger); }
.task-row.task-due-soon { border-left: 3px solid var(--warning); }
.task-row.task-done { opacity: 0.55; }

.task-check-wrap { flex-shrink: 0; }
.task-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.task-body { flex: 1; min-width: 0; }
.task-desc {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-row.task-done .task-desc { text-decoration: line-through; }
.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.task-assignee { font-size: 12px; color: var(--muted); }
.task-due { font-size: 11px; color: var(--muted); }

.task-actions { display: flex; gap: 4px; flex-shrink: 0; opacity: 0; transition: opacity 0.15s; }
.task-row:hover .task-actions { opacity: 1; }

.due-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
}
.due-overdue { background: rgba(239,68,68,0.15); color: #ef4444; }
.due-soon { background: rgba(245,158,11,0.15); color: #f59e0b; }

.lock-icon { font-size: 12px; }

/* Priority */
.task-priority {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}
.priority-high { background: rgba(239,68,68,0.12); color: #ef4444; }
.priority-medium { background: rgba(245,158,11,0.12); color: #f59e0b; }
.priority-low { background: rgba(34,197,94,0.12); color: #22c55e; }

/* Status pills */
.task-status-pill, .status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--bg-4);
  color: var(--muted);
}
.status-complete { background: rgba(34,197,94,0.12); color: #22c55e; }
.status-in-progress { background: rgba(69,183,209,0.12); color: #45b7d1; }
.status-not-started { background: var(--bg-4); color: var(--muted); }

/* Phase styles */
.phase-header {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.phase-header:hover { background: var(--bg-3); }
.phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phase-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.phase-chevron {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s;
}
.phase-tasks { padding: 0; }

/* Task detail modal */
.task-detail-modal { padding: 0; }
.modal-breadcrumb { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.task-detail-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: 400px;
}
.task-detail-left {
  border-right: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
}
.task-detail-right { padding: 20px; display: flex; flex-direction: column; }
.detail-section { margin-bottom: 20px; }
.detail-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.detail-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 70px;
}
.detail-notes { margin-top: 10px; }
.notes-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
  padding: 8px 12px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
}
.dep-link {
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
}
.dep-link:hover { text-decoration: underline; }

/* Attachments */
.attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.attach-icon { font-size: 14px; }
.attach-name { flex: 1; color: var(--text); }
.attach-date { color: var(--muted); font-size: 11px; }
.attach-upload-wrap { margin-top: 8px; }
.upload-label { cursor: pointer !important; font-size: 12px !important; }
.hidden-file { display: none; }

/* Comments */
.comments-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-item {
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-author { font-size: 13px; font-weight: 600; flex: 1; }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-body { font-size: 13px; line-height: 1.5; }
.comment-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  resize: none;
  outline: none;
  transition: border-color 0.18s;
}
.comment-textarea:focus { border-color: var(--accent); }

/* Mention */
.mention { color: var(--accent); font-weight: 600; }
.mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  max-height: 180px;
  overflow-y: auto;
}
.mention-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}
.mention-item:hover { background: var(--bg-4); }

/* ============================================================
   KANBAN
   ============================================================ */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.kanban-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 300px;
  transition: border-color 0.18s;
}
.kanban-col:has(.kanban-cards:empty) { opacity: 0.8; }
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.kanban-col-title { font-size: 13px; font-weight: 600; }
.kanban-col-count {
  background: var(--bg-4);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
}
.kanban-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kanban-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  user-select: none;
}
.kanban-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.kanban-card:active { transform: scale(0.98); }
.kanban-card.task-overdue { border-left: 3px solid var(--danger); }
.kanban-card.task-due-soon { border-left: 3px solid var(--warning); }
.kcard-phase { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 6px; }
.kcard-desc { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 8px; }
.kcard-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kcard-due { font-size: 11px; color: var(--muted); margin-left: auto; }

/* ============================================================
   CALENDAR
   ============================================================ */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.cal-month { font-size: 16px; font-weight: 600; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.cal-dow {
  padding: 10px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
}
.cal-cell {
  padding: 8px;
  min-height: 80px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.cal-cell:hover { background: var(--bg-3); }
.cal-cell.empty { cursor: default; }
.cal-cell.cal-today { background: var(--accent-dim); }
.cal-cell.cal-today .cal-day-num { color: var(--accent); font-weight: 700; }
.cal-day-num { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cal-task-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.cal-task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cal-task-more { font-size: 10px; color: var(--muted); line-height: 8px; }
.cal-cell.has-event { border-bottom: 3px solid var(--accent); }
.cal-cell.has-event:hover { background: var(--accent-dim); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-card { overflow: visible; }
.timeline-wrap { padding: 16px; }
.timeline-inner { position: relative; }
.timeline-axis {
  position: relative;
  height: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.tl-month {
  position: absolute;
  bottom: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  transform: translateX(-50%);
  white-space: nowrap;
}
.tl-today-line {
  position: absolute;
  top: 0;
  bottom: -200px;
  width: 2px;
  background: rgba(227,27,35,0.5);
  z-index: 5;
}
.tl-milestones {
  position: relative;
  height: 56px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.tl-milestone {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  z-index: 4;
}
.tl-milestone-diamond {
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.tl-milestone-label {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tl-phase-group { margin-bottom: 16px; }
.tl-phase-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.tl-task-row { position: relative; height: 28px; margin-bottom: 4px; }
.tl-bar-wrap { position: absolute; inset: 0; }
.tl-bar {
  position: absolute;
  top: 4px;
  height: 20px;
  border-radius: 10px;
  min-width: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 8px;
  transition: opacity 0.15s;
  overflow: hidden;
}
.tl-bar:hover { opacity: 0.85; }
.tl-bar-label {
  font-size: 10px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-bar-done { opacity: 0.4; }
.tl-bar-overdue { box-shadow: 0 0 0 2px rgba(239,68,68,0.5); }

/* ============================================================
   BUDGET
   ============================================================ */
.budget-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.runway-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 18px;
  flex-wrap: wrap;
}
.runway-main { min-width: 160px; }
.runway-months {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}
.runway-label { font-size: 14px; color: var(--muted); margin-top: 4px; }
.runway-formula { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.runway-gauge-wrap { flex: 1; min-width: 200px; }
.runway-gauge {
  background: var(--bg-4);
  border-radius: 6px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}
.runway-gauge-fill {
  background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s;
}
.runway-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.inline-num {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  width: 90px;
  font-size: 13px;
  color: var(--text);
  text-align: right;
}
.inline-num:focus { outline: none; border-color: var(--accent); }
.inline-num-sm {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  width: 60px;
  font-size: 12px;
  color: var(--text);
  text-align: right;
}
.inline-num-sm:focus { outline: none; border-color: var(--accent); }
.inline-select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}

/* ============================================================
   DATA TABLE
   ============================================================ */
.data-table { width: 100%; }
.data-table th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  text-align: left;
}
.data-table td {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-3); }
.table-total td {
  font-weight: 700;
  background: var(--bg-3);
  border-top: 1px solid var(--border-hover);
  border-bottom: none !important;
}
.text-red { color: var(--danger); }

/* ============================================================
   EQUIPMENT
   ============================================================ */
/* (uses data-table and card styles) */

/* ============================================================
   EXPENSES
   ============================================================ */
.receipt-icon { font-size: 16px; cursor: pointer; }

/* ============================================================
   STUDENTS KANBAN
   ============================================================ */
.students-kanban {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  align-items: start;
}
.student-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.student-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.student-col-title { font-size: 13px; font-weight: 700; }
.student-col-count {
  background: var(--bg-4);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
}
.student-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.student-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.student-card:hover { border-color: var(--border-hover); }
.student-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.student-name { font-size: 13px; font-weight: 600; }
.student-meta { font-size: 11px; color: var(--muted); }
.student-waivers { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.waiver-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.waiver-ok { background: rgba(34,197,94,0.1); color: #22c55e; }
.waiver-missing { background: var(--bg-4); color: var(--muted-2); }
.student-contact { font-size: 11px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Waiver section in modal */
.waiver-section {
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 8px;
}
.waiver-title { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; margin-bottom: 8px; }
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
  cursor: pointer;
}
.check-row input { accent-color: var(--accent); width: 14px; height: 14px; }

/* ============================================================
   MEETINGS
   ============================================================ */
.meetings-list { display: flex; flex-direction: column; gap: 0; }
.meeting-card { cursor: default; }
.meeting-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.meeting-title { font-size: 15px; font-weight: 600; }
.meeting-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.meeting-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.meeting-content {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.team-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.18s;
}
.team-card:hover { border-color: var(--border-hover); }
.team-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.team-name { font-size: 15px; font-weight: 700; }
.team-username { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.role-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.role-admin { background: var(--accent-dim); color: var(--accent); }
.role-member { background: var(--bg-4); color: var(--muted); }
.team-stats { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.team-contact { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.team-actions { display: flex; gap: 6px; margin-top: 12px; }

/* ============================================================
   VENDORS
   ============================================================ */
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.vendor-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.vendor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.vendor-name { font-size: 15px; font-weight: 700; color: var(--text); }
.vendor-contact-name { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.vendor-details { display: flex; flex-direction: column; gap: 6px; }
.vendor-detail { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vendor-detail a { color: var(--accent); }
.vendor-detail a:hover { text-decoration: underline; }
.vendor-notes {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ============================================================
   VENUES
   ============================================================ */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.venue-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: border-color 0.18s;
}
.venue-card:hover { border-color: var(--border-hover); }
.venue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.venue-address { font-size: 14px; font-weight: 600; line-height: 1.3; }
.venue-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.venue-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.venue-stat { display: flex; flex-direction: column; }
.venue-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.venue-stat-val { font-size: 13px; font-weight: 600; }
.venue-contact { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.venue-notes { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.venue-actions { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   SETTINGS — TOGGLE
   ============================================================ */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.setting-row:last-child { border-bottom: none; }
.setting-label { font-size: 14px; font-weight: 500; }
.setting-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-4);
  border-radius: 22px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.2s var(--transition), opacity 0.2s var(--transition);
}
.modal-box.modal-open { transform: scale(1); opacity: 1; }
.modal-box.modal-wide { max-width: 780px; }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 0;
  gap: 12px;
}
.modal-title { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.modal-close {
  color: var(--muted);
  font-size: 16px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--bg-3); }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field-group {
  margin-bottom: 14px;
  padding: 0 20px;
}
.field-group:first-of-type { margin-top: 16px; }
.field-row {
  display: flex;
  gap: 0;
  padding: 0 20px;
  margin-bottom: 14px;
}
.field-row .field-group {
  flex: 1;
  padding: 0;
  margin-bottom: 0;
}
.field-row .field-group + .field-group { margin-left: 12px; }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
}
.field-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
  appearance: none;
}
.field-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.2); outline: none; }
.field-input::placeholder { color: var(--muted-2); }
textarea.field-input { resize: vertical; }
select.field-input { cursor: pointer; }
input[type="date"].field-input { color-scheme: dark; }
input[type="file"].field-input { padding: 6px 12px; cursor: pointer; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}
.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.login-logo .logo-sword { font-size: 36px; }
.login-title { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.login-sub { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.login-err {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.login-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; }
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
}
.pw-toggle:hover { color: var(--text); }
/* Login form specific field groups */
.login-box .field-group {
  padding: 0;
  margin-bottom: 14px;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  padding: 24px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty-state-lg {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.empty-state-sm {
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: transform 0.3s var(--transition), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   PRINT (Feature 25)
   ============================================================ */
@media print {
  body { background: white !important; color: black !important; }
  .sidebar, .topbar, .modal-overlay { display: none !important; }
  .main-wrap { display: block !important; }
  .content { padding: 0 !important; }
}

/* ============================================================
   MOBILE (Feature 12)
   ============================================================ */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: 300;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .menu-btn { display: flex; }
  .main-wrap { width: 100%; }

  .content { padding: 16px; }
  .view-header { flex-direction: column; align-items: flex-start; }
  .view-actions { width: 100%; flex-wrap: wrap; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: 1fr; }
  .students-kanban { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .vendors-grid { grid-template-columns: 1fr; }
  .venues-grid { grid-template-columns: 1fr; }

  .task-detail-grid { grid-template-columns: 1fr; }
  .task-detail-left { border-right: none; border-bottom: 1px solid var(--border); }

  .field-row { flex-direction: column; }
  .field-row .field-group + .field-group { margin-left: 0; margin-top: 14px; }

  .topbar-search { max-width: 180px; }
  .user-name-label { display: none; }
  .user-role-pill { display: none; }

  .notif-panel { right: 8px; left: 8px; width: auto; }
  .user-menu { right: 0; }

  .cal-grid { font-size: 11px; }
  .cal-cell { min-height: 60px; padding: 4px; }

  .data-table th, .data-table td { padding: 8px 10px; }

  .modal-box { max-width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .students-kanban { grid-template-columns: 1fr; }
  .view-title { font-size: 20px; }
  .topbar-search { display: none; }
}

/* Leaflet map overrides */
.venue-map-pin { background: none !important; border: none !important; }
#venue-map { z-index: 0; }
#venue-map .leaflet-popup-content-wrapper { border-radius: 8px; }
#venue-map .leaflet-popup-content { margin: 10px 14px; }
