:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #f2f4f6;
  --surface-warm: #ffffff;
  --line: #e5e8eb;
  --line-strong: #d1d6db;
  --text: #191f28;
  --muted: #6b7684;
  --subtle: #8b95a1;
  --blue: #3182f6;
  --blue-700: #2272eb;
  --blue-soft: #e8f3ff;
  --green: #03b26c;
  --green-soft: rgba(34, 197, 94, 0.15);
  --amber: #fe9800;
  --amber-soft: #fff4df;
  --red: #f04452;
  --red-soft: #fff0f1;
  --violet: #a234c7;
  --violet-soft: #f7eafd;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --button-radius: 12px;
  --input-radius: 14px;
  --sidebar-width: 248px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family:
    "Toss Product Sans",
    "Tossface",
    "SF Pro KR",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Basier Square",
    "Apple SD Gothic Neo",
    Roboto,
    "Noto Sans KR",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
  background: var(--bg);
}

body.is-authenticated .auth-screen {
  display: none;
}

.auth-card {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.auth-brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.auth-copy {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-message {
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--amber-soft);
  font-size: 13px;
}

.auth-demo-note {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 16px;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-soft);
}

.auth-demo-note strong {
  color: var(--text);
}

.app-shell {
  display: none;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 100vh;
}

body.is-authenticated .app-shell {
  display: grid;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 24px;
  padding: 22px 18px;
  color: var(--text);
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand-block {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
}

.brand-kicker,
.eyebrow,
.panel-label {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-kicker {
  color: var(--subtle);
}

.brand-block h1,
.section-heading h3 {
  margin: 0;
  line-height: 1.2;
}

.brand-block h1 {
  color: var(--text);
  font-size: 20px;
}

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

.nav-item {
  display: grid;
  min-height: 44px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--blue-soft);
  color: var(--blue-700);
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
}

.nav-item.is-active .nav-icon {
  background: var(--blue);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.sidebar-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-soft);
}

.sidebar-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 26px;
}

.sidebar-panel span {
  color: var(--muted);
  font-size: 13px;
}

.workspace {
  width: 100%;
  min-width: 0;
}

.user-menu {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.user-summary {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}

.user-summary span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.user-summary strong {
  color: var(--muted);
  font-size: 12px;
}

.user-menu .ghost-button {
  width: 100%;
}

.control-input,
.control-select,
.control-textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--input-radius);
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.control-input:focus,
.control-select:focus,
.control-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.14);
}

.main-content {
  min-width: 0;
  padding: 24px 28px 40px;
}

.view {
  min-width: 0;
  display: none;
}

.view.is-active {
  display: block;
}

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

.section-heading h3 {
  margin-top: 4px;
  font-size: 24px;
}

.section-heading > .status-chip {
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.35;
  text-align: left;
}

.date-pill,
.status-chip,
.tag,
.small-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.date-pill {
  color: var(--muted);
  background: var(--surface);
}

.control-input:disabled {
  color: var(--subtle);
  background: var(--surface-soft);
  cursor: not-allowed;
}

.chip-blue {
  color: var(--blue-700);
  background: var(--blue-soft);
  border-color: transparent;
}

.chip-gray {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: transparent;
}

.chip-green {
  color: var(--green);
  background: var(--green-soft);
  border-color: transparent;
}

.chip-amber {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: transparent;
}

.chip-red {
  color: var(--red);
  background: var(--red-soft);
  border-color: transparent;
}

.chip-violet {
  color: var(--violet);
  background: var(--violet-soft);
  border-color: transparent;
}

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

.kpi-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.dashboard-filter-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-filter-row > div {
  display: grid;
  gap: 2px;
}

.dashboard-filter-row strong {
  font-size: 15px;
}

.dashboard-filter-row span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-filter-row .control-select {
  max-width: 220px;
}

.metric-card,
.content-panel,
.candidate-card,
.profile-panel,
.activity-item,
.search-result {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 116px;
  padding: 16px;
}

.metric-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 30px;
  font-weight: 700;
}

.metric-trend {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.content-panel {
  min-height: 220px;
  padding: 16px;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.panel-header h4,
.profile-panel h4 {
  margin: 0;
  font-size: 16px;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

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

.dashboard-bar-row {
  grid-template-columns: 74px minmax(0, 1fr) 54px;
}

.month-bar-row {
  grid-template-columns: 72px minmax(0, 1fr) 52px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.bar-fill.green {
  background: var(--green);
}

.bar-fill.amber {
  background: var(--amber);
}

.bar-fill.violet {
  background: var(--violet);
}

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

.top-profile-card {
  display: grid;
  grid-template-columns: 32px 60px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface);
}

.top-rank {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.top-profile-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.top-profile-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-profile-count {
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
}

.pipeline {
  display: grid;
  gap: 10px;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.pipeline-track {
  height: 34px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.pipeline-fill {
  height: 100%;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.candidate-table {
  min-width: 1260px;
  table-layout: fixed;
}

.member-table {
  min-width: 1120px;
}

.permission-table {
  min-width: 980px;
}

.col-photo {
  width: 88px;
}

.col-name {
  width: 160px;
}

.col-education {
  width: 250px;
}

.col-career {
  width: 280px;
}

.col-role {
  width: 220px;
}

.col-status,
.col-owner {
  width: 104px;
}

.col-actions {
  width: 92px;
}

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

.candidate-table th,
.candidate-table td {
  border-right: 1px solid var(--line);
}

.candidate-table th:last-child,
.candidate-table td:last-child {
  border-right: 0;
}

.member-table td,
.member-table th,
.permission-table td,
.permission-table th {
  border-right: 1px solid var(--line);
}

.member-table td:last-child,
.member-table th:last-child,
.permission-table td:last-child,
.permission-table th:last-child {
  border-right: 0;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
}

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

.candidate-name {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  object-fit: cover;
}

.candidate-name strong,
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-cell,
.role-cell {
  min-width: 0;
}

.photo-cell {
  padding: 8px;
  text-align: center;
}

.photo-cell .avatar {
  margin: 0 auto;
}

.candidate-photo-button {
  display: inline-grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.candidate-photo-button:hover,
.candidate-photo-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.avatar.pool {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  font-size: 16px;
}

.candidate-name-compact {
  display: block;
}

.candidate-birth-line {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.role-cell {
  color: var(--text);
  line-height: 1.45;
  white-space: normal;
  word-break: keep-all;
}

.summary-cell {
  white-space: normal;
  word-break: keep-all;
}

.summary-cell strong,
.summary-cell span,
.summary-cell .summary-line {
  display: block;
}

.summary-cell strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-cell span,
.summary-cell .summary-line {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.summary-cell .summary-line:first-child {
  margin-top: 0;
}

.member-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
  white-space: normal;
}

.member-identity strong {
  color: var(--text);
  font-size: 14px;
}

.member-identity span,
.member-identity small,
.muted-text {
  color: var(--muted);
  font-size: 12px;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 190px;
}

.compact-select {
  min-width: 120px;
  min-height: 34px;
  padding: 7px 10px;
}

.member-role-cell {
  display: grid;
  gap: 6px;
  min-width: 170px;
}

.member-role-cell span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
}

.permission-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.permission-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.management-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  background: var(--surface);
}

.management-tab {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.management-tab.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.audit-management-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}

.audit-management-header > div {
  display: grid;
  gap: 3px;
}

.audit-management-header strong {
  color: var(--text);
  font-size: 14px;
}

.audit-management-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.candidate-name > span:last-child {
  min-width: 0;
}

.candidate-name-button {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-name-button:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button {
  display: inline;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: var(--blue-700);
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-button.strong {
  color: var(--text);
  font-weight: 800;
}

.link-button:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.candidate-name span,
.muted,
.subtext {
  color: var(--muted);
}

.candidate-name .avatar {
  color: #ffffff;
}

.subtext {
  display: block;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  min-height: 24px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.primary-button,
.ghost-button,
.soft-button,
.icon-button {
  min-height: 40px;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  padding: 9px 14px;
  font-weight: 700;
}

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

.primary-button:hover {
  background: var(--blue-700);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ghost-button {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.soft-button {
  color: var(--blue-700);
  background: var(--blue-soft);
  border-color: transparent;
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.soft-button:hover {
  color: var(--blue-700);
  background: #dcecff;
}

.icon-button {
  min-width: 40px;
  padding: 8px 10px;
  color: var(--blue-700);
  background: var(--blue-soft);
  border-color: transparent;
}

.filter-strip,
.form-grid,
.ai-layout,
.policy-chat-layout {
  display: grid;
  gap: 16px;
}

.filter-strip {
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 190px));
  margin-bottom: 16px;
}

.pool-filter-strip {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
}

.form-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: start;
}

.register-form-panel {
  grid-column: 1 / -1;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-chat-layout {
  grid-template-columns: minmax(420px, 1fr) minmax(280px, 0.42fr);
  align-items: start;
}

.policy-source-panel,
.policy-chat-panel,
.policy-citation-panel {
  min-width: 0;
}

.policy-source-form {
  display: grid;
  gap: 12px;
}

.policy-source-form .control-textarea {
  min-height: 180px;
}

.policy-source-upload {
  min-height: 88px;
}

.policy-source-readonly {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

.policy-source-readonly span {
  color: var(--muted);
  font-size: 13px;
}

.policy-source-viewer {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.policy-source-viewer-header {
  display: grid;
  gap: 3px;
}

.policy-source-viewer-header span {
  color: var(--muted);
  font-size: 12px;
}

.policy-source-viewer pre {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  background: var(--surface-soft);
  font: inherit;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.policy-source-list,
.policy-message-list {
  display: grid;
  gap: 10px;
}

.policy-source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.policy-source-card.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.policy-source-card strong,
.policy-source-card span,
.policy-source-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.policy-source-card span,
.policy-source-card small {
  color: var(--muted);
  font-size: 12px;
}

.policy-source-card-actions,
.policy-source-form-actions,
.policy-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.policy-chat-panel {
  display: grid;
  gap: 12px;
}

.policy-chat-notice {
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--blue-700);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 700;
}

.policy-message-list {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.policy-message {
  display: grid;
  gap: 8px;
  max-width: 92%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.policy-message p {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.policy-message.is-user {
  justify-self: end;
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.policy-message.is-assistant {
  justify-self: start;
  background: var(--surface-soft);
}

.policy-answer-item {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.policy-answer-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.policy-chat-form {
  display: grid;
  gap: 10px;
}

.policy-chat-form .control-textarea {
  min-height: 112px;
}

.policy-source-modal {
  max-width: min(1080px, calc(100vw - 36px));
}

.policy-source-modal-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: 16px;
}

.policy-source-modal-list,
.policy-source-modal-editor {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.policy-source-modal .empty-state {
  min-height: 160px;
}

.policy-citation-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-citation-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.policy-citation-header strong,
.policy-citation-header span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.policy-citation-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.policy-citation-panel blockquote {
  margin: 0;
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 12px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.policy-citation-highlight {
  border-radius: 4px;
  padding: 1px 3px;
  color: var(--text);
  background: #fff3a3;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.policy-citation-empty {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.policy-citation-empty strong {
  color: var(--text);
}

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

.screening-sidebar,
.screening-detail {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.screening-list-page,
.screening-detail-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
}

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

.screening-position-modal,
.screening-applicant-modal,
.screening-jd-modal,
.screening-access-modal {
  max-width: 760px;
}

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

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

.screening-list-page .screening-folder-list {
  grid-template-columns: 1fr;
}

.screening-folder-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
}

.screening-list-page .screening-folder-card {
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(140px, 0.6fr);
  align-items: center;
  column-gap: 16px;
}

.screening-folder-card:hover,
.screening-folder-card.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.screening-folder-card strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screening-folder-card span,
.screening-folder-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screening-folder-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.screening-folder-main {
  min-width: 0;
}

.screening-folder-side {
  display: grid;
  gap: 12px;
  min-width: 360px;
}

.screening-folder-hero h4 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.screening-folder-hero p {
  margin: 0 0 10px;
  color: var(--muted);
}

.screening-jd-text {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
}

.screening-jd-summary {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--surface-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.screening-jd-summary strong {
  color: var(--text);
  font-size: 12px;
}

.screening-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.screening-file-preview span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.screening-file-preview strong,
.screening-file-preview small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screening-file-preview small {
  color: var(--muted);
}

.screening-filter-strip {
  align-items: end;
  grid-template-columns: minmax(220px, 280px) auto minmax(180px, 1fr);
}

.compact-field {
  gap: 5px;
}

.compact-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.screening-my-list-button.is-active {
  border-color: var(--blue);
  color: var(--blue-700);
  background: var(--blue-soft);
}

.screening-step-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.screening-step-nav button {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
  background: var(--surface);
  text-align: left;
}

.screening-step-nav button.is-active {
  border-color: var(--blue);
  color: var(--blue-700);
  background: var(--blue-soft);
}

.screening-step-nav span {
  font-size: 13px;
  font-weight: 800;
}

.screening-step-nav strong {
  color: var(--text);
  font-size: 18px;
}

.screening-applicant-list {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.screening-applicant-card {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.screening-applicant-card.is-locked {
  border-style: dashed;
  background: var(--surface-soft);
}

.screening-lock-note {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.screening-applicant-name-button {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}

.screening-applicant-name-button:hover {
  color: var(--blue-700);
}

.screening-applicant-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.screening-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.screening-applicant-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(160px, 0.8fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.screening-card-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.screening-applicant-card .summary-cell,
.screening-applicant-card .summary-cell strong,
.screening-applicant-card .summary-cell span,
.screening-applicant-card .summary-cell small,
.screening-card-field,
.screening-card-field span,
.screening-card-field strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.screening-card-field .member-actions {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.screening-card-field .member-actions .compact-button {
  min-width: 0;
  white-space: normal;
}

.screening-card-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.screening-applicant-detail-modal {
  max-width: 860px;
}

.screening-applicant-detail-body {
  display: grid;
  gap: 12px;
}

.screening-detail-block {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.screening-detail-list,
.screening-fit-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.screening-detail-list > div,
.screening-fit-detail > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface-soft);
}

.screening-detail-list span,
.screening-fit-detail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.screening-detail-list strong,
.screening-fit-detail strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.screening-detail-list small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.screening-detail-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
  line-height: 1.7;
  white-space: pre-line;
}

.screening-resume-viewer {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.screening-resume-image {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #ffffff;
}

.screening-resume-pdf-viewer {
  display: grid;
  gap: 14px;
  padding: 12px;
  overflow: auto;
  max-height: min(72vh, 820px);
}

.screening-resume-loading {
  display: grid;
  min-height: 320px;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.screening-resume-loading strong {
  color: var(--text);
}

.screening-pdf-page {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.screening-pdf-page span {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.screening-pdf-page canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.screening-resume-text-viewer {
  max-height: min(70vh, 760px);
  overflow: auto;
  padding: 16px;
  background: #ffffff;
}

.screening-resume-text-viewer pre {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.screening-resume-placeholder {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 6px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.screening-resume-placeholder strong {
  color: var(--text);
}

.screening-access-picker {
  display: grid;
  gap: 10px;
}

.screening-access-panel {
  display: grid;
  gap: 14px;
}

.screening-access-section {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.screening-access-section > strong {
  color: var(--text);
  font-size: 14px;
}

.screening-access-section > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.screening-access-selected,
.screening-access-results {
  display: grid;
  gap: 8px;
}

.screening-access-chip,
.screening-access-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
}

.screening-access-chip {
  background: var(--surface-soft);
}

.screening-access-result {
  width: 100%;
  color: var(--text);
  text-align: left;
}

.screening-access-result:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.screening-access-chip span,
.screening-access-result span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.job-fit-workspace {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.job-fit-top-actions {
  display: flex;
  justify-content: flex-end;
}

.job-fit-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.job-fit-upload-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.job-fit-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-fit-panel-header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.job-fit-panel-header strong {
  color: var(--text);
  font-size: 15px;
}

.job-fit-panel-header span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.job-fit-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.job-fit-title-line .status-chip {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 0 9px;
  color: var(--blue-700);
  background: var(--blue-soft);
  font-weight: 800;
  line-height: 1;
}

.job-fit-upload-card .control-textarea {
  min-height: 240px;
  resize: vertical;
}

.job-fit-resume-dropzone,
.job-fit-upload-card .compact-upload {
  min-height: 92px;
}

.job-fit-file-list,
.job-fit-saved-list,
.job-fit-result-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.job-fit-upload-card .job-fit-file-list {
  max-height: 176px;
  overflow-y: auto;
  padding-right: 2px;
}

.job-fit-file-row,
.job-fit-saved-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface-soft);
}

.job-fit-file-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.job-fit-file-row span,
.job-fit-saved-card > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.job-fit-file-row strong,
.job-fit-file-row small,
.job-fit-saved-card strong,
.job-fit-saved-card span {
  overflow-wrap: anywhere;
}

.job-fit-file-row small,
.job-fit-saved-card span {
  color: var(--muted);
  font-size: 12px;
}

.job-fit-file-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.job-fit-file-link:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.job-fit-upload-status,
.job-fit-inline-status {
  display: block;
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--blue-700);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.job-fit-upload-status.is-loading::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--blue);
  vertical-align: 1px;
}

.job-fit-status {
  margin: 0;
}

.job-fit-results-panel,
.job-fit-saved-panel {
  display: grid;
  gap: 14px;
}

.job-fit-requirement-summary {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.job-fit-requirement-summary > strong {
  font-size: 13px;
}

.job-fit-requirement-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-fit-requirement-summary span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--blue-700);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.job-fit-result-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
  white-space: nowrap;
}

.job-fit-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.job-fit-result-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.job-fit-result-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue-700);
  background: var(--blue-soft);
  font-weight: 900;
}

.job-fit-result-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.job-fit-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-fit-result-header > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.job-fit-result-header strong {
  font-size: 16px;
}

.job-fit-result-header span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.job-fit-score-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.job-fit-score-box > strong {
  font-size: 18px;
}

.job-fit-comment {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
}

.job-fit-profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.job-fit-profile-summary section {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.job-fit-profile-summary strong {
  color: var(--muted);
  font-size: 12px;
}

.job-fit-profile-summary span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.job-fit-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.job-fit-match-grid section,
.job-fit-evidence {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.job-fit-match-grid section > strong,
.job-fit-evidence strong {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--blue-700);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 900;
}

.job-fit-report-section.is-fulfilled > strong {
  color: #047857;
  background: var(--green-soft);
}

.job-fit-report-section.is-missing > strong {
  color: #b45309;
  background: var(--amber-soft);
}

.job-fit-requirement-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.6;
}

.job-fit-requirement-list li {
  overflow-wrap: anywhere;
}

.job-fit-report-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-fit-report-list li {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.job-fit-report-list li > strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.job-fit-report-list li > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.job-fit-evidence span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.screening-access-chip strong,
.screening-access-chip small,
.screening-access-result strong,
.screening-access-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screening-access-chip small,
.screening-access-result small {
  color: var(--muted);
  font-size: 12px;
}

.screening-access-chip em,
.screening-access-result em {
  color: var(--blue-700);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.screening-table {
  min-width: 1180px;
  table-layout: fixed;
}

.screening-table th:nth-child(1),
.screening-table td:nth-child(1) {
  width: 210px;
}

.screening-table th:nth-child(3),
.screening-table td:nth-child(3) {
  width: 290px;
}

.screening-table th:nth-child(5),
.screening-table td:nth-child(5) {
  width: 230px;
}

.screening-table th:nth-child(6),
.screening-table td:nth-child(6) {
  width: 230px;
}

.screening-contact-form {
  display: grid;
  gap: 6px;
}

.compact-input {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.screening-draft-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.screening-mail-guide {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.screening-mail-guide strong {
  font-size: 13px;
}

.screening-mail-guide span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

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

.is-hidden {
  display: none !important;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-section-title {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.control-textarea {
  min-height: 92px;
  resize: vertical;
}

.dropzone {
  display: grid;
  min-height: 164px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface-soft);
  text-align: center;
}

.dropzone.is-dragover,
.field.is-dragover .control-input[type="file"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.12);
}

.register-form-panel .compact-upload {
  min-height: 118px;
  padding: 12px;
}

.dropzone input {
  width: 100%;
  max-width: 320px;
}

.profile-upload {
  gap: 10px;
  justify-items: center;
}

.profile-upload span {
  color: var(--muted);
  font-size: 13px;
}

.photo-preview {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--subtle);
  background: var(--surface);
  font-size: 12px;
  text-align: center;
}

.register-form-panel .photo-preview {
  width: 58px;
  height: 58px;
  font-size: 11px;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parse-preview {
  display: grid;
  gap: 12px;
}

.ai-layout {
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.28fr);
  align-items: start;
}

.query-box {
  display: grid;
  gap: 12px;
}

.query-box textarea {
  min-height: 124px;
}

.ai-file-upload {
  min-height: 92px;
  gap: 8px;
  padding: 12px;
}

.ai-file-upload input {
  max-width: 100%;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 14px;
  padding: 14px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.match-score {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--blue-soft);
  font-size: 18px;
  font-weight: 700;
}

.evidence-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.trending-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trending-toolbar > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trending-toolbar strong {
  font-size: 16px;
}

.trending-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.trending-toolbar-actions,
.trending-actions,
.news-link-row,
.trending-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.trending-scope {
  margin-bottom: 16px;
}

.trending-scope .status-chip {
  max-width: 100%;
  white-space: normal;
}

.trending-mail-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trending-mail-header,
.trending-mail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trending-mail-header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trending-mail-header strong {
  color: var(--text);
  font-size: 15px;
}

.trending-mail-header span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.trending-mail-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.trending-mail-grid .full {
  grid-column: 1 / -1;
}

.field-caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mail-recipient-summary {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 10px;
  padding: 10px;
  background: var(--surface-soft);
}

.mail-recipient-summary > strong {
  color: var(--muted);
  font-size: 12px;
}

.recipient-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.recipient-chip {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.trending-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 31, 40, 0.34);
}

.trending-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(25, 31, 40, 0.18);
  overflow: hidden;
}

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

.trending-modal-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trending-modal-header strong {
  color: var(--text);
  font-size: 16px;
}

.trending-modal-header span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.trending-modal-body {
  min-height: 0;
  padding: 16px;
  overflow: auto;
}

.trending-modal .trending-history-panel,
.trending-modal .trending-mail-panel {
  border: 0;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.member-profile-modal {
  width: min(720px, 100%);
}

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

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

.member-create-actions {
  display: flex;
  justify-content: flex-end;
}

.readonly-profile-value {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--input-radius);
  padding: 10px 14px;
  background: var(--surface-soft);
}

.readonly-profile-value span {
  color: var(--text);
  font-weight: 700;
}

.readonly-profile-value strong {
  color: var(--blue-700);
  font-size: 12px;
}

.member-password-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.member-password-section > strong {
  color: var(--text);
  font-size: 15px;
}

.member-password-section > span {
  color: var(--muted);
  font-size: 12px;
}

.member-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.trending-list {
  display: grid;
  gap: 14px;
}

.trending-history-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trending-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trending-history-header > div {
  display: grid;
  gap: 3px;
}

.trending-history-header strong {
  color: var(--text);
}

.trending-history-header span {
  color: var(--muted);
  font-size: 13px;
}

.trending-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 8px;
}

.history-date-button {
  display: grid;
  gap: 4px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}

.history-date-button strong {
  color: inherit;
  font-size: 14px;
}

.history-date-button span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-date-button:hover,
.history-date-button.is-active {
  border-color: var(--blue);
  color: var(--blue-700);
  background: var(--blue-soft);
}

.trending-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trending-media {
  position: relative;
  min-width: 0;
}

.trending-rank {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue-700);
  background: var(--blue-soft);
  font-size: 18px;
  font-weight: 800;
}

.trending-photo-placeholder {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 800;
}

.trending-photo {
  display: block;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  object-fit: cover;
  object-position: center top;
}

.trending-rank-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.trending-profile {
  min-width: 0;
}

.trending-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.trending-card-header > div:first-child {
  min-width: 0;
}

.trending-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.trending-title-row > div {
  min-width: 0;
}

.trending-title-rank {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.trending-card-header h4 {
  margin: 0 0 4px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.trending-card-header p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

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

.trending-profile-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.trending-profile-grid section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.trending-profile-grid section > strong {
  color: var(--muted);
  font-size: 12px;
}

.plain-line-list,
.dash-list {
  display: grid;
  gap: 4px;
}

.plain-line-list span {
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-list li,
.reason-block p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.reason-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.reason-summary {
  gap: 8px;
}

.reason-summary p {
  border-left: 3px solid var(--blue);
  padding-left: 9px;
  white-space: pre-line;
}

.news-link-row a {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 9px;
  color: var(--blue-700);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.news-link-row a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-panel {
  padding: 16px;
}

.detail-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
  align-items: start;
}

.detail-main-column,
.detail-side-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detail-side-column {
  position: sticky;
  top: 18px;
}

.detail-hero-card,
.detail-side-card,
.detail-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-hero-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.detail-hero-photo .avatar.large {
  width: 132px;
  height: 146px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--blue-700);
  object-fit: cover;
  object-position: center top;
  font-size: 32px;
}

.detail-hero-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.detail-hero-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-hero-topline h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.detail-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-business-unit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--violet);
  background: #f4f0ff;
  font-size: 12px;
  font-weight: 800;
}

.detail-status-control,
.detail-status-readonly {
  display: inline-grid;
  gap: 0;
  margin-top: 0;
}

.detail-status-control span,
.detail-status-readonly span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-status-readonly strong {
  color: var(--text);
  font-size: 14px;
}

.detail-hero-badges,
.detail-hero-actions,
.detail-hero-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-hero-badges {
  margin-top: 7px;
}

.detail-hero-actions {
  justify-content: flex-end;
}

.detail-hero-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 168px;
}

.detail-hero-side .detail-status-control,
.detail-hero-side .detail-status-readonly {
  justify-items: end;
  margin-top: 0;
  text-align: right;
}

.detail-hero-side .compact-select {
  min-width: 138px;
}

.icon-link-button,
.icon-mini-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.icon-link-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
}

.icon-link-button:hover,
.icon-mini-button:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.icon-mini-button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 16px;
}

.detail-hero-lines {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.detail-hero-lines span {
  overflow-wrap: anywhere;
}

.detail-hero-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 11px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.detail-tab-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-tab-strip button {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-right: 1px solid var(--line);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.detail-tab-strip button:last-child {
  border-right: 0;
}

.detail-tab-strip button:hover,
.detail-tab-strip button.is-active {
  color: var(--blue-700);
  background: var(--blue-soft);
}

.detail-side-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.detail-side-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-side-card-header strong {
  font-size: 15px;
}

.side-subtle-action {
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 700;
}

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

.side-history-list div {
  display: grid;
  gap: 3px;
}

.side-history-list span,
.side-note {
  color: var(--muted);
  font-size: 12px;
}

.side-history-list strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.side-note {
  margin: 0;
  line-height: 1.6;
  white-space: pre-line;
}

.edit-form {
  display: grid;
  gap: 18px;
}

.edit-form-header,
.edit-section-header,
.edit-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edit-form-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.edit-form-header h4,
.edit-section h5 {
  margin: 0;
}

.edit-section {
  display: grid;
  gap: 12px;
}

.register-section {
  margin-top: 18px;
}

.form-error {
  display: grid;
  gap: 4px;
  border: 1px solid #f1aeae;
  border-radius: var(--radius);
  padding: 12px;
  color: #b42318;
  background: #fff4f2;
  font-size: 13px;
  line-height: 1.6;
}

.form-error strong {
  font-size: 14px;
}

.edit-section h5 {
  font-size: 16px;
}

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

.edit-record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.edit-record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.edit-record-header strong {
  font-size: 14px;
}

.compact-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.danger-button {
  color: #b42318;
  border-color: #f1aeae;
  background: #fff4f2;
}

.danger-button:hover {
  border-color: #df7f7a;
}

.edit-form-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  padding-top: 14px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-hero-large {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
}

.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.profile-hero-large .avatar.large {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  font-size: 36px;
}

.profile-hero h4 {
  margin: 0 0 4px;
  font-size: 20px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-header-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.detail-section-stack {
  display: grid;
  gap: 14px;
}

.detail-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  scroll-margin-top: 16px;
}

.detail-section.is-primary {
  background: var(--surface);
}

.detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.detail-section-header h4 {
  margin: 0;
  font-size: 15px;
}

.detail-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--blue-700);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-summary {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.competency-tags {
  gap: 8px;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface-soft);
}

.attachment-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.attachment-row strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-row small {
  color: var(--muted);
  font-size: 12px;
}

.attachment-row .soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.detail-info-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.detail-info-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-info-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

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

.memo-form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-soft);
}

.memo-form .control-textarea {
  min-height: 86px;
}

.memo-form-actions,
.memo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.memo-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-soft);
}

.memo-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.memo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.interview-section,
.interview-list {
  display: grid;
  gap: 12px;
}

.interview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.interview-toolbar > div {
  display: grid;
  gap: 3px;
}

.interview-toolbar strong {
  color: var(--text);
  font-size: 15px;
}

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

.interview-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-soft);
}

.compact-textarea {
  min-height: 88px;
}

.interview-form-actions,
.interview-card-header,
.interview-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.interview-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.interview-card-header > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.interview-card-header strong {
  color: var(--text);
  font-size: 15px;
}

.interview-card-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.interview-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.interview-next-action {
  border-left: 3px solid var(--blue);
  padding-left: 10px;
}

.interview-next-action span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-card-list {
  display: grid;
  gap: 0;
}

.detail-record-card {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--surface);
}

.detail-record-card:first-child {
  padding-top: 0;
}

.detail-record-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.record-list-item {
  display: grid;
  gap: 8px;
}

.record-mainline {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
}

.record-mainline strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  white-space: normal;
}

.record-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.record-subline span:not(:last-child)::after {
  content: "";
}

.record-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.record-card-header strong {
  font-size: 16px;
}

.achievement-box {
  margin-top: 4px;
  border-left: 3px solid var(--line-strong);
  padding-left: 10px;
}

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

.achievement-box p {
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-soft);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-box strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 10px;
}

.activity-item {
  padding: 12px 14px;
  box-shadow: none;
}

.activity-item strong {
  display: block;
}

.activity-meta {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
}

.compact-empty {
  min-height: 72px;
}

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

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: none;
  max-width: 360px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #ffffff;
  background: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

.toast.is-visible {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-bar-list {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-5,
  .span-7,
  .span-8 {
    grid-column: 1 / -1;
  }

  .form-grid,
  .ai-layout,
  .job-fit-upload-grid,
  .policy-chat-layout,
  .screening-layout,
  .detail-page-shell {
    grid-template-columns: 1fr;
  }

  .screening-folder-hero {
    flex-direction: column;
  }

  .screening-list-page .screening-folder-card,
  .screening-applicant-main,
  .screening-applicant-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .screening-folder-side {
    min-width: 0;
    width: 100%;
  }

  .policy-source-modal-body {
    grid-template-columns: 1fr;
  }

  .screening-card-tags {
    justify-content: flex-start;
  }

  .detail-side-column {
    position: static;
  }

  .policy-citation-panel {
    position: static;
  }
}

@media (max-width: 880px) {
  .auth-card {
    padding: 22px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

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

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

  .sidebar-footer {
    margin-top: 0;
  }

  .filter-strip {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .user-menu {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 20px 16px 32px;
  }

  .policy-message {
    max-width: 100%;
  }

  .policy-source-card {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-row,
  .field-grid,
  .detail-info-grid,
  .detail-plan-grid,
  .audit-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-filter-row .control-select {
    max-width: none;
  }

  .panel-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .screening-create-form .field-grid,
  .screening-applicant-form .field-grid {
    grid-template-columns: 1fr;
  }

  .top-profile-card {
    grid-template-columns: 28px 52px minmax(0, 1fr);
  }

  .top-profile-card .avatar.pool {
    width: 52px;
    height: 52px;
  }

  .top-profile-count {
    grid-column: 3;
    justify-self: start;
    font-size: 13px;
  }

  .search-result {
    grid-template-columns: 1fr;
  }

  .screening-folder-hero {
    flex-direction: column;
  }

  .screening-list-page .screening-folder-card,
  .screening-step-nav,
  .screening-applicant-main,
  .screening-applicant-grid,
  .screening-detail-list,
  .screening-fit-detail,
  .job-fit-result-card,
  .job-fit-profile-summary,
  .job-fit-match-grid,
  .job-fit-file-row,
  .job-fit-saved-card,
  .screening-access-chip,
  .screening-access-result,
  .screening-file-preview {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .job-fit-panel-header,
  .job-fit-result-header,
  .job-fit-score-box {
    align-items: stretch;
    flex-direction: column;
  }

  .job-fit-score-box {
    justify-content: flex-start;
  }

  .job-fit-result-actions {
    justify-content: flex-start;
  }

  .screening-file-preview {
    display: grid;
  }

  .screening-resume-viewer {
    min-height: 360px;
  }

  .screening-resume-pdf-viewer {
    max-height: 58vh;
    padding: 8px;
  }

  .screening-resume-loading {
    min-height: 300px;
  }

  .screening-resume-text-viewer {
    max-height: 58vh;
  }

  .screening-card-tags {
    justify-content: flex-start;
  }

  .screening-folder-side {
    min-width: 0;
    width: 100%;
  }

  .trending-toolbar,
  .trending-card-header,
  .trending-history-header,
  .trending-mail-header,
  .trending-mail-actions,
  .trending-modal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .trending-toolbar-actions {
    width: 100%;
  }

  .trending-toolbar-actions .ghost-button,
  .trending-toolbar-actions .primary-button {
    flex: 1 1 160px;
  }

  .trending-card,
  .trending-profile-grid,
  .trending-mail-grid {
    grid-template-columns: 1fr;
  }

  .trending-modal-backdrop {
    padding: 12px;
  }

  .trending-modal {
    max-height: calc(100vh - 24px);
  }

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

  .detail-hero-card {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 14px;
  }

  .detail-hero-photo .avatar.large {
    width: 100px;
    height: 116px;
  }

  .detail-hero-topline,
  .record-mainline {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero-side {
    width: 100%;
    justify-items: end;
  }

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

  .detail-tab-strip button {
    min-height: 42px;
    font-size: 13px;
  }

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

  .match-score {
    justify-self: start;
  }

  .attachment-row {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-header-stats {
    grid-template-columns: 1fr;
  }
}
