/**
 * public/css/vcso-v41-mapfirst.css - V41 Map-First Clean Daylight Editorial Layout
 * Strictly <= 280 lines. Mobile-first 390x844 safe (16px inputs, zero horizontal overflow).
 */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--vcso-canvas, #F6F7F4);
  color: var(--vcso-ink, #101828);
  overflow-x: hidden;
}
.vcso-v41-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  font-size: 14.5px;
}
.vcso-v41-shell button:not(.vcso-job-pin):not(.vcso-link-btn):not(.vcso-map-ctrl-btn):not(.vcso-pill-btn),
.vcso-v41-modal button:not(.vcso-link-btn):not(.vcso-pill-btn),
.vcso-v41-shell a.vcso-btn-primary,
.vcso-v41-modal a.vcso-btn-primary,
.vcso-v41-shell a.vcso-btn-ghost {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.vcso-v41-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--vcso-surface, #FFFFFF);
  border-bottom: 1px solid var(--vcso-border, #E4E7EC);
  flex-wrap: wrap;
}
.vcso-v41-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vcso-v41-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--vcso-ink, #101828);
  line-height: 1.2;
}
.vcso-v41-brand-sub {
  font-size: 12px;
  color: var(--vcso-ink-muted, #475467);
}
.vcso-v41-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vcso-v41-locbar {
  display: grid;
  grid-template-columns: minmax(175px, 1fr) minmax(195px, 1.15fr) minmax(170px, 1fr) auto;
  gap: 8px;
  padding: 10px 14px;
  background: var(--vcso-surface-subtle, #F8FAFC);
  border-bottom: 1px solid var(--vcso-border, #E4E7EC);
  align-items: end;
}
.vcso-adv-filters {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--vcso-ink-secondary, #344054);
}
.vcso-adv-filters summary {
  cursor: pointer;
  font-weight: 700;
  color: #0F766E;
  user-select: none;
  padding: 2px 0;
}
.vcso-adv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-top: 6px;
}
.vcso-adv-grid .vcso-v41-field {
  min-width: 150px;
  flex: 1 1 160px;
}
.vcso-btn-danger-outline {
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #B42318;
}
.vcso-v41-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.vcso-v41-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--vcso-ink-secondary, #344054);
}
.vcso-v41-shell input,
.vcso-v41-shell select,
.vcso-v41-shell textarea,
.vcso-v41-modal input,
.vcso-v41-modal select,
.vcso-v41-modal textarea {
  font-size: 16px;
  line-height: 1.35;
  padding: 8px 10px;
  border: 1px solid var(--vcso-border-strong, #CBD5E1);
  border-radius: 8px;
  background: #FFFFFF;
  color: #101828;
  width: 100%;
  min-width: 0;
}
.vcso-v41-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--vcso-border, #E4E7EC);
  overflow-x: auto;
  flex-wrap: wrap;
}
.vcso-pill-btn {
  border: 1px solid var(--vcso-border-strong, #CBD5E1);
  background: #FFFFFF;
  color: var(--vcso-ink-secondary, #344054);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.vcso-pill-btn.active {
  background: var(--vcso-brand, #0F766E);
  border-color: var(--vcso-brand, #0F766E);
  color: #FFFFFF;
}
.vcso-v41-workspace {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  min-height: 540px;
}
.vcso-map-pane {
  position: relative;
  border-right: 1px solid var(--vcso-border, #E4E7EC);
  background: #E8EFEA;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.vcso-map-presence-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--vcso-border, #E4E7EC);
  flex-wrap: wrap;
  font-size: 13px;
}
#vcsoMapCanvasRoot {
  position: relative;
  flex: 1 1 auto;
  min-height: 410px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #EEF6F2 0%, #DFEAE4 100%);
  touch-action: none;
  cursor: grab;
  user-select: none;
}
#vcsoMapCanvasRoot:active { cursor: grabbing; }
.vcso-map-controls {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vcso-map-ctrl-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--vcso-border-strong, #CBD5E1);
  background: rgba(255, 255, 255, 0.96);
  color: #101828;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--vcso-shadow-sm);
}
.vcso-map-legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--vcso-border, #E4E7EC);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #344054;
  max-width: calc(100% - 20px);
}
.vcso-jobs-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--vcso-canvas, #F6F7F4);
  max-height: calc(100dvh - 185px);
  overflow-y: auto;
}
.vcso-inline-cv-strip {
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vcso-job-card {
  background: #FFFFFF;
  border: 1px solid var(--vcso-border, #E4E7EC);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--vcso-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}
.vcso-job-card.selected {
  border-color: var(--vcso-brand, #0F766E);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
}
.vcso-job-detail-expand {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--vcso-border-strong, #CBD5E1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vcso-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid var(--vcso-border, #E4E7EC);
  border-radius: 10px;
  font-size: 13px;
}
.vcso-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.vcso-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.vcso-tag-safe { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.vcso-tag-info { background: #F0F9FF; color: #075985; border-color: #BAE6FD; }
.vcso-tag-warn { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.vcso-tag-danger { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.vcso-tag-neutral { background: #F1F5F9; color: #334155; border-color: #CBD5E1; }

.vcso-v41-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 136px 16px;
  background: #FFFFFF;
  border-top: 1px solid var(--vcso-border, #E4E7EC);
  font-size: 12.5px;
  color: #475467;
}
.vcso-link-btn {
  background: none;
  border: 0;
  padding: 4px 6px;
  color: #0F766E;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.vcso-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95000;
  background: rgba(16, 24, 40, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.vcso-v41-modal {
  background: #FFFFFF;
  border-radius: 14px;
  width: min(760px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 16px;
  box-shadow: 0 20px 45px rgba(16, 24, 40, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vcso-job-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 15;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 3px 9px rgba(16, 24, 40, 0.24);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1px;
  max-width: 174px;
  box-sizing: border-box;
  line-height: 1.18;
}
.vcso-pin-title { font-size: 10.5px; font-weight: 700; opacity: 0.96; max-width: 158px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcso-pin-sal { font-size: 11.5px; font-weight: 800; color: #FEF08A; white-space: nowrap; }
.vcso-actor-pin { position: absolute; transform: translate(-50%, -50%); z-index: 22; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.vcso-actor-pin img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2.5px solid #0F766E; background: #FFFFFF; box-shadow: 0 3px 10px rgba(16, 24, 40, 0.28); }
.vcso-actor-tag { margin-top: 2px; padding: 1px 6px; border-radius: 999px; background: #101828; color: #FFFFFF; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.vcso-self-player { transform: translate(-50%, -100%); z-index: 25; cursor: grab; user-select: none; }
.vcso-self-player:active { cursor: grabbing; }
.vcso-self-player img { width: 42px; height: 42px; border: 3px solid #0284C7; box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.24), 0 4px 12px rgba(16, 24, 40, 0.35); }
.vcso-self-player .vcso-actor-tag { background: #0284C7; font-size: 10.5px; }
@media (max-width: 960px) {
  .vcso-v41-locbar { grid-template-columns: 1fr 1fr; }
  .vcso-v41-workspace { grid-template-columns: 1fr; }
  .vcso-map-pane { border-right: 0; border-bottom: 1px solid var(--vcso-border, #E4E7EC); min-height: 330px; }
  #vcsoMapCanvasRoot { min-height: 270px; height: 38dvh; }
  .vcso-jobs-pane { max-height: none; overflow-y: visible; padding-bottom: 24px; }
}
.vcso-senior-quickbar { background: #FFFFFF; border: 1.5px solid #99F6E4; border-radius: 12px; padding: 10px 12px; display: none; flex-direction: column; gap: 8px; }
body.vcso-senior-mode .vcso-senior-quickbar, .vcso-senior-quickbar.vcso-has-saved { display: flex; }
.vcso-map-mode-tabs { position: absolute; left: 10px; top: 10px; z-index: 32; display: flex; gap: 4px; padding: 3px; background: rgba(255,255,255,0.94); border: 1px solid #CBD5E1; border-radius: 999px; }
.vcso-cv-dropzone { border: 1.5px dashed #0F766E; border-radius: 10px; padding: 10px; background: #F0FDFA; text-align: center; font-size: 13px; color: #134E4A; cursor: pointer; }
.vcso-cv-dropzone.drag-over { background: #CCFBF1; border-color: #047857; }
.vcso-senior-steps { font-size: 13px; line-height: 1.45; color: #134E4A; background: #F0FDFA; border-radius: 8px; padding: 7px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.vcso-badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #DC2626; color: #FFFFFF; font-size: 11.5px; font-weight: 800; }
.vcso-toast-alert { position: fixed; right: 12px; bottom: 84px; z-index: 96000; width: min(370px, calc(100vw - 24px)); background: #FFFFFF; border: 1.5px solid #0F766E; border-left: 5px solid #0F766E; border-radius: 12px; padding: 12px; box-shadow: 0 12px 28px rgba(16, 24, 40, 0.25); display: flex; flex-direction: column; gap: 7px; }
body.vcso-senior-mode .vcso-v41-shell { font-size: 16.5px; line-height: 1.5; }
body.vcso-senior-mode .vcso-v41-brand-title { font-size: 18px; }
body.vcso-senior-mode .vcso-v41-brand-sub { font-size: 13.5px; color: #344054; }
body.vcso-senior-mode .vcso-v41-field label { font-size: 14px; color: #101828; }
body.vcso-senior-mode .vcso-v41-shell button:not(.vcso-job-pin):not(.vcso-link-btn):not(.vcso-map-ctrl-btn):not(.vcso-pill-btn),
body.vcso-senior-mode .vcso-v41-modal button:not(.vcso-link-btn):not(.vcso-pill-btn) { min-height: 44px; font-size: 15px; padding: 8px 14px; }
body.vcso-senior-mode .vcso-pill-btn { font-size: 14.5px; padding: 8px 13px; min-height: 40px; }
body.vcso-senior-mode .vcso-job-card { border-width: 1.5px; border-color: #94A3B8; padding: 14px; }
body.vcso-senior-mode .vcso-job-card h3 { font-size: 17.5px !important; line-height: 1.35; }
body.vcso-senior-mode .vcso-tag { font-size: 13px; padding: 4px 10px; }
body.vcso-senior-mode .vcso-senior-steps { font-size: 15px; }

.vcso-cv-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.vcso-cv-chips .chip-match { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; }
.vcso-cv-chips .chip-miss { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; }
.vcso-jd-meter { transition: background 0.2s; }
.vcso-fit-box { background: #F0FDFA; border: 1px solid #99F6E4; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: #134E4A; line-height: 1.45; }
.vcso-fit-box ul { margin: 4px 0 0; padding-left: 18px; }
.vcso-kanban-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 8px; width: 100%; }
.vcso-interview-q { background: #F8FAFC; border: 1px solid #CBD5E1; border-left: 4px solid #0F766E; border-radius: 8px; padding: 9px 11px; font-size: 13.5px; color: #101828; line-height: 1.45; }
.vcso-locbar-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vcso-beta-presence { background: #FFFFFF; border-bottom: 1px solid var(--vcso-border, #E4E7EC); }
.vcso-beta-presence summary { cursor: pointer; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: #0F766E; user-select: none; }
.vcso-beta-presence .vcso-map-presence-bar { border-top: 1px solid var(--vcso-border, #E4E7EC); border-bottom: 0; }
.vcso-sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; }
.vcso-ai-fab { position: fixed; right: 12px; bottom: 82px; z-index: 880; border: 0; border-radius: 999px; background: #0F766E; color: #FFFFFF; font-size: 13px; font-weight: 700; padding: 9px 14px; min-height: 38px; max-width: calc(100vw - 24px); cursor: pointer; box-shadow: 0 8px 22px rgba(15, 118, 110, 0.32); }
.vcso-ai-fab:hover { background: #0D645D; }
.vcso-aiw-chat-log { min-height: 160px; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding: 9px; background: #F8FAFC; border: 1px solid #E4E7EC; border-radius: 10px; }
.vcso-aiw-msg { padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; max-width: 92%; }
.vcso-aiw-msg.user { align-self: flex-end; background: #0F766E; color: #FFFFFF; }
.vcso-aiw-msg.assistant { align-self: flex-start; background: #FFFFFF; color: #101828; border: 1px solid #E4E7EC; }
.vcso-aiw-msg.blocked { align-self: flex-start; background: #FFFBEB; color: #92400E; border: 1px solid #FCD34D; font-weight: 600; }

@media (max-width: 768px) {
  .vcso-map-pane { min-height: 215px; }
  #vcsoMapCanvasRoot { height: 30dvh; min-height: 210px; }
  .vcso-adv-filters summary { min-height: 40px; display: flex; align-items: center; }
}
@media (max-width: 640px) {
  .vcso-v41-filter-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; max-width: 100%; }
  .vcso-v41-filter-bar .vcso-pill-btn { flex-shrink: 0; min-height: 40px; }
}
@media (max-width: 480px) {
  .vcso-v41-header { padding: 5px 10px; gap: 5px; }
  .vcso-v41-brand { gap: 8px; }
  .vcso-v41-brand-title { font-size: 14px; line-height: 1.15; }
  .vcso-v41-brand-sub { font-size: 11px; line-height: 1.15; }
  .vcso-v41-nav-actions { gap: 4px; width: 100%; }
  .vcso-v41-shell .vcso-v41-header .vcso-v41-nav-actions button[id][type], .vcso-v41-nav-actions button { padding: 5px 8px; font-size: 12.5px; min-height: 34px; }
  .vcso-v41-locbar { grid-template-columns: 1fr; padding: 8px 10px; gap: 6px; }
  .vcso-v41-filter-bar { padding: 6px 10px 4px; }
  .vcso-jobs-pane { padding: 8px 10px; }
  .vcso-v41-footer { padding: 12px 14px 136px; }
  .vcso-modal-backdrop { padding: 8px; }
  .vcso-v41-modal { padding: 12px; width: 100% !important; max-width: calc(100vw - 16px) !important; overflow-x: hidden; }
  .vcso-kanban-grid, .vcso-sec-grid { grid-template-columns: 1fr; }
  .vcso-cv-chips { gap: 3px; }
  .vcso-cv-chips .chip-match, .vcso-cv-chips .chip-miss { font-size: 11px; padding: 2px 6px; }
  .vcso-job-pin { max-width: 156px; }
  .vcso-pin-title { max-width: 140px; }
  .vcso-ai-fab { bottom: 68px; right: 10px; font-size: 12px; padding: 6px 11px; min-height: 32px; }
}
.vcso-v50-bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; display: flex; justify-content: space-around; align-items: center; background: #FFFFFF; border-top: 1px solid #E2E8F0; padding: 6px 0 max(6px, env(safe-area-inset-bottom)); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06); }
.vcso-v50-bottomnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: none; color: #64748B; font-size: 11px; font-weight: 600; cursor: pointer; padding: 4px 12px; min-width: 64px; }
.vcso-v50-bottomnav button.vcso-nav-active { color: #0F766E; }
.vcso-v50-bottomnav button svg { width: 22px; height: 22px; }
.vcso-v50-more-backdrop { position: fixed; inset: 0; z-index: 910; background: rgba(0, 0, 0, 0.35); }
.vcso-v50-more-drawer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 920; background: #FFFFFF; border-radius: 16px 16px 0 0; max-height: 82dvh; overflow-y: auto; padding: 14px 16px max(82px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.16); }
.vcso-v50-more-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.vcso-v50-more-head h3 { margin: 0; font-size: 15.5px; font-weight: 800; color: #0F766E; }
.vcso-v50-more-close { border: 1px solid #CBD5E1; background: #F8FAFC; color: #334155; border-radius: 8px; min-width: 34px; min-height: 32px; font-size: 18px; line-height: 1; cursor: pointer; }
.vcso-v50-more-drawer button:not(.vcso-v50-more-close) { display: block; width: 100%; text-align: left; border: none; background: none; padding: 9px 10px; font-size: 14px; font-weight: 600; color: #1E293B; cursor: pointer; border-radius: 8px; }
.vcso-v50-more-drawer button:not(.vcso-v50-more-close):hover { background: #F0FDFA; color: #0F766E; }
.vcso-v50-more-sep { border-top: 1px solid #E2E8F0; margin: 6px 0; padding-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.vcso-v50-more-drawer .vcso-v50-more-sep button { width: auto; font-size: 12.5px; color: #475467; padding: 6px 8px; }
.vcso-v50-more-dev { margin-top: 6px; border: 1px dashed #CBD5E1; border-radius: 10px; padding: 6px 8px; background: #F8FAFC; }
.vcso-v50-more-dev > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #64748B; padding: 4px 2px; user-select: none; }
.vcso-v50-more-dev-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
@media (min-width: 768px) {
  .vcso-v50-more-drawer { left: auto; right: 16px; bottom: 76px; width: 390px; max-height: calc(100dvh - 96px); border-radius: 16px; padding: 14px 16px; border: 1px solid #CBD5E1; box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22); }
}
.vcso-v41-workspace { padding-bottom: 16px !important; }
#vcsoSeniorQuickBar { display: none; }
body.vcso-senior-mode #vcsoSeniorQuickBar, #vcsoSeniorQuickBar.vcso-has-saved { display: block; }
