* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; background: #f8f9fa; color: #212529; font-size: 15px; }
a { color: #0d6efd; text-decoration: none; }
a:hover { color: #0a58ca; text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.topbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: #0d6efd; color: white; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.brand { color: white; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { color: white; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.env-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: .72rem; font-weight: 700; }
.topbar nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.topbar a, .link-button { color: rgba(255,255,255,.9); }
.topbar a:hover, .link-button:hover { color: white; text-decoration: none; }
.link-button { background: none; border: 0; cursor: pointer; padding: 0; }
.page { max-width: 1720px; margin: 0 auto; padding: 24px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
h1 { margin: 0; font-size: 1.75rem; line-height: 1.2; letter-spacing: 0; color: #004aad; font-weight: 650; }
h2 { margin: 0 0 14px; font-size: 1.1rem; color: #004aad; font-weight: 650; }
.eyebrow { margin: 0 0 6px; color: #6c757d; text-transform: uppercase; font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.muted { color: #6c757d; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border-radius: .375rem; border: 1px solid #0d6efd; cursor: pointer; font-weight: 600; text-decoration: none; }
.primary { background: #0d6efd; color: white; }
.primary:hover { background: #0b5ed7; color: white; text-decoration: none; }
.secondary { background: white; color: #0d6efd; }
.secondary:hover { background: #f8f9fa; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.actions > * { flex: 0 0 auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.compact-stats { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.stats div, .table-card, .form-card, .lane, .login-panel { background: white; border: 1px solid rgba(0,0,0,.125); border-radius: .625rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.stats div { padding: 16px; }
.stat-link { text-decoration: none; color: inherit; }
.stat-link:hover { text-decoration: none; }
.stats strong { display: block; font-size: 1.65rem; color: #004aad; }
.stats span { color: #6c757d; text-transform: capitalize; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: 18px; }
.dashboard-lower { align-items: start; }
.table-card { overflow: auto; padding: 16px; }
.filters-card { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 16px; background: white; border: 1px solid rgba(0,0,0,.125); border-radius: .625rem; }
.filters-grid { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 12px; flex: 1; }
.filters-actions { display: flex; gap: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .58rem .72rem; border-bottom: 1px solid #dee2e6; text-align: left; vertical-align: middle; }
th { font-size: .74rem; color: #6c757d; text-transform: uppercase; letter-spacing: .02em; background: #f8f9fa; font-weight: 700; }
tbody tr:hover { background: #f8f9fa; }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: #e7f1ff; color: #084298; font-size: .76rem; font-weight: 700; }
.pill-success { background: #d1e7dd; color: #0f5132; }
.pill-warning { background: #fff3cd; color: #856404; }
.pill-muted { background: #e9ecef; color: #495057; }
.narrow { max-width: 720px; margin: 0 auto; }
.form-card { padding: 22px; display: grid; gap: 14px; }
.form-card p, .login-panel p { margin: 0; }
label { display: grid; gap: 6px; color: #344054; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #ced4da; border-radius: .375rem; padding: .48rem .62rem; background: white; color: #212529; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); }
.messages { margin-bottom: 16px; }
.message { padding: .75rem 1rem; background: #d1e7dd; border: 1px solid #badbcc; border-radius: .375rem; color: #0f5132; }
.sticky-actions { position: sticky; bottom: 0; padding: 14px 0 0; background: linear-gradient(transparent, #fff 24%); }
.pipeline { display: grid; grid-template-columns: repeat(8, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.lane { padding: 12px; min-height: 360px; }
.lane h2 { display: flex; justify-content: space-between; gap: 8px; }
.lane h2 span { color: #6c757d; }
.lane-queue { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.candidate-card { display: grid; gap: 6px; padding: 12px; border: 1px solid #dee2e6; border-radius: .375rem; background: #fff; margin-bottom: 10px; }
.candidate-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.candidate-card span { color: #6c757d; font-size: .86rem; }
.candidate-meta { color: #004aad !important; font-size: .78rem !important; font-weight: 600; }
.candidate-card .table-actions { margin-top: 4px; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: #f8f9fa; }
.login-panel { width: min(420px, calc(100vw - 32px)); padding: 28px; }
.login-panel h1 { margin-bottom: 8px; }
.login-panel form { display: grid; gap: 14px; margin-top: 20px; }
.inline-form-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.inline-form-header label { max-width: 320px; width: 100%; }
.inline-form-header .wide-field { max-width: none; flex: 1 1 360px; }
.small-input { max-width: 76px; }
.compact-textarea { min-width: 220px; min-height: 42px; resize: vertical; }
.stacked-cell { display: grid; gap: 4px; }
.small-copy { font-size: .82rem; line-height: 1.35; }
.rank-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: #fff3cd; color: #856404; font-size: .76rem; font-weight: 700; width: fit-content; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-wrap-spaced { margin-bottom: 12px; }
.mini-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: #e7f1ff; color: #084298; font-size: .76rem; font-weight: 700; }
.active-filter-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.info-strip { margin: 10px 0 16px; padding: 12px 14px; border-radius: .5rem; background: #f8f9fa; border-left: 4px solid #0d6efd; color: #334155; }
.history-card { margin-top: 18px; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; }
.pagination-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover { color: #0d6efd; text-decoration: none; }
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
  padding: 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: .75rem;
  color: white;
  box-shadow: 0 14px 30px rgba(13, 110, 253, .18);
}
.hero-band .eyebrow, .hero-band .muted, .hero-band h2 { color: white; }
.hero-band h2 { margin-bottom: 8px; }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 12px; }
.hero-stat {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: .75rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}
.hero-stat strong { display: block; font-size: 1.7rem; }
.hero-stat span { display: block; margin-top: 6px; color: rgba(255,255,255,.85); }
.activity-card { min-height: 100%; }
.activity-feed { display: grid; gap: 12px; }
.activity-feed-roomy { gap: 14px; }
.activity-item { padding: 12px 0; border-bottom: 1px solid #e9ecef; }
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-item p { margin: 6px 0; color: #475467; }
.activity-item span { color: #667085; font-size: .82rem; }
.activity-item-card { padding: 14px 16px; border: 1px solid #e9ecef; border-radius: .625rem; background: #fff; }
.activity-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.alert-stack { display: grid; gap: 12px; margin-bottom: 20px; }
.ops-alert { padding: 14px 16px; border-radius: .625rem; border: 1px solid #dbe3f0; background: #fff; }
.ops-alert strong { display: block; margin-bottom: 6px; }
.ops-alert p { margin: 0; color: #475467; }
.ops-alert-warning { border-left: 4px solid #f59e0b; }
.ops-alert-attention { border-left: 4px solid #0d6efd; }
.ops-alert-info { border-left: 4px solid #64748b; }
.table-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.table-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 10px; border: 1px solid #0d6efd; border-radius: .375rem; }
.table-actions a:hover { text-decoration: none; background: #f8f9fa; }
.bulk-actions-bar { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; align-items: end; }
.bulk-field { display: grid; gap: 6px; }
.candidate-summary-stats strong { font-size: 1.1rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); gap: 18px; margin-bottom: 18px; }
.profile-card { overflow: visible; }
.profile-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.profile-list div { padding: 10px 0; border-bottom: 1px solid #eef2f6; }
.profile-list dt { color: #667085; font-size: .78rem; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.profile-list dd { margin: 0; color: #111827; font-weight: 600; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.acceptance-note { margin-top: 8px; }
.signal-block { padding: 14px; border: 1px solid #e5e7eb; border-radius: .625rem; background: #fff; }
.signal-block strong { display: block; margin-bottom: 6px; color: #0f172a; }
.signal-block p { margin: 0; color: #475467; }
.signal-warning { border-left: 4px solid #f59e0b; }
.signal-success { border-left: 4px solid #0f9d58; }
.journey-form { display: grid; gap: 12px; margin-top: 4px; }
.journey-form h2 { margin-bottom: 0; }
.reports-grid { margin-bottom: 18px; }
.share-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: white;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .625rem;
}
.share-copy { flex: 1 1 360px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.walkin-qr-preview {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 180px;
}
.walkin-qr-preview img {
  width: 160px;
  height: 160px;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: white;
  padding: 10px;
}
.public-form-panel { width: min(760px, calc(100vw - 32px)); }
.public-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.public-form-grid button { grid-column: 1 / -1; }
.form-error { color: #b42318; font-size: .82rem; font-weight: 600; }
.staff-access-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 16px; }
.staff-access-card { display: grid; gap: 14px; padding: 16px; border: 1px solid #e5e7eb; border-radius: .625rem; background: #fff; }
.staff-access-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.staff-role-list { display: grid; gap: 10px; }
.role-check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #334155; }
.role-check input { width: auto; }
@media (max-width: 1200px) {
  .pipeline { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
  .filters-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
  .staff-access-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .page { padding: 18px; }
  .page-header, .grid-two { display: block; }
  .actions { justify-content: flex-start; margin-top: 14px; }
  .grid-two > * + * { margin-top: 18px; }
  .hero-band { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .filters-card { display: block; }
  .filters-grid { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
  .compact-stats { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .bulk-actions-bar { grid-template-columns: 1fr 1fr; }
  .topbar { align-items: flex-start; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .topbar .brand { width: 100%; }
  .topbar nav { width: 100%; justify-content: flex-start; gap: 14px; }
  .pipeline { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .inline-form-header { display: grid; gap: 12px; }
  .inline-form-header label { max-width: none; }
  .share-strip { display: block; }
  .share-actions { margin-top: 12px; }
  .walkin-qr-preview { margin: 14px 0; justify-items: start; }
}
@media (max-width: 640px) {
  .page { padding: 16px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1rem; }
  .stats { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .filters-grid { grid-template-columns: 1fr; }
  .filters-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .actions > * { width: 100%; }
  .primary, .secondary { width: 100%; }
  .bulk-actions-bar { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .lane { min-height: auto; }
  .responsive-table thead { display: none; }
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td { display: block; width: 100%; }
  .responsive-table tbody tr {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
  }
  .responsive-table td {
    border-bottom: 0;
    padding: 8px 0;
  }
  .responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #6c757d;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700;
  }
  .responsive-table-checkbox td[data-label="Present"]::before {
    margin-bottom: 8px;
  }
  .responsive-table td[data-label="Action"],
  .responsive-table td[data-label="LinkedIn"] {
    padding-top: 10px;
  }
  .responsive-table td[data-label="Action"] a,
  .responsive-table td[data-label="LinkedIn"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #0d6efd;
    border-radius: .375rem;
    text-decoration: none;
  }
  .responsive-table td[data-label="Action"] a:hover,
  .responsive-table td[data-label="LinkedIn"] a:hover {
    text-decoration: none;
    background: #f8f9fa;
  }
  .compact-textarea { min-width: 100%; }
  .small-input { max-width: 100%; }
  .pagination-bar { display: grid; gap: 10px; }
  .profile-list { grid-template-columns: 1fr; }
  .activity-head { display: block; }
  .public-form-grid { grid-template-columns: 1fr; }
}
