:root {
  --bg-app: #f8faf9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f3;
  --bg-subtle: #f4f8f5;
  --border-light: #e5ece8;
  --border-medium: #d4e0d9;
  --text-main: #13241b;
  --text-muted: #5b6f63;
  --text-subtle: #839589;
  --green-primary: #107a4a;
  --green-hover: #0c613a;
  --green-subtle: #e8f5ee;
  --green-border: #bce4cd;
  --green-accent: #22c55e;
  --amber-primary: #b45309;
  --amber-subtle: #fffbeb;
  --amber-border: #fde68a;
  --blue-primary: #1d4ed8;
  --blue-subtle: #eff6ff;
  --blue-border: #bfdbfe;
  --purple-primary: #7c3aed;
  --purple-subtle: #f5f3ff;
  --purple-border: #ddd6fe;
  --red-primary: #b91c1c;
  --red-subtle: #fef2f2;
  --red-border: #fecaca;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 26, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 36, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 36, 26, 0.12);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Manrope', 'DM Sans', sans-serif;
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Shell */
.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #107a4a 0%, #1e3a2b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(16, 122, 74, 0.25);
}

.brand-text b {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-gate-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-gate-badge.unlocked {
  background: var(--green-subtle);
  border-color: var(--green-border);
  color: var(--green-primary);
}

.auth-gate-badge i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.auth-gate-badge.unlocked i {
  background: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(16, 122, 74, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--green-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 122, 74, 0.2);
}

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-light);
}

.btn-quiet {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
}

.btn-quiet:hover {
  color: var(--text-main);
  background: var(--bg-muted);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
}

/* Main Layout */
main {
  flex: 1;
  padding: 32px 48px;
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 28px;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-primary);
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--green-primary);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 640px;
  line-height: 1.6;
}

.batch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  min-width: 290px;
  box-shadow: var(--shadow-sm);
}

.batch-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.batch-stats-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.batch-stats-num small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.batch-meter {
  height: 6px;
  background: var(--bg-muted);
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.batch-meter-fill {
  height: 100%;
  background: var(--green-primary);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.batch-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Notice Banner */
.discrepancy-banner {
  background: var(--amber-subtle);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #78350f;
  font-size: 13px;
  line-height: 1.5;
}

.discrepancy-icon {
  background: #f59e0b;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.discrepancy-banner b {
  color: #451a03;
}

/* Role Selector Tabs */
.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.role-tab-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.role-tab-btn:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.role-tab-btn.active {
  border-color: var(--green-primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(16, 122, 74, 0.15), var(--shadow-sm);
}

.role-tab-btn[data-role="uiux"].active {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15), var(--shadow-sm);
}

.role-tab-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.role-tab-btn.active .role-indicator.lca-ind {
  background: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-subtle);
}

.role-tab-btn.active .role-indicator.uiux-ind {
  background: #6366f1;
  box-shadow: 0 0 0 4px #e0e7ff;
}

.role-tab-title b {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.role-tab-title small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.role-badge-count {
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.role-tab-btn.active .role-badge-count {
  background: var(--green-subtle);
  color: var(--green-primary);
}

.role-tab-btn[data-role="uiux"].active .role-badge-count {
  background: #e0e7ff;
  color: #4338ca;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.stat-box-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.stat-box-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box-sub {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Results Section */
.results-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 32px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.role-view-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 4px;
}

.role-view-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.role-view-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 650px;
}

/* Toolbar Controls */
.toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.search-field {
  flex: 1;
  min-width: 220px;
  height: 40px;
  background: var(--bg-app);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.search-field:focus-within {
  border-color: var(--green-primary);
  background: #fff;
  box-shadow: 0 0 0 2px var(--green-subtle);
}

.search-field svg {
  width: 16px;
  height: 16px;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.search-field input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-main);
  width: 100%;
}

.select-filter {
  height: 40px;
  background: var(--bg-app);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0 32px 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235b6f63'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.select-filter:focus {
  outline: none;
  border-color: var(--green-primary);
}

/* Upload Status Banner */
.upload-status-alert {
  background: var(--blue-subtle);
  border: 1px solid var(--blue-border);
  color: var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Table */
.table-container {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--bg-surface);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.table-custom th {
  background: #f8faf9;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
}

.table-custom td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-custom tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.table-custom tbody tr:hover {
  background: #f9fbf9;
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

.col-rank {
  width: 60px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-subtle);
  font-size: 13px;
}

.col-candidate {
  min-width: 200px;
}

.candidate-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--green-subtle);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.avatar-badge.uiux-avatar {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

.candidate-names b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.candidate-names small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Score Display */
.score-pill-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  min-width: 44px;
}

.score-bar-track {
  width: 60px;
  height: 5px;
  background: var(--bg-muted);
  border-radius: 10px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--green-primary);
  border-radius: 10px;
}

/* Badges & Pills */
.fit-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.fit-strong {
  background: var(--green-subtle);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.fit-moderate {
  background: var(--amber-subtle);
  color: var(--amber-primary);
  border: 1px solid var(--amber-border);
}

.fit-low {
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border-medium);
}

.fit-error {
  background: var(--red-subtle);
  color: var(--red-primary);
  border: 1px solid var(--red-border);
}

.tag-badge {
  display: inline-block;
  background: #f1f5f3;
  color: #475a4f;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 4px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.completeness-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.table-foot-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Bottom Upload Area */
.quick-upload-card {
  border: 2px dashed var(--border-medium);
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.quick-upload-text {
  display: flex;
  align-items: center;
  gap: 18px;
}

.upload-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-subtle);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.quick-upload-text b {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.quick-upload-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  max-width: 600px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 48px;
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 18, 0.55);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.drawer-panel {
  width: min(720px, 100%);
  height: 100%;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.drawer-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-app);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-close:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.drawer-body {
  padding: 28px;
  flex: 1;
}

/* Candidate Detail Cards */
.detail-top-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-top-score {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.detail-top-score small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eligibility-box {
  background: #fbfdfc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.eligibility-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.eligibility-item:last-child {
  margin-bottom: 0;
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.check-yes {
  background: var(--green-subtle);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.check-query {
  background: var(--amber-subtle);
  color: var(--amber-primary);
  border: 1px solid var(--amber-border);
}

.check-no {
  background: var(--red-subtle);
  color: var(--red-primary);
  border: 1px solid var(--red-border);
}

/* Breakdown Component Bars */
.breakdown-row {
  margin-bottom: 12px;
}

.breakdown-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.breakdown-head b {
  color: var(--text-main);
}

.breakdown-track {
  height: 7px;
  background: var(--bg-muted);
  border-radius: 10px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: var(--green-primary);
  border-radius: 10px;
}

.evidence-quote {
  background: #f8faf8;
  border-left: 3px solid var(--green-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #3b5043;
  line-height: 1.5;
}

.warning-callout {
  background: var(--amber-subtle);
  border: 1px solid var(--amber-border);
  color: #92400e;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.source-inspect-box {
  background: #f7faf8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 10px;
}

.raw-text-viewer {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #27382f;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #142a1e;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .topbar, main, footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: stretch;
  }
  .role-tabs {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .select-filter {
    width: 100%;
  }
  .quick-upload-card {
    flex-direction: column;
    align-items: stretch;
  }
  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
