@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Oswald:wght@400;500;600;700&display=swap');

/* DEV_CSS_CLEAN_REWRITE_2026_06_23
   Clean source-parity stylesheet for the Firebase dev portal.
   Purpose:
   - remove accumulated conflicting CSS patches
   - restore source-style candidate profile accordions
   - remove duplicate reference arrows/helper text
   - keep stage tiles, candidate list, sidebar, header, and footer stable
*/

* {
  box-sizing: border-box;
}

:root {
  --font-title: "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Montserrat", Arial, Helvetica, sans-serif;

  --application-header: #000000;
  --application-row: #1a1a1a;
  --resume-header: #3a3a3a;
  --resume-row: #4c4c4c;
  --pq-header: #838383;
  --pq-row: #8f8f8f;
  --interview-header: #aeaeae;
  --interview-row: #b6b6b6;
  --prepared-header: #c9c9c9;
  --prepared-row: #d1d1d1;
  --reference-header: #e5e5e5;
  --reference-row: #e8e8e8;
  --onboard-header: #ffffff;
  --onboard-row: #f7f7f7;

  --ink: #111111;
  --muted: #667085;
  --line: #d9d9d9;
  --page: #f5f5f5;
  --panel: #ffffff;
  --sidebar: #111111;
  --sidebar-panel: #202020;
  --sidebar-border: #3a3a3a;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #000000;
  color: #ffffff;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

/* Login / selector pages */

.dev-page {
  min-height: 100vh;
  padding: 32px;
  background: #000000;
  color: #ffffff;
}

.dev-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.dev-card {
  padding: 36px;
  border: 1px solid #333333;
  border-radius: 28px;
  background: #0b0b0b;
  box-shadow: 0 28px 80px rgba(255, 255, 255, 0.06);
}

.dev-logo {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 0 28px;
}

.dev-divider {
  width: 100%;
  height: 1px;
  margin: 24px 0;
  background: #333333;
}

.dev-eyebrow {
  margin: 0 0 10px;
  color: #bdbdbd;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-title);
  color: inherit;
}

h1 {
  margin-bottom: 14px;
  font-size: 44px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.dev-subtitle,
.dev-muted {
  color: #d6d6d6;
  line-height: 1.65;
}

.dev-subtitle {
  margin: 0 0 26px;
  font-size: 16px;
}

.dev-muted {
  font-size: 14px;
}

.dev-button,
button {
  display: inline-block;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 14px 20px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.dev-button:hover,
button:hover {
  background: #000000;
  color: #ffffff;
}

.dev-button.secondary,
button.secondary {
  background: transparent;
  color: #ffffff;
  border-color: #777777;
}

.dev-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.dev-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.pipeline-card,
.portal-panel {
  padding: 24px;
  border: 1px solid #333333;
  border-radius: 22px;
  background: #111111;
}

.pipeline-card {
  cursor: pointer;
}

.pipeline-card:hover {
  border-color: #ffffff;
}

.portal-panel-wide {
  grid-column: 1 / -1;
}

.dev-topbar,
.dev-header-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dev-pill {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 8px 12px;
  border: 1px solid #555555;
  border-radius: 999px;
  color: #d6d6d6;
  font-size: 12px;
}

/* Main portal shell */

.portal-dashboard-page {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
}

.portal-dashboard-page h1,
.portal-dashboard-page h2,
.portal-dashboard-page h3,
.portal-dashboard-page .dev-button,
.portal-dashboard-page button,
.filter-label,
.reference-menu-title,
.stage-tile-main span,
.stage-tile-main strong,
.stage-chip,
.candidate-record-tab,
.candidate-record-main strong,
.candidate-record-status,
.candidate-record-open a,
.candidate-record-open span,
.profile-nav-btn,
.candidate-profile-hero h3,
.candidate-profile-section summary {
  font-family: var(--font-title) !important;
}

.portal-dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 8px 12px 24px;
  background: var(--page);
}

/* Header banner */

.brand-banner {
  grid-column: 1 / -1;
  display: block;
  position: relative;
  height: 138px;
  min-height: 138px;
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
  background: #0b0b0b;
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.brand-objective-mark {
  position: absolute;
  left: 32px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 260px;
  margin: 0;
  padding: 0;
}

.objective-logo-white {
  display: block;
  width: 230px;
  max-width: 230px;
  max-height: 92px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-lighthouse,
.brand-wordmark {
  display: none !important;
}

.brand-title-block {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 620px));
  min-width: 360px;
  text-align: center;
}

.brand-title-block .brand-kicker {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-title-block h1 {
  display: none;
}

.brand-title-block p:last-child,
#pipelineSubtitle {
  display: block;
  margin: 8px 0 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.brand-client-logo-wrap {
  position: absolute;
  right: 32px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 260px;
}

.brand-client-logo {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 92px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Sidebar */

.portal-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 24px);
  overflow: auto;
  padding: 14px;
  padding-right: 12px;
  border-radius: 14px;
  background: var(--sidebar);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  scrollbar-width: thin;
  scrollbar-color: #f2f2f2 #111111;
  scrollbar-gutter: stable;
}

.portal-sidebar::-webkit-scrollbar {
  width: 8px;
}

.portal-sidebar::-webkit-scrollbar-track {
  margin-top: 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #111111;
}

.portal-sidebar::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid #111111;
  border-radius: 999px;
  background: #f2f2f2;
}

.portal-sidebar::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

.side-filter,
.reference-menu {
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid var(--sidebar-border);
  border-radius: 14px;
  background: var(--sidebar-panel);
}

.filter-label,
.reference-menu-title {
  display: block;
  margin: 0 0 10px;
  color: #a9a9a9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.portal-sidebar select,
.portal-sidebar input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #111111;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 44px;
  box-shadow: none;
}

.portal-sidebar input::placeholder {
  color: #777777;
  opacity: 1;
}

.portal-sidebar .side-filter:has(#recordStageFilter),
.portal-sidebar .side-filter:has(#recordStatusFilter),
.portal-sidebar .side-filter.side-actions {
  display: none !important;
}

.portal-sidebar .side-filter:has(#recordSearchInput) {
  display: block;
}

.reference-menu-body,
.reference-link-grid {
  display: block;
  margin: 0;
  padding: 0;
}

.reference-link-card,
.reference-card,
.reference-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  margin: 7px 0;
  padding: 9px 11px;
  border: 1px solid #555555;
  border-radius: 8px;
  background: #151515;
  color: #ffffff;
  text-decoration: none;
  box-shadow: none;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
}

.reference-link-card:hover,
.reference-card:hover,
.reference-link:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.reference-link-card.is-disabled,
.reference-card.is-disabled,
.reference-link.is-disabled,
.reference-link-card[aria-disabled="true"],
.reference-card[aria-disabled="true"],
.reference-link[aria-disabled="true"] {
  opacity: 0.48;
  color: #9a9a9a;
  pointer-events: none;
}

.reference-link-card span,
.reference-card span,
.reference-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-link-arrow {
  flex: 0 0 auto;
  margin-left: 8px;
  color: currentColor;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.reference-link-card.is-disabled .reference-link-arrow,
.reference-card.is-disabled .reference-link-arrow,
.reference-link.is-disabled .reference-link-arrow,
.reference-link-card[aria-disabled="true"] .reference-link-arrow {
  display: none;
}

.reference-help {
  margin: 9px 0 0;
  color: #d6d6d6;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.how-to-card ol {
  margin: 0;
  padding-left: 20px;
  color: #e8e8e8;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
}

/* Main content */

.portal-main {
  min-width: 0;
  padding-right: 8px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: #111111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.dashboard-header h2 {
  margin: 0 0 10px;
  color: #111111;
  font-size: 24px;
  line-height: 1.05;
  text-transform: none;
}

.dashboard-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.top-welcome,
.dashboard-header .dev-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #dddddd;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-header .dev-status.error,
.dev-status.error {
  color: #b42318;
}

.dashboard-header .dev-status.success,
.dev-status.success {
  color: #111111;
}

.dev-status.is-hidden {
  display: none;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-dashboard-page .dev-button,
.portal-dashboard-page button {
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.portal-dashboard-page .dev-button.secondary,
.portal-dashboard-page button.secondary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.portal-dashboard-page .dev-button.secondary:hover,
.portal-dashboard-page button.secondary:hover {
  background: #ffffff;
  color: #111111;
}

#openLiveBtn {
  display: none !important;
}

.portal-panel {
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.hidden-configuration-panel {
  display: none !important;
}

/* Stage dashboard */

.candidate-pipeline-panel {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.pipeline-dashboard-summary {
  display: none;
}

.stage-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.stage-tile {
  position: relative;
  min-width: 0;
  min-height: 112px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: var(--stage-row, #222222);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.stage-tile:not(.is-hidden-placeholder):hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  border-color: #111111;
  filter: contrast(1.03);
}

.stage-tile-main {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 68px;
  padding: 10px 14px 8px;
  border: 0;
  border-radius: 0;
  background: var(--stage-header, #111111);
  color: var(--stage-text, #ffffff);
  text-align: left;
  box-shadow: none;
}

.stage-tile-main:hover {
  background: var(--stage-header, #111111);
  color: var(--stage-text, #ffffff);
}

.stage-tile-main span {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.stage-tile-main strong {
  color: inherit;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.stage-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px 10px;
  background: var(--stage-row, #222222);
  color: var(--stage-text, #ffffff);
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  min-height: 20px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--stage-text, #ffffff);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.stage-chip:hover {
  transform: translateY(-1px);
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.34);
}

.stage-chip span,
.stage-chip strong {
  display: inline;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.stage-tile[data-stage-key="application"] { --stage-header: var(--application-header); --stage-row: var(--application-row); --stage-text: #ffffff; }
.stage-tile[data-stage-key="resume"] { --stage-header: var(--resume-header); --stage-row: var(--resume-row); --stage-text: #ffffff; }
.stage-tile[data-stage-key="pq"] { --stage-header: var(--pq-header); --stage-row: var(--pq-row); --stage-text: #ffffff; }
.stage-tile[data-stage-key="interview"] { --stage-header: var(--interview-header); --stage-row: var(--interview-row); --stage-text: #111111; }
.stage-tile[data-stage-key="prepared"] { --stage-header: var(--prepared-header); --stage-row: var(--prepared-row); --stage-text: #111111; }
.stage-tile[data-stage-key="reference"] { --stage-header: var(--reference-header); --stage-row: var(--reference-row); --stage-text: #111111; }
.stage-tile[data-stage-key="onboard"] { --stage-header: var(--onboard-header); --stage-row: var(--onboard-row); --stage-text: #111111; }
.stage-tile[data-stage-key="eliminated"] { --stage-header: #f2f2f2; --stage-row: #f2f2f2; --stage-text: #f2f2f2; }

.stage-tile[data-stage-key="interview"] .stage-chip,
.stage-tile[data-stage-key="prepared"] .stage-chip,
.stage-tile[data-stage-key="reference"] .stage-chip,
.stage-tile[data-stage-key="onboard"] .stage-chip {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.36);
  color: #111111;
}

.stage-tile[data-stage-key="application"] .stage-chip,
.stage-tile[data-stage-key="onboard"] .stage-chip,
.stage-tile[data-stage-key="eliminated"] .stage-chip,
.stage-chip.is-hidden-placeholder {
  background: var(--stage-row, #f2f2f2);
  border-color: var(--stage-row, #f2f2f2);
  color: var(--stage-row, #f2f2f2);
  box-shadow: none;
  pointer-events: none;
  user-select: none;
  caret-color: transparent;
}

.stage-tile.is-hidden-placeholder,
.stage-tile[data-stage-key="eliminated"] {
  visibility: hidden;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Candidate records */

.candidate-records-panel {
  overflow: visible;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.candidate-records-panel #candidateRecordsSummary {
  padding: 0;
  color: #111111;
}

.candidate-record-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 1.04fr) minmax(420px, 0.96fr);
  gap: 18px;
  align-items: stretch;
}

.candidate-record-list-panel,
.candidate-profile-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.candidate-record-list-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #d9d9d9;
}

.candidate-record-list-header h2 {
  margin: 0 0 4px;
  padding: 0;
  color: #111111;
  font-size: 22px;
  line-height: 1;
  text-transform: none;
}

.candidate-record-list-header p {
  margin: 0;
  color: #667085;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
}

.candidate-record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid #d9d9d9;
  background: #fafafa;
}

.candidate-record-tab {
  min-height: 28px;
  padding: 7px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.candidate-record-tab.is-active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: inset 0 0 0 1px #111111;
}

.candidate-record-tab:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.candidate-record-scroll-list {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
}

.candidate-record-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(120px, 0.65fr) minmax(92px, auto) minmax(92px, auto);
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 9px 20px;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  border-left: 4px solid transparent;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

.candidate-record-row:hover,
.candidate-record-row.is-selected {
  background: #f1f1f1;
  border-left-color: #000000;
}

.candidate-record-main,
.candidate-record-meta {
  min-width: 0;
}

.candidate-record-main strong {
  display: block;
  margin: 0;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-record-main span,
.candidate-record-meta span {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-record-status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 24px;
  padding: 5px 10px;
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111111;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.candidate-record-status.is-passed {
  background: #dff7e8;
  color: #008a3d;
  border-color: #a9e7bd;
}

.candidate-record-status.is-failed {
  background: #ffe3e3;
  color: #d60000;
  border-color: #ffb7b7;
}

.candidate-record-status.is-hold {
  background: #fff2d5;
  color: #8a5c00;
  border-color: #ffd986;
}

.candidate-record-status.is-pending {
  background: #eeeeee;
  color: #111111;
  border-color: #cfcfcf;
}

.candidate-record-open {
  justify-self: end;
}

.candidate-record-open a,
.candidate-record-open span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.candidate-record-open a:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.candidate-record-open span {
  opacity: 0.48;
  cursor: not-allowed;
}

/* Candidate profile */

.candidate-profile-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 560px;
}

.candidate-profile-hero {
  min-height: 160px;
  padding: 18px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e1e1e 0%, #444444 100%);
}

.candidate-profile-count {
  margin: 0 0 8px;
  color: #9ca3af;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

.candidate-profile-hero h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  text-transform: none;
}

.candidate-profile-role {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

.candidate-profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candidate-profile-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.candidate-profile-sections {
  padding: 16px 18px;
  background: #ffffff;
  overflow: auto;
}

.candidate-profile-section {
  display: block;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.candidate-profile-section summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.candidate-profile-section summary::-webkit-details-marker {
  display: none;
}

.candidate-profile-section summary::after {
  content: "›";
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
}

.candidate-profile-section[open] summary::after {
  transform: rotate(90deg);
}

.candidate-profile-section:nth-child(even) summary,
.candidate-profile-section.is-dark summary {
  background: #3a3a3a;
  color: #ffffff;
}

.candidate-profile-section.is-black summary {
  background: #000000;
  color: #ffffff;
}

.candidate-profile-section.is-medium summary {
  background: #b6b6b6;
  color: #111111;
}

.candidate-profile-section.is-light summary,
.candidate-profile-section.is-lightest summary,
.candidate-profile-section.is-white summary {
  background: #ffffff;
  color: #111111;
  border: 1px solid #d9d9d9;
}

.candidate-profile-section.is-lighter summary {
  background: #d1d1d1;
  color: #111111;
}

.candidate-profile-section.is-pq summary {
  background: #838383;
  color: #ffffff;
}

.candidate-profile-section.is-interview summary {
  background: #aeaeae;
  color: #111111;
}

.candidate-profile-section.is-client summary {
  background: #c9c9c9;
  color: #111111;
}

.candidate-profile-section.is-reference summary {
  background: #e5e5e5;
  color: #111111;
  border: 1px solid #d9d9d9;
}

.candidate-profile-section.is-onboard summary {
  background: #ffffff;
  color: #111111;
  border: 1px solid #d9d9d9;
}

.candidate-profile-section-body {
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  color: #111111;
}

.candidate-profile-section-body p,
.candidate-profile-section-body a {
  margin: 0 0 8px;
  color: #111111;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
}

.candidate-profile-section-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.candidate-profile-empty,
.candidate-record-empty {
  padding: 18px 20px;
  color: #6b7280;
  font-family: var(--font-body);
}

.candidate-profile-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #d9d9d9;
  background: #fafafa;
}

.profile-nav-btn {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
}

.profile-nav-btn.is-dark {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.profile-nav-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* Footer */

.portal-footer {
  grid-column: 2 / -1;
  margin: 18px 20px 24px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4f4f4);
  color: #1f1f1f;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.portal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.portal-footer strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Responsive */

@media (max-width: 1180px) {
  .candidate-record-workspace {
    grid-template-columns: 1fr;
  }

  .candidate-profile-panel {
    min-height: auto;
  }
}

@media (max-width: 1150px) {
  .portal-dashboard-app {
    grid-template-columns: 1fr;
  }

  .brand-banner {
    height: auto;
    min-height: 260px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .brand-objective-mark,
  .brand-title-block,
  .brand-client-logo-wrap {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
  }

  .objective-logo-white {
    max-width: 260px;
    object-position: center;
  }

  .brand-title-block {
    min-width: 0;
  }

  .brand-title-block .brand-kicker {
    white-space: normal;
    font-size: 36px;
  }

  .portal-sidebar {
    position: relative;
    height: auto;
  }

  .portal-footer {
    grid-column: 1 / -1;
    margin: 18px 16px 24px;
  }

  .stage-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portal-dashboard-app {
    padding: 8px;
  }

  .dashboard-header {
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .stage-tile-grid {
    grid-template-columns: 1fr;
  }

  .candidate-record-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .candidate-record-status,
  .candidate-record-open {
    justify-self: start;
  }

  .candidate-profile-actions {
    grid-template-columns: 1fr;
  }
}


/* FINAL_STAGE_TILE_SOURCE_SIZE_LOCK_2026_06_23
   Revert stage tiles to the compact source-like dimensions.
*/
.stage-tile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.stage-tile {
  min-height: 98px !important;
  border-radius: 10px !important;
}

.stage-tile-main {
  min-height: 68px !important;
  padding: 10px 14px 8px !important;
}

.stage-tile-main span {
  font-size: 12px !important;
  line-height: 1.1 !important;
}

.stage-tile-main strong {
  font-size: 28px !important;
  line-height: 1 !important;
}

.stage-chip-list {
  min-height: 34px !important;
  padding: 8px 14px 9px !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.stage-chip {
  min-height: 20px !important;
  padding: 4px 8px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}

.stage-chip span,
.stage-chip strong {
  font-size: 10px !important;
  line-height: 1 !important;
}

.stage-tile[data-stage-key="application"] .stage-chip-list,
.stage-tile[data-stage-key="onboard"] .stage-chip-list {
  min-height: 44px !important;
}

/* Ensure profile accordions use the source details/summary design, not helper buttons. */
.candidate-profile-section-header,
.candidate-profile-section-caret {
  display: none !important;
}

.candidate-profile-section > summary {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
}

/* APPLICATION_STAGE_TAB_LABEL_PARITY_2026_06_23 */
.candidate-record-status.is-passed {
  background: #dff7e8;
  color: #008a3d;
  border-color: #a9e7bd;
}

.candidate-record-status.is-pending {
  background: #eeeeee;
  color: #111111;
  border-color: #cfcfcf;
}

/* CANDIDATE_PROFILE_EMBEDDED_RESOURCE_PREVIEW_2026_06_24 */
.candidate-profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin-bottom: 14px;
}

.candidate-profile-field {
  min-width: 0;
}

.candidate-profile-field span {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.candidate-profile-field strong {
  display: block;
  color: #111111;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.candidate-profile-resource-card {
  margin-top: 14px;
  border-radius: 10px;
  background: #8f8f8f;
  color: #ffffff;
  overflow: hidden;
}

.candidate-profile-resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
}

.candidate-profile-resource-header > strong {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 13px;
  line-height: 1.1;
}

.candidate-profile-resource-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.candidate-profile-resource-toggle,
.candidate-profile-resource-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  color: #ffffff !important;
  font-family: var(--font-title);
  font-size: 10px !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
}

.candidate-profile-resource-toggle:hover,
.candidate-profile-resource-open:hover {
  background: #111111;
}

.candidate-profile-resource-frame-wrap {
  padding: 0 12px 12px;
  background: #8f8f8f;
}

.candidate-profile-resource-frame {
  display: block;
  width: 100%;
  height: min(620px, 70vh);
  border: 0;
  border-radius: 8px;
  background: #ffffff;
}

@media (max-width: 760px) {
  .candidate-profile-field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .candidate-profile-resource-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .candidate-profile-resource-actions {
    width: 100%;
  }

  .candidate-profile-resource-toggle,
  .candidate-profile-resource-open {
    flex: 1 1 0;
  }
}

/* DEV_PORTAL_COLLAPSIBLE_REFERENCE_RAIL_2026_06_25 */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.portal-dashboard-app.portal-sidebar-is-collapsed {
  grid-template-columns: 56px minmax(0, 1fr);
}

.portal-sidebar {
  position: sticky;
  top: 8px;
  min-height: calc(100vh - 32px);
}

.portal-sidebar-content {
  display: block;
}

.portal-sidebar-toggle {
  position: absolute;
  top: 18px;
  right: -12px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 1px solid #4a4a4a;
  border-radius: 7px;
  background: #1b1b1b;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.portal-sidebar-toggle:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.portal-sidebar-icon-rail {
  display: none;
}

.portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar {
  width: 44px;
  min-width: 44px;
  overflow: visible;
  padding: 12px 7px;
  scrollbar-width: none;
}

.portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar-content {
  display: none;
}

.portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar-toggle {
  top: 18px;
  right: -12px;
}

.portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar-icon-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding-top: 44px;
}

.portal-sidebar-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #555555;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.portal-sidebar-icon-link:hover {
  background: #303030;
  border-color: #ffffff;
  transform: translateX(1px);
}

.portal-sidebar-icon-link img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.portal-sidebar-icon-link.is-disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 1150px) {
  .portal-dashboard-app.portal-sidebar-is-collapsed {
    grid-template-columns: 1fr;
  }

  .portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar {
    width: auto;
    min-width: 0;
    min-height: auto;
  }

  .portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar-content {
    display: block;
  }

  .portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar-icon-rail,
  .portal-sidebar-toggle {
    display: none;
  }
}


/* CLIENT_FACING_CLEAN_URLS_SIDEBAR_POLISH_2026_06_26 */
.portal-dashboard-page .portal-sidebar:not(.reference-sidebar) {
  height: auto;
  max-height: none;
  overflow: visible;
  scrollbar-width: none;
}
.portal-dashboard-page .portal-sidebar:not(.reference-sidebar)::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
.portal-dashboard-page .portal-sidebar-toggle,
.portal-dashboard-page.portal-dashboard-page .portal-dashboard-app.portal-sidebar-is-collapsed .portal-sidebar-toggle {
  top: 20px;
  right: -10px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}
.portal-dashboard-page .portal-sidebar-content {
  overflow: visible;
}


/* OBJECTIVE_PORTAL_PRESENCE_UI_2026_06_26 */
.portal-presence,
.reference-presence,
.report-presence,
.pipeline-presence,
.home-presence {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.portal-presence.is-visible,
.reference-presence.is-visible,
.report-presence.is-visible,
.pipeline-presence.is-visible,
.home-presence.is-visible { display: inline-flex; }
.presence-label {
  color: #666;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.presence-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: #111;
  color: #fff;
  font-family: var(--font-title, "Oswald", Impact, sans-serif);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  cursor: default;
}
.presence-chip.is-external {
  background: #fff;
  color: #111;
  border-color: rgba(0,0,0,.28);
}
.reference-panel-header .reference-presence,
.toolbar-actions .report-presence { margin-right: 4px; }
@media (max-width: 800px) {
  .presence-label { display: none; }
  .presence-chip { min-width: 26px; height: 26px; font-size: 11px; }
}

/* CLIENT_REPORT_CARD_RESTORE_2026_06_26 */
.candidate-profile-report-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
}

.candidate-profile-report-title {
  margin: 0 0 6px;
  color: #111111;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.candidate-profile-report-copy {
  margin: 0 0 12px !important;
  color: #667085 !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.candidate-profile-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.candidate-profile-report-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #111111;
  border-radius: 8px;
  background: #111111;
  color: #ffffff !important;
  font-family: var(--font-title) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.candidate-profile-report-button.secondary {
  background: #ffffff;
  color: #111111 !important;
  border-color: #cfcfcf;
}

.candidate-profile-report-button:hover {
  background: #ffffff;
  color: #111111 !important;
}

.candidate-profile-report-button.secondary:hover {
  background: #111111;
  color: #ffffff !important;
  border-color: #111111;
}
