:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #d8dee6;
  --brand: #e30613;
  --accent: #005eb8;
  --accent-warm: #f7b500;
  --assistant: #eef6ff;
  --user: #fff4f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

body.app-shell-active,
body.app-shell-active .app-topbar,
body.app-shell-active main {
  pointer-events: auto;
}

body.app-shell-active .app-topbar {
  z-index: 2147483646 !important;
}

body.app-shell-active > main {
  position: relative;
  z-index: 2147483645;
  isolation: isolate;
}

body.app-shell-active::before,
body.app-shell-active::after,
body.app-shell-active .talent-home-shell::before,
body.app-shell-active .talent-home-shell::after {
  display: none !important;
  content: none !important;
  pointer-events: none !important;
}

body.app-shell-active dialog::backdrop {
  display: none !important;
  background: transparent !important;
  pointer-events: none !important;
}

button,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: stretch;
  padding: 20px;
}

.chat {
  width: min(920px, 100%);
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(31, 41, 51, 0.1);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.status {
  min-width: 88px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
  font-size: 14px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  overflow-y: auto;
}

.message {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: 780px;
}

.message.user {
  align-self: end;
}

.message p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--assistant);
}

.message.user p {
  background: var(--user);
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.message.user .avatar {
  background: var(--brand);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #ffffff;
}

textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
}

button {
  min-width: 96px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

@media (max-width: 720px) {
  .page {
    padding: 0;
  }

  .chat {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .header,
  .composer,
  .messages {
    padding-left: 16px;
    padding-right: 16px;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  button {
    min-height: 44px;
  }
}

/* Product home / core navigation page */
.talent-home-body {
  --home-black: #172033;
  --home-red: #e30613;
  --home-red-dark: #ba0010;
  --home-blue: #005eb8;
  --home-yellow: #f7b500;
  --home-gray-900: #2c2c2c;
  --home-gray-700: #545454;
  --home-gray-500: #7a7a7a;
  --home-gray-200: #e5e7eb;
  --home-gray-100: #f3f4f6;
  --home-white: #ffffff;
  min-height: 100vh;
  overflow: hidden;
  background: var(--home-gray-100);
  color: var(--home-black);
}

.talent-home-body a {
  color: inherit;
  text-decoration: none;
}

.talent-home-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 3px solid var(--home-red);
  background: linear-gradient(90deg, #ffffff 0 290px, var(--home-black) 290px 100%);
  color: var(--home-white);
}

.talent-home-brand {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid #d9dde5;
  background: #ffffff;
}

.talent-home-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 176px;
}

.talent-home-cp {
  position: relative;
  color: var(--home-blue);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.talent-home-cp::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 4px;
  bottom: -7px;
  height: 10px;
  border-bottom: 4px solid var(--home-yellow);
  border-radius: 0 0 50% 50%;
  transform: rotate(6deg);
}

.talent-home-divider {
  width: 1px;
  height: 28px;
  background: #9ca3af;
}

.talent-home-makro {
  color: var(--home-red);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.3px;
  text-shadow:
    1px 0 #ffffff,
    -1px 0 #ffffff,
    0 1px #ffffff,
    0 -1px #ffffff,
    0 0 1px #ffffff;
}

.talent-home-brand strong {
  color: var(--home-black);
  font-size: 15px;
  letter-spacing: -0.2px;
}

.talent-home-header-title {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
  color: #b8b8b8;
  font-size: 12px;
}

.talent-home-header-title strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-home-badge {
  margin-right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--home-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.talent-home-shell {
  height: 100vh;
  padding-top: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.talent-home-body[data-no-app-shell="true"] {
  overflow: hidden;
}

.talent-home-body[data-no-app-shell="true"] .talent-home-shell {
  height: 100vh;
}

body.talent-home-body.app-shell-active {
  padding-top: 0 !important;
  overflow: hidden;
}

body.talent-home-body .app-topbar {
  display: none !important;
  pointer-events: none !important;
}

.talent-home-sidebar {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--home-gray-200);
  background: var(--home-white);
  padding: 14px 0;
}

.talent-home-sidebar-section {
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--home-gray-200);
}

.talent-home-sidebar-section:last-child {
  border-bottom: 0;
}

.talent-home-sidebar-section p {
  margin: 0 18px 8px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.talent-home-sidebar-section a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 18px;
  border-left: 3px solid transparent;
  color: var(--home-gray-700);
  font-size: 13px;
  font-weight: 650;
}

.talent-home-sidebar-section a:hover {
  background: var(--home-gray-100);
  color: var(--home-black);
}

.talent-home-sidebar-section a.active {
  border-left-color: var(--home-red);
  background: #fff5f4;
  color: var(--home-red);
}

.talent-home-main {
  min-width: 0;
  overflow-y: auto;
}

.talent-home-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--home-gray-200);
  background: var(--home-white);
}

.talent-home-page-header h1 {
  margin: 2px 0 6px;
  color: var(--home-black);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
}

.talent-home-page-header p:last-child {
  max-width: 820px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

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

.talent-home-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--home-gray-200);
  border-radius: 6px;
  background: #ffffff;
  color: var(--home-black);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.talent-home-button.primary {
  border-color: var(--home-red);
  background: var(--home-red);
  color: #ffffff;
}

.talent-home-button:hover {
  background: var(--home-gray-100);
}

.talent-home-button.primary:hover {
  background: var(--home-red-dark);
}

.talent-home-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 32px 8px;
}

.talent-home-kpis article,
.talent-home-card,
.talent-home-flow {
  border: 1px solid var(--home-gray-200);
  border-radius: 6px;
  background: var(--home-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.talent-home-kpis article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.talent-home-kpis span,
.talent-home-card small {
  color: var(--home-gray-500);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.talent-home-kpis strong {
  color: var(--home-black);
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.talent-home-kpis p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.talent-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 32px;
}

.talent-home-card {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  padding: 18px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.talent-home-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.12);
}

.talent-home-card.featured {
  border-top: 3px solid var(--home-red);
}

.talent-home-card-mark {
  width: 38px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  background: #eef6ff;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 850;
}

.talent-home-card strong {
  color: var(--home-black);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.talent-home-card p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.talent-home-flow {
  margin: 0 32px 32px;
  overflow: hidden;
}

.talent-home-flow-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--home-gray-200);
}

.talent-home-flow-title h2 {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: 0;
}

.talent-home-flow-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.talent-home-flow-row article {
  min-height: 148px;
  padding: 18px;
  border-right: 1px solid var(--home-gray-200);
}

.talent-home-flow-row article:last-child {
  border-right: 0;
}

.talent-home-flow-row span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--home-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.talent-home-flow-row strong {
  display: block;
  color: var(--home-black);
  font-size: 14px;
  line-height: 1.25;
}

.talent-home-flow-row p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .talent-home-kpis,
  .talent-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .talent-home-flow-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .talent-home-flow-row article:nth-child(2) {
    border-right: 0;
  }

  .talent-home-flow-row article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--home-gray-200);
  }
}

@media (max-width: 760px) {
  .talent-home-body {
    overflow: auto;
  }

  .talent-home-header {
    position: static;
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  .talent-home-brand {
    border-right: 0;
  }

  .talent-home-header-title {
    padding: 0 18px;
    flex-basis: 100%;
  }

  .talent-home-badge {
    margin-left: 18px;
  }

  .talent-home-shell {
    height: auto;
    padding-top: 0;
    grid-template-columns: 1fr;
  }

  .talent-home-sidebar {
    display: none;
  }

  .talent-home-page-header,
  .talent-home-flow-title {
    display: grid;
  }

  .talent-home-page-header,
  .talent-home-kpis,
  .talent-home-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .talent-home-kpis,
  .talent-home-grid,
  .talent-home-flow-row {
    grid-template-columns: 1fr;
  }

  .talent-home-flow {
    margin: 0 16px 24px;
  }

  .talent-home-flow-row article,
  .talent-home-flow-row article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--home-gray-200);
  }

  .talent-home-flow-row article:last-child {
    border-bottom: 0;
  }
}

.login-body,
.users-body {
  --home-black: #172033;
  --home-red: #e30613;
  --home-blue: #005eb8;
  --home-yellow: #f7b500;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(0, 94, 184, 0.08), rgba(227, 6, 19, 0.07)),
    #f4f6f8;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(31, 41, 51, 0.14);
}

.login-brand {
  display: grid;
  gap: 14px;
}

.login-logo-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
}

.login-brand h1 {
  font-size: 26px;
}

.login-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-version {
  justify-self: start;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfe0f8;
  border-radius: 999px;
  background: #eef5ff;
  color: #1b5ea8;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.login-form,
.users-form {
  display: grid;
  gap: 14px;
}

.login-form label,
.users-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-form input,
.users-form input,
.users-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.login-form input:focus,
.users-form input:focus,
.users-form select:focus {
  outline: 3px solid rgba(0, 94, 184, 0.16);
  border-color: var(--accent);
}

.login-form .login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.login-form .login-remember input {
  min-height: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.login-form button,
.users-form button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 850;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.users-page {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.users-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.users-header h1 {
  font-size: 26px;
}

.users-header p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
}

.users-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
}

.users-card {
  margin: 0;
}

.users-table {
  display: grid;
  gap: 10px;
}

.user-row-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.user-row-card div {
  display: grid;
  gap: 4px;
}

.user-row-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-row-card strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.users-checkbox {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  flex-direction: row;
  gap: 8px !important;
}

.users-checkbox input {
  min-height: 0;
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .users-header,
  .users-grid,
  .user-row-card {
    grid-template-columns: 1fr;
  }

  .users-header {
    display: grid;
  }
}

/* Shared authenticated app chrome */
body.app-shell-active {
  --home-black: #172033;
  --home-red: #e30613;
  --home-blue: #005eb8;
  --home-yellow: #f7b500;
  padding-top: 64px;
}

.app-topbar {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto 0;
  height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 3px solid var(--brand);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

.app-topbar-logo {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-right: 1px solid #e5e7eb;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.app-topbar-logo .talent-home-logo {
  min-width: 176px;
}

.app-topbar-logo strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.app-topbar-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 0 4px;
}

.app-topbar-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.app-topbar-nav a:hover,
.app-topbar-nav a.active {
  border-color: #bfdbfe;
  background: #eef6ff;
  color: var(--accent);
}

.app-topbar-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 16px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.app-topbar-user span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar-user strong {
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff4f4;
  color: var(--brand);
  font-size: 10px;
  text-transform: uppercase;
}

.app-topbar-user button {
  min-width: 0;
  min-height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.app-shell-active .reference-hero > .action-row,
.app-shell-active .cv-top-nav,
.app-shell-active .users-header > .action-row {
  display: none;
}

.app-shell-active.talent-home-body {
  overflow: hidden;
}

.app-shell-active .talent-home-shell {
  height: calc(100vh - 64px);
  padding-top: 0;
}

.app-shell-active .workbench {
  min-height: calc(100vh - 64px);
}

.app-shell-active .job-sidebar {
  top: 64px;
  height: calc(100vh - 64px);
}

.app-shell-active.cv-console-body {
  padding: 80px 16px 16px;
}

.app-shell-active .cv-console {
  height: calc(100vh - 96px);
}

@media (max-width: 1080px) {
  .app-topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 64px;
    padding: 8px 0;
  }

  .app-topbar-logo {
    height: auto;
    min-height: 44px;
  }

  .app-topbar-nav {
    grid-column: 1 / -1;
    order: 3;
    padding: 0 12px;
  }

  body.app-shell-active {
    padding-top: 110px;
  }

  .app-shell-active .talent-home-shell,
  .app-shell-active .workbench {
    min-height: calc(100vh - 110px);
  }

  .app-shell-active .job-sidebar {
    top: 110px;
    height: calc(100vh - 110px);
  }
}

.structure-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.workbench {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: var(--bg);
}

.job-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.job-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding: 12px;
}

.job-button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
}

.job-button:hover,
.job-button.active {
  border-color: var(--brand);
  background: #fff4f4;
}

.job-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.job-button strong {
  font-size: 14px;
  line-height: 1.3;
}

.job-main {
  min-width: 0;
  padding: 24px;
}

.structure-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
  font-weight: 700;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.process-button {
  min-height: 40px;
}

.process-button:disabled {
  cursor: wait;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card,
.structure-section,
.object-grid article,
.descriptor-card,
.raw-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary-card {
  padding: 14px;
}

.summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.structure-section {
  margin-top: 18px;
  padding: 18px;
}

.structure-section h2 {
  margin: 0 0 14px;
  font-size: 19px;
}

.raw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.raw-block {
  padding: 14px;
}

.raw-block h3,
.object-grid h3,
.descriptor-card h3 {
  margin: 0;
  font-size: 15px;
}

.raw-block p {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.object-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.object-grid article {
  padding: 14px;
  overflow: hidden;
}

pre {
  margin: 12px 0 0;
  overflow-x: auto;
  border-radius: 8px;
  padding: 12px;
  background: #111827;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
}

.descriptor-list {
  display: grid;
  gap: 12px;
}

.section-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pipeline-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.pipeline-step h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.descriptor-card {
  padding: 14px;
}

.descriptor-header {
  display: grid;
  gap: 10px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.descriptor-context {
  margin: 12px 0;
  color: var(--muted);
}

.concept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.concept-list li {
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--assistant);
  color: var(--ink);
  font-size: 13px;
}

.concept-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.concept-summary-card,
.requirement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.concept-summary-card {
  padding: 12px;
}

.concept-summary-card h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.concept-summary-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.requirement-list {
  display: grid;
  gap: 12px;
}

.requirement-card {
  padding: 14px;
}

.requirement-header {
  display: grid;
  gap: 10px;
}

.requirement-header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.mapping-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 1.4fr;
  gap: 10px;
  margin-top: 12px;
}

.mapping-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}

.mapping-block span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mapping-block strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.mapping-reason {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-form {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.review-form select,
.review-form input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.review-form button {
  min-height: 40px;
  white-space: nowrap;
}

/* Refined Master JD workbench layout */
.workbench {
  grid-template-columns: minmax(310px, 340px) minmax(0, 1fr);
}

.job-sidebar {
  border-right-color: #e5e7eb;
  box-shadow: 8px 0 22px rgba(31, 41, 51, 0.04);
}

.job-sidebar .sidebar-header {
  padding: 18px 18px 14px;
}

.job-sidebar .sidebar-header h1 {
  font-size: 22px;
}

.job-sidebar .job-list {
  gap: 7px;
  padding: 12px 12px 18px;
}

.job-sidebar .job-button {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 48px;
  border-color: #e5e7eb;
  padding: 9px 10px;
  background: #ffffff;
}

.job-sidebar .job-button span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef6ff;
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
}

.job-sidebar .job-button strong {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.job-sidebar .job-button .job-task-badge {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #0067b1;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.job-sidebar .job-button .job-task-badge.queued,
.job-sidebar .job-button .job-task-badge.running {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.job-sidebar .job-button .job-task-badge.failed {
  border-color: #fecaca;
  background: #fff1f1;
  color: #b91c1c;
}

.job-sidebar .job-button:hover,
.job-sidebar .job-button.active {
  border-color: #fecaca;
  background: #fff7f7;
  box-shadow: inset 3px 0 0 var(--brand);
}

.job-main {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 22px 24px 42px;
}

.structure-header {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.05);
}

.structure-header h1 {
  font-size: 24px;
}

.structure-header .process-button,
.review-form button {
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.raw-block {
  min-height: 120px;
}

.requirement-card {
  background: #ffffff;
}

.mapping-row {
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 0.5fr) minmax(170px, 0.8fr) minmax(220px, 1.2fr);
}

@media (max-width: 1180px) {
  .workbench {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .raw-grid,
  .mapping-row,
  .review-form {
    grid-template-columns: 1fr;
  }
}

.dictionary-page {
  width: min(1440px, 100%);
}

.dictionary-page .summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dictionary-page .summary-card {
  position: relative;
  overflow: hidden;
  border-color: #dde6e3;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.06);
}

.dictionary-page .summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.dictionary-page .summary-card span {
  color: #64706f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dictionary-page .summary-card strong {
  font-size: 24px;
}

.dictionary-hero {
  align-items: center;
  border: 0;
  border-left: 6px solid var(--brand);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 249, 0.94)),
    #ffffff;
  box-shadow: 0 16px 44px rgba(31, 41, 51, 0.08);
}

.dictionary-hero h1 {
  font-size: 32px;
}

.dictionary-list {
  display: grid;
  gap: 10px;
}

.dictionary-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dictionary-browser,
.dictionary-detail {
  border: 1px solid #dde6e3;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(31, 41, 51, 0.08);
}

.dictionary-browser {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
}

.dictionary-browser-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3ebe8;
  background: #ffffff;
}

.dictionary-browser-title span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.dictionary-browser-title strong {
  border: 1px solid #d6e6e4;
  border-radius: 8px;
  padding: 5px 8px;
  background: #eef8f7;
  color: #005f72;
  font-size: 12px;
}

.dictionary-tools {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3ebe8;
  background: #f9fbfb;
}

.dictionary-tools input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.dictionary-tools input:focus {
  outline: 3px solid rgba(0, 117, 143, 0.18);
  border-color: var(--accent);
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.tab-button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d4ddda;
  background: #ffffff;
  color: #44514f;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.tab-button:hover,
.tab-button.active {
  border-color: var(--accent);
  background: #eaf7f7;
  color: #064e5f;
}

.dictionary-list.interactive {
  max-height: 100%;
  overflow-y: auto;
  padding: 14px 16px 18px;
  background: #f4f7f6;
}

.dictionary-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dictionary-card {
  border: 1px solid #dce5e2;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.button-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 0;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 3px 10px rgba(31, 41, 51, 0.04);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.button-card:hover,
.button-card.active {
  border-color: var(--brand);
  background: #fff8f5;
  transform: translateY(-1px);
}

.button-card.active {
  box-shadow: inset 4px 0 0 var(--brand), 0 10px 22px rgba(199, 70, 52, 0.1);
}

.dictionary-card h3 {
  margin: 0;
  color: #18242b;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dictionary-card .mapping-reason {
  margin-top: 0;
  color: #687574;
  font-size: 13px;
}

.dictionary-card .meta span,
.dictionary-detail .meta span {
  border-color: #d6e6e4;
  background: #eef8f7;
  color: #075c6c;
}

.dictionary-detail {
  min-height: 650px;
  padding: 0;
  overflow: hidden;
}

.empty-detail {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 24px;
  text-align: center;
}

.empty-detail strong {
  color: var(--ink);
  font-size: 22px;
}

.empty-detail p {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-heading {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid #e3ebe8;
  background:
    linear-gradient(90deg, rgba(238, 248, 247, 0.98), rgba(255, 255, 255, 1)),
    #ffffff;
}

.detail-heading h2 {
  margin: 0;
  color: #18242b;
  font-size: 28px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.detail-section {
  margin: 0;
  padding: 18px 24px;
  border-top: 0;
  border-bottom: 1px solid #e8eeee;
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h3 {
  margin: 0 0 12px;
  color: #263331;
  font-size: 15px;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li,
.job-chip {
  border: 1px solid #d6e6e4;
  border-radius: 8px;
  padding: 7px 9px;
  background: #f7fbfb;
  color: var(--ink);
  font-size: 13px;
}

.job-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-chip {
  text-decoration: none;
  font-weight: 800;
}

.job-chip:hover {
  border-color: var(--accent);
  background: #eaf7f7;
  color: #064e5f;
}

.example-list {
  display: grid;
  gap: 10px;
}

.example-item {
  border: 1px solid #dce5e2;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfd;
}

.example-item strong {
  display: block;
  margin-bottom: 6px;
  color: #475452;
  font-size: 13px;
}

.example-item p {
  color: var(--ink);
}

@media (max-width: 820px) {
  .workbench {
    grid-template-columns: 1fr;
  }

  .job-sidebar {
    position: static;
    height: auto;
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .job-main {
    padding: 16px;
  }

  .structure-page {
    padding: 16px;
  }

  .structure-header {
    display: grid;
  }

  .summary-grid,
  .raw-grid,
  .object-grid,
  .pipeline-steps,
  .cv-pipeline,
  .concept-summary,
  .cv-profile-grid,
  .cv-skills,
  .dictionary-list.compact,
  .mapping-row,
  .review-form {
    grid-template-columns: 1fr;
  }

  .dictionary-workspace {
    grid-template-columns: 1fr;
  }

  .dictionary-browser {
    position: static;
    max-height: none;
  }

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

.reference-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.reference-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.reference-hero h1 {
  margin-bottom: 10px;
}

.reference-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.reference-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

.reference-section h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.flow-grid,
.definition-grid,
.db-grid {
  display: grid;
  gap: 12px;
}

.flow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.definition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.flow-grid article,
.definition-grid article,
.db-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.flow-grid strong,
.definition-grid h3,
.db-grid h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
}

.flow-grid span,
.db-grid span,
.definition-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.db-grid p {
  margin: 0 0 8px;
  line-height: 1.5;
}

code {
  border-radius: 5px;
  padding: 2px 5px;
  background: #eef2f7;
  color: #0f172a;
  font-size: 0.92em;
}

.reference-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  line-height: 1.5;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.cv-workbench {
  grid-template-columns: 340px minmax(0, 1fr);
}

.cv-workbench .job-main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 22px 28px 42px;
}

.cv-workbench .structure-header {
  position: sticky;
  top: 0;
  z-index: 4;
  align-items: stretch;
  margin: -2px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(245, 247, 250, 0.96);
  backdrop-filter: blur(10px);
}

.cv-workbench .structure-header h1 {
  margin-bottom: 0;
  max-width: 760px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.cv-header-actions {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 360px;
}

.cv-nav-row,
.cv-action-row {
  justify-content: flex-end;
}

.cv-nav-row .nav-link {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.cv-action-row .process-button {
  min-height: 38px;
}

.cv-sidebar .sidebar-header {
  padding: 18px;
}

.sidebar-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cv-sidebar-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfd;
}

.cv-sidebar-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cv-sidebar-tools input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  text-transform: none;
}

.cv-list-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cv-workbench .job-list {
  gap: 7px;
  padding: 10px 12px 16px;
}

.cv-file-button {
  gap: 8px;
  border-color: #e3ebe9;
  padding: 10px 11px;
  background: #ffffff;
}

.cv-file-button:hover,
.cv-file-button.active {
  border-color: #007f95;
  background: #f1fbfd;
}

.cv-file-button.onet-ready,
.cv-file-button.ocr-extracted {
  border-left: 5px solid #0067b1;
}

.cv-file-button.not-processed {
  border-left: 5px solid #8fa0ac;
}

.cv-file-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cv-status-badge,
.cv-size {
  font-size: 11px;
  line-height: 1;
}

.cv-status-badge {
  border: 1px solid #dbe4e2;
  border-radius: 999px;
  padding: 4px 7px;
  background: #f8fbfa;
  color: #475452;
}

.cv-file-button.onet-ready .cv-status-badge,
.cv-file-button.ocr-extracted .cv-status-badge {
  border-color: #b9d9f5;
  color: #00579a;
  background: #eef7ff;
}

.cv-file-button strong {
  font-size: 13px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.cv-file-name {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cv-sidebar-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #ffffff;
  font-size: 13px;
}

.cv-workbench .summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cv-workbench .structure-section {
  margin-top: 14px;
  padding: 16px;
}

.cv-pipeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cv-profile-grid,
.cv-skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cv-profile-grid .raw-block:last-child {
  grid-column: 1 / -1;
}

.cv-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cv-review-card {
  min-width: 0;
  border: 1px solid #dce5e2;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.cv-card-header {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.cv-card-header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cv-review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cv-list-block {
  margin-top: 12px;
}

.cv-list-block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
}

@media (max-width: 1320px) {
  .cv-workbench {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .cv-workbench .structure-header {
    display: grid;
  }

  .cv-header-actions {
    min-width: 0;
  }

  .cv-nav-row,
  .cv-action-row {
    justify-content: flex-start;
  }

  .cv-workbench .summary-grid,
  .cv-pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cv-profile-grid,
  .cv-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-card-list {
    grid-template-columns: 1fr;
  }
}

/* CV extraction console: Vercel-style product shell */
.cv-console-body {
  background: #f6f7f8;
}

.cv-console {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  color: #111827;
  background: #f6f7f8;
}

.cv-queue-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
}

.cv-queue-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid #f0f1f3;
}

.cv-queue-header h1 {
  font-size: 23px;
  letter-spacing: 0;
}

.cv-queue-header p:last-child {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.cv-console .kicker {
  color: #c74634;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.cv-console .cv-sidebar-tools {
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid #f0f1f3;
  background: #ffffff;
}

.cv-console .cv-sidebar-tools input {
  min-height: 40px;
  border-color: #dfe3e8;
  background: #fafafa;
}

.cv-console .cv-sidebar-tools input:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
  border-color: #111827;
  background: #ffffff;
}

.cv-storage-panel {
  display: grid;
  gap: 10px;
}

.cv-storage-panel p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.cv-storage-panel form {
  display: grid;
  gap: 8px;
}

.cv-storage-panel input[type="file"] {
  min-height: auto;
  padding: 9px;
  font-size: 12px;
}

.cv-storage-panel button,
.danger-ghost-button {
  min-height: 38px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 0 12px;
  color: #111827;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.cv-storage-panel form button {
  color: #ffffff;
  border-color: #0067b1;
  background: #0067b1;
}

.danger-ghost-button {
  color: #c74634;
  border-color: #f1c9c2;
}

.cv-storage-panel button:disabled,
.danger-ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cv-list-count {
  color: #6b7280;
  font-size: 12px;
}

.cv-list-scroll {
  min-height: 0;
  overflow: hidden;
}

.cv-list-scroll .job-list {
  height: 100%;
  gap: 8px;
  overflow-y: auto;
  padding: 12px 14px 18px;
}

.cv-list-group-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 8px 4px 5px;
  color: #4b5563;
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cv-list-group-heading strong {
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #00579a;
  background: #eef7ff;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.cv-console .cv-file-button {
  position: relative;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-left-width: 1px;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: none;
}

.cv-console .cv-file-button::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #d1d5db;
}

.cv-console .cv-file-button.onet-ready::before {
  background: #0067b1;
}

.cv-console .cv-file-button.ocr-extracted::before {
  background: #6ba7d6;
}

.cv-console .cv-file-button.running::before {
  background: #d97706;
}

.cv-console .cv-file-button.failed::before {
  background: #c2410c;
}

.cv-console .cv-file-button:hover,
.cv-console .cv-file-button.active {
  border-color: #111827;
  background: #fafafa;
}

.cv-console .cv-file-button strong {
  color: #111827;
  font-size: 13px;
  font-weight: 750;
}

.cv-console .cv-file-primary-name {
  display: block;
  min-width: 0;
  color: #111827;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
}

.cv-console .cv-file-name-slide {
  display: inline-block;
  max-width: none;
  padding-right: 24px;
  color: inherit;
  font: inherit;
  transform: translateX(0);
  will-change: transform;
}

.cv-console .cv-file-name-slide.is-sliding {
  animation: cvFilenameSlide 4.8s ease-in-out infinite alternate;
}

@keyframes cvFilenameSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--filename-shift, 0));
  }
}

.cv-console .cv-file-stage {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cv-console .cv-file-name {
  color: #6b7280;
  font-size: 11px;
}

.cv-console .cv-status-badge {
  border-color: #e5e7eb;
  color: #4b5563;
  background: #f9fafb;
}

.cv-console .cv-file-button.onet-ready .cv-status-badge,
.cv-console .cv-file-button.ocr-extracted .cv-status-badge {
  border-color: #0067b1;
  color: #0067b1;
  background: #eef7ff;
}

.cv-review-shell {
  min-width: 0;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 22px 28px 40px;
}

.cv-console-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.cv-brand-block h1 {
  font-size: 22px;
}

.cv-top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cv-top-nav .nav-link {
  min-height: 34px;
  border-color: #e5e7eb;
  padding: 0 11px;
  color: #374151;
  background: #ffffff;
  font-size: 12px;
}

.cv-top-nav .nav-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cv-command-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.cv-command-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cv-command-card .section-note {
  max-width: 860px;
}

.cv-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cv-command-actions .process-button {
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 750;
}

.cv-command-actions .process-button:first-child {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

.cv-command-actions .process-button:last-child {
  color: var(--accent);
  background: #ffffff;
}

.cv-command-actions .process-button:disabled {
  border-color: #d1d5db;
  color: #9ca3af;
  background: #f9fafb;
}

.cv-source-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--accent);
  background: #ffffff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.cv-source-link:hover {
  background: #eef6ff;
}

.cv-source-link.disabled {
  pointer-events: none;
  border-color: #d1d5db;
  color: #9ca3af;
  background: #f9fafb;
}

.cv-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.cv-summary-grid .summary-card {
  border-color: #e5e7eb;
  padding: 14px 15px;
  background: #ffffff;
}

.cv-summary-grid .summary-card span {
  color: #6b7280;
  font-size: 12px;
}

.cv-summary-grid .summary-card strong {
  color: #111827;
  font-size: 17px;
}

.cv-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.cv-primary-column,
.cv-secondary-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cv-secondary-column {
  position: sticky;
  top: 16px;
}

.cv-section-card {
  margin: 0;
  border-color: #e5e7eb;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.035);
}

.cv-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.cv-section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.cv-console .raw-block,
.cv-console .cv-review-card,
.cv-console .object-grid article {
  border-color: #e5e7eb;
  background: #ffffff;
}

.cv-console .raw-block {
  padding: 13px;
}

.cv-console .raw-block h3,
.cv-console .object-grid h3 {
  color: #111827;
  font-size: 13px;
}

.cv-console .raw-block p {
  color: #374151;
  font-size: 13px;
}

.cv-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cv-profile-grid .raw-block:last-child {
  grid-column: 1 / -1;
}

.cv-card-list {
  display: grid;
  gap: 10px;
}

.cv-review-card {
  padding: 14px;
}

.cv-card-header h3 {
  font-size: 14px;
}

.cv-review-card p {
  color: #4b5563;
  font-size: 13px;
}

.cv-console .meta span {
  border-color: #e5e7eb;
  border-radius: 999px;
  padding: 4px 7px;
  color: #4b5563;
  background: #f9fafb;
  font-size: 11px;
  font-weight: 700;
}

.cv-console .concept-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.cv-console .object-grid,
.cv-skills {
  grid-template-columns: 1fr;
  gap: 10px;
}

.cv-pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
}

.cv-pipeline .pipeline-step {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-color: #e5e7eb;
  padding: 10px;
  background: #fafafa;
}

.cv-pipeline .pipeline-step h3 {
  margin: 0;
  color: #111827;
  font-size: 12px;
}

.cv-pipeline .pipeline-step p {
  color: #6b7280;
  font-size: 12px;
}

.cv-console pre {
  max-height: 420px;
  border: 1px solid #1f2937;
  background: #08090a;
}

@media (max-width: 1280px) {
  .cv-console {
    grid-template-columns: 380px minmax(0, 1fr);
  }

  .cv-review-shell {
    padding: 18px;
  }

  .cv-review-grid,
  .cv-command-card {
    grid-template-columns: 1fr;
  }

  .cv-secondary-column {
    position: static;
  }

  .cv-command-actions,
  .cv-top-nav {
    justify-content: flex-start;
  }

  .cv-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .cv-console {
    grid-template-columns: 1fr;
  }

  .cv-queue-panel {
    position: static;
    height: auto;
    max-height: 520px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .cv-console-topbar {
    display: grid;
  }

  .cv-summary-grid,
  .cv-profile-grid {
    grid-template-columns: 1fr;
  }
}

/* CV console final layout fixes */
.cv-console-body {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(17, 24, 39, 0.08), transparent 34rem),
    #f6f7f8;
}

.cv-console {
  width: min(1560px, 100%);
  height: calc(100vh - 32px);
  min-height: 720px;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.10);
}

.cv-queue-panel {
  position: static;
  height: 100%;
  min-height: 0;
}

.cv-review-shell {
  height: 100%;
  overflow-y: auto;
  background: #f6f7f8;
}

.cv-console .cv-file-button {
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  gap: 0;
  min-height: 46px;
  padding: 12px 12px 12px 14px;
}

.cv-console .cv-file-top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cv-console .cv-status-badge,
.cv-console .cv-size {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cv-console .cv-file-button strong,
.cv-console .cv-file-primary-name,
.cv-console .cv-file-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-console .cv-file-name {
  color: #6b7280;
}

@media (max-width: 1280px) {
  .cv-console-body {
    padding: 12px;
  }

  .cv-console {
    width: 100%;
    height: calc(100vh - 24px);
    grid-template-columns: 380px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .cv-console-body {
    display: block;
    overflow: auto;
    padding: 0;
  }

  .cv-console {
    width: 100%;
    height: auto;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .cv-review-shell {
    height: auto;
    overflow: visible;
  }
}

.big-note {
  margin: 0;
  border-left: 4px solid var(--brand);
  padding: 12px 14px;
  background: #fff4ee;
  line-height: 1.65;
}

.onet-page {
  width: min(1320px, calc(100% - 48px));
  padding: 24px 0 34px;
}

.onet-page .reference-hero {
  border-left: 5px solid var(--accent);
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.06);
}

.start-here {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: center;
  border-color: #cfe3e0;
  background: linear-gradient(90deg, #ffffff, #f5fbfa);
}

.start-here h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.start-here p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.simple-example {
  display: grid;
  gap: 8px;
  border: 1px solid #d6e6e4;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.simple-example span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.simple-example strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.simple-example strong:last-child {
  color: #075c6c;
  font-size: 20px;
}

.layer-stack,
.dictionary-map,
.example-map {
  display: grid;
  gap: 12px;
}

.layer-stack {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.layer-stack article,
.dictionary-map article,
.example-map article {
  border: 1px solid #dce5e2;
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.layer-stack article {
  background: #ffffff;
}

.layer-stack span {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 5px 8px;
  background: #eef8f7;
  color: #075c6c;
  font-size: 12px;
  font-weight: 800;
}

.layer-stack h3,
.dictionary-map h3,
.example-map h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.layer-stack p,
.dictionary-map p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dictionary-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.dictionary-map strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.example-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.raw-example {
  min-height: 74px;
  margin: 0 0 12px;
  border-left: 4px solid var(--brand);
  padding: 10px 12px;
  background: #fff8f5;
  color: var(--ink);
  line-height: 1.55;
}

.example-map ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.evidence-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.evidence-scale article {
  border: 1px solid #dce5e2;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.evidence-scale span {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff4ee;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.evidence-scale h3,
.score-example h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.evidence-scale p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.evidence-scale strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.45;
}

.score-example {
  margin-top: 14px;
}

.onet-page .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.onet-page .summary-card strong {
  font-size: 20px;
  line-height: 1.35;
}

@media (max-width: 920px) {
  .reference-hero {
    display: grid;
  }

  .flow-grid,
  .definition-grid,
  .db-grid,
  .start-here,
  .layer-stack,
  .dictionary-map,
  .example-map,
  .evidence-scale,
  .onet-page .summary-grid {
    grid-template-columns: 1fr;
  }

  .onet-page {
    width: min(100% - 24px, 760px);
  }
}

/* Dictionary readability overrides */
.reference-page.dictionary-page {
  width: min(1500px, calc(100% - 48px));
  padding: 20px 0 28px;
}

.reference-page.dictionary-page .dictionary-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #d8dee6;
  border-left: 5px solid var(--brand);
  padding: 24px 28px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.06);
}

.reference-page.dictionary-page .dictionary-hero h1 {
  font-size: 30px;
}

.reference-page.dictionary-page .dictionary-hero p {
  max-width: 920px;
  font-size: 16px;
}

.dictionary-page .summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dictionary-page .summary-card {
  padding: 14px 16px;
}

.dictionary-page .summary-card strong {
  font-size: 22px;
}

.dictionary-workspace {
  grid-template-columns: minmax(500px, 560px) minmax(0, 1fr);
  gap: 20px;
}

.dictionary-browser,
.dictionary-detail {
  border-color: #d8e2df;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
}

.dictionary-browser {
  min-height: 620px;
  max-height: calc(100vh - 270px);
}

.dictionary-detail {
  min-height: 620px;
  max-height: calc(100vh - 270px);
  overflow-y: auto;
  background: #f7faf9;
}

.dictionary-list.interactive {
  gap: 8px;
  padding: 10px;
}

.button-card.dictionary-card {
  appearance: none;
  display: grid;
  gap: 7px;
  min-height: auto;
  border: 1px solid #d8e2df;
  padding: 14px 16px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 500;
  line-height: normal;
  overflow: visible;
}

.button-card.dictionary-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #16232b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.button-card.dictionary-card .mapping-reason {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #697674;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.button-card.dictionary-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.button-card.dictionary-card .meta span,
.dictionary-detail .meta span {
  max-width: 100%;
  border-color: #d8e7e5;
  padding: 4px 7px;
  overflow: hidden;
  background: #eef8f7;
  color: #075c6c;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-card.dictionary-card:hover,
.button-card.dictionary-card.active {
  border-color: var(--brand);
  background: #fffaf8;
}

.button-card.dictionary-card.active {
  box-shadow: inset 4px 0 0 var(--brand), 0 8px 18px rgba(199, 70, 52, 0.08);
}

.detail-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 28px;
  background: #ffffff;
}

.detail-heading h2 {
  font-size: 26px;
}

.detail-section {
  margin: 16px 18px;
  border: 1px solid #dfe8e5;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.detail-section + .detail-section {
  margin-top: 0;
}

.detail-section h3 {
  font-size: 16px;
}

.detail-count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.job-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-height: 260px;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.job-chip {
  display: block;
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-list {
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.detail-list li {
  max-width: 100%;
}

.example-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 1180px) {
  .dictionary-workspace {
    grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 920px) {
  .reference-page.dictionary-page {
    width: min(100% - 24px, 760px);
  }

  .reference-page.dictionary-page .dictionary-hero {
    grid-template-columns: 1fr;
  }

  .dictionary-page .summary-grid,
  .dictionary-workspace {
    grid-template-columns: 1fr;
  }

  .dictionary-browser,
  .dictionary-detail {
    min-height: auto;
    max-height: none;
  }
}

/* Core Concepts V2 registry page */
.core-v2-page .summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.core-v2-hero {
  border-left-color: var(--accent);
}

.core-v2-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.core-v2-profile-text {
  max-height: 240px;
  margin: 0;
  overflow: auto;
  border: 1px solid #d8e7e5;
  border-radius: 8px;
  padding: 12px;
  background: #f7fbfb;
  color: #263331;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.core-v2-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #dfe8e5;
  border-radius: 8px;
  background: #ffffff;
}

.core-v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.core-v2-table th,
.core-v2-table td {
  border-bottom: 1px solid #e8eeee;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.core-v2-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef8f7;
  color: #075c6c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.core-v2-table td {
  color: #31413f;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.core-v2-review-panel {
  display: grid;
  gap: 12px;
}

.core-v2-review-status {
  border: 1px solid #d8e7e5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #eef8f7;
  color: #075c6c;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.core-v2-form-field {
  display: grid;
  gap: 6px;
}

.core-v2-form-field span {
  color: #44514f;
  font-size: 12px;
  font-weight: 800;
}

.core-v2-form-field input,
.core-v2-form-field select,
.core-v2-form-field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.core-v2-form-field textarea {
  min-height: 74px;
  resize: vertical;
}

.core-v2-review-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.core-v2-review-actions button {
  min-width: 0;
  min-height: 40px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.2;
}

.core-v2-review-message {
  min-height: 20px;
  color: #075c6c;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .core-v2-page .summary-grid,
  .core-v2-workspace {
    grid-template-columns: 1fr;
  }

  .core-v2-review-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* POC Vector V2 results dashboard */
.poc-v2-page .summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.poc-v2-hero {
  border-left-color: #0f766e;
}

.poc-v2-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poc-v2-browser .dictionary-list {
  max-height: calc(100vh - 380px);
}

.poc-v2-card .flow-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poc-v2-detail-heading {
  border-bottom: 1px solid #e3ebe8;
}

.poc-v2-section > p {
  margin: 0;
  color: #40514f;
  line-height: 1.6;
}

.poc-v2-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.poc-v2-metric-grid .summary-card {
  padding: 12px 14px;
}

.poc-v2-metric-grid .summary-card strong,
.poc-v2-page .summary-card strong {
  font-size: 21px;
}

.poc-v2-table-wrap {
  max-height: 360px;
}

@media (max-width: 920px) {
  .poc-v2-page .summary-grid,
  .poc-v2-workspace,
  .poc-v2-metric-grid {
    grid-template-columns: 1fr;
  }
}

/* POC Vector V3 control room */
.poc-v3-page .summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.poc-v3-hero {
  border-left-color: #0369a1;
}

.poc-v3-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.poc-v3-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.poc-v3-principles article {
  border: 1px solid #d8e7e5;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfb;
}

.poc-v3-principles span,
.poc-v3-section h3 {
  color: #4d6462;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-principles strong {
  display: block;
  margin: 6px 0;
  color: #073b4c;
  font-size: 17px;
}

.poc-v3-principles p,
.poc-v3-section > p {
  margin: 0;
  color: #40514f;
  line-height: 1.6;
}

.poc-v3-browser .dictionary-list {
  max-height: calc(100vh - 424px);
}

.poc-v3-card .flow-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poc-v3-detail-heading {
  border-bottom: 1px solid #e3ebe8;
}

.poc-v3-code-list {
  display: grid;
  gap: 8px;
}

.poc-v3-code-list code {
  display: block;
  border: 1px solid #dce8e6;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fafc;
  color: #12343b;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .poc-v3-page .summary-grid,
  .poc-v3-workspace,
  .poc-v3-principles {
    grid-template-columns: 1fr;
  }
}

/* POC Vector V3 design map */
.poc-v3-design-page {
  width: min(1740px, calc(100% - 40px));
  padding: 22px 0 34px;
  margin: 0 auto;
}

.poc-v3-design-hero {
  border-left-color: #0369a1;
}

.poc-v3-design-contracts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.poc-v3-design-contracts article,
.poc-v3-design-panel,
.poc-v3-design-toolbar,
.poc-v3-design-lane {
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #ffffff;
}

.poc-v3-design-contracts article {
  padding: 14px;
  border-left-width: 5px;
}

.poc-v3-design-contracts article.llm { border-left-color: #7c3aed; }
.poc-v3-design-contracts article.vector { border-left-color: #0f766e; }
.poc-v3-design-contracts article.rule { border-left-color: #0369a1; }
.poc-v3-design-contracts article.human { border-left-color: #b7791f; }

.poc-v3-design-contracts span,
.poc-v3-design-toolbar span,
.poc-v3-design-lane h2,
.poc-v3-design-panel h2,
.poc-v3-design-step header b {
  color: #4d6462;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-design-contracts strong {
  display: block;
  margin: 6px 0;
  color: #102a43;
  font-size: 17px;
}

.poc-v3-design-contracts p,
.poc-v3-design-panel li,
.poc-v3-design-step p,
.poc-v3-design-step footer em {
  color: #40514f;
  line-height: 1.55;
}

.poc-v3-design-contracts p {
  margin: 0;
}

.poc-v3-design-toolbar {
  margin-bottom: 16px;
  padding: 12px 14px;
}

.poc-v3-design-toolbar label {
  display: grid;
  grid-template-columns: auto minmax(220px, 340px);
  align-items: center;
  gap: 12px;
}

.poc-v3-design-toolbar select {
  width: 100%;
  border: 1px solid #c9d7e3;
  border-radius: 8px;
  padding: 10px 12px;
  color: #102a43;
  background: #ffffff;
  font-weight: 800;
}

.poc-v3-design-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.poc-v3-design-lane {
  overflow: hidden;
}

.poc-v3-design-lane.merged {
  grid-column: 1 / -1;
}

.poc-v3-design-lane h2 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #e3ebe8;
  background: #f8fafc;
}

.poc-v3-design-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.poc-v3-design-step {
  min-height: 230px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  position: relative;
}

.poc-v3-design-step::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #9fb3c8;
}

.poc-v3-design-step:last-child::after {
  display: none;
}

.poc-v3-design-step.source { border-top: 4px solid #64748b; }
.poc-v3-design-step.llm { border-top: 4px solid #7c3aed; }
.poc-v3-design-step.vector { border-top: 4px solid #0f766e; }
.poc-v3-design-step.rule { border-top: 4px solid #0369a1; }
.poc-v3-design-step.human { border-top: 4px solid #b7791f; }

.poc-v3-design-step.dimmed {
  opacity: 0.38;
}

.poc-v3-design-step header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.poc-v3-design-step header span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef6ff;
  color: #005eb8;
  font-size: 13px;
  font-weight: 900;
}

.poc-v3-design-step h3 {
  margin: 0;
  color: #102a43;
  font-size: 18px;
  line-height: 1.25;
}

.poc-v3-design-step p {
  margin: 0;
  font-size: 14px;
}

.poc-v3-design-step footer {
  display: grid;
  gap: 6px;
  border-top: 1px solid #eef2f7;
  padding-top: 10px;
}

.poc-v3-design-step footer strong {
  color: #102a43;
  font-size: 13px;
}

.poc-v3-design-step footer em {
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.poc-v3-design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.poc-v3-design-panel {
  padding: 16px;
}

.poc-v3-design-panel h2 {
  margin: 0 0 12px;
}

.poc-v3-design-panel ul {
  margin: 0;
  padding-left: 18px;
}

.poc-v3-design-panel li + li {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .poc-v3-design-contracts,
  .poc-v3-design-flow,
  .poc-v3-design-grid {
    grid-template-columns: 1fr;
  }

  .poc-v3-design-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poc-v3-design-step::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .poc-v3-design-page {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .poc-v3-design-toolbar label,
  .poc-v3-design-steps {
    grid-template-columns: 1fr;
  }
}

/* POC Vector V3 fact audit page */
.poc-v3-fact-page {
  width: min(1780px, calc(100% - 40px));
  padding: 22px 0 34px;
  margin: 0 auto;
}

.poc-v3-fact-hero {
  border-left-color: #0f766e;
}

.poc-v3-fact-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.poc-v3-fact-summary .summary-card {
  min-width: 0;
}

.poc-v3-fact-summary .summary-card p,
.poc-v3-fact-summary .summary-card strong {
  overflow-wrap: anywhere;
}

.poc-v3-fact-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(280px, 2fr) minmax(180px, 0.8fr);
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.poc-v3-fact-toolbar label {
  display: grid;
  gap: 6px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.poc-v3-fact-toolbar input,
.poc-v3-fact-toolbar select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  text-transform: none;
}

.poc-v3-fact-grid {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.poc-v3-fact-panel,
.poc-v3-fact-detail {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
  overflow: hidden;
}

.poc-v3-fact-panel {
  position: sticky;
  top: 74px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px;
  background: #f8fafc;
}

.panel-heading span,
.poc-v3-fact-detail-head span,
.poc-v3-fact-section h2 {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-heading strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.poc-v3-fact-candidates {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 288px);
  overflow: auto;
  padding: 10px;
  background: #f6f8f8;
}

.poc-v3-fact-candidate {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  border: 1px solid #dce5e2;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.poc-v3-fact-candidate.pass {
  border-left-color: #14804a;
}

.poc-v3-fact-candidate.review {
  border-left-color: #b7791f;
}

.poc-v3-fact-candidate:hover,
.poc-v3-fact-candidate.active {
  border-color: #0f766e;
  border-left-color: #0f766e;
  background: #f0fdfa;
}

.poc-v3-fact-candidate strong,
.poc-v3-fact-candidate span,
.poc-v3-fact-candidate small {
  overflow-wrap: anywhere;
}

.poc-v3-fact-candidate span,
.poc-v3-fact-candidate small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.poc-v3-fact-detail {
  min-height: 720px;
  background: #f7faf9;
}

.poc-v3-fact-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid #dce8e6;
  padding: 18px;
  background: #ffffff;
}

.poc-v3-fact-detail-head h2 {
  margin: 4px 0;
  font-size: 24px;
}

.poc-v3-fact-detail-head p {
  margin: 0;
  color: var(--muted);
}

.poc-v3-fact-detail-head > strong {
  border: 1px solid #d8e2df;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f8fafc;
}

.poc-v3-fact-detail-head > strong.pass {
  border-color: #9ad7b5;
  background: #eefbf3;
  color: #11683d;
}

.poc-v3-fact-detail-head > strong.review {
  border-color: #f0cf8e;
  background: #fff8e8;
  color: #8a5a12;
}

.poc-v3-fact-section {
  padding: 16px 18px;
}

.poc-v3-fact-section + .poc-v3-fact-section {
  border-top: 1px solid #dce8e6;
}

.poc-v3-fact-section h2 {
  margin: 0 0 12px;
}

.poc-v3-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.poc-v3-check {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.poc-v3-check.pass {
  border-color: #b8e1c8;
  background: #f4fcf7;
}

.poc-v3-check.review {
  border-color: #f1d49a;
  background: #fff8e8;
}

.poc-v3-check span {
  color: #4a5568;
  font-size: 11px;
  font-weight: 900;
}

.poc-v3-check strong,
.poc-v3-check b {
  display: block;
  margin-top: 4px;
}

.poc-v3-check b {
  color: #0f766e;
  font-size: 22px;
}

.poc-v3-check p {
  margin: 6px 0 0;
  color: #4a5568;
  font-size: 12px;
  line-height: 1.4;
}

.poc-v3-bars {
  display: grid;
  gap: 8px;
}

.poc-v3-bar {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(120px, 1fr) 64px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.poc-v3-bar span,
.poc-v3-bar b {
  overflow-wrap: anywhere;
}

.poc-v3-bar i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e var(--w), #e2e8f0 var(--w));
}

.poc-v3-fact-table {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
}

.poc-v3-fact-row {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.poc-v3-fact-row header {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.poc-v3-fact-row header span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.poc-v3-fact-row p {
  margin: 8px 0;
  color: #263238;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.poc-v3-fact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.poc-v3-fact-meta span {
  border: 1px solid #d7e5e2;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f8fafc;
  color: #40514f;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .poc-v3-fact-summary,
  .poc-v3-fact-toolbar,
  .poc-v3-fact-grid,
  .poc-v3-check-grid {
    grid-template-columns: 1fr;
  }

  .poc-v3-fact-panel {
    position: static;
  }

  .poc-v3-fact-row header,
  .poc-v3-bar {
    grid-template-columns: 1fr;
  }
}

/* POC Vector V3 sprint review page */
.poc-v3-review-page {
  width: min(1760px, calc(100% - 40px));
  padding: 22px 0 36px;
  margin: 0 auto;
}

.poc-v3-review-hero {
  border-left-color: #075dbd;
}

.poc-v3-review-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.poc-v3-review-summary .summary-card {
  min-width: 0;
}

.poc-v3-review-summary .summary-card strong,
.poc-v3-review-summary .summary-card p {
  overflow-wrap: anywhere;
}

.poc-v3-review-layout {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.poc-v3-review-panel,
.poc-v3-review-detail,
.poc-v3-review-section {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
  overflow: hidden;
}

.poc-v3-review-panel {
  position: sticky;
  top: 74px;
}

.poc-v3-review-panel .dictionary-tools {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
}

.poc-v3-review-panel input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.poc-v3-review-stage-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding: 10px;
  background: #f6f8f8;
}

.poc-v3-review-stage {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid #dce5e2;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.poc-v3-review-stage.pass {
  border-left-color: #14804a;
}

.poc-v3-review-stage.review {
  border-left-color: #b7791f;
}

.poc-v3-review-stage.blocked {
  border-left-color: #c53030;
}

.poc-v3-review-stage:hover,
.poc-v3-review-stage.active {
  border-color: #075dbd;
  border-left-color: #075dbd;
  background: #f0f7ff;
}

.poc-v3-review-stage span,
.poc-v3-review-stage small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.poc-v3-review-stage strong {
  overflow-wrap: anywhere;
}

.poc-v3-review-detail {
  min-height: 620px;
  background: #f8fbfd;
}

.poc-v3-review-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid #dce8e6;
  padding: 18px;
  background: #ffffff;
}

.poc-v3-review-detail-head h2 {
  margin: 4px 0;
  font-size: 24px;
}

.poc-v3-review-detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.poc-v3-review-detail-head > strong,
.poc-v3-review-check span {
  border: 1px solid #d8e2df;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.poc-v3-review-detail-head > strong.pass,
.poc-v3-review-check.pass span {
  border-color: #9ad7b5;
  background: #eefbf3;
  color: #11683d;
}

.poc-v3-review-detail-head > strong.review,
.poc-v3-review-check.review span {
  border-color: #f0cf8e;
  background: #fff8e8;
  color: #8a5a12;
}

.poc-v3-review-detail-head > strong.blocked,
.poc-v3-review-check.blocked span {
  border-color: #f4aaaa;
  background: #fff0f0;
  color: #a61b1b;
}

.poc-v3-review-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px;
}

.poc-v3-review-metrics article {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  min-width: 0;
}

.poc-v3-review-metrics span,
.poc-v3-review-subsection h3,
.section-heading-row .kicker {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.poc-v3-review-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.poc-v3-review-metrics p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.poc-v3-review-subsection {
  border-top: 1px solid #dce8e6;
  padding: 16px 18px;
}

.poc-v3-review-subsection h3 {
  margin: 0 0 8px;
}

.poc-v3-review-subsection ul {
  margin: 0;
  padding-left: 20px;
  color: #2d3748;
  line-height: 1.55;
}

.poc-v3-review-artifacts {
  display: grid;
  gap: 8px;
}

.poc-v3-review-artifacts code {
  display: block;
  border: 1px solid #d7e5e2;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #334155;
  overflow-wrap: anywhere;
}

.poc-v3-review-section {
  margin-top: 18px;
  padding: 16px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.section-heading-row h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.poc-v3-review-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.poc-v3-review-check {
  display: grid;
  gap: 8px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.poc-v3-review-check.pass {
  border-color: #b8e1c8;
  background: #f4fcf7;
}

.poc-v3-review-check.review {
  border-color: #f1d49a;
  background: #fff8e8;
}

.poc-v3-review-check.blocked {
  border-color: #f4aaaa;
  background: #fff5f5;
}

.poc-v3-review-check p {
  margin: 0;
  color: #4a5568;
  line-height: 1.45;
}

.poc-v3-review-actions {
  display: grid;
  gap: 8px;
}

.poc-v3-review-actions article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.poc-v3-review-actions span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #075dbd;
  color: #ffffff;
  font-weight: 900;
}

.poc-v3-review-actions p {
  margin: 3px 0 0;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .poc-v3-review-summary,
  .poc-v3-review-layout,
  .poc-v3-review-metrics,
  .poc-v3-review-checks {
    grid-template-columns: 1fr;
  }

  .poc-v3-review-panel {
    position: static;
  }
}

/* POC Vector V3 candidate evidence review */
.poc-v3-candidate-page {
  width: min(1840px, calc(100% - 32px));
  padding: 22px 0 36px;
  margin: 0 auto;
}

.poc-v3-candidate-hero {
  border-left-color: #0f766e;
}

.poc-v3-candidate-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.poc-v3-candidate-summary .summary-card {
  min-width: 0;
}

.poc-v3-candidate-summary .summary-card strong,
.poc-v3-candidate-summary .summary-card p {
  overflow-wrap: anywhere;
}

.poc-v3-candidate-contracts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.poc-v3-candidate-contract {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.poc-v3-candidate-contract.pass,
.poc-v3-proof-contract-row article.pass {
  border-color: #a7dec0;
  background: #f3fbf6;
}

.poc-v3-candidate-contract.review,
.poc-v3-proof-contract-row article.review {
  border-color: #f0d394;
  background: #fff9e8;
}

.poc-v3-candidate-contract.blocked,
.poc-v3-proof-contract-row article.blocked {
  border-color: #f0aaaa;
  background: #fff5f5;
}

.poc-v3-candidate-contract span,
.poc-v3-candidate-contract b {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-candidate-contract strong,
.poc-v3-candidate-contract p {
  overflow-wrap: anywhere;
}

.poc-v3-candidate-contract p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.poc-v3-candidate-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px) minmax(190px, 240px);
  gap: 12px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  background: #ffffff;
}

.poc-v3-candidate-toolbar label {
  display: grid;
  gap: 6px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-candidate-toolbar input,
.poc-v3-candidate-toolbar select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.poc-v31-runbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px auto minmax(220px, 1.2fr);
  gap: 12px;
  align-items: end;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  background: #ffffff;
}

.poc-v31-runbar label {
  display: grid;
  gap: 6px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v31-runbar select,
.poc-v31-runbar input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-transform: none;
}

.poc-v31-runbar button {
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.poc-v31-runbar button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.poc-v31-runbar span {
  align-self: center;
  color: var(--muted);
  line-height: 1.35;
}

.poc-v3-candidate-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(340px, 440px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.poc-v3-candidate-panel,
.poc-v3-proof-panel {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
  overflow: hidden;
}

.poc-v3-candidate-panel {
  position: sticky;
  top: 74px;
}

.poc-v3-candidate-list,
.poc-v3-requirement-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 310px);
  overflow: auto;
  padding: 10px;
  background: #f6f8f8;
}

.poc-v3-candidate-button,
.poc-v3-requirement-button {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid #dce5e2;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.poc-v3-candidate-button:hover,
.poc-v3-candidate-button.active,
.poc-v3-requirement-button:hover,
.poc-v3-requirement-button.active {
  border-color: #0f766e;
  border-left-color: #0f766e;
  background: #ecfdf8;
}

.poc-v3-candidate-button strong,
.poc-v3-requirement-button strong {
  overflow-wrap: anywhere;
}

.poc-v3-candidate-button span,
.poc-v3-candidate-button small,
.poc-v3-requirement-button span,
.poc-v3-requirement-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.poc-v3-requirement-button small.pass {
  color: #11683d;
}

.poc-v3-requirement-button small.review {
  color: #8a5a12;
}

.poc-v3-requirement-button small.blocked {
  color: #a61b1b;
}

.poc-v3-requirement-button.pass {
  border-left-color: #14804a;
}

.poc-v3-requirement-button.review {
  border-left-color: #b7791f;
}

.poc-v3-requirement-button.blocked {
  border-left-color: #c53030;
}

.poc-v3-requirement-button header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.poc-v3-requirement-button p {
  margin: 0;
  color: #263445;
  line-height: 1.35;
}

.poc-v3-proof-panel {
  min-height: 680px;
  background: #f8fbfd;
}

.poc-v3-proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid #dce8e6;
  padding: 18px;
  background: #ffffff;
}

.poc-v3-proof-head h2 {
  margin: 4px 0;
  font-size: 24px;
}

.poc-v3-proof-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.poc-v3-cv-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 11px;
  background: #eff6ff;
  color: #075dbd;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.poc-v3-cv-link:hover {
  border-color: #075dbd;
  background: #dbeafe;
}

.poc-v3-proof-head > strong,
.poc-v3-proof-contract-row span {
  border: 1px solid #d8e2df;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.poc-v3-proof-head > strong.pass,
.poc-v3-proof-contract-row article.pass span {
  border-color: #9ad7b5;
  background: #eefbf3;
  color: #11683d;
}

.poc-v3-proof-head > strong.review,
.poc-v3-proof-contract-row article.review span {
  border-color: #f0cf8e;
  background: #fff8e8;
  color: #8a5a12;
}

.poc-v3-proof-head > strong.blocked,
.poc-v3-proof-contract-row article.blocked span {
  border-color: #f4aaaa;
  background: #fff0f0;
  color: #a61b1b;
}

.poc-v3-proof-contract-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
}

.poc-v3-proof-contract-row article {
  display: grid;
  gap: 7px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

.poc-v3-proof-contract-row strong,
.poc-v3-proof-contract-row p {
  overflow-wrap: anywhere;
}

.poc-v3-proof-contract-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.poc-v3-proof-section {
  border-top: 1px solid #dce8e6;
  padding: 16px 18px;
}

.poc-v3-proof-section h3 {
  margin: 0 0 10px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-review-box {
  background: #ffffff;
}

.poc-v3-review-status-row,
.poc-v3-review-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.poc-v3-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.poc-v3-review-actions button,
.poc-v3-review-save-row button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 11px;
  background: #ffffff;
  color: #263445;
  font-size: 12px;
  font-weight: 900;
}

.poc-v3-review-actions button:hover,
.poc-v3-review-actions button.active,
.poc-v3-review-save-row button:hover {
  border-color: #0f766e;
  background: #ecfdf8;
  color: #0f766e;
}

.poc-v3-review-note {
  display: grid;
  gap: 6px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-review-note textarea {
  width: 100%;
  min-height: 82px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  text-transform: none;
}

.poc-v3-review-save-row {
  margin: 10px 0 0;
}

.poc-v3-review-save-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.poc-v3-proof-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.poc-v3-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid #d8e2df;
  border-radius: 999px;
  padding: 4px 9px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.poc-v3-chip.source {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #075dbd;
}

.poc-v3-chip.concept {
  border-color: #b8e1c8;
  background: #f0fdf4;
  color: #11683d;
}

.poc-v3-chip.pass {
  border-color: #b8e1c8;
  background: #f0fdf4;
  color: #11683d;
}

.poc-v3-chip.review {
  border-color: #f0cf8e;
  background: #fff8e8;
  color: #8a5a12;
}

.poc-v3-chip.blocked {
  border-color: #f4aaaa;
  background: #fff0f0;
  color: #a61b1b;
}

.poc-v3-muted {
  color: var(--muted);
  font-size: 12px;
}

.poc-v3-proof-facts {
  display: grid;
  gap: 10px;
}

.poc-v3-proof-facts article {
  display: grid;
  gap: 10px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.poc-v3-proof-facts header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.poc-v3-proof-facts header span,
.poc-v3-proof-facts small {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-proof-facts header strong,
.poc-v3-proof-facts p {
  overflow-wrap: anywhere;
}

.poc-v3-proof-facts p {
  margin: 0;
  line-height: 1.5;
}

.poc-v3-source-excerpt {
  display: grid;
  gap: 5px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
}

.poc-v3-source-excerpt-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.poc-v3-source-excerpt-head div {
  display: grid;
  gap: 2px;
}

.poc-v3-source-excerpt strong {
  color: #075dbd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-source-excerpt span {
  color: #536174;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.poc-v3-source-excerpt a {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #075dbd;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  text-decoration: none;
}

.poc-v3-source-excerpt p {
  color: #263445;
  font-size: 13px;
}

.poc-v3-source-excerpt.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.poc-v3-source-excerpt.muted strong,
.poc-v3-source-excerpt.muted span,
.poc-v3-source-excerpt.muted p {
  color: var(--muted);
}

.poc-v3-proof-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.poc-v3-proof-mini-grid article,
.poc-v3-rule-list div {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.poc-v3-proof-mini-grid span,
.poc-v3-rule-list span {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-proof-mini-grid strong,
.poc-v3-rule-list strong,
.poc-v3-rule-list p {
  display: block;
  overflow-wrap: anywhere;
}

.poc-v3-rule-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.poc-v3-rule-list p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 1280px) {
  .poc-v3-candidate-summary,
  .poc-v3-candidate-contracts,
  .poc-v31-runbar,
  .poc-v3-candidate-layout,
  .poc-v3-proof-mini-grid {
    grid-template-columns: 1fr;
  }

  .poc-v3-candidate-panel {
    position: static;
  }

  .poc-v3-candidate-list,
  .poc-v3-requirement-list {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .poc-v3-candidate-toolbar,
  .poc-v31-runbar,
  .poc-v3-proof-head,
  .poc-v3-proof-contract-row {
    grid-template-columns: 1fr;
  }
}

/* POC Vector V3 calibration page */
.poc-v3-calibration-page {
  width: min(1760px, calc(100% - 32px));
  padding: 22px 0 36px;
  margin: 0 auto;
}

.poc-v3-calibration-hero {
  border-left-color: #6b46c1;
}

.poc-v3-calibration-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.poc-v3-calibration-summary .summary-card {
  min-width: 0;
}

.poc-v3-calibration-summary .summary-card strong,
.poc-v3-calibration-summary .summary-card p {
  overflow-wrap: anywhere;
}

.poc-v3-calibration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 14px;
  margin-bottom: 14px;
}

.poc-v3-calibration-panel {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
}

.poc-v3-calibration-metrics,
.poc-v3-calibration-contracts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.poc-v3-calibration-contracts {
  grid-template-columns: 1fr;
}

.poc-v3-calibration-metrics article,
.poc-v3-calibration-contracts article,
.poc-v3-calibration-files article,
.poc-v3-calibration-actions article {
  display: grid;
  gap: 7px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
  min-width: 0;
}

.poc-v3-calibration-contracts article.pass {
  border-color: #a7dec0;
  background: #f3fbf6;
}

.poc-v3-calibration-contracts article.review {
  border-color: #f0d394;
  background: #fff9e8;
}

.poc-v3-calibration-contracts article.blocked {
  border-color: #f0aaaa;
  background: #fff5f5;
}

.poc-v3-calibration-metrics span,
.poc-v3-calibration-contracts span,
.poc-v3-calibration-files span {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-calibration-metrics strong,
.poc-v3-calibration-contracts strong,
.poc-v3-calibration-files code {
  overflow-wrap: anywhere;
}

.poc-v3-calibration-metrics p,
.poc-v3-calibration-contracts p,
.poc-v3-calibration-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.poc-v3-calibration-files,
.poc-v3-calibration-actions {
  display: grid;
  gap: 8px;
}

.poc-v3-calibration-files code {
  color: #334155;
  font-size: 12px;
}

.poc-v3-calibration-actions article {
  grid-template-columns: 34px minmax(0, 1fr);
}

.poc-v3-calibration-actions span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #6b46c1;
  color: #ffffff;
  font-weight: 900;
}

@media (max-width: 1280px) {
  .poc-v3-calibration-summary,
  .poc-v3-calibration-grid,
  .poc-v3-calibration-metrics {
    grid-template-columns: 1fr;
  }
}

/* POC Vector V3 rulebook page */
.poc-v3-rulebook-page {
  width: min(1760px, calc(100% - 32px));
  padding: 22px 0 36px;
  margin: 0 auto;
}

.poc-v3-rulebook-hero {
  border-left-color: #0f5f8f;
}

.poc-v3-rulebook-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(140px, 0.4fr) minmax(150px, 0.5fr) auto auto auto minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  background: #ffffff;
}

.poc-v3-rulebook-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.poc-v3-rulebook-toolbar label span,
.poc-v3-rulebook-editor label span {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-rulebook-toolbar select,
.poc-v3-rulebook-editor select,
.poc-v3-rulebook-editor input,
.poc-v3-rulebook-editor textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.poc-v3-rulebook-toolbar button,
.poc-v3-rulebook-editor-actions button {
  border: 1px solid #b8c6d6;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 900;
  cursor: pointer;
}

.poc-v3-rulebook-toolbar .primary-action,
.poc-v3-rulebook-editor-actions .primary-action {
  border-color: #0b65c6;
  background: #0b65c6;
  color: #ffffff;
}

.poc-v3-rulebook-toolbar .secondary-action {
  background: #ffffff;
  color: #0b65c6;
}

.poc-v3-rulebook-toolbar .danger-action {
  border-color: #d71920;
  background: #d71920;
  color: #ffffff;
}

.poc-v3-rulebook-toolbar output {
  min-height: 40px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.poc-v3-rulebook-toolbar output[data-kind="pass"] {
  border-color: #9ad5b2;
  background: #f0fbf4;
  color: #087f5b;
}

.poc-v3-rulebook-toolbar output[data-kind="error"] {
  border-color: #efaaa8;
  background: #fff4f3;
  color: #bd1f1f;
}

.poc-v3-rulebook-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.poc-v3-rulebook-summary .summary-card strong,
.poc-v3-rulebook-summary .summary-card p {
  overflow-wrap: anywhere;
}

.poc-v3-rulebook-contracts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.poc-v3-rulebook-contracts article {
  display: grid;
  gap: 7px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  min-width: 0;
}

.poc-v3-rulebook-contracts article.pass {
  border-color: #a7dec0;
  background: #f3fbf6;
}

.poc-v3-rulebook-contracts article.review {
  border-color: #f0d394;
  background: #fff9e8;
}

.poc-v3-rulebook-contracts article.blocked {
  border-color: #f0aaaa;
  background: #fff5f5;
}

.poc-v3-rulebook-contracts span,
.poc-v3-rulebook-contracts b {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-rulebook-contracts strong,
.poc-v3-rulebook-contracts p {
  overflow-wrap: anywhere;
}

.poc-v3-rulebook-contracts p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.poc-v3-rulebook-layout {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.poc-v3-rulebook-panel,
.poc-v3-rulebook-detail {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
  overflow: hidden;
}

.poc-v3-rulebook-panel {
  position: sticky;
  top: 74px;
}

.poc-v3-rulebook-panel .dictionary-tools {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
}

.poc-v3-rulebook-panel input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.poc-v3-rulebook-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 300px);
  overflow: auto;
  padding: 10px;
  background: #f6f8f8;
}

.poc-v3-rulebook-button {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid #dce5e2;
  border-left: 5px solid #7a8699;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.poc-v3-rulebook-button.hard {
  border-left-color: #0f766e;
}

.poc-v3-rulebook-button:hover,
.poc-v3-rulebook-button.active {
  border-color: #0f5f8f;
  border-left-color: #0f5f8f;
  background: #eef8fc;
}

.poc-v3-rulebook-button span,
.poc-v3-rulebook-button small,
.poc-v3-rulebook-section h3,
.poc-v3-rulebook-chip-group > span {
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v3-rulebook-button strong,
.poc-v3-rulebook-button p,
.poc-v3-rulebook-button small {
  overflow-wrap: anywhere;
}

.poc-v3-rulebook-button p {
  margin: 0;
  line-height: 1.35;
}

.poc-v3-rulebook-button em {
  width: fit-content;
  border: 1px solid #b9e1cf;
  border-radius: 999px;
  padding: 4px 8px;
  color: #087f5b;
  background: #f2fbf6;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.poc-v3-rulebook-detail {
  min-height: 680px;
  background: #f8fbfd;
}

.poc-v3-rulebook-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid #dce8e6;
  padding: 18px;
  background: #ffffff;
}

.poc-v3-rulebook-detail-head h2 {
  margin: 4px 0;
  font-size: 24px;
}

.poc-v3-rulebook-detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.poc-v3-rulebook-detail-head > strong {
  border: 1px solid #d8e2df;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.poc-v3-rulebook-section {
  border-top: 1px solid #dce8e6;
  padding: 16px 18px;
}

.poc-v3-rulebook-section h3 {
  margin: 0 0 10px;
}

.poc-v3-rulebook-chip-row,
.poc-v3-rulebook-chip-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.poc-v3-rulebook-chip-group {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.poc-v3-rulebook-group-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.poc-v3-rulebook-group-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.poc-v3-rulebook-section pre {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.poc-v3-rulebook-section > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.poc-v3-rulebook-editor {
  display: block;
}

.poc-v3-rulebook-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.3fr) minmax(180px, 0.4fr);
  gap: 10px;
  align-items: end;
}

.poc-v3-rulebook-form-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.poc-v3-rulebook-toggle {
  display: flex !important;
  gap: 8px;
  align-items: center;
  min-height: 42px;
}

.poc-v3-rulebook-toggle input {
  width: auto;
}

.poc-v3-rulebook-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.poc-v3-rulebook-check {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  min-width: 0;
}

.poc-v3-rulebook-check input {
  width: auto;
}

.poc-v3-rulebook-check span {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
  color: #33516f;
}

.poc-v3-rulebook-editor textarea {
  min-height: 170px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.poc-v3-rule-token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.poc-v3-rule-token-editor,
.poc-v3-rule-primary-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.poc-v3-rule-token-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.poc-v3-rule-token-head strong,
.poc-v3-rule-token-head span {
  overflow-wrap: anywhere;
}

.poc-v3-rule-token-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.poc-v3-rule-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 32px;
}

.poc-v3-rule-token-list em,
.muted-note {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.poc-v3-rule-token {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  border: 1px solid #b9e1cf;
  border-radius: 999px;
  padding: 5px 6px 5px 10px;
  background: #f2fbf6;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.poc-v3-rule-token.source {
  border-color: #b8d6ff;
  background: #eef6ff;
  color: #075eb5;
}

.poc-v3-rule-token span {
  overflow-wrap: anywhere;
}

.poc-v3-rule-token button {
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0;
  background: #ffffff;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.poc-v3-rule-token-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.poc-v3-rule-token-add input,
.poc-v3-rule-token-add select,
.poc-v3-rule-group-top input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.poc-v3-rule-token-add button,
.inline-rule-action,
.poc-v3-rule-group-top button {
  border: 1px solid #b8c6d6;
  border-radius: 8px;
  padding: 9px 11px;
  background: #ffffff;
  color: #0b65c6;
  font-weight: 900;
  cursor: pointer;
}

.poc-v3-rule-group-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.poc-v3-rule-group-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.poc-v3-rule-group-top label {
  display: grid;
  gap: 5px;
}

.poc-v3-rulebook-json-preview {
  border-top: 1px solid #dce8e6;
  padding: 0 18px 16px;
  background: #f8fbfd;
}

.poc-v3-rulebook-json-preview summary {
  width: fit-content;
  margin: 12px 0;
  color: #33516f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.poc-v3-rulebook-json-preview pre {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.poc-v3-rulebook-editor-actions {
  padding: 16px 18px;
  border-top: 1px solid #dce8e6;
  background: #ffffff;
}

@media (max-width: 1180px) {
  .poc-v3-rulebook-summary,
  .poc-v3-rulebook-contracts,
  .poc-v3-rulebook-layout,
  .poc-v3-rulebook-toolbar,
  .poc-v3-rulebook-form-grid,
  .poc-v3-rulebook-form-grid.compact,
  .poc-v3-rulebook-check-grid,
  .poc-v3-rule-token-grid,
  .poc-v3-rule-group-top {
    grid-template-columns: 1fr;
  }

  .poc-v3-rulebook-panel {
    position: static;
  }
}

/* POC Vector V2 candidate quick summary */
.poc-v2-graph-page {
  width: min(1800px, calc(100% - 36px));
  padding: 22px 0 34px;
}

.poc-v2-graph-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-left: 5px solid #0f766e;
}

.poc-v2-graph-page .summary-grid {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.poc-v2-graph-page .summary-card {
  padding: 11px 12px;
}

.poc-v2-graph-page .summary-card strong {
  font-size: 18px;
}

.poc-v2-graph-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #fff;
}

.poc-v2-graph-toolbar label {
  display: grid;
  gap: 5px;
  color: #526173;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.poc-v2-graph-toolbar select {
  min-width: 0;
  height: 40px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  font: inherit;
}

.poc-v2-graph-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.poc-v2-graph-side,
.poc-v2-graph-canvas-panel,
.poc-v2-graph-detail {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.06);
}

.poc-v2-graph-side,
.poc-v2-graph-detail {
  position: sticky;
  top: 16px;
}

.poc-v2-graph-candidate-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 340px);
  overflow: auto;
  padding: 10px;
  background: #f6f8f8;
}

.poc-v2-graph-candidate {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 11px;
  border: 1px solid #dce5e2;
  border-left: 5px solid #99b8b2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.poc-v2-graph-candidate:hover,
.poc-v2-graph-candidate.active {
  border-color: #0f766e;
  border-left-color: #0f766e;
  background: #f0fbf8;
}

.poc-v2-graph-candidate > span {
  color: #0f766e;
  font-size: 18px;
  font-weight: 950;
}

.poc-v2-graph-canvas-panel {
  min-width: 0;
  overflow: hidden;
}

.poc-v2-graph-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid #e3ebe8;
  background: #fbfdfc;
}

.poc-v2-graph-heading strong,
.poc-v2-graph-heading span {
  display: block;
}

.poc-v2-graph-heading span {
  margin-top: 4px;
  color: #607086;
  font-weight: 850;
}

.poc-v2-warning-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #6b5f18;
  font-size: 12px;
  line-height: 1.35;
}

.poc-v2-graph-canvas {
  min-height: 650px;
  overflow: auto;
  display: grid;
  grid-template-columns: 220px repeat(3, minmax(220px, 1fr));
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(#eef5f2 1px, transparent 1px),
    linear-gradient(90deg, #eef5f2 1px, transparent 1px),
    #f8fbfa;
  background-size: 22px 22px;
}

.poc-v2-graph-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.poc-v2-graph-column h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  color: #526173;
  font-size: 12px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(31, 41, 51, 0.06);
}

.poc-v2-graph-column.ready h3 {
  color: #17633d;
}

.poc-v2-graph-column.review h3 {
  color: #8a5a12;
}

.poc-v2-graph-column.no-concept h3 {
  color: #8f1f1f;
}

.poc-v2-graph-node,
.poc-v2-graph-requirement {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e5e0;
  border-left: 5px solid #0f766e;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.08);
}

.poc-v2-graph-node span,
.poc-v2-graph-requirement span {
  color: #607086;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.poc-v2-graph-node strong,
.poc-v2-graph-requirement strong {
  color: #1f2933;
  overflow-wrap: anywhere;
}

.poc-v2-graph-node.score {
  border-left-color: #0067b1;
}

.poc-v2-graph-node.job {
  border-left-color: #d52b1e;
}

.poc-v2-graph-requirement {
  text-align: left;
  cursor: pointer;
}

.poc-v2-graph-column.ready .poc-v2-graph-requirement {
  border-left-color: #14804a;
}

.poc-v2-graph-column.review .poc-v2-graph-requirement {
  border-left-color: #b7791f;
}

.poc-v2-graph-column.no-concept .poc-v2-graph-requirement {
  border-left-color: #9b2c2c;
}

.poc-v2-graph-requirement:hover {
  border-color: #0f766e;
  background: #f0fbf8;
}

.poc-v2-graph-detail {
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: #f7faf9;
}

@media (max-width: 1180px) {
  .poc-v2-graph-page .summary-grid,
  .poc-v2-graph-toolbar,
  .poc-v2-graph-layout {
    grid-template-columns: 1fr;
  }

  .poc-v2-graph-side,
  .poc-v2-graph-detail {
    position: static;
  }

  .poc-v2-graph-canvas {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}

.poc-v2-candidate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.poc-v2-candidate-left,
.poc-v2-candidate-right {
  min-width: 0;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.06);
}

.poc-v2-candidate-left {
  overflow: hidden;
}

.poc-v2-candidate-right {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 90px);
  overflow: auto;
}

.poc-v2-candidate-left .poc-v2-graph-candidate-list {
  max-height: 172px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poc-v2-candidate-left .poc-v2-graph-heading {
  border-top: 1px solid #e3ebe8;
}

.poc-v2-structure-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 560px;
  padding: 14px;
  overflow: auto;
  background: #f8fbfa;
}

.poc-v2-structure-section {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.poc-v2-structure-section h3 {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: #526173;
  font-size: 12px;
  text-transform: uppercase;
}

.poc-v2-requirement-row {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border: 1px solid #d7e5e0;
  border-left: 5px solid #99b8b2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.poc-v2-requirement-row.ready {
  border-left-color: #14804a;
}

.poc-v2-requirement-row.review {
  border-left-color: #b7791f;
}

.poc-v2-requirement-row.no-concept {
  border-left-color: #9b2c2c;
}

.poc-v2-requirement-row:hover,
.poc-v2-requirement-row.active {
  border-color: #0f766e;
  background: #f0fbf8;
}

.poc-v2-requirement-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.poc-v2-requirement-row p {
  margin: 0;
  color: #4b5b68;
  font-size: 12px;
  line-height: 1.45;
}

.poc-v2-profile-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid #e3ebe8;
  background: #fff;
}

.poc-v2-profile-heading strong,
.poc-v2-profile-heading span {
  display: block;
}

.poc-v2-profile-heading span {
  margin-top: 3px;
  color: #607086;
  font-size: 12px;
  font-weight: 850;
}

.poc-v2-profile-heading button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  font-weight: 850;
  cursor: pointer;
}

.poc-v2-profile-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f7faf9;
}

.poc-v2-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.poc-v2-profile-facts .summary-card {
  padding: 10px;
}

.poc-v2-profile-facts .summary-card strong {
  font-size: 16px;
}

.poc-v2-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.poc-v2-profile-section {
  display: grid;
  gap: 8px;
}

.poc-v2-profile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  color: #526173;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v2-profile-section-title span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f2ef;
}

.poc-v2-profile-item {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid #d8e2df;
  border-left: 5px solid #9bb8b1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.poc-v2-profile-item.highlight {
  border-color: #0f766e;
  border-left-color: #0f766e;
  background: #e9fbf6;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.poc-v2-profile-bullet-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.poc-v2-profile-bullet {
  padding: 8px 10px;
  border: 1px solid #e0e8e5;
  border-radius: 8px;
  background: #f8fbfa;
  color: #3f4f59;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.poc-v2-profile-bullet:hover,
.poc-v2-profile-bullet.highlight {
  border-color: #0f766e;
  background: #e9fbf6;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.poc-v2-profile-bullet.reverse-highlight {
  border-color: #0067b1;
  background: #eef7ff;
}

.poc-v2-profile-item.reverse-highlight {
  border-color: #0067b1;
  border-left-color: #0067b1;
  background: #eef7ff;
}

.poc-v2-profile-item h4,
.poc-v2-profile-item p {
  margin: 0;
}

.poc-v2-profile-item h4 {
  color: #1f2933;
  overflow-wrap: anywhere;
}

.poc-v2-profile-item > span {
  color: #607086;
  font-size: 12px;
  font-weight: 800;
}

.poc-v2-profile-item p {
  color: #4b5b68;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.poc-v2-explain-drawer {
  margin: 0 14px 14px;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.poc-v2-explain-drawer.collapsed {
  display: none;
}

@media (max-width: 1180px) {
  .poc-v2-candidate-layout,
  .poc-v2-structure-list,
  .poc-v2-candidate-left .poc-v2-graph-candidate-list {
    grid-template-columns: 1fr;
  }

  .poc-v2-candidate-right {
    position: static;
    max-height: none;
  }

  .poc-v2-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* CV to O*NET flow page */
.cv-flow-page {
  width: min(1500px, calc(100% - 48px));
  padding: 24px 0 34px;
}

.flow-control-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px minmax(260px, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.flow-control-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-control-bar select,
.flow-control-bar input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.cv-flow-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-explainer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.flow-explainer article,
.flow-list-panel,
.flow-detail-panel,
.mapping-path article,
.flow-source-box,
.flow-detail-block {
  border: 1px solid #dce5e2;
  border-radius: 8px;
  background: #ffffff;
}

.flow-explainer article {
  padding: 14px;
}

.flow-explainer span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #eef8f7;
  color: #075c6c;
  font-weight: 800;
}

.flow-explainer strong {
  display: block;
  margin-bottom: 6px;
}

.flow-explainer p,
.flow-row p,
.flow-source-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.flow-explainer p,
.flow-row p {
  font-size: 13px;
}

.cv-flow-workspace {
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.flow-list-panel,
.flow-detail-panel {
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
}

.flow-list-panel {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.flow-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3ebe8;
}

.flow-panel-heading span {
  border-radius: 8px;
  padding: 3px 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flow-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding: 10px;
  background: #f6f8f8;
}

.flow-row {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 0;
  border: 1px solid #dce5e2;
  border-left-width: 5px;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.flow-row.ready { border-left-color: #14804a; }
.flow-row.review { border-left-color: #b7791f; }
.flow-row.no-concept { border-left-color: #9b2c2c; }

.flow-row:hover,
.flow-row.active {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: #f2fbfb;
}

.flow-row strong {
  font-size: 14px;
}

.flow-row p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flow-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-pill {
  border: 1px solid #d8e7e5;
  border-radius: 8px;
  padding: 4px 7px;
  background: #eef8f7;
  color: #075c6c;
  font-size: 11px;
  font-weight: 800;
}

.flow-pill.ready {
  border-color: #bfe3cf;
  background: #eefbf4;
  color: #146c43;
}

.flow-pill.review {
  border-color: #f1d49a;
  background: #fff8e8;
  color: #8a5a12;
}

.flow-pill.no-concept {
  border-color: #f0b6b6;
  background: #fff1f1;
  color: #8f1f1f;
}

.flow-pill.muted {
  background: #f8fafc;
  color: var(--muted);
}

.flow-detail-panel {
  min-height: 700px;
  overflow: hidden;
  background: #f7faf9;
}

.flow-detail-header {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid #e3ebe8;
  padding: 20px 22px;
  background: #ffffff;
}

.flow-detail-header h2 {
  margin: 0;
  font-size: 24px;
}

.mapping-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}

.mapping-path article {
  position: relative;
  padding: 12px;
}

.mapping-path article:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -8px;
  top: 50%;
  color: var(--muted);
  font-weight: 800;
  transform: translateY(-50%);
}

.mapping-path span,
.flow-detail-block span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mapping-path strong,
.flow-detail-block strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.flow-source-box {
  margin: 0 16px 16px;
  padding: 14px;
}

.flow-source-box h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.flow-source-box p {
  line-height: 1.6;
}

.flow-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 16px 16px;
}

.flow-detail-block {
  padding: 12px;
}

@media (max-width: 920px) {
  .cv-flow-page {
    width: min(100% - 24px, 760px);
  }

  .flow-control-bar,
  .cv-flow-summary,
  .flow-explainer,
  .cv-flow-workspace,
  .mapping-path,
  .flow-detail-grid {
    grid-template-columns: 1fr;
  }

  .flow-list-panel {
    position: static;
    max-height: none;
  }
}

/* CV flow readability overrides */
.cv-flow-page {
  width: min(1760px, calc(100% - 56px));
}

.cv-flow-page .reference-hero {
  padding: 22px 26px;
}

.cv-flow-page .summary-grid {
  gap: 10px;
  margin-bottom: 14px;
}

.cv-flow-page .summary-card {
  padding: 12px 14px;
}

.flow-explainer {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
}

.flow-explainer article {
  padding: 12px 14px;
}

.flow-explainer span {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  font-size: 13px;
}

.cv-flow-workspace {
  grid-template-columns: minmax(520px, 620px) minmax(760px, 1fr);
  gap: 22px;
}

.flow-list-panel {
  max-height: calc(100vh - 180px);
}

.flow-list {
  gap: 10px;
  padding: 12px;
}

.flow-row {
  min-height: 104px;
  align-content: start;
  gap: 8px;
  padding: 14px 16px;
}

.flow-row strong {
  display: block;
  min-height: 21px;
  font-size: 15px;
  line-height: 1.35;
}

.flow-row p {
  min-height: 38px;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.flow-row-meta {
  align-items: center;
  min-height: 26px;
}

.flow-pill {
  max-width: 100%;
  line-height: 1.15;
  white-space: normal;
}

.flow-detail-panel {
  min-height: calc(100vh - 180px);
  overflow-y: auto;
}

.flow-detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 28px;
}

.flow-detail-header h2 {
  font-size: 28px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mapping-path {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 28px;
}

.mapping-path article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 0;
  padding: 14px 16px;
}

.mapping-path article:not(:last-child)::after {
  content: "";
  left: 34px;
  right: auto;
  top: calc(100% - 2px);
  width: 2px;
  height: 12px;
  background: #cfd9d6;
  transform: none;
}

.mapping-path span {
  margin-bottom: 0;
  color: #075c6c;
}

.mapping-path strong {
  font-size: 15px;
  line-height: 1.45;
}

.flow-source-box,
.flow-detail-grid {
  margin-left: 28px;
  margin-right: 28px;
}

.flow-source-box {
  padding: 18px;
}

.flow-source-box p {
  font-size: 16px;
}

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

@media (max-width: 1280px) {
  .cv-flow-workspace {
    grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.15fr);
  }

  .mapping-path article {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .cv-flow-page {
    width: min(100% - 24px, 760px);
  }

  .flow-explainer,
  .cv-flow-workspace,
  .mapping-path article,
  .flow-detail-grid {
    grid-template-columns: 1fr;
  }

  .flow-list-panel,
  .flow-detail-panel {
    max-height: none;
    min-height: auto;
    position: static;
  }
}

/* Matching score */
.matching-page {
  width: min(1760px, calc(100% - 56px));
}

.matching-hero {
  align-items: flex-start;
}

.matching-control-bar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto minmax(280px, 1.4fr);
  gap: 14px;
  align-items: end;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(13, 43, 55, 0.08);
}

.matching-control-bar label,
.matching-detail-header label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.matching-control-bar select,
.matching-detail-header select {
  min-height: 44px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
}

.matching-status {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  color: var(--muted);
  background: #f7faf9;
  font-size: 14px;
  line-height: 1.4;
}

.matching-summary {
  margin-bottom: 18px;
}

.matching-workspace {
  display: grid;
  grid-template-columns: minmax(380px, 480px) minmax(720px, 1fr);
  gap: 22px;
  align-items: start;
}

.candidate-rank-panel,
.candidate-detail-panel {
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(13, 43, 55, 0.08);
  overflow: hidden;
}

.candidate-rank-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.candidate-rank-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow-y: auto;
}

.candidate-score-row {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid #dbe4e2;
  border-left-width: 6px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.candidate-score-row:hover,
.candidate-score-row.active {
  border-color: #007f95;
  background: #f1fbfd;
}

.candidate-score-row.strong {
  border-left-color: #16845b;
}

.candidate-score-row.partial {
  border-left-color: #c47a13;
}

.candidate-score-row.weak {
  border-left-color: #8fa0ac;
}

.candidate-score-row.failed {
  border-left-color: #aa2d2d;
}

.candidate-score-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.candidate-score-top strong {
  font-size: 16px;
  line-height: 1.35;
}

.candidate-score-top span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #075c6c;
  background: #e9f8fa;
  font-size: 18px;
  font-weight: 900;
}

.candidate-score-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.candidate-detail-panel {
  min-height: calc(100vh - 36px);
}

.matching-detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  align-items: end;
  padding: 22px 26px;
  border-bottom: 1px solid #dbe4e2;
  background: rgba(255, 255, 255, 0.96);
}

.matching-detail-header h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dimension-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 26px 8px;
}

.dimension-score-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #f8fbfa;
}

.dimension-score-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dimension-score-card strong {
  color: var(--ink);
  font-size: 22px;
}

.score-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8e6;
}

.score-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #007f95, #16845b);
}

.requirement-match-list {
  display: grid;
  gap: 14px;
  padding: 18px 26px 26px;
}

.requirement-match-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe4e2;
  border-left-width: 6px;
  border-radius: 8px;
  background: #ffffff;
}

.requirement-match-card.ready {
  border-left-color: #16845b;
}

.requirement-match-card.review {
  border-left-color: #c47a13;
}

.requirement-match-card.no-concept {
  border-left-color: #aa2d2d;
}

.requirement-match-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.requirement-match-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.requirement-match-header strong {
  white-space: nowrap;
  color: #075c6c;
  font-size: 14px;
}

.matched-evidence-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #f8fbfa;
}

.matched-evidence-box h4 {
  margin: 0;
  font-size: 14px;
}

.matched-evidence-box article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
}

.matched-evidence-box strong {
  color: var(--ink);
  font-size: 13px;
}

.matched-evidence-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.structured-eval-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbdedb;
  border-radius: 8px;
  background: #f4faf8;
}

.structured-eval-box h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.structured-eval-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.structured-eval-item {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #dbe4e2;
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
}

.structured-eval-item.pass {
  border-left-color: #16845b;
}

.structured-eval-item.partial {
  border-left-color: #c47a13;
}

.structured-eval-item.fail {
  border-left-color: #aa2d2d;
}

.structured-eval-top {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
}

.structured-eval-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.structured-eval-top strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

.cluster-family-label {
  display: inline-flex;
  width: fit-content;
  margin: 8px 0;
  padding: 4px 8px;
  border: 1px solid #cbdedb;
  border-radius: 999px;
  color: #075c6c;
  background: #eef9f7;
  font-size: 12px;
  font-weight: 800;
}

.structured-eval-item p,
.structured-eval-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .matching-workspace,
  .matching-control-bar,
  .matching-detail-header {
    grid-template-columns: 1fr;
  }

  .candidate-rank-panel {
    position: static;
    max-height: none;
  }

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

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

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

@media (max-width: 720px) {
  .matching-page {
    width: min(100% - 24px, 760px);
  }

  .dimension-score-grid,
  .structured-eval-grid,
  .requirement-match-header {
    grid-template-columns: 1fr;
  }

  .requirement-match-header strong {
    white-space: normal;
  }
}

/* O*NET education and Master JD summary */
.education-design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Graph Matching V1 */
.graph-page {
  width: min(100%, calc(100vw - 20px));
}

body.app-shell-active.graph-body {
  --app-frame-width: calc(100vw - 20px);
}

body.app-shell-active.graph-body .app-topbar {
  gap: 10px;
}

body.app-shell-active.graph-body .app-topbar-logo {
  padding: 0 14px;
}

body.app-shell-active.graph-body .app-topbar-logo .talent-home-logo {
  min-width: 142px;
}

body.app-shell-active.graph-body .app-topbar-logo strong {
  display: none;
}

body.app-shell-active.graph-body .app-topbar-nav a {
  min-height: 30px;
  padding: 0 8px;
  font-size: 11px;
}

body.app-shell-active.graph-body .graph-page {
  height: var(--app-frame-height);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  overflow: hidden;
}

body.app-shell-active.graph-body .matching-hero {
  display: none;
}

.graph-control-bar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto minmax(260px, 1.2fr);
  gap: 10px;
  align-items: end;
  margin: 0;
  padding: 12px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 43, 55, 0.06);
}

.graph-control-bar label,
.graph-panel-header label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.graph-control-bar select,
.graph-panel-header select {
  min-height: 38px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
}

.graph-secondary-button {
  background: #005eb8;
}

.graph-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.graph-summary .summary-card {
  min-height: 0;
  display: block;
  padding: 10px 14px;
}

.graph-summary .summary-card strong {
  font-size: 18px;
}

.graph-summary .summary-card span {
  margin-bottom: 8px;
  font-size: 13px;
}

.graph-cv-panel,
.graph-main-panel,
.graph-inspector {
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(13, 43, 55, 0.08);
  overflow: hidden;
}

.graph-cv-panel {
  min-height: 0;
}

body.graph-cv-collapsed .graph-cv-panel {
  display: block;
}

.graph-cv-panel .flow-panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.graph-cv-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.graph-cv-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.graph-cv-filter select {
  min-height: 34px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  padding: 0 34px 0 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.graph-panel-toggle {
  min-height: 34px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.graph-cv-toolbar-toggle {
  min-width: 164px;
  min-height: 38px;
}

.graph-panel-toggle:hover {
  border-color: #99b7c2;
  background: #f8fbfa;
}

.graph-cv-list {
  max-height: 184px;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  overflow-y: auto;
}

body.graph-cv-collapsed .graph-cv-list {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.graph-cv-row {
  display: grid;
  grid-template-columns: 22px minmax(240px, 1fr) minmax(160px, auto) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #f8fbfa;
}

.graph-cv-row input {
  width: 18px;
  height: 18px;
}

.graph-cv-main {
  min-width: 0;
}

.graph-cv-main strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.graph-cv-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.graph-cv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.graph-cv-process-button {
  min-height: 34px;
  min-width: 152px;
  padding: 0 12px;
  font-size: 13px;
}

.graph-cv-empty {
  padding: 28px;
  border: 1px dashed #cfd9d6;
  border-radius: 8px;
  background: #f8fbfa;
  text-align: center;
}

.graph-cv-empty strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.graph-cv-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.graph-workspace {
  display: grid;
  grid-template-columns: clamp(250px, 21vw, 330px) minmax(0, 1fr) clamp(280px, 23vw, 360px);
  gap: 10px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.graph-rank-panel,
.graph-inspector {
  position: relative;
  top: auto;
  max-height: none;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.graph-inspector {
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(13, 43, 55, 0.08);
}

.graph-page .flow-panel-heading {
  align-items: center;
  padding: 10px 12px;
}

.graph-rank-panel .candidate-rank-list {
  gap: 8px;
  padding: 10px;
}

.graph-rank-panel .candidate-score-row {
  gap: 8px;
  padding: 10px 12px;
  border-left-width: 5px;
}

.graph-rank-panel .candidate-score-top strong {
  font-size: 14px;
}

.graph-rank-panel .candidate-score-top span {
  padding: 4px 8px;
  font-size: 16px;
}

.graph-rank-panel .candidate-score-row p {
  font-size: 12px;
  line-height: 1.35;
}

.graph-main-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.graph-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  border-bottom: 1px solid #dbe4e2;
}

.graph-panel-header h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.graph-canvas-shell {
  min-height: 0;
  height: 100%;
  overflow: auto;
  background:
    linear-gradient(#eef4f5 1px, transparent 1px),
    linear-gradient(90deg, #eef4f5 1px, transparent 1px),
    #f7faf9;
  background-size: 28px 28px;
}

.graph-canvas {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}

.graph-column-label {
  position: absolute;
  z-index: 3;
  width: 200px;
  padding: 6px 8px;
  color: #506777;
  background: rgba(247, 250, 249, 0.92);
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.graph-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.graph-edge {
  fill: none;
  stroke: #94a8b1;
  stroke-width: 2;
  opacity: 0.68;
}

.graph-edge.ready {
  stroke: #16845b;
}

.graph-edge.review {
  stroke: #c47a13;
  stroke-dasharray: 6 5;
}

.graph-edge.no-concept {
  stroke: #aa2d2d;
  stroke-dasharray: 3 5;
}

.graph-node {
  position: absolute;
  z-index: 2;
  width: 200px;
  height: 70px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid #cbd9dc;
  border-left-width: 5px;
  border-radius: 8px;
  color: #102536;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(13, 43, 55, 0.10);
}

.graph-node:hover {
  border-color: #007f95;
  outline: 3px solid rgba(0, 127, 149, 0.16);
}

.graph-node.pinned {
  border-color: #005eb8;
  outline: 4px solid rgba(0, 94, 184, 0.24);
  box-shadow: 0 0 0 2px rgba(0, 94, 184, 0.16), 0 16px 34px rgba(13, 43, 55, 0.16);
}

.graph-node strong,
.graph-node span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.graph-node strong {
  font-size: 12px;
  line-height: 1.25;
}

.graph-node span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.graph-node-candidate {
  border-left-color: #005eb8;
  background: #eef6ff;
}

.graph-node-fact_type {
  border-left-color: #687582;
  background: #f4f6f8;
}

.graph-node-candidate_fact {
  border-left-color: #6d49a8;
  background: #f6f1ff;
}

.graph-node-evidence {
  border-left-color: #4f7fbf;
  background: #eff6ff;
}

.graph-node-candidate_concept {
  border-left-color: #007f95;
  background: #eaf9fb;
}

.graph-node-required_concept {
  border-left-color: #d08a00;
  background: #fff8e6;
}

.graph-node-jd_requirement {
  border-left-color: #e30613;
  background: #fff2f3;
}

.graph-node-job {
  border-left-color: #172033;
  background: #eef1f5;
}

.graph-node.ready {
  box-shadow: 0 0 0 2px rgba(22, 132, 91, 0.12), 0 12px 28px rgba(13, 43, 55, 0.10);
}

.graph-node.review {
  box-shadow: 0 0 0 2px rgba(196, 122, 19, 0.14), 0 12px 28px rgba(13, 43, 55, 0.10);
}

.graph-node.no-concept {
  box-shadow: 0 0 0 2px rgba(170, 45, 45, 0.12), 0 12px 28px rgba(13, 43, 55, 0.10);
}

.graph-empty {
  margin: 24px;
}

.graph-pdf-frame {
  min-height: 0;
  border-bottom: 1px solid #dbe4e2;
  background: #f8fbfa;
}

.graph-pdf-frame iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

body.graph-inspector-pdf-active .graph-pdf-frame {
  display: block;
}

body.graph-inspector-pdf-active .graph-inspector {
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 270px;
}

body.graph-inspector-pdf-active .graph-inspector-body {
  display: none;
}

.graph-inspector-body {
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow-y: auto;
}

body.graph-inspector-evidence-active .graph-inspector-body,
body.graph-inspector-pdf-active .graph-inspector-body {
  grid-template-columns: 1fr;
}

.graph-inspector-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
}

.graph-inspector-section h3 {
  margin: 0;
  color: #506777;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-inspector-section p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.graph-inspector-section pre {
  max-height: 220px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  color: #19313d;
  background: #f4f7f8;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

body.graph-v2-body .graph-inspector .flow-panel-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  border-bottom: 1px solid #e6eeec;
}

.graph-inspector-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.graph-inspector-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #506777;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.graph-inspector-tabs button.active {
  border-color: #b9d6e0;
  color: #005eb8;
  background: #eef6ff;
}

body.app-shell-active.graph-v2-body .graph-page {
  gap: 8px;
  padding: 10px;
}

body.graph-v2-body .graph-control-bar {
  grid-template-columns: minmax(300px, 1fr) auto auto auto minmax(250px, 0.95fr);
}

body.graph-v2-body .graph-summary {
  gap: 6px;
}

body.graph-v2-body .graph-summary .summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
}

body.graph-v2-body .graph-summary .summary-card span {
  margin-bottom: 0;
  font-size: 12px;
}

body.graph-v2-body .graph-summary .summary-card strong {
  font-size: 18px;
}

body.graph-v2-body.graph-cv-collapsed .graph-cv-panel {
  display: none;
}

body.graph-v2-body .graph-cv-panel .flow-panel-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.graph-v2-body .graph-workspace {
  grid-template-columns: clamp(250px, 19vw, 315px) minmax(0, 1fr);
}

body.graph-v2-body .graph-main-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.graph-v2-body .graph-panel-header h2 {
  font-size: 20px;
}

body.graph-v2-body .graph-inspector {
  min-height: 0;
  max-height: 190px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 0;
  border-top: 1px solid #dbe4e2;
  border-radius: 0;
  box-shadow: none;
}

body.graph-v2-body .graph-pdf-frame {
  display: none;
  border-bottom: 0;
  overflow: hidden;
}

body.graph-v2-body.graph-inspector-pdf-active .graph-pdf-frame {
  display: none;
}

body.graph-v2-body.graph-inspector-pdf-active .graph-inspector {
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 190px;
}

body.graph-v2-body.graph-inspector-pdf-active .graph-inspector-body {
  display: grid;
}

body.graph-v2-body .graph-inspector-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 12px;
}

body.graph-v2-body.graph-inspector-evidence-active .graph-inspector-body,
body.graph-v2-body.graph-inspector-pdf-active .graph-inspector-body {
  grid-template-columns: 1fr;
}

body.graph-v2-body .graph-inspector-section {
  padding: 10px;
}

body.graph-v2-body .graph-inspector-section pre {
  max-height: 142px;
}

body.graph-v2-body .graph-source-section {
  align-content: start;
}

body.graph-v2-body .graph-source-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #ffffff;
  background: #005eb8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

/* Graph Matching V3: React Flow + Dagre */
.graph-v3-page {
  width: min(100%, calc(100vw - 20px));
}

body.app-shell-active.graph-v3-body {
  --app-frame-width: calc(100vw - 20px);
}

body.app-shell-active.graph-v3-body .app-topbar {
  gap: 8px;
}

body.app-shell-active.graph-v3-body .app-topbar-logo {
  padding: 0 12px;
}

body.app-shell-active.graph-v3-body .app-topbar-logo .talent-home-logo {
  min-width: 142px;
}

body.app-shell-active.graph-v3-body .app-topbar-logo strong {
  display: none;
}

body.app-shell-active.graph-v3-body .app-topbar-nav a {
  min-height: 30px;
  padding: 0 7px;
  font-size: 11px;
}

body.app-shell-active.graph-v3-body .graph-v3-page {
  height: var(--app-frame-height);
  padding: 10px;
  overflow: hidden;
}

.graph-v3-root,
.graph-v3-app {
  min-height: 0;
  height: 100%;
}

.graph-v3-app {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

.graph-v3-loading {
  display: grid;
  place-content: center;
  min-height: 420px;
  color: #506777;
  text-align: center;
}

.graph-v3-control-bar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto auto auto auto minmax(260px, 0.9fr);
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 43, 55, 0.06);
}

.graph-v3-control-bar label,
.graph-v3-flow-head label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-v3-control-bar select,
.graph-v3-flow-head select {
  min-height: 38px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
}

.graph-v3-link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.graph-v3-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.graph-v3-summary article {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
}

.graph-v3-summary span {
  color: var(--muted);
  font-size: 12px;
}

.graph-v3-summary strong {
  color: var(--ink);
  font-size: 17px;
}

.graph-v3-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(245px, 18vw, 310px) minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.graph-v3-app.focus-mode .graph-v3-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.graph-v3-app.focus-mode .graph-v3-rank-panel {
  display: none;
}

.graph-v3-rank-panel,
.graph-v3-flow-panel {
  min-height: 0;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(13, 43, 55, 0.08);
  overflow: hidden;
}

.graph-v3-rank-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.graph-v3-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e3ebe8;
}

.graph-v3-panel-head strong {
  font-size: 15px;
}

.graph-v3-panel-head span {
  border-radius: 8px;
  padding: 3px 8px;
  color: var(--muted);
  background: #eef2f7;
  font-size: 12px;
  font-weight: 900;
}

.graph-v3-rank-list {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  overflow-y: auto;
}

.graph-v3-rank-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dbe4e2;
  border-left: 5px solid #9aa9b2;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.graph-v3-rank-card.active {
  border-color: #0095ad;
  border-left-color: #cc7900;
  background: #effdff;
  outline: 2px solid rgba(0, 149, 173, 0.12);
}

.graph-v3-rank-card.strong {
  border-left-color: #16845b;
}

.graph-v3-rank-card.partial {
  border-left-color: #cc7900;
}

.graph-v3-rank-card.weak {
  border-left-color: #93a4ad;
}

.graph-v3-rank-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.graph-v3-rank-top strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.graph-v3-rank-top span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  color: #007f95;
  background: #e6fbfb;
  font-size: 15px;
  font-weight: 900;
}

.graph-v3-rank-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.graph-v3-rank-badges,
.graph-v3-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.graph-v3-rank-badges span,
.graph-v3-mini-meta span {
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  padding: 3px 8px;
  background: #f8fbfa;
  font-size: 12px;
  font-weight: 900;
}

.graph-v3-rank-badges .ready,
.graph-v3-mini-meta .ready {
  border-color: #a7dfbf;
  color: #126d4a;
  background: #effbf4;
}

.graph-v3-rank-badges .review,
.graph-v3-mini-meta .review {
  border-color: #efc477;
  color: #8a560d;
  background: #fff8e9;
}

.graph-v3-rank-badges .missing,
.graph-v3-mini-meta .missing {
  border-color: #f1b5b9;
  color: #8f1f28;
  background: #fff2f3;
}

.graph-v3-flow-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.graph-v3-flow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 12px;
  align-items: end;
  padding: 12px 14px;
  border-bottom: 1px solid #dbe4e2;
}

.graph-v3-flow-head h1 {
  margin: 3px 0 0;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.graph-v3-flow-shell {
  position: relative;
  min-height: 0;
  background:
    linear-gradient(#eef4f5 1px, transparent 1px),
    linear-gradient(90deg, #eef4f5 1px, transparent 1px),
    #f7faf9;
  background-size: 24px 24px;
}

.graph-v3-flow-shell .react-flow {
  background: transparent;
}

.graph-v3-flow-empty {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #506777;
  text-align: center;
}

.graph-v3-node {
  width: 230px;
  height: 78px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid #cbd9dc;
  border-left: 5px solid #9aa9b2;
  border-radius: 8px;
  color: #102536;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(13, 43, 55, 0.14);
}

.graph-v3-node.selected {
  border-color: #005eb8;
  outline: 4px solid rgba(0, 94, 184, 0.24);
}

.graph-v3-node-candidate {
  border-left-color: #005eb8;
  background: #eef6ff;
}

.graph-v3-node-fact_type {
  border-left-color: #687582;
  background: #f4f6f8;
}

.graph-v3-node-candidate_fact {
  border-left-color: #6d49a8;
  background: #f6f1ff;
}

.graph-v3-node-evidence {
  border-left-color: #4f7fbf;
  background: #eff6ff;
}

.graph-v3-node-candidate_concept {
  border-left-color: #007f95;
  background: #eaf9fb;
}

.graph-v3-node-required_concept {
  border-left-color: #d08a00;
  background: #fff8e6;
}

.graph-v3-node-jd_requirement {
  border-left-color: #e30613;
  background: #fff2f3;
}

.graph-v3-node-job {
  border-left-color: #172033;
  background: #eef1f5;
}

.graph-v3-node-top {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.graph-v3-node-top span,
.graph-v3-node-meta {
  min-width: 0;
  color: #647789;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-v3-node-top strong {
  color: #007f95;
  font-size: 11px;
}

.graph-v3-node-label {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
}

.graph-v3-inspector {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: min(380px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 50px rgba(13, 43, 55, 0.18);
}

.graph-v3-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.graph-v3-inspector-head strong {
  font-size: 15px;
}

.graph-v3-inspector-head button {
  min-height: 30px;
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.graph-v3-info-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
}

.graph-v3-info-section h3 {
  margin: 0;
  color: #506777;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-v3-info-section p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.graph-v3-info-section pre {
  max-height: 190px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  color: #19313d;
  background: #f4f7f8;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.graph-v3-source-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #ffffff;
  background: #005eb8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.graph-v3-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.graph-v3-empty strong {
  display: block;
  color: var(--ink);
}

.graph-v3-empty p {
  margin: 6px 0 0;
}

.graph-v3-runtime-error {
  max-width: 900px;
  margin: 28px auto;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #f1b5b9;
  border-radius: 8px;
  color: #8f1f28;
  background: #fff2f3;
}

.graph-v3-runtime-error strong {
  color: #68131a;
  font-size: 18px;
}

.graph-v3-runtime-error p {
  margin: 0;
}

.graph-v3-runtime-error pre {
  max-height: 360px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  color: #19313d;
  background: #ffffff;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .graph-v3-control-bar,
  .graph-v3-workspace,
  .graph-v3-flow-head {
    grid-template-columns: 1fr;
  }

  .graph-v3-rank-panel {
    min-height: 220px;
  }
}

@media (max-width: 1180px) {
  .graph-workspace {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .graph-inspector {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }

  .graph-pdf-frame iframe {
    height: 300px;
  }
}

@media (max-width: 1120px) {
  .graph-control-bar,
  .graph-workspace,
  .graph-panel-header,
  .graph-cv-row {
    grid-template-columns: 1fr;
  }

  .graph-rank-panel {
    position: static;
    max-height: none;
  }

  .graph-cv-badges {
    justify-content: flex-start;
  }
}

.education-design-card,
.trace-card {
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(13, 43, 55, 0.07);
}

.education-design-card {
  padding: 18px;
}

.education-design-card.wide {
  grid-column: 1 / -1;
}

.education-design-card h3,
.requirement-summary-layout h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.education-design-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.credential-level-grid,
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.credential-level,
.cluster-card,
.rule-list div {
  padding: 12px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #f8fbfa;
}

.credential-level strong,
.cluster-card strong,
.rule-list strong {
  display: block;
  color: #075c6c;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.credential-level span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.credential-level p,
.cluster-card p,
.rule-list p {
  margin: 7px 0 0;
  font-size: 13px;
}

.tag-cloud.compact {
  gap: 8px;
}

.tag-cloud.compact .job-chip {
  text-decoration: none;
  cursor: default;
}

.rule-list {
  display: grid;
  gap: 10px;
}

.requirement-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.trace-card-grid {
  display: grid;
  gap: 14px;
}

.trace-card-grid.compact {
  max-height: 900px;
  overflow-y: auto;
  padding-right: 4px;
}

.trace-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.trace-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.trace-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.trace-examples {
  display: grid;
  gap: 8px;
}

.trace-examples p,
.trace-raw {
  margin: 0;
  padding: 10px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--ink);
  line-height: 1.45;
}

.trace-examples strong {
  color: #075c6c;
}

.trace-card.gap {
  border-left: 6px solid #c47a13;
}

@media (max-width: 1180px) {
  .education-design-grid,
  .requirement-summary-layout,
  .credential-level-grid,
  .cluster-grid {
    grid-template-columns: 1fr;
  }
}

/* 16:9-focused job workbench frame for ultrawide monitors */
@media (min-width: 1280px) {
  body.app-shell-active.app-page-workbench {
    background: #eef1f5;
    overflow: hidden;
  }

  .app-shell-active .workbench {
    width: min(100vw, calc((100vh - 64px) * 16 / 9));
    max-width: 1920px;
    height: calc(100vh - 64px);
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border-right: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(23, 32, 51, 0.06);
  }

  .app-shell-active .job-sidebar {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 0;
  }

  .app-shell-active .job-main {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-y: auto;
    padding: 18px 20px 36px;
  }
}

@media (min-width: 1280px) and (max-height: 820px) {
  .app-shell-active .workbench {
    width: min(100vw, 1680px);
  }
}

/* Final app-wide frame: all authenticated pages share the same 16:9-focused canvas. */
body.app-shell-active {
  --app-topbar-height: 64px;
  --app-frame-height: calc(100vh - var(--app-topbar-height));
  --app-frame-width: min(calc(100vw - 32px), 1920px, calc(var(--app-frame-height) * 16 / 9));
  padding-top: var(--app-topbar-height);
  overflow: hidden;
  background: #eef1f5;
}

body.app-shell-active .app-topbar {
  left: 50%;
  right: auto;
  width: var(--app-frame-width);
  transform: translateX(-50%);
  border-right: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
}

body.app-shell-active > main {
  width: var(--app-frame-width);
  margin-right: auto;
  margin-left: auto;
}

body.app-shell-active .talent-home-shell,
body.app-shell-active .reference-page,
body.app-shell-active .users-page,
body.app-shell-active .page,
body.app-shell-active .poc-v3-fact-page {
  height: var(--app-frame-height);
  min-height: 0;
  overflow-y: auto;
}

body.app-shell-active .talent-home-shell {
  padding-top: 0;
}

body.app-shell-active .reference-page,
body.app-shell-active .users-page,
body.app-shell-active .poc-v3-fact-page {
  padding: 20px;
}

body.app-shell-active .workbench,
body.app-shell-active.app-page-workbench .workbench {
  width: var(--app-frame-width);
  max-width: var(--app-frame-width);
  height: var(--app-frame-height);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border-right: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.06);
}

body.app-shell-active .job-sidebar,
body.app-shell-active.app-page-workbench .job-sidebar {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
}

body.app-shell-active .job-main,
body.app-shell-active.app-page-workbench .job-main {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow-y: auto;
}

body.app-shell-active.cv-console-body {
  display: block;
  padding: var(--app-topbar-height) 0 0;
  overflow: hidden;
  background: #eef1f5;
}

body.app-shell-active .cv-console {
  width: var(--app-frame-width);
  max-width: var(--app-frame-width);
  height: var(--app-frame-height);
  min-height: 0;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.06);
}

body.app-shell-active .cv-queue-panel {
  position: relative;
  top: auto;
  height: 100%;
}

body.app-shell-active .cv-review-shell {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-y: auto;
}

body.app-shell-active .chat {
  min-height: calc(var(--app-frame-height) - 40px);
}

@media (max-width: 1080px) {
  body.app-shell-active {
    --app-topbar-height: 110px;
    --app-frame-height: calc(100vh - var(--app-topbar-height));
    --app-frame-width: 100vw;
  }

  body.app-shell-active .app-topbar {
    left: 0;
    width: 100vw;
    transform: none;
    border-right: 0;
    border-left: 0;
  }

  body.app-shell-active > main {
    width: 100vw;
  }
}

/* CV process audit page */
.cv-audit-page {
  padding: 28px;
}

.cv-audit-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.cv-audit-sidebar,
.cv-audit-title-card,
.cv-audit-stage {
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}

.cv-audit-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
  max-height: calc(var(--app-frame-height, 100vh) - 40px);
  padding: 16px;
}

.cv-audit-sidebar label {
  display: grid;
  gap: 8px;
  color: #607089;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.cv-audit-sidebar input {
  min-height: 42px;
  border: 1px solid #d6dee7;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  text-transform: none;
}

.cv-audit-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.cv-audit-file-button {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  padding: 11px 12px 11px 16px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.cv-audit-file-button::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #d1d5db;
}

.cv-audit-file-button.ocr-extracted::before {
  background: #6ba7d6;
}

.cv-audit-file-button.onet-ready::before {
  background: #0067b1;
}

.cv-audit-file-button.active,
.cv-audit-file-button:hover {
  border-color: #111827;
  background: #fafafa;
}

.cv-audit-file-button strong {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-audit-file-button span {
  color: #607089;
  font-size: 12px;
}

.cv-audit-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cv-audit-title-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px;
}

.cv-audit-title-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
  overflow-wrap: anywhere;
}

.cv-audit-title-card p:last-child {
  margin: 0;
  color: #607089;
  line-height: 1.55;
}

.cv-audit-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.cv-audit-stages {
  display: grid;
  gap: 14px;
}

.cv-audit-stage {
  overflow: hidden;
}

.cv-audit-stage > header {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #edf0f3;
  padding: 16px 18px;
}

.cv-audit-stage h3 {
  margin: 0;
  font-size: 20px;
}

.cv-audit-stage > :not(header) {
  margin: 14px 18px;
}

.cv-audit-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cv-audit-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cv-audit-page-card {
  min-width: 0;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.cv-audit-page-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cv-audit-page-card p {
  margin: 0 0 10px;
  color: #607089;
  font-size: 12px;
  line-height: 1.4;
}

.cv-audit-code,
.cv-audit-transcript {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 14px;
  background: #08090a;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.cv-audit-transcript {
  border-color: #d6dee7;
  background: #ffffff;
  color: #111827;
}

.cv-audit-request-list {
  display: grid;
  gap: 14px;
}

.cv-audit-request-card {
  min-width: 0;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.cv-audit-request-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.cv-audit-request-card p {
  margin: 0 0 12px;
  color: #607089;
  font-size: 13px;
  line-height: 1.45;
}

.cv-audit-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.cv-audit-image-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #d6dee7;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.cv-audit-image-card strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.3;
}

.cv-audit-image-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid #edf0f3;
  border-radius: 6px;
  background: #f8fafc;
}

.cv-audit-image-card span {
  color: #607089;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

/* CV V2 audit page */
.cv-v2-audit-page {
  width: min(1680px, calc(100% - 48px));
  padding: 22px 0 34px;
}

.cv-v2-audit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-left: 5px solid var(--accent);
}

.button-link {
  font: inherit;
  cursor: pointer;
}

.button-link:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cv-v2-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cv-v2-audit-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cv-v2-audit-list-panel,
.cv-v2-audit-detail {
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
}

.cv-v2-audit-list-panel {
  position: sticky;
  top: 16px;
  overflow: hidden;
}

.cv-v2-audit-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding: 10px;
  background: #f6f8f8;
}

.cv-v2-audit-row {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid #dce5e2;
  border-left-width: 5px;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.cv-v2-audit-row.ready-for-pilot-review {
  border-left-color: #14804a;
}

.cv-v2-audit-row.needs-human-spot-check {
  border-left-color: #b7791f;
}

.cv-v2-audit-row.needs-extraction-fix {
  border-left-color: #9b2c2c;
}

.cv-v2-audit-row:hover,
.cv-v2-audit-row.active {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: #f2fbfb;
}

.cv-v2-audit-row strong {
  font-size: 14px;
}

.cv-v2-audit-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.cv-v2-audit-detail {
  min-height: 680px;
  overflow: hidden;
  background: #f7faf9;
}

.cv-v2-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.cv-v2-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cv-v2-fact-grid .summary-card,
.cv-v2-summary .summary-card {
  padding: 12px 14px;
}

.cv-v2-fact-grid .summary-card strong,
.cv-v2-summary .summary-card strong {
  font-size: 21px;
}

.cv-v2-flag-list {
  display: grid;
  gap: 8px;
}

.cv-v2-flag {
  border: 1px solid #f1d49a;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff8e8;
}

.cv-v2-flag.error {
  border-color: #f0b6b6;
  background: #fff1f1;
}

.cv-v2-flag strong {
  display: block;
  margin-bottom: 4px;
  color: #8a5a12;
  font-size: 12px;
  font-weight: 850;
}

.cv-v2-flag.error strong {
  color: #8f1f1f;
}

.cv-v2-flag p {
  margin: 0;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.45;
}

.cv-v2-evidence-wrap {
  max-height: 560px;
}

.cv-v2-evidence-table p {
  margin: 5px 0 0;
  color: #4a5568;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .cv-v2-audit-page {
    width: min(100% - 24px, 760px);
  }

  .cv-v2-audit-hero,
  .cv-v2-audit-workspace,
  .cv-v2-detail-heading,
  .cv-v2-summary,
  .cv-v2-fact-grid {
    grid-template-columns: 1fr;
  }

  .cv-v2-audit-list-panel {
    position: static;
  }
}

@media (max-width: 1280px) {
  .cv-audit-workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .cv-audit-page-grid,
  .cv-audit-image-grid,
  .cv-audit-facts,
  .cv-audit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cv-audit-page {
    padding: 18px;
  }

  .cv-audit-workspace,
  .cv-audit-title-card {
    grid-template-columns: 1fr;
  }

  .cv-audit-sidebar {
    position: static;
    max-height: 520px;
  }

  .cv-audit-image-grid {
    grid-template-columns: 1fr;
  }
}

/* CV extractor 16:9 workspace layout */
body.app-shell-active.cv-console-body {
  padding: var(--app-topbar-height) 0 0;
  overflow: hidden;
  background: #eef1f5;
}

body.app-shell-active.cv-console-body .cv-console {
  width: var(--app-frame-width);
  max-width: var(--app-frame-width);
  height: var(--app-frame-height);
  min-height: 0;
  margin: 0 auto;
  grid-template-columns: clamp(320px, 22%, 390px) minmax(0, 1fr);
  border-right: 1px solid #d8dee6;
  border-left: 1px solid #d8dee6;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.06);
}

body.app-shell-active.cv-console-body .cv-queue-panel {
  min-width: 0;
  border-right: 1px solid #d8dee6;
}

body.app-shell-active.cv-console-body .cv-queue-header {
  padding: 28px 28px 22px;
}

body.app-shell-active.cv-console-body .cv-sidebar-tools {
  padding: 20px 22px;
}

body.app-shell-active.cv-console-body .cv-list-scroll .job-list {
  padding: 16px 22px 28px;
}

body.app-shell-active.cv-console-body .cv-review-shell {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 36px clamp(28px, 3vw, 56px) 48px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f4f6f8;
}

body.app-shell-active.cv-console-body .cv-console-topbar {
  margin-bottom: 26px;
}

body.app-shell-active.cv-console-body .cv-brand-block h1 {
  font-size: 28px;
}

body.app-shell-active.cv-console-body .cv-command-card {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 20px;
  padding: 26px 30px;
  border-radius: 10px;
}

body.app-shell-active.cv-console-body .cv-command-card > div:first-child {
  min-width: 0;
}

body.app-shell-active.cv-console-body .cv-command-card h2 {
  max-width: 100%;
  font-size: clamp(28px, 2.1vw, 38px);
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.app-shell-active.cv-console-body .cv-command-card .section-note {
  max-width: 1080px;
  font-size: 15px;
  line-height: 1.55;
}

body.app-shell-active.cv-console-body .cv-command-actions {
  justify-content: flex-start;
  gap: 12px;
}

body.app-shell-active.cv-console-body .cv-command-actions .process-button,
body.app-shell-active.cv-console-body .cv-source-link {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
}

body.app-shell-active.cv-console-body .cv-command-actions #extract-button {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
}

body.app-shell-active.cv-console-body .cv-command-actions #map-onet-button {
  color: var(--accent);
  border-color: var(--accent);
  background: #ffffff;
}

body.app-shell-active.cv-console-body .cv-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

body.app-shell-active.cv-console-body .cv-summary-grid .summary-card {
  min-height: 88px;
  padding: 18px;
}

body.app-shell-active.cv-console-body .cv-summary-grid .summary-card strong {
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.app-shell-active.cv-console-body .cv-review-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  grid-template-areas:
    "profile pipeline"
    "work work"
    "education skills"
    "evidence evidence"
    "audit audit";
  gap: 24px;
}

body.app-shell-active.cv-console-body .cv-primary-column,
body.app-shell-active.cv-console-body .cv-secondary-column {
  display: contents;
}

body.app-shell-active.cv-console-body .cv-primary-column > .cv-section-card:nth-child(1) {
  grid-area: profile;
}

body.app-shell-active.cv-console-body .cv-primary-column > .cv-section-card:nth-child(2) {
  grid-area: work;
}

body.app-shell-active.cv-console-body .cv-primary-column > .cv-section-card:nth-child(3) {
  grid-area: evidence;
}

body.app-shell-active.cv-console-body .cv-secondary-column > .cv-section-card:nth-child(1) {
  grid-area: pipeline;
}

body.app-shell-active.cv-console-body .cv-secondary-column > .cv-section-card:nth-child(2) {
  grid-area: education;
}

body.app-shell-active.cv-console-body .cv-secondary-column > .cv-section-card:nth-child(3) {
  grid-area: skills;
}

body.app-shell-active.cv-console-body .cv-secondary-column > .cv-section-card:nth-child(4) {
  grid-area: audit;
}

body.app-shell-active.cv-console-body .cv-section-card {
  min-width: 0;
  padding: 28px;
  border-radius: 10px;
  overflow: hidden;
}

body.app-shell-active.cv-console-body .cv-section-heading h2 {
  font-size: 21px;
}

body.app-shell-active.cv-console-body .cv-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.app-shell-active.cv-console-body .cv-console .raw-block {
  min-width: 0;
  min-height: 78px;
  padding: 14px;
  overflow: hidden;
}

body.app-shell-active.cv-console-body #candidate-profile .raw-block:nth-child(3) {
  grid-column: auto;
}

body.app-shell-active.cv-console-body #candidate-profile .raw-block:last-child {
  grid-column: 1 / -1;
}

body.app-shell-active.cv-console-body .cv-console .raw-block p,
body.app-shell-active.cv-console-body .cv-review-card p,
body.app-shell-active.cv-console-body .cv-console .object-grid p {
  font-size: 14px;
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.app-shell-active.cv-console-body .cv-card-list {
  gap: 16px;
}

body.app-shell-active.cv-console-body .cv-review-card {
  padding: 20px;
  border-radius: 10px;
}

body.app-shell-active.cv-console-body .cv-card-header {
  gap: 12px;
  min-width: 0;
}

body.app-shell-active.cv-console-body .cv-card-header h3 {
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.app-shell-active.cv-console-body .cv-pipeline {
  gap: 10px;
}

body.app-shell-active.cv-console-body .cv-pipeline .pipeline-step {
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 13px 14px;
  border-radius: 8px;
}

body.app-shell-active.cv-console-body .cv-pipeline .pipeline-step p {
  font-size: 13px;
}

body.app-shell-active.cv-console-body .cv-console pre {
  max-height: 520px;
}

body.app-shell-active.cv-console-body #work-experience.cv-card-list {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

body.app-shell-active.cv-console-body #concept-evidence.cv-card-list {
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}

body.app-shell-active.cv-console-body #work-experience .cv-review-card,
body.app-shell-active.cv-console-body #concept-evidence .cv-review-card {
  min-height: 0;
}

body.app-shell-active.cv-console-body #work-experience .cv-review-card p {
  max-width: 72ch;
}

body.app-shell-active.cv-console-body .cv-console .object-grid,
body.app-shell-active.cv-console-body .cv-skills,
body.app-shell-active.cv-console-body .cv-console .meta {
  min-width: 0;
}

body.app-shell-active.cv-console-body .cv-console .meta {
  flex-wrap: wrap;
}

@media (max-width: 1280px) {
  body.app-shell-active.cv-console-body .cv-console {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  body.app-shell-active.cv-console-body .cv-review-shell {
    padding: 26px;
  }

  body.app-shell-active.cv-console-body .cv-review-grid {
    grid-template-areas:
      "profile"
      "pipeline"
      "work"
      "education"
      "skills"
      "evidence"
      "audit";
    grid-template-columns: 1fr;
  }

  body.app-shell-active.cv-console-body .cv-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-shell-active.cv-console-body #work-experience.cv-card-list,
  body.app-shell-active.cv-console-body #concept-evidence.cv-card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  body.app-shell-active.cv-console-body {
    padding-top: 110px;
  }

  body.app-shell-active.cv-console-body .cv-console {
    height: calc(100vh - 110px);
  }
}

@media (max-width: 900px) {
  body.app-shell-active.cv-console-body {
    overflow: auto;
  }

  body.app-shell-active.cv-console-body .cv-console {
    height: auto;
    min-height: calc(100vh - 110px);
    grid-template-columns: 1fr;
  }

  body.app-shell-active.cv-console-body .cv-queue-panel {
    height: auto;
    max-height: 620px;
    border-right: 0;
    border-bottom: 1px solid #d8dee6;
  }

  body.app-shell-active.cv-console-body .cv-review-shell {
    height: auto;
    overflow: visible;
    padding: 22px;
  }

  body.app-shell-active.cv-console-body .cv-command-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

body.app-shell-active.cv-console-body .cv-profile-grid {
    grid-template-columns: 1fr;
  }
}

/* POC Vector V1 */
.poc-vector-body {
  background: #eef3f7;
  color: #22303d;
}

body.app-shell-active.poc-vector-body .app-topbar {
  min-height: var(--app-topbar-height, 64px);
}

body.app-shell-active.poc-vector-body .app-topbar-nav {
  overflow-x: auto;
  scrollbar-width: thin;
}

.poc-vector-page {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 16px 14px 18px;
}

body.app-shell-active.poc-vector-body .poc-vector-page {
  height: var(--app-frame-height);
  min-height: 0;
  overflow: hidden;
  padding: 10px;
}

.poc-vector-root,
.poc-vector-app {
  min-height: calc(100vh - 110px);
}

.poc-vector-loading,
.poc-vector-error,
.poc-vector-empty {
  min-height: 360px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #5f7188;
}

.poc-vector-error {
  max-width: 900px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #f1a8ae;
  border-radius: 8px;
  background: #fff8f8;
  color: #8f111b;
}

.poc-vector-error pre {
  white-space: pre-wrap;
  text-align: left;
  color: #48576a;
}

.poc-vector-control {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) minmax(180px, 220px) auto auto minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(33, 45, 61, 0.06);
}

body.app-shell-active.poc-vector-body .poc-vector-control {
  padding: 10px 12px;
}

.poc-vector-control h1,
.poc-vector-graph-head h2 {
  margin: 2px 0 0;
  font-size: clamp(20px, 1.4vw, 28px);
  line-height: 1.2;
}

.poc-vector-control label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.poc-vector-control select,
.poc-vector-control button,
.poc-vector-graph-head select {
  min-height: 44px;
  border: 1px solid #cdd9e0;
  border-radius: 8px;
  background: #fff;
  color: #1f2b37;
  font-weight: 800;
  font-size: 15px;
  padding: 0 14px;
}

.poc-vector-control button {
  border-color: #005eb8;
  background: #005eb8;
  color: #fff;
  cursor: pointer;
}

.poc-vector-status {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #d8e1e6;
  border-radius: 8px;
  background: #f8fbfc;
  color: #5f7188;
  font-size: 15px;
}

.poc-vector-cv-jobs {
  margin-top: 10px;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(33, 45, 61, 0.06);
}

.poc-vector-cv-jobs-head {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #d6e0e7;
}

.poc-vector-cv-jobs-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.poc-vector-cv-jobs-head small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.poc-vector-cv-job-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.poc-vector-cv-job-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cdd9e0;
  border-radius: 8px;
  background: #fff;
  color: #1f2b37;
  font-weight: 900;
  cursor: pointer;
}

.poc-vector-cv-job-actions button:last-child {
  background: #005eb8;
  border-color: #005eb8;
  color: #fff;
}

.poc-vector-cv-job-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.poc-vector-cv-job-list {
  max-height: 300px;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.poc-vector-cv-job {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(180px, 260px) minmax(320px, 0.9fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  background: #fbfdfe;
}

.poc-vector-cv-job.selected {
  border-color: #0077a3;
  background: #eefbfe;
}

.poc-vector-cv-job label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-weight: 900;
}

.poc-vector-cv-job label span,
.poc-vector-cv-job small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poc-vector-cv-job small {
  color: #64748b;
}

.poc-vector-cv-job > button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #005eb8;
  border-radius: 8px;
  background: #005eb8;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.poc-vector-cv-job > button:disabled {
  border-color: #cdd9e0;
  background: #eef3f8;
  color: #64748b;
  cursor: not-allowed;
}

.poc-vector-task-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: #526173;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.poc-vector-task-pill.full {
  background: #dcf8e8;
  color: #16845b;
}

.poc-vector-task-pill.weak {
  background: #e5f2ff;
  color: #005eb8;
}

.poc-vector-task-pill.missing {
  background: #fff2f3;
  color: #b72b35;
}

.poc-vector-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

body.app-shell-active.poc-vector-body .poc-vector-summary {
  margin-top: 8px;
}

.poc-vector-summary article {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  background: #fff;
}

body.app-shell-active.poc-vector-body .poc-vector-summary article {
  min-height: 58px;
  padding: 9px 11px;
}

.poc-vector-summary span {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.poc-vector-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body.app-shell-active.poc-vector-body .poc-vector-summary strong {
  margin-top: 5px;
  font-size: 16px;
}

.poc-vector-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  height: calc(100vh - 260px);
  min-height: 760px;
}

body.app-shell-active.poc-vector-body .poc-vector-workspace {
  height: calc(var(--app-frame-height) - 174px);
  min-height: 0;
  margin-top: 8px;
}

.poc-vector-rank,
.poc-vector-review {
  min-height: 0;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.poc-vector-rank {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.poc-vector-panel-head,
.poc-vector-graph-head,
.poc-vector-inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #dce6eb;
}

body.app-shell-active.poc-vector-body .poc-vector-panel-head,
body.app-shell-active.poc-vector-body .poc-vector-graph-head,
body.app-shell-active.poc-vector-body .poc-vector-inspector-head {
  padding: 10px 12px;
}

.poc-vector-panel-head strong,
.poc-vector-inspector-head strong {
  font-size: 18px;
}

.poc-vector-panel-head span,
.poc-vector-inspector-head span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf3f8;
  color: #64748b;
  font-weight: 900;
}

.poc-vector-rank-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.poc-vector-rank-card {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1px solid #d8e2e7;
  border-left: 7px solid #9aa8b2;
  border-radius: 8px;
  background: #fff;
  color: #22303d;
  text-align: left;
  cursor: pointer;
}

.poc-vector-rank-card.active {
  border-color: #0097aa;
  border-left-color: #d17b00;
  background: #effdff;
}

.poc-vector-rank-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.poc-vector-rank-top strong {
  font-size: 17px;
  line-height: 1.25;
}

.poc-vector-rank-top span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5fbfd;
  color: #006d7d;
  font-weight: 900;
}

.poc-vector-rank-card p {
  margin: 0;
  color: #63748a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.poc-vector-badges,
.poc-vector-legend,
.poc-vector-decision {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.poc-vector-badges span,
.poc-vector-legend span,
.poc-vector-decision span,
.poc-vector-decision strong {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #d8e2e7;
  background: #f7fafc;
  color: #526173;
  font-size: 13px;
  font-weight: 900;
  font-style: normal;
}

.poc-vector-badges .full,
.poc-vector-legend .full,
.poc-vector-decision .full,
.poc-vector-req-row.full strong {
  border-color: #a9e7c4;
  background: #eafbf1;
  color: #137044;
}

.poc-vector-badges .partial,
.poc-vector-legend .partial,
.poc-vector-decision .partial,
.poc-vector-req-row.partial strong {
  border-color: #f5cf8d;
  background: #fff6e1;
  color: #8b5500;
}

.poc-vector-badges .weak,
.poc-vector-legend .weak,
.poc-vector-decision .weak,
.poc-vector-req-row.weak strong {
  border-color: #c8d7e8;
  background: #f0f6fc;
  color: #3f5d7a;
}

.poc-vector-badges .missing,
.poc-vector-legend .missing,
.poc-vector-decision .missing,
.poc-vector-req-row.missing strong {
  border-color: #f2aeb5;
  background: #fff1f2;
  color: #98212b;
}

.poc-vector-decision .poc-vector-verdict.undermatch,
.poc-vector-verdict.undermatch {
  border-color: #f2aeb5;
  background: #fff1f2;
  color: #98212b;
}

.poc-vector-decision .poc-vector-verdict.overmatch,
.poc-vector-verdict.overmatch {
  border-color: #f5cf8d;
  background: #fff6e1;
  color: #8b5500;
}

.poc-vector-decision .poc-vector-verdict.agree,
.poc-vector-verdict.agree {
  border-color: #a9e7c4;
  background: #eafbf1;
  color: #137044;
}

.poc-vector-review {
  display: grid;
  grid-template-rows: auto minmax(320px, 48%) minmax(290px, 1fr);
}

body.app-shell-active.poc-vector-body .poc-vector-review {
  grid-template-rows: auto minmax(300px, 50%) minmax(240px, 1fr);
}

.poc-vector-graph-head {
  align-items: end;
}

.poc-vector-graph-tools {
  min-width: min(580px, 48vw);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.poc-vector-graph-tools label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-vector-graph-shell {
  min-height: 0;
  position: relative;
  background-color: #f9fcfd;
  background-image:
    linear-gradient(#e7eff2 1px, transparent 1px),
    linear-gradient(90deg, #e7eff2 1px, transparent 1px);
  background-size: 28px 28px;
}

.poc-vector-flow-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.poc-vector-fit-button {
  position: absolute;
  z-index: 12;
  top: 10px;
  left: 10px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd8e0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2b37;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(24, 38, 52, 0.10);
}

.poc-vector-graph-shell .react-flow {
  background: transparent;
}

.poc-vector-node {
  width: 250px;
  min-height: 82px;
  display: grid;
  gap: 6px;
  padding: 11px 13px;
  border: 1px solid #cfdce3;
  border-left: 7px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(24, 38, 52, 0.10);
  color: #1f2b37;
  font-size: 13px;
}

.poc-vector-node.selected {
  outline: 3px solid rgba(0, 94, 184, 0.28);
  box-shadow: 0 10px 24px rgba(0, 94, 184, 0.18);
}

.poc-vector-node.candidate {
  border-left-color: #005eb8;
  background: #eef6ff;
}

.poc-vector-node.match {
  border-left-color: #24313f;
  background: #f5f7fa;
}

.poc-vector-node.requirement {
  border-left-color: #e30613;
  background: #fff3f4;
}

.poc-vector-node.fact {
  border-left-color: #7d4ab0;
  background: #f7f0ff;
}

.poc-vector-node.evidence {
  border-left-color: #3d7db6;
  background: #eef7ff;
}

.poc-vector-node.candidate_concept {
  border-left-color: #007f95;
  background: #ebfbfd;
}

.poc-vector-node.required_concept {
  border-left-color: #d08a00;
  background: #fff8e8;
}

.poc-vector-node-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #66778c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-vector-node-top strong {
  color: #22303d;
}

.poc-vector-node-label {
  font-weight: 900;
  line-height: 1.25;
}

.poc-vector-node-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.poc-vector-inspector {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-top: 1px solid #dce6eb;
  background: #fff;
}

.poc-vector-inspector-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(440px, 1.35fr) minmax(320px, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.poc-vector-detail-section {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dce6eb;
  border-radius: 8px;
  background: #fbfdfe;
}

.poc-vector-detail-section h3 {
  margin: 0 0 10px;
  color: #58697d;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.poc-vector-detail-section p {
  margin: 8px 0;
  line-height: 1.45;
}

.poc-vector-detail-section pre {
  max-height: 240px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #d8e2e7;
  border-radius: 8px;
  background: #fff;
  color: #24313f;
  white-space: pre-wrap;
  font-size: 12px;
}

.poc-vector-selected-title {
  font-size: 17px;
  font-weight: 900;
}

.poc-vector-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #005eb8;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.poc-vector-req-table {
  display: grid;
  gap: 8px;
}

.poc-vector-req-row {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 7px 9px;
  padding: 9px;
  border: 1px solid #d8e2e7;
  border-radius: 8px;
  background: #fff;
  color: #22303d;
  text-align: left;
  cursor: pointer;
}

.poc-vector-req-row.active {
  border-color: #0097aa;
  background: #f0fdff;
}

.poc-vector-req-row.undermatch {
  border-color: #f0a4ad;
  background: #fff8f8;
}

.poc-vector-req-row.overmatch {
  border-color: #f1c984;
  background: #fffaf0;
}

.poc-vector-req-row > span,
.poc-vector-req-row > em,
.poc-vector-req-row > small {
  color: #64748b;
  font-weight: 900;
  font-style: normal;
}

.poc-vector-truth {
  padding: 3px 8px;
  border: 1px solid #d8e2e7;
  border-radius: 999px;
  background: #f7fafc;
}

.poc-vector-ground-truth {
  padding: 10px;
  border: 1px solid #f0d294;
  border-radius: 8px;
  background: #fffaf0;
  color: #715000;
  font-weight: 800;
}

.poc-vector-req-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: #344458;
}

.poc-vector-mapping-list {
  display: grid;
  gap: 8px;
}

.poc-vector-mapping-list article {
  padding: 9px;
  border: 1px solid #d8e2e7;
  border-radius: 8px;
  background: #fff;
}

.poc-vector-mapping-list article div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.poc-vector-mapping-list article span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #526173;
  font-size: 12px;
  font-weight: 900;
}

.poc-vector-mapping-list p {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1260px) {
  .poc-vector-control,
  .poc-vector-summary,
  .poc-vector-workspace,
  .poc-vector-inspector-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .poc-vector-review {
    min-height: 980px;
  }

  .poc-vector-rank-list {
    max-height: 360px;
  }
}

@media (max-width: 1500px) {
  .poc-vector-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .poc-vector-graph-tools {
    min-width: min(520px, 44vw);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1260px) {
  .poc-vector-summary {
    grid-template-columns: 1fr;
  }

  .poc-vector-graph-tools {
    min-width: 0;
  }
}

/* POC Vector split flow: Mapping Console + Review-only graph */
body.app-shell-active.poc-vector-body .poc-vector-page {
  height: auto;
  min-height: var(--app-frame-height);
  overflow: visible;
}

.poc-vector-map-app,
.poc-vector-review-app {
  display: grid;
  gap: 10px;
}

.poc-vector-review-control {
  grid-template-columns: minmax(250px, 0.75fr) minmax(320px, 1fr) minmax(210px, 240px) auto auto minmax(300px, 1fr);
}

.poc-vector-map-control {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(320px, 1.1fr) minmax(220px, 0.8fr) minmax(170px, 190px) auto auto minmax(300px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(33, 45, 61, 0.06);
}

.poc-vector-map-control h1 {
  margin: 2px 0 0;
  font-size: clamp(21px, 1.45vw, 30px);
  line-height: 1.15;
}

.poc-vector-map-control label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.poc-vector-map-control select,
.poc-vector-map-control input,
.poc-vector-map-control button {
  min-height: 44px;
  border: 1px solid #cdd9e0;
  border-radius: 8px;
  background: #fff;
  color: #1f2b37;
  font-weight: 800;
  font-size: 15px;
  padding: 0 14px;
}

.poc-vector-map-control button,
.poc-vector-map-actions button,
.poc-vector-map-row-actions button,
.poc-vector-map-row-actions a,
.poc-vector-map-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #005eb8;
  border-radius: 8px;
  background: #005eb8;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.poc-vector-map-link {
  background: #fff;
  color: #005eb8;
}

.poc-vector-map-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  background: #fff;
}

.poc-vector-map-actions button:first-child,
.poc-vector-map-actions button:nth-child(3) {
  background: #fff;
  color: #1f2b37;
  border-color: #cdd9e0;
}

.poc-vector-map-actions button:disabled,
.poc-vector-map-row-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.poc-vector-map-table {
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(33, 45, 61, 0.06);
}

.poc-vector-map-row {
  display: grid;
  grid-template-columns: 28px minmax(300px, 1.35fr) 110px 120px minmax(90px, 120px) minmax(300px, 1fr) minmax(180px, 220px);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px;
  border-bottom: 1px solid #dce6eb;
  background: #fff;
}

.poc-vector-map-row.head {
  min-height: 42px;
  background: #f7fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-vector-map-row.selected {
  background: #effdff;
}

.poc-vector-map-row strong,
.poc-vector-map-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poc-vector-map-row small {
  color: #64748b;
  font-size: 13px;
}

.poc-vector-map-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.poc-vector-map-row-actions a {
  background: #fff;
  color: #005eb8;
}

body.app-shell-active.poc-vector-body .poc-vector-workspace,
.poc-vector-review-workspace {
  height: auto;
  min-height: calc(100vh - 310px);
}

.poc-vector-review-workspace {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  align-items: stretch;
}

.poc-vector-review {
  display: grid;
  grid-template-rows: auto minmax(660px, 1fr);
}

body.app-shell-active.poc-vector-body .poc-vector-review {
  grid-template-rows: auto minmax(630px, 1fr);
}

.poc-vector-review-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  overflow: hidden;
}

.poc-vector-review-body.drawer-closed {
  grid-template-columns: minmax(0, 1fr) 56px;
}

.poc-vector-review-body .poc-vector-graph-shell {
  min-height: 630px;
  overflow: hidden;
}

.poc-vector-review-body .poc-vector-inspector {
  border-top: 0;
  border-left: 1px solid #dce6eb;
}

.poc-vector-review-body .poc-vector-inspector-grid {
  grid-template-columns: 1fr;
  align-content: start;
  overflow: auto;
}

.poc-vector-review-body .poc-vector-detail-section {
  overflow: visible;
}

.poc-vector-drawer-tab {
  min-height: 100%;
  border: 0;
  border-left: 1px solid #dce6eb;
  background: #f8fbfc;
  color: #005eb8;
  font-weight: 900;
  writing-mode: vertical-rl;
  cursor: pointer;
}

.poc-vector-evidence-section {
  display: grid;
  gap: 10px;
}

.poc-vector-evidence-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid #d8e2e7;
  border-radius: 8px;
  background: #fff;
}

.poc-vector-path-note {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #c9d9e7;
  border-radius: 8px;
  background: #f5f9fc;
  color: #43566b;
}

.poc-vector-path-note strong {
  color: #1f2b37;
}

.poc-vector-path-note ul {
  margin: 0;
  padding-left: 18px;
}

.poc-vector-path-note li {
  margin: 4px 0;
  line-height: 1.4;
}

.poc-vector-selected-node-section {
  border-left: 4px solid #005eb8;
  background: #fbfdff;
}

.poc-vector-selected-node-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.poc-vector-selected-node-head span,
.poc-vector-selected-node-head strong {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #d8e2e7;
  background: #f7fafc;
  color: #526173;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-vector-selected-node-head strong.full,
.poc-vector-decision-grid strong.full {
  border-color: #a9e7c4;
  background: #eafbf1;
  color: #137044;
}

.poc-vector-selected-node-head strong.partial,
.poc-vector-decision-grid strong.partial {
  border-color: #f5cf8d;
  background: #fff6e1;
  color: #8b5500;
}

.poc-vector-selected-node-head strong.weak,
.poc-vector-decision-grid strong.weak {
  border-color: #c8d7e8;
  background: #f0f6fc;
  color: #3f5d7a;
}

.poc-vector-selected-node-head strong.missing,
.poc-vector-decision-grid strong.missing {
  border-color: #f2aeb5;
  background: #fff1f2;
  color: #98212b;
}

.poc-vector-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.poc-vector-decision-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #d8e2e7;
  border-radius: 8px;
  background: #fff;
}

.poc-vector-decision-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-vector-decision-grid strong {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #d8e2e7;
  border-radius: 999px;
  background: #f7fafc;
  color: #1f2b37;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.poc-vector-decision-headline,
.poc-vector-review-note {
  margin: 8px 0 0;
  padding: 9px 10px;
  border: 1px solid #c9d9e7;
  border-radius: 8px;
  background: #f5f9fc;
  color: #33465a;
  font-weight: 800;
  line-height: 1.45;
}

.poc-vector-review-note {
  font-weight: 700;
}

.poc-vector-evidence-card-head,
.poc-vector-source-links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.poc-vector-evidence-card-head span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: #526173;
  font-size: 12px;
  font-weight: 900;
}

.poc-vector-evidence-card ul {
  margin: 0;
  padding-left: 18px;
}

.poc-vector-evidence-card li {
  margin: 4px 0;
  line-height: 1.4;
}

.poc-vector-source-links {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.poc-vector-source-links a {
  color: #005eb8;
  font-weight: 900;
  text-decoration: none;
}

.poc-vector-keyword-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.poc-vector-keyword-list span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3f8;
  color: #526173;
  font-size: 12px;
  font-weight: 900;
}

.poc-vector-empty-review {
  min-height: 620px;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #5f7188;
}

.poc-vector-empty-review strong {
  color: #22303d;
  font-size: 22px;
}

.poc-vector-rank-empty {
  min-height: 260px;
}

@media (max-width: 1320px) {
  .poc-vector-map-control,
  .poc-vector-review-control,
  .poc-vector-map-row,
  .poc-vector-review-workspace,
  .poc-vector-review-body {
    grid-template-columns: 1fr;
  }

  .poc-vector-review-body.drawer-closed {
    grid-template-columns: 1fr;
  }

  .poc-vector-drawer-tab {
    min-height: 48px;
    writing-mode: horizontal-tb;
  }
}

/* Review usability override: use the real browser width and keep graph/drawer bounded. */
body.app-shell-active.poc-vector-body {
  --app-frame-width: calc(100vw - 16px);
  overflow: auto;
}

body.app-shell-active.poc-vector-body .app-topbar {
  width: var(--app-frame-width);
}

body.app-shell-active.poc-vector-body > main {
  width: var(--app-frame-width);
}

body.app-shell-active.poc-vector-body .poc-vector-page {
  height: auto;
  min-height: var(--app-frame-height);
  overflow: visible;
  padding: 8px;
}

.poc-vector-review-app {
  min-height: 0;
  gap: 8px;
}

.poc-vector-review-app .poc-vector-review-control {
  grid-template-columns: minmax(210px, 0.75fr) minmax(280px, 1.05fr) minmax(180px, 220px) auto auto minmax(220px, 0.85fr);
  gap: 8px;
  padding: 8px 10px;
}

.poc-vector-review-app .poc-vector-control h1 {
  font-size: 23px;
}

.poc-vector-review-app .poc-vector-control select,
.poc-vector-review-app .poc-vector-control button,
.poc-vector-review-app .poc-vector-graph-head select,
.poc-vector-review-app .poc-vector-map-link,
.poc-vector-review-app .poc-vector-status {
  min-height: 36px;
  font-size: 13px;
}

.poc-vector-review-app .poc-vector-status {
  padding: 0 10px;
}

.poc-vector-review-app .poc-vector-summary {
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  gap: 6px;
  margin-top: 0;
}

.poc-vector-review-app .poc-vector-summary article,
body.app-shell-active.poc-vector-body .poc-vector-review-app .poc-vector-summary article {
  min-height: 48px;
  padding: 7px 9px;
}

.poc-vector-review-app .poc-vector-summary span {
  font-size: 11px;
}

.poc-vector-review-app .poc-vector-summary strong,
body.app-shell-active.poc-vector-body .poc-vector-review-app .poc-vector-summary strong {
  margin-top: 4px;
  font-size: 13px;
}

body.app-shell-active.poc-vector-body .poc-vector-review-workspace,
.poc-vector-review-workspace {
  height: calc(100vh - var(--app-topbar-height) - 166px);
  min-height: 620px;
  max-height: none;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  margin-top: 0;
}

.poc-vector-review-app .poc-vector-rank,
.poc-vector-review-app .poc-vector-review {
  min-height: 0;
  height: 100%;
}

.poc-vector-review-app .poc-vector-rank-list {
  min-height: 0;
  overflow-y: auto;
}

.poc-vector-review-app .poc-vector-rank-card {
  gap: 7px;
  margin-bottom: 8px;
  padding: 10px 11px;
}

.poc-vector-review-app .poc-vector-rank-top strong {
  font-size: 15px;
}

.poc-vector-review-app .poc-vector-rank-card p {
  font-size: 12px;
}

.poc-vector-review-app .poc-vector-badges span {
  font-size: 11px;
  padding: 3px 7px;
}

.poc-vector-review-app .poc-vector-review {
  grid-template-rows: auto minmax(0, 1fr);
}

body.app-shell-active.poc-vector-body .poc-vector-review-app .poc-vector-review {
  grid-template-rows: auto minmax(0, 1fr);
}

.poc-vector-review-app .poc-vector-graph-head {
  min-height: 66px;
  padding: 8px 12px;
  align-items: center;
}

.poc-vector-review-app .poc-vector-graph-head h2 {
  font-size: 21px;
}

.poc-vector-review-app .poc-vector-graph-tools {
  min-width: 0;
  grid-template-columns: minmax(280px, 1fr) auto;
}

.poc-vector-review-body {
  height: 100%;
  min-height: 0;
}

.poc-vector-review-body.drawer-open {
  grid-template-columns: minmax(0, 1fr) 8px minmax(320px, var(--poc-vector-drawer-width, 460px));
}

.poc-vector-review-body.drawer-closed {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.poc-vector-drawer-resizer {
  width: 8px;
  min-width: 8px;
  height: 100%;
  cursor: col-resize;
  background: linear-gradient(90deg, transparent 0, transparent 2px, #d6e1e8 3px, #d6e1e8 5px, transparent 6px);
}

.poc-vector-drawer-resizer:hover,
body.poc-vector-resizing .poc-vector-drawer-resizer {
  background: linear-gradient(90deg, transparent 0, transparent 1px, #0067b1 2px, #0067b1 6px, transparent 7px);
}

body.poc-vector-resizing {
  cursor: col-resize;
  user-select: none;
}

.poc-vector-review-body .poc-vector-graph-shell {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.poc-vector-review-body .poc-vector-graph-shell .react-flow {
  width: 100%;
  height: 100%;
}

.poc-vector-review-body .poc-vector-inspector {
  height: 100%;
  min-height: 0;
}

.poc-vector-review-body .poc-vector-inspector-grid {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.poc-vector-review-body .poc-vector-detail-section {
  overflow: visible;
}

.poc-vector-review-body .poc-vector-drawer-tab {
  min-height: 100%;
}

@media (max-width: 1500px) {
  .poc-vector-review-app .poc-vector-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.app-shell-active.poc-vector-body .poc-vector-review-workspace,
  .poc-vector-review-workspace {
    height: calc(100vh - var(--app-topbar-height) - 220px);
    min-height: 520px;
    max-height: none;
  }
}

@media (max-width: 1180px) {
  .poc-vector-review-app .poc-vector-review-control,
  .poc-vector-review-workspace,
  .poc-vector-review-body.drawer-open,
  .poc-vector-review-body.drawer-closed {
    grid-template-columns: 1fr;
  }

  .poc-vector-drawer-resizer {
    display: none;
  }

  body.app-shell-active.poc-vector-body .poc-vector-review-workspace,
  .poc-vector-review-workspace {
    height: auto;
    max-height: none;
  }

  .poc-vector-review-app .poc-vector-rank-list {
    max-height: 300px;
  }

  .poc-vector-review-body .poc-vector-graph-shell {
    height: 560px;
  }
}

/* Drawer containment: long concept codes and mixed Thai/English evidence must never overflow. */
.poc-vector-review-body .poc-vector-inspector,
.poc-vector-review-body .poc-vector-inspector *,
.poc-vector-review-body .poc-vector-inspector *::before,
.poc-vector-review-body .poc-vector-inspector *::after {
  box-sizing: border-box;
}

.poc-vector-review-body .poc-vector-inspector {
  min-width: 0;
  overflow: hidden;
}

.poc-vector-review-body .poc-vector-inspector-grid,
.poc-vector-review-body .poc-vector-detail-section,
.poc-vector-review-body .poc-vector-evidence-card,
.poc-vector-review-body .poc-vector-mapping-list,
.poc-vector-review-body .poc-vector-mapping-list article,
.poc-vector-review-body .poc-vector-path-note,
.poc-vector-review-body .poc-vector-ground-truth,
.poc-vector-review-body .poc-vector-review-note,
.poc-vector-review-body .poc-vector-decision-headline {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.poc-vector-review-body .poc-vector-detail-section {
  overflow-x: hidden;
  overflow-y: visible;
}

.poc-vector-review-body .poc-vector-inspector h3,
.poc-vector-review-body .poc-vector-inspector p,
.poc-vector-review-body .poc-vector-inspector li,
.poc-vector-review-body .poc-vector-inspector strong,
.poc-vector-review-body .poc-vector-inspector small,
.poc-vector-review-body .poc-vector-inspector span,
.poc-vector-review-body .poc-vector-inspector a {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.poc-vector-review-body .poc-vector-selected-title,
.poc-vector-review-body .poc-vector-selected-node-head,
.poc-vector-review-body .poc-vector-evidence-card-head,
.poc-vector-review-body .poc-vector-source-links,
.poc-vector-review-body .poc-vector-mapping-list article div,
.poc-vector-review-body .poc-vector-badges,
.poc-vector-review-body .poc-vector-keyword-list {
  max-width: 100%;
  min-width: 0;
}

.poc-vector-review-body .poc-vector-selected-node-head,
.poc-vector-review-body .poc-vector-evidence-card-head,
.poc-vector-review-body .poc-vector-mapping-list article div {
  flex-wrap: wrap;
  align-items: flex-start;
}

.poc-vector-review-body .poc-vector-selected-node-head > *,
.poc-vector-review-body .poc-vector-evidence-card-head > *,
.poc-vector-review-body .poc-vector-mapping-list article div > *,
.poc-vector-review-body .poc-vector-badges > *,
.poc-vector-review-body .poc-vector-keyword-list > * {
  max-width: 100%;
  white-space: normal;
}

.poc-vector-review-body .poc-vector-badges span,
.poc-vector-review-body .poc-vector-keyword-list span,
.poc-vector-review-body .poc-vector-mapping-list article span {
  line-height: 1.25;
}

.poc-vector-review-body .poc-vector-decision-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.poc-vector-review-body .poc-vector-source-link,
.poc-vector-review-body .poc-vector-source-links a {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.poc-db-page {
  min-height: calc(100vh - 74px);
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  overflow: visible;
}

body.poc-db-body,
body.app-shell-active.poc-db-body {
  overflow: auto;
}

body.app-shell-active.poc-db-body > main {
  min-height: calc(100vh - 74px);
}

.poc-db-hero,
.poc-db-layout,
.poc-db-sidebar,
.poc-db-main {
  border: 1px solid #d7e0e6;
  background: #fff;
  border-radius: 8px;
}

.poc-db-hero {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.poc-db-hero h1,
.poc-db-toolbar h2 {
  margin: 0;
}

.poc-db-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  overflow: visible;
}

.poc-db-sidebar {
  border-width: 0 1px 0 0;
  border-radius: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
}

.poc-db-sidebar-head {
  padding: 14px;
  border-bottom: 1px solid #d7e0e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poc-db-sidebar-head span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef3f8;
  font-weight: 900;
  color: #607086;
}

.poc-db-table-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.poc-db-table-button {
  width: 100%;
  padding: 11px;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: #f9fbfc;
  color: #1f2933;
  text-align: left;
  cursor: pointer;
}

.poc-db-table-button.active {
  border-color: #0077a3;
  background: #e9f8fb;
  box-shadow: inset 4px 0 #0077a3;
}

.poc-db-table-button strong,
.poc-db-table-button span {
  display: block;
}

.poc-db-table-button span {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.poc-db-main {
  border: 0;
  border-radius: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto;
  overflow: visible;
}

.poc-db-toolbar {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 420px) 110px auto;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid #d7e0e6;
}

.poc-db-toolbar label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.poc-db-toolbar input {
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  font: inherit;
}

.poc-db-hero button,
.poc-db-toolbar button,
.poc-db-pager button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  font-weight: 900;
  cursor: pointer;
}

.poc-db-toolbar button,
.poc-db-hero button {
  background: #0067b1;
  border-color: #0067b1;
  color: #fff;
}

.poc-db-status {
  padding: 10px 14px;
  border-bottom: 1px solid #d7e0e6;
  color: #526173;
  background: #f8fafc;
}

.poc-db-status.error {
  color: #9a111b;
  background: #fff2f3;
}

.poc-db-grid-wrap {
  min-height: 0;
  overflow-x: auto;
  overflow-y: visible;
}

.poc-db-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.poc-db-grid th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef3f8;
  color: #46586f;
  text-align: left;
  white-space: nowrap;
}

.poc-db-grid th,
.poc-db-grid td {
  max-width: 420px;
  padding: 9px 10px;
  border: 1px solid #dfe7ed;
  vertical-align: top;
}

.poc-db-grid td {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.poc-db-pager {
  padding: 10px 14px;
  border-top: 1px solid #d7e0e6;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1100px) {
  .poc-db-layout,
  .poc-db-toolbar {
    grid-template-columns: 1fr;
  }

  .poc-db-sidebar {
    position: static;
    max-height: 280px;
    border-width: 0 0 1px 0;
  }
}

.poc-v31-proof-page {
  --v31-border: #cfdae5;
  --v31-ink: #10233f;
  --v31-muted: #586b86;
  --v31-green: #008767;
  --v31-amber: #ad6b00;
  gap: 18px;
}

.poc-v31-proof-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.poc-v31-proof-summary .summary-card {
  min-height: 116px;
}

.poc-v31-proof-summary .summary-card p {
  overflow-wrap: anywhere;
}

.poc-v31-proof-instructions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.poc-v31-proof-instructions article,
.poc-v31-proof-toolbar,
.poc-v31-proof-list-panel,
.poc-v31-proof-detail,
.poc-v31-small-card,
.poc-v31-adjudication,
.poc-v31-fact-card {
  border: 1px solid var(--v31-border);
  background: #fff;
  border-radius: 8px;
}

.poc-v31-proof-instructions article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
}

.poc-v31-proof-instructions strong {
  display: grid;
  place-items: center;
  inline-size: 28px;
  block-size: 28px;
  border-radius: 999px;
  background: #e9f6f3;
  color: var(--v31-green);
}

.poc-v31-proof-instructions p {
  margin: 0;
  color: var(--v31-muted);
  line-height: 1.45;
}

.poc-v31-proof-toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(180px, 0.45fr));
  gap: 12px;
  padding: 14px;
}

.poc-v31-proof-toolbar label {
  display: grid;
  gap: 6px;
  color: #3f526d;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.poc-v31-proof-toolbar input,
.poc-v31-proof-toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #bfd0e3;
  border-radius: 8px;
  background: #fff;
  color: var(--v31-ink);
  font: inherit;
  font-weight: 700;
  text-transform: none;
  padding: 0 12px;
}

.poc-v31-proof-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.poc-v31-proof-list-panel,
.poc-v31-proof-detail {
  min-height: 560px;
}

.poc-v31-proof-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 360px);
  min-height: 420px;
  overflow: auto;
  padding: 12px;
}

.poc-v31-proof-row {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid #d7e1ec;
  border-left-width: 6px;
  border-radius: 8px;
  background: #fff;
  color: var(--v31-ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.poc-v31-proof-row.review {
  border-left-color: var(--v31-amber);
}

.poc-v31-proof-row.pass {
  border-left-color: var(--v31-green);
}

.poc-v31-proof-row:hover,
.poc-v31-proof-row.active {
  border-color: #0077cf;
  border-left-color: #0077cf;
  background: #eff8ff;
}

.poc-v31-proof-row span,
.poc-v31-proof-row small {
  color: #536781;
  font-weight: 800;
}

.poc-v31-proof-row strong {
  color: var(--v31-ink);
  overflow-wrap: anywhere;
}

.poc-v31-proof-detail {
  max-height: calc(100vh - 320px);
  overflow: auto;
}

.poc-v31-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid #d7e1ec;
  padding: 18px;
}

.poc-v31-detail-head h2 {
  margin: 0;
  color: var(--v31-ink);
  font-size: 1.65rem;
}

.poc-v31-detail-head p {
  margin: 6px 0 0;
  color: #3c4f69;
  line-height: 1.5;
}

.poc-v31-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
}

.poc-v31-detail-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #0067c5;
  border-radius: 8px;
  padding: 0 12px;
  color: #005eb8;
  font-weight: 900;
  text-decoration: none;
}

.poc-v31-section {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e1e8f0;
}

.poc-v31-section h3 {
  margin: 0;
  color: #344861;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.poc-v31-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.poc-v31-small-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.poc-v31-small-card span {
  color: #51667f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.poc-v31-small-card strong {
  color: var(--v31-ink);
  overflow-wrap: anywhere;
}

.poc-v31-small-card p {
  margin: 0;
  color: var(--v31-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.poc-v31-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.poc-v31-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #b9d6ff;
  border-radius: 999px;
  background: #eef6ff;
  color: #005eb8;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.poc-v31-chip.pass,
.poc-v31-adjudication.pass {
  border-color: #9ee2bd;
  background: #f0fff6;
  color: #00703c;
}

.poc-v31-chip.review,
.poc-v31-adjudication.review {
  border-color: #ffd58a;
  background: #fff9eb;
  color: #915800;
}

.poc-v31-chip.blocked,
.poc-v31-adjudication.blocked {
  border-color: #ffb4b4;
  background: #fff5f5;
  color: #b42318;
}

.poc-v31-chip.concept {
  border-color: #9ee2bd;
  background: #effdf6;
  color: #007a48;
}

.poc-v31-chip.action {
  border-color: #9fd7ff;
  background: #eff9ff;
  color: #005eb8;
}

.poc-v31-chip.object {
  border-color: #c8b7ff;
  background: #f7f3ff;
  color: #6042a6;
}

.poc-v31-chip.source,
.poc-v31-chip.muted {
  border-color: #d8e2ed;
  background: #f6f8fb;
  color: #4e6078;
}

.poc-v31-adjudication-list,
.poc-v31-fact-list {
  display: grid;
  gap: 10px;
}

.poc-v31-adjudication {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.poc-v31-adjudication > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.poc-v31-adjudication strong {
  color: var(--v31-ink);
}

.poc-v31-adjudication span {
  color: #51667f;
  font-size: 0.78rem;
  font-weight: 900;
}

.poc-v31-adjudication p,
.poc-v31-source-list p {
  margin: 0;
  color: #344861;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.poc-v31-fact-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.poc-v31-fact-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.poc-v31-fact-card header div {
  display: grid;
  gap: 4px;
}

.poc-v31-fact-card span {
  color: #51667f;
  font-size: 0.78rem;
  font-weight: 900;
}

.poc-v31-fact-card strong {
  color: var(--v31-ink);
}

.poc-v31-source-list {
  display: grid;
  gap: 8px;
}

.poc-v31-source-list > div {
  display: grid;
  gap: 6px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #f8fbfe;
  padding: 10px;
}

.muted-copy {
  color: var(--v31-muted);
}

@media (max-width: 1180px) {
  .poc-v31-proof-summary,
  .poc-v31-proof-instructions,
  .poc-v31-proof-toolbar,
  .poc-v31-proof-layout,
  .poc-v31-card-grid {
    grid-template-columns: 1fr;
  }

  .poc-v31-proof-list,
  .poc-v31-proof-detail {
    max-height: none;
  }

  .poc-v31-detail-head {
    display: grid;
  }

  .poc-v31-detail-actions {
    justify-content: flex-start;
  }
}
