:root {
  --primary: #005590;
  --primary-dark: #005580;
  --danger: #b42318;
  --danger-bg: #f8d7da;
  --danger-border: #e6b8bf;
  --success-bg: #d4edda;
  --success-text: #155724;
  --panel: #ffffff;
  --panel-muted: #f6f8fb;
  --page-bg-top: #f4f6f8;
  --page-bg-bottom: #d9dde1;
  --sidebar-bg: #f1f5f9;
  --line: #d4dbe3;
  --text: #22313f;
  --muted: #637381;
  --shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--page-bg-top) 0%, var(--page-bg-bottom) 100%);
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

textarea {
  resize: none;
}

.page-body {
  min-height: 100vh;
}

.flash-stack {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: min(460px, calc(100% - 32px));
  transform: translateX(-50%);
}

.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--panel);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.flash.is-closing {
  opacity: 0;
  transform: translateY(-8px);
}

.flash-text {
  min-width: 0;
  line-height: 1.5;
}

.flash-close {
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.flash-close:hover {
  opacity: 1;
}

.flash-success {
  background: var(--success-bg);
  border-color: #badbc5;
  color: var(--success-text);
}

.flash-error,
.flash-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.auth-shell,
.content-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card,
.content-card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.auth-card--wide,
.content-card--wide {
  width: min(860px, 100%);
}

.error-page-body {
  position: relative;
  overflow: hidden;
}

.error-page-body::before,
.error-page-body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
}

.error-page-body::before {
  top: -80px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 85, 144, 0.22) 0%, rgba(0, 85, 144, 0) 72%);
}

.error-page-body::after {
  bottom: -120px;
  left: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(180, 35, 24, 0.14) 0%, rgba(180, 35, 24, 0) 72%);
}

.error-shell {
  position: relative;
  z-index: 1;
}

.error-card {
  width: min(640px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 42px 40px;
  text-align: center;
}

.error-card .brand-logo {
  width: min(300px, 78%);
  margin: 0 auto 4px;
}

.error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 44px;
  border: 1px solid rgba(0, 85, 144, 0.16);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(0, 85, 144, 0.07);
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.error-title {
  font-size: 32px;
  max-width: 14ch;
}

.error-subtitle {
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

.error-path {
  display: grid;
  gap: 6px;
  width: min(100%, 460px);
  border: 1px solid rgba(0, 85, 144, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(0, 85, 144, 0.05);
}

.error-path-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.error-path strong {
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.brand-logo {
  display: block;
  width: min(240px, 100%);
  margin: 0 auto 18px;
}

.brand-logo--small {
  width: min(180px, 100%);
  margin: 0 0 18px;
}

.brand-title,
.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-title {
  text-align: center;
}

.brand-subtitle,
.page-subtitle {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.brand-subtitle {
  text-align: center;
}

.auth-form,
.stack-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
  scroll-margin-top: 96px;
  border-radius: 10px;
}

.form-label {
  font-size: 15px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bcc7d2;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 144, 0.14);
}

.form-row--error .form-label {
  color: var(--danger);
}

.form-input--error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.form-submit,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.form-submit,
.button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--panel);
}

.form-submit:hover,
.button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--panel);
}

.button-secondary {
  border: 1px solid var(--primary);
  background: var(--panel);
  color: var(--primary);
}

.button-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--panel);
}

.form-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.form-links a {
  text-decoration: none;
}

.form-links a:hover {
  text-decoration: underline;
}

.error-box {
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
  scroll-margin-top: 96px;
}

.info-box {
  border: 1px solid rgba(0, 85, 144, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(0, 85, 144, 0.07);
  color: var(--text);
  font-size: 14px;
}

.info-box p {
  margin: 0;
}

.error-box ul {
  margin: 0;
  padding-left: 18px;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-row img.captcha {
  display: block;
  width: min(180px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
}

.auth-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-note--left {
  text-align: left;
}

.instruction-list,
.dashboard-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.6;
}

.instruction-list {
  margin-bottom: 24px;
}

.instruction-list--compact {
  margin: 10px 0 0;
}

.error-focus-target {
  animation: error-target-pulse 1.2s ease;
}

@keyframes error-target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(180, 35, 24, 0);
  }

  40% {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(180, 35, 24, 0);
  }
}

.dashboard-list li + li,
.instruction-list li + li {
  margin-top: 6px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-muted);
  padding: 18px;
}

.data-table-wrap {
  width: 100%;
  max-width: 100%;
  padding-bottom: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(50, 72, 93, 0.38) rgba(212, 219, 227, 0.36);
}

.data-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.data-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(212, 219, 227, 0.36);
}

.data-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(50, 72, 93, 0.38);
}

.data-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(50, 72, 93, 0.52);
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.form-grid--cards .form-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 14px;
}

.form-grid--cards .form-row--checkbox {
  align-content: start;
}

.form-grid--cards .checkbox-row {
  min-height: 100%;
}

.form-grid--cards .checkbox-row .form-label {
  margin: 0;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(0, 85, 144, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(0, 85, 144, 0.06);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.section-tab:hover {
  background: rgba(0, 85, 144, 0.12);
  color: var(--primary-dark);
}

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

.section-head--compact {
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.section-title--compact {
  font-size: 16px;
}

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

.text-prewrap {
  white-space: pre-wrap;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 12px;
}

.mt-3 {
  margin-top: 14px;
}

.justify-content-end {
  justify-content: flex-end;
}

.align-items-center {
  align-items: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button-row > .button,
.button-row > .button-secondary,
.button-row > .form-submit {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.button-row > form {
  display: flex;
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  align-items: center;
}

.button-row > form > .button,
.button-row > form > .button-secondary,
.button-row > form > .form-submit {
  width: 100%;
}

.button-row-centered {
  justify-content: center;
  margin-top: 24px;
}

.dashboard-card > .button-row:not(:first-child),
.dashboard-card > .print-action-block:not(:first-child),
.content-section > .button-row:not(:first-child),
.content-section > .print-action-block:not(:first-child),
.candidate-summary-grid + .button-row,
.candidate-summary-grid + .print-action-block,
.candidate-checklist + .button-row,
.candidate-checklist + .print-action-block,
.data-table-wrap + .button-row,
.data-table-wrap + .print-action-block,
.data-table-wrap + .readonly-note,
.readonly-note + .button-row,
.readonly-note + .print-action-block,
.print-action-block + .stack-form,
.print-action-block + .readonly-note,
.button-row + .stack-form,
.button-row + .readonly-note,
.stack-form + .stack-form {
  margin-top: 18px;
}

.section-text + .button-row,
.meta-grid + .button-row,
.data-table + .button-row,
.dashboard-list + .button-row,
.empty-state + .button-row {
  margin-top: 18px;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-width: 0;
}

.dashboard-sidebar {
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  padding: 24px 20px;
}

.sidebar-title-group {
  margin-bottom: 22px;
}

.sidebar-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

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

.dashboard-nav {
  display: grid;
  gap: 6px;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.is-active {
  border-color: rgba(0, 85, 144, 0.18);
  background: rgba(0, 85, 144, 0.08);
  color: var(--primary-dark);
}

.dashboard-main {
  padding: 24px 28px 32px;
  min-width: 0;
}

.dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-description {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

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

.meta-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-muted);
  padding: 14px;
}

.meta-item strong {
  display: block;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.meta-item--full {
  grid-column: 1 / -1;
}

.meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.dashboard-card {
  padding: 20px;
}

.dashboard-card--hero {
  padding: 24px;
}

.dashboard-card--full {
  grid-column: 1 / -1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(0, 85, 144, 0.1);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.status-pill--muted {
  background: #e9eef4;
  color: #4e6478;
}

.status-pill--success {
  background: #d4edda;
  color: #155724;
}

.status-pill--warning {
  background: #fff4d6;
  color: #8a5b00;
}

.status-pill--danger {
  background: #f8d7da;
  color: #b42318;
}

.status-pill--info {
  background: rgba(0, 85, 144, 0.12);
  color: var(--primary-dark);
}

.empty-state {
  margin-top: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel-muted);
  padding: 18px;
}

.empty-state-title {
  margin: 0 0 8px;
  font-size: 17px;
}

.empty-state-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.logout-form {
  margin: 0;
}

.data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

.data-table--candidate-directory {
  min-width: 1700px;
}

.data-table--candidate-directory th:first-child,
.data-table--candidate-directory td:first-child {
  width: 56px;
}

.data-table--candidate-directory th:nth-child(2),
.data-table--candidate-directory td:nth-child(2) {
  width: 210px;
}

.data-table--candidate-directory th:nth-child(3),
.data-table--candidate-directory td:nth-child(3) {
  width: 210px;
}

.data-table--candidate-directory th:nth-child(4),
.data-table--candidate-directory td:nth-child(4) {
  width: 118px;
}

.data-table--candidate-directory th:nth-child(5),
.data-table--candidate-directory td:nth-child(5) {
  width: 148px;
}

.data-table--candidate-directory th:nth-child(6),
.data-table--candidate-directory td:nth-child(6) {
  width: 124px;
}

.data-table--candidate-directory th:nth-child(7),
.data-table--candidate-directory td:nth-child(7) {
  width: 156px;
}

.data-table--candidate-directory th:nth-child(8),
.data-table--candidate-directory td:nth-child(8) {
  width: 176px;
}

.data-table--candidate-directory th:nth-child(9),
.data-table--candidate-directory td:nth-child(9) {
  width: 130px;
}

.data-table--candidate-directory th:nth-child(10),
.data-table--candidate-directory td:nth-child(10) {
  width: 144px;
}

.data-table--candidate-directory th:last-child,
.data-table--candidate-directory td:last-child {
  width: 284px;
}

.data-table--candidate-directory td {
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.4;
}

.data-table--candidate-directory .table-cell-stack {
  gap: 4px;
}

.data-table--candidate-directory .table-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}

.data-table--candidate-directory .table-actions > a,
.data-table--candidate-directory .table-actions > form {
  width: 100%;
}

.data-table--candidate-directory .table-actions > form > .button,
.data-table--candidate-directory .table-actions > form > .button-secondary,
.data-table--candidate-directory .table-actions > form > .link-button,
.data-table--candidate-directory .table-actions > a {
  width: 100%;
}

.data-table--meetings {
  min-width: 1140px;
}

.data-table--meetings th:nth-child(1),
.data-table--meetings td:nth-child(1) {
  width: 240px;
}

.data-table--meetings th:nth-child(2),
.data-table--meetings td:nth-child(2) {
  width: 96px;
}

.data-table--meetings th:nth-child(3),
.data-table--meetings td:nth-child(3) {
  width: 120px;
}

.data-table--meetings th:nth-child(4),
.data-table--meetings td:nth-child(4) {
  width: 132px;
}

.data-table--meetings th:nth-child(5),
.data-table--meetings td:nth-child(5),
.data-table--meetings th:nth-child(6),
.data-table--meetings td:nth-child(6),
.data-table--meetings th:nth-child(7),
.data-table--meetings td:nth-child(7) {
  width: 96px;
  text-align: center;
}

.data-table--meetings th:last-child,
.data-table--meetings td:last-child {
  width: 220px;
}

.data-table--meetings td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.data-table--meetings .table-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}

.data-table--meetings .table-actions > a,
.data-table--meetings .table-actions > form {
  width: 100%;
}

.data-table--meetings .table-actions > form > .button,
.data-table--meetings .table-actions > form > .button-secondary,
.data-table--meetings .table-actions > form > .link-button,
.data-table--meetings .table-actions > a {
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  color: #1f2933;
}

.data-table th {
  font-size: 12px;
  color: #32485d;
  font-weight: 600;
}

.data-table--compact th,
.data-table--compact td {
  padding: 8px 10px;
}

.data-table--ellipsis {
  table-layout: fixed;
}

.data-table--ellipsis th,
.data-table--ellipsis td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}

.data-table--ellipsis .table-cell-stack,
.data-table--ellipsis .table-cell-stack strong,
.data-table--ellipsis .table-subtext {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table--ellipsis .status-pill {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions-head,
.data-table td.table-actions {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
}

.table-actions form {
  margin: 0;
}

.table-actions a,
.table-actions .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(0, 85, 144, 0.14);
  border-radius: 8px;
  padding: 6px 10px;
  background: #ffffff;
  color: var(--primary);
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

.table-actions a:hover,
.table-actions .link-button:hover,
.link-button:hover {
  color: var(--primary-dark);
}

.comment-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 14px;
}

.comment-box + .comment-box {
  margin-top: 12px;
}

.filters-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-muted);
  padding: 18px;
  margin-bottom: 20px;
  min-width: 0;
}

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

.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
}

.summary-value {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}

.table-cell-stack {
  display: grid;
  gap: 6px;
}

.table-subtext {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.process-overview-card {
  padding: 20px;
}

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

.process-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-muted);
  padding: 16px;
}

.process-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.process-card .section-text {
  color: var(--text);
}

.candidate-page {
  display: grid;
  gap: 24px;
}

.candidate-page .dashboard-card {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.candidate-page .section-title {
  font-size: 17px;
}

.candidate-page .section-text {
  color: #5f6f7f;
}

.candidate-page .meta-label {
  color: #708090;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.candidate-page .meta-item,
.candidate-summary-card {
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fafbfd;
  padding: 16px;
}

.candidate-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.candidate-summary-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.candidate-intro-card,
.candidate-section-card,
.candidate-actions-card {
  padding: 22px;
}

.candidate-checklist {
  margin-top: 18px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.candidate-checklist .state-list {
  margin-top: 8px;
}

.candidate-page .comment-box,
.candidate-page .empty-state,
.candidate-page .readonly-note,
.candidate-page .content-section {
  border-radius: 12px;
}

.candidate-page .comment-box {
  background: #fff;
}

.candidate-page .empty-state,
.candidate-page .readonly-note,
.candidate-page .content-section {
  background: #fbfcfe;
}

.candidate-page .button-row {
  gap: 12px;
}

.candidate-page .data-table th {
  color: #667788;
  font-size: 12px;
  font-weight: 600;
}

.candidate-page .data-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.candidate-page .table-subtext {
  color: #6b7c8d;
}

.candidate-page .form-grid--cards .form-row {
  padding: 16px;
}

.candidate-page .field-help {
  color: #748495;
}

.candidate-form-block {
  margin-top: 20px;
  border-top: 1px solid #dbe3ec;
  padding-top: 20px;
}

.researcher-profile-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.researcher-profile-grid .form-row {
  height: 100%;
  align-content: start;
}

.researcher-profile-grid .form-input {
  min-height: 56px;
}

.researcher-profile-grid textarea.form-input {
  height: 56px;
}

.researcher-profile-actions {
  margin-top: 4px;
  align-items: flex-start;
}

.print-action-block {
  margin-top: 20px;
}

.candidate-extra-list span {
  display: block;
  margin-top: 4px;
  color: var(--text);
  line-height: 1.6;
}

.candidate-page .section-tabs {
  gap: 8px;
}

.candidate-page .section-tab {
  background: #fff;
  font-weight: 500;
}

.candidate-page .section-tab:hover {
  background: rgba(0, 85, 144, 0.08);
}

.stack-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-muted);
  padding: 12px 14px;
}

.stack-list strong {
  display: block;
  margin-bottom: 4px;
}

.readonly-note {
  border: 1px solid rgba(0, 85, 144, 0.16);
  border-radius: 10px;
  background: rgba(0, 85, 144, 0.06);
  padding: 14px;
  color: var(--primary-dark);
  line-height: 1.6;
}

.state-note {
  margin-top: 16px;
}

.state-list {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}

.state-list li + li {
  margin-top: 6px;
}

.empty-state--compact {
  margin-top: 0;
}

.inline-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.6;
}

.inline-list li + li {
  margin-top: 4px;
}

.conclusion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.dashboard-topbar > :first-child,
.section-head > :first-child,
.detail-grid > *,
.conclusion-layout > * {
  min-width: 0;
}

.conclusion-text-card {
  height: 100%;
}

.data-table td .button-row,
.data-table td .table-actions {
  margin-top: 0;
}

.print-page {
  background: #eef2f6;
  color: #1f2933;
}

.print-shell {
  width: 100%;
  min-height: 100vh;
  padding: 24px;
}

.print-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.print-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.print-sheet {
  width: min(960px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.print-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.print-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #111827;
}

.print-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.print-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.print-section + .print-section {
  margin-top: 24px;
}

.print-section__title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.print-block {
  margin-top: 16px;
}

.print-text,
.print-empty {
  margin: 8px 0 0;
  color: #1f2933;
  line-height: 1.7;
}

@media print {
  body.print-page {
    background: #ffffff;
  }

  .print-shell {
    padding: 0;
  }

  .print-toolbar {
    display: none;
  }

  .print-sheet {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filters-grid,
  .summary-strip,
  .detail-grid,
  .candidate-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .auth-card,
  .content-card,
  .dashboard-main,
  .dashboard-sidebar {
    padding: 22px 18px;
  }

  .dashboard-topbar,
  .section-head,
  .print-header {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .dashboard-grid,
  .meta-grid,
  .form-grid--two,
  .filters-grid,
  .summary-strip,
  .process-grid,
  .detail-grid,
  .candidate-summary-grid,
  .conclusion-layout {
    grid-template-columns: 1fr;
  }

  .button,
  .button-secondary,
  .form-submit,
  .logout-form .button {
    width: 100%;
  }

  .button-row > .button,
  .button-row > .button-secondary,
  .button-row > .form-submit,
  .button-row > form {
    width: auto;
    flex: 1 1 240px;
  }

  .error-title {
    font-size: 28px;
  }

  .error-card {
    padding: 30px 22px;
  }

  .error-card .brand-logo {
    width: min(260px, 84%);
  }

  .error-actions {
    width: 100%;
  }
}
