:root {
  --vf-page: #F7F4EE;
  --vf-surface: #FFFDF9;
  --vf-surface-muted: #F1EDE5;
  --vf-text: #27313A;
  --vf-text-muted: #66717C;
  --vf-label: #4E5A65;
  --vf-border: #DDD8CE;
  --vf-gold: #C7B27A;
  --vf-gold-strong: #B49C61;
  --vf-green-bg: #EAF5ED;
  --vf-green-border: #BFDCC6;
  --vf-green-text: #2F6840;
  --vf-amber-bg: #FFF4D9;
  --vf-amber-border: #E8D19A;
  --vf-amber-text: #795C19;
  --vf-red-bg: #FCEBE8;
  --vf-red-border: #E8BDB6;
  --vf-red-text: #8A3B32;
  --vf-blue-bg: #EAF2F8;
  --vf-blue-border: #BDD3E3;
  --vf-blue-text: #315F7E;
  --vf-shadow: 0 8px 24px rgba(39, 49, 58, .07);
  --vf-radius-card: 16px;
  --vf-radius-control: 9px;
  --vf-space-1: 4px;
  --vf-space-2: 8px;
  --vf-space-3: 12px;
  --vf-space-4: 16px;
  --vf-space-5: 24px;
  --vf-space-6: 32px;
}

.vf-pilot {
  margin: 0;
  color: var(--vf-text);
  background: var(--vf-page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.vf-pilot :where(button, input, textarea, select) { font: inherit; }
.vf-pilot :where(button, a, input, textarea, select):focus-visible {
  outline: 3px solid rgba(180, 156, 97, .38);
  outline-offset: 2px;
}

.emgs-wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 0 0 6px;
  color: var(--vf-text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .13em;
}

.emgs-wordmark::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--vf-gold);
}

.emgs-wordmark.compact { font-size: 17px; }

/* Shared application shell */
.vf-pilot .vf-app-header {
  height: auto;
  min-height: 92px;
  padding: 12px 20px;
  color: var(--vf-text);
  background: rgba(255, 253, 249, .98);
  border-bottom: 1px solid var(--vf-border);
  box-shadow: 0 3px 14px rgba(39, 49, 58, .05);
  backdrop-filter: none;
}

.vf-pilot .vf-app-header-inner,
.vf-pilot .vf-app-header.topbar-inner,
.vf-pilot .vf-app-header > .topbar-inner {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, .95fr) minmax(260px, auto) minmax(310px, 1.15fr);
  gap: 16px;
  align-items: center;
}

.vf-pilot .vf-identity-zone { display: block; min-width: 0; }
.vf-pilot .vf-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.vf-pilot .vf-brand-copy { min-width: 0; }
.vf-pilot .vf-brand-copy :where(h1, strong) {
  display: block;
  margin: 0;
  color: var(--vf-text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.vf-pilot .vf-brand-copy :where(p, span) {
  display: block;
  margin: 3px 0 0;
  color: var(--vf-text-muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.3;
}

.vf-pilot .vf-account-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--vf-text-muted);
  font-size: 12px;
}
.vf-pilot .vf-account-row :where(.session-chip, .sync-chip, .pill, .chip) {
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  color: var(--vf-text-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}
.vf-pilot .vf-save-status,
.vf-pilot .vf-account-row .sync-chip,
.vf-pilot .vf-account-row .sync-pill,
.vf-pilot .vf-account-row #syncChip,
.vf-pilot .vf-account-row #stbSyncStatus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vf-green-text);
}
.vf-pilot .vf-save-status::before,
.vf-pilot .vf-account-row .sync-chip::before,
.vf-pilot .vf-account-row .sync-pill::before,
.vf-pilot .vf-account-row #syncChip::before,
.vf-pilot .vf-account-row #stbSyncStatus::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #4C9760;
  box-shadow: 0 0 0 2px var(--vf-green-bg);
}
.vf-pilot .vf-account-row .vf-logout {
  min-height: 28px;
  padding: 4px 8px;
  color: var(--vf-text-muted);
  background: transparent !important;
  border: 1px solid var(--vf-border) !important;
  border-radius: 7px;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 500;
}

.vf-pilot .vf-nav-zone {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.vf-pilot .vf-nav-zone :where(.tabs, .vf-primary-nav) {
  display: flex;
  max-width: 100%;
  gap: 3px;
  padding: 4px;
  overflow-x: auto;
  color: var(--vf-text);
  background: var(--vf-surface-muted);
  border: 1px solid var(--vf-border);
  border-radius: 11px;
  box-shadow: none;
  scrollbar-width: thin;
}
.vf-pilot .vf-nav-zone :where(.tab-btn, .tab, .vf-nav-item) {
  width: auto;
  min-height: 32px;
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--vf-text-muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.vf-pilot .vf-nav-zone :where(.tab-btn.active, .tab.active, .vf-nav-item.is-active) {
  color: var(--vf-text);
  background: var(--vf-surface);
  box-shadow: 0 1px 4px rgba(39, 49, 58, .08);
}
.vf-pilot .vf-nav-stack { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.vf-pilot .vf-secondary-nav .tab {
  min-height: 26px;
  padding: 4px 9px;
  color: var(--vf-text-muted);
  background: transparent;
  border: 1px solid var(--vf-border);
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
}
.vf-pilot .vf-secondary-nav .tab.active { color: var(--vf-text); background: var(--vf-surface-muted); }

.vf-pilot .vf-actions-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.vf-pilot .vf-action-group { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.vf-pilot .vf-action-group.utility { padding-left: 8px; border-left: 1px solid var(--vf-border); }
.vf-pilot .vf-actions-zone :where(.btn, .rail-btn, label.btn) {
  width: auto;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--vf-text);
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-control);
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  transform: none;
}
.vf-pilot .vf-actions-zone :where(.btn.gold, .btn.primary) {
  color: var(--vf-text);
  background: var(--vf-gold);
  border-color: var(--vf-gold);
}
.vf-pilot .vf-actions-zone :where(.btn.gold, .btn.primary):hover { background: var(--vf-gold-strong); }
.vf-pilot .vf-actions-zone :where(.btn.blue, #importBtn, #importJsonBtn) {
  color: var(--vf-blue-text);
  background: var(--vf-blue-bg);
  border-color: var(--vf-blue-border);
}
.vf-pilot .vf-actions-zone :where(.emgs-home-link, .workspace-home-link, .home-link) {
  color: var(--vf-text-muted) !important;
  background: transparent !important;
  border-color: var(--vf-border) !important;
  text-decoration: none;
}

/* Command Centre and login */
.vf-command-centre { background: var(--vf-page); }
.vf-command-centre .login-wrap { min-height: 100vh; padding: 24px 16px; }
.vf-command-centre .login-card {
  width: min(440px, 100%);
  padding: 28px;
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-card);
  box-shadow: var(--vf-shadow);
}
.vf-command-centre .login-card .brand { margin-bottom: 20px; }
.vf-command-centre .brand { gap: 13px; }
.vf-command-centre .brand h1 { color: var(--vf-text); font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.vf-command-centre .brand p { margin-top: 5px; color: var(--vf-text-muted); font-size: 13px; font-weight: 400; }
.vf-command-centre .login-card h2 { margin-bottom: 5px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.vf-command-centre .login-card > p { margin-bottom: 18px; line-height: 1.45; }
.vf-command-centre .field { gap: 5px; margin-bottom: 12px; }
.vf-command-centre .field label { color: var(--vf-text); font-size: 12.5px; font-weight: 500; }
.vf-command-centre .field input {
  min-height: 40px;
  padding: 9px 11px;
  color: var(--vf-text);
  background: #fff;
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-control);
}
.vf-command-centre .primary-btn {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--vf-text);
  background: var(--vf-gold);
  border-radius: var(--vf-radius-control);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}
.vf-command-centre .primary-btn:hover { background: var(--vf-gold-strong); }
.vf-command-centre .login-error { min-height: 20px; margin-top: 9px; color: var(--vf-red-text); font-size: 13px; font-weight: 500; }
.vf-command-centre .login-foot { margin-top: 10px; color: var(--vf-text-muted); font-size: 12px; }
.vf-command-centre .shell { width: min(1080px, calc(100% - 32px)); padding: 28px 0 40px; }
.vf-command-centre .top { margin-bottom: 22px; }
.vf-command-centre .top .brand h1 { font-size: 30px; }
.vf-command-centre .userbar { gap: 8px; }
.vf-command-centre .user-chip { padding: 0; color: var(--vf-text-muted); background: transparent; border: 0; border-radius: 0; font-size: 12.5px; font-weight: 500; }
.vf-command-centre .ghost-btn { min-height: 32px; padding: 6px 10px; border-color: var(--vf-border); border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.vf-command-centre .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.vf-command-centre .tile {
  height: 100%;
  min-height: 190px;
  padding: 20px;
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-top: 4px solid var(--accent);
  border-radius: var(--vf-radius-card);
  box-shadow: 0 5px 18px rgba(39, 49, 58, .05);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.vf-command-centre .tile:hover,
.vf-command-centre .tile:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 72%, var(--vf-border));
  box-shadow: 0 9px 24px rgba(39,49,58,.09), 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.vf-command-centre .tile::after { display: none; }
.vf-command-centre .tile .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--accent-ink, #fff);
  background: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 72%, var(--vf-text));
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
}
.vf-command-centre .tile h2 { margin: 16px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.vf-command-centre .tile p { max-width: 88%; color: var(--vf-text-muted); font-size: 13px; line-height: 1.4; }
.vf-command-centre .tile .go { padding-top: 15px; color: var(--vf-text-muted); font-size: 12.5px; font-weight: 500; }
.vf-command-centre .badge { top: 16px; right: 16px; padding: 4px 7px; color: #245D35; background: #DDEFE2; border: 1px solid #91C49F; border-radius: 7px; font-size: 11px; font-weight: 600; }
.vf-command-centre .law { --accent: #B96368; }
.vf-command-centre .search { --accent: #347F9A; }
.vf-command-centre .courtney { --accent: #B8872F; --accent-ink: #27313A; }
.vf-command-centre .relationship { --accent: #6C63A8; }

/* LAW representative candidate profile */
.vf-law .main { background: var(--vf-page); }
.vf-law .detail-view { display: grid; gap: 14px; }
.vf-law .detail-top {
  padding: 16px;
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-card);
  box-shadow: 0 4px 16px rgba(39, 49, 58, .04);
}
.vf-law .detail-title-box h2 { color: var(--vf-text); font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.vf-law .detail-title-box p { color: var(--vf-text-muted); line-height: 1.4; }
.vf-law .detail-actions .btn { min-height: 36px; border-radius: var(--vf-radius-control); font-size: 13px; font-weight: 500; }
.vf-law .detail-grid { gap: 12px; }
.vf-law .detail-grid > .panel,
.vf-law .law-route-shell,
.vf-law .law-cv-panel {
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-card);
  box-shadow: 0 4px 16px rgba(39, 49, 58, .04);
}
.vf-law .detail-grid > .panel { padding: 15px; }
.vf-law .detail-grid > .panel > h3,
.vf-law .law-route-head h4,
.vf-law .law-cv-head h3 { color: var(--vf-text); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.vf-law .info-row { padding: 7px 0; border-bottom-color: var(--vf-border); }
.vf-law :where(.law-candidate-profile-panel, .law-candidate-contact-panel, .law-candidate-role-panel) .info-row > span:first-child,
.vf-law [data-law-profile-preferences] .info-row > span:first-child {
  color: var(--vf-label);
  font-size: 12.5px;
  font-weight: 500;
}
.vf-law #helpRail.vf-help-control {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 30px;
  justify-content: center;
  padding: 0;
  color: var(--vf-blue-text);
  background: var(--vf-blue-bg) !important;
  border: 1px solid var(--vf-blue-border) !important;
  border-radius: 8px;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 600;
}
.vf-law #helpRail.vf-help-control:hover { background: #DCEAF4 !important; }
.vf-law .vf-tools-disclosure {
  position: relative;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.vf-law .vf-tools-disclosure > summary {
  list-style: none;
  min-height: 34px;
  color: var(--vf-text-muted);
  font-weight: 500;
}
.vf-law .vf-tools-disclosure > summary::-webkit-details-marker { display: none; }
.vf-law .vf-tools-disclosure > summary::after { content: "▾"; margin-left: 6px; font-size: 10px; }
.vf-law .vf-tools-disclosure[open] > summary::after { content: "▴"; }
.vf-law .vf-tools-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 6px;
  min-width: 176px;
  padding: 8px;
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  box-shadow: var(--vf-shadow);
}
.vf-law .vf-tools-menu :where(.btn, label.btn) { width: 100%; justify-content: flex-start; }
.vf-law .vf-tools-menu #exportBtn,
.vf-law .vf-tools-menu #importBackupLabel {
  color: var(--vf-text);
  background: var(--vf-surface) !important;
  border-color: var(--vf-border) !important;
  box-shadow: none !important;
}
.vf-law .law-route-shell { padding: 20px; }
.vf-law .law-route-head { align-items: flex-start; }
.vf-law .law-route-head > div:first-child { min-width: 0; }
.vf-law .law-route-head > div:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.vf-law .law-profile-exclusions { margin: 16px 0 0; padding: 14px; }
.vf-law .law-route-results { margin-top: 16px; }
.vf-law :where(.status, .badge, .law-cv-tags, .colour-key > *) { border-radius: 7px; font-weight: 500; }
.vf-law .law-route-card,
.vf-law .law-cv-employer,
.vf-law .law-cv-role { border-color: var(--vf-border); border-radius: 12px; box-shadow: none; }

/* Representative LAW detail profiles */
.vf-law .vf-law-profile .detail-title-box,
.vf-law .vf-law-profile .panel {
  background: var(--vf-surface);
  border-color: var(--vf-border);
  border-radius: var(--vf-radius-card);
  box-shadow: 0 4px 16px rgba(39,49,58,.04);
}
.vf-law .vf-law-profile .detail-title-box { padding: 18px 20px; }
.vf-law .vf-law-profile .panel { padding: 15px; }
.vf-law .vf-law-profile .info-row > span:first-child {
  color: var(--vf-label);
  font-size: 12.5px;
  font-weight: 500;
}
.vf-law .vf-law-profile .info-row > span:last-child {
  min-width: 0;
  color: var(--vf-text);
  overflow-wrap: anywhere;
}
.vf-law .vf-law-profile :where(.linked-list, .info-list) { gap: 8px; }
.vf-law .vf-law-profile .linked-list > h4 { margin: 12px 0 6px; color: var(--vf-label); font-size: 12.5px; font-weight: 600; }
.vf-law .vf-law-profile .linked-list > h4:first-child { margin-top: 0; }
.vf-law .vf-law-profile .mini-card {
  min-height: 0;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid var(--vf-border);
  border-radius: 10px;
  box-shadow: none;
}
.vf-law .vf-law-profile .mini-card :where(strong, p, a) { overflow-wrap: anywhere; }
.vf-law .vf-law-profile .empty-state,
.vf-law .vf-law-profile .muted { line-height: 1.45; }

/* Shared compact Missing information component. */
.vf-law .missing-info-panel {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 10px 11px;
  background: var(--vf-surface);
  border: 1px solid #D9C69D;
  border-left: 4px solid #C88B25;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(121,92,25,.07);
}
.vf-law .missing-info-head { display: flex; align-items: center; gap: 7px; min-width: 0; margin: -10px -11px 0; padding: 8px 10px; background: #FFF8E8; border-bottom: 1px solid #E7D7B3; border-radius: 9px 9px 0 0; }
.vf-law .missing-info-marker { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #B97712; }
.vf-law .missing-info-head h4 { margin: 0; color: var(--vf-text); font-size: 13px; font-weight: 600; }
.vf-law .missing-info-count { margin-left: auto; padding: 2px 6px; color: #6F5215; background: #FFF1CE; border: 1px solid #DFC27A; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.vf-law .missing-info-panel.is-empty { border-color: var(--vf-border); border-left-color: var(--vf-green-border); box-shadow: none; }
.vf-law .missing-info-panel.is-empty .missing-info-head { background: var(--vf-surface); border-bottom-color: var(--vf-border); }
.vf-law .missing-info-panel.is-empty .missing-info-marker { background: var(--vf-green-text); }
.vf-law .missing-info-panel.is-empty .missing-info-count { color: var(--vf-text-muted); background: var(--vf-surface-muted); border-color: var(--vf-border); }
.vf-law .vf-not-set { color: var(--vf-amber-text); }
.vf-law .vf-law-profile .info-row span.vf-not-set,
.vf-law .detail-view .info-row span.vf-not-set { color: var(--vf-amber-text); }
.vf-law .missing-info-list,
.vf-law .missing-info-dismissed ul { gap: 5px; }
.vf-law .missing-info-list li,
.vf-law .missing-info-dismissed li {
  min-height: 42px;
  align-items: center;
  padding: 6px 8px;
  background: #fff;
  border-color: var(--vf-border);
  border-radius: 8px;
}
.vf-law .missing-info-list span { min-width: 0; color: var(--vf-text); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.vf-law .missing-info-dismiss,
.vf-law .missing-info-restore {
  min-height: 30px;
  padding: 4px 8px;
  color: var(--vf-text-muted);
  background: transparent;
  border-color: var(--vf-border);
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
}
.vf-law .missing-info-dismissed { padding-top: 6px; border-top-color: var(--vf-border); }
.vf-law .missing-info-dismissed summary { width: fit-content; padding: 4px 0; color: var(--vf-text-muted); font-size: 12px; font-weight: 500; }
.vf-law .missing-info-empty { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--vf-green-text); font-size: 12.5px; }

/* Compact activity disclosures. */
.vf-law .activity-panel-compact { background: var(--vf-surface); border-color: var(--vf-border); }
.vf-law .activity-timeline { gap: 7px; }
.vf-law .timeline-row { padding: 5px 0; }
.vf-law .timeline-dot { width: 8px; height: 8px; margin: 5px 0 0 2px; background: var(--vf-gold); box-shadow: 0 0 0 3px rgba(199,178,122,.16); }
.vf-law .activity-toggle,
.vf-manufacturing .activity-toggle,
.vf-messenger .activity-toggle {
  min-height: 32px;
  margin-top: 8px;
  padding: 5px 8px;
  color: var(--vf-text-muted);
  background: transparent;
  border: 1px solid var(--vf-border);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.vf-manufacturing .activity-panel,
.vf-messenger .history-panel {
  background: var(--vf-surface);
  border-color: var(--vf-border);
  border-radius: var(--vf-radius-card);
  box-shadow: 0 4px 16px rgba(39,49,58,.04);
}
.vf-manufacturing .activity-row { padding: 9px 12px; border-bottom-color: var(--vf-border); }
.vf-messenger .interaction-history-entry + .interaction-history-entry { margin-top: 8px; }

/* Candidate career-history disclosures. */
.vf-law .law-cv-timeline { gap: 10px; }
.vf-law .law-cv-employer { padding-left: 15px; }
.vf-law .law-cv-employer > h4 { margin-bottom: 6px; }
.vf-law .law-cv-role { padding: 9px 10px; }
.vf-law .law-cv-role-summary { display: grid; gap: 2px; }
.vf-law .law-cv-role-summary h5 { font-size: 13px; font-weight: 600; }
.vf-law .law-cv-role-details { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--vf-border); overflow-wrap: anywhere; }
.vf-law .law-cv-description-toggle { width: fit-content; min-height: 32px; margin-top: 7px; padding: 5px 8px; color: var(--vf-text-muted); background: transparent; border: 1px solid var(--vf-border); border-radius: 7px; font-size: 12px; font-weight: 500; cursor: pointer; }
.vf-law .law-cv-role-details :where(ul, li, div) { max-width: 100%; overflow-wrap: anywhere; }

/* Shared restrained content links. Button-like links, navigation and workspace cards retain their own systems. */
.vf-pilot :where(main, .main, #main, #app, #workspaceView) a:not(.btn):not(.tile):not(.emgs-home-link):not(.workspace-home-link):not(.home-link):not([role="button"]) {
  color: #466B82;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.vf-pilot :where(main, .main, #main, #app, #workspaceView) a:not(.btn):not(.tile):not(.emgs-home-link):not(.workspace-home-link):not(.home-link):not([role="button"]):visited { color: #586E80; }
.vf-pilot :where(main, .main, #main, #app, #workspaceView) a:not(.btn):not(.tile):not(.emgs-home-link):not(.workspace-home-link):not(.home-link):not([role="button"]):hover { color: #315F7E; text-decoration: underline; }
.vf-pilot :where(main, .main, #main, #app, #workspaceView) a:not(.btn):not(.tile):not(.emgs-home-link):not(.workspace-home-link):not(.home-link):not([role="button"]):focus-visible { color: #274F69; text-decoration: underline; }
.vf-pilot :where(main, .main, #main, #app, #workspaceView) a.vf-record-link:not(.btn):not(.tile):not(.emgs-home-link):not(.workspace-home-link):not(.home-link):not([role="button"]) { color: #355F78; font-weight: 600; }

/* Search Thread retains its dense three-pane workspace below the shared shell. */
.vf-search .workspace { height: calc(100vh - 117px); }
.vf-search .topbar { position: sticky; top: 0; z-index: 20; }
.vf-search .pane { border-color: var(--vf-border); box-shadow: 0 4px 16px rgba(39, 49, 58, .05); }

@media (max-width: 1180px) {
  .vf-pilot .vf-app-header-inner,
  .vf-pilot .vf-app-header.topbar-inner,
  .vf-pilot .vf-app-header > .topbar-inner {
    grid-template-columns: minmax(250px, .85fr) minmax(300px, 1.15fr);
  }
  .vf-pilot .vf-nav-zone { justify-content: flex-end; }
  .vf-pilot .vf-actions-zone { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--vf-border); }
  .vf-pilot .vf-action-group { justify-content: flex-start; }
  .vf-search .workspace { height: auto; }
}

@media (max-width: 820px) {
  .vf-pilot .vf-app-header { padding: 12px 14px; }
  .vf-pilot .vf-app-header-inner,
  .vf-pilot .vf-app-header.topbar-inner,
  .vf-pilot .vf-app-header > .topbar-inner { grid-template-columns: 1fr; gap: 12px; }
  .vf-pilot .vf-nav-zone { justify-content: flex-start; width: 100%; }
  .vf-pilot .vf-nav-stack { justify-items: start; width: 100%; }
  .vf-pilot .vf-nav-zone :where(.tabs, .vf-primary-nav) { width: 100%; }
  .vf-pilot .vf-actions-zone { grid-column: auto; }
  .vf-command-centre .grid { grid-template-columns: 1fr; }
  .vf-command-centre .top { align-items: flex-start; }
}

@media (max-width: 520px) {
  .emgs-wordmark { font-size: 17px; }
  .vf-pilot .vf-brand-copy :where(h1, strong) { font-size: 17px; }
  .vf-pilot .vf-brand-copy :where(p, span) { font-size: 12px; }
  .vf-pilot .vf-account-row { align-items: flex-start; }
  .vf-pilot .vf-actions-zone { align-items: stretch; }
  .vf-pilot .vf-action-group { width: 100%; justify-content: flex-start; }
  .vf-pilot .vf-action-group.utility { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--vf-border); }
  .vf-pilot .vf-actions-zone :where(.btn, .rail-btn, label.btn) { flex: 1 1 auto; justify-content: center; white-space: normal; }
  .vf-law #helpRail.vf-help-control { flex: 0 0 30px; }
  .vf-law .vf-tools-disclosure { flex: 1 1 auto; }
  .vf-law .vf-tools-disclosure > summary { width: 100%; justify-content: center; }
  .vf-law .vf-tools-menu { position: static; width: 100%; min-width: 0; margin-top: 6px; }
  .vf-law .law-route-shell { padding: 16px; }
  .vf-law .missing-info-list li,
  .vf-law .missing-info-dismissed li { align-items: stretch; flex-direction: column; }
  .vf-law .missing-info-dismiss,
  .vf-law .missing-info-restore { width: fit-content; align-self: flex-start; }
  .vf-law .vf-law-profile .detail-title-box,
  .vf-law .vf-law-profile .panel { padding: 13px; }
  .vf-command-centre .login-card { padding: 22px; }
  .vf-command-centre .brand h1 { font-size: 25px; }
  .vf-command-centre .top { flex-direction: column; }
  .vf-command-centre .tile { min-height: 176px; }
  .vf-law .detail-top,
  .vf-law .detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .vf-pilot *, .vf-pilot *::before, .vf-pilot *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
