:root {
  color-scheme: light;
  --navy-950: #071426;
  --navy-900: #10233f;
  --navy-800: #183455;
  --navy-700: #23466c;
  --navy-100: #dbe6f2;
  --teal-700: #0d7f75;
  --teal-600: #0f9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50: #ecfdf9;
  --blue-600: #2563eb;
  --blue-50: #eff6ff;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --green-700: #15803d;
  --green-50: #f0fdf4;
  --purple-600: #7c3aed;
  --purple-50: #f5f3ff;
  --ink: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #dce3eb;
  --line-strong: #cbd5e1;
  --canvas: #f3f6f9;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-hover: #f1f5f9;
  --sidebar-width: 240px;
  --topbar-height: 64px;
  --drawer-width: 480px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgb(16 35 63 / 0.06);
  --shadow-sm: 0 4px 12px rgb(16 35 63 / 0.08);
  --shadow-md: 0 16px 36px rgb(16 35 63 / 0.14);
  --shadow-drawer: -18px 0 48px rgb(7 20 38 / 0.22);
  --transition-fast: 140ms ease;
  --transition-base: 200ms ease;
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

small {
  font-size: 12px;
}

body.is-locked,
body.modal-open,
body.drawer-open,
body.sidebar-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button,
[role="button"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgb(20 184 166 / 0.32);
  outline-offset: 2px;
}

::selection {
  background: var(--teal-100);
  color: var(--navy-950);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 9px 14px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* App shell */
.app-shell,
.app-layout {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--canvas);
}

.sidebar,
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 800;
  display: flex;
  width: var(--sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 0%, rgb(20 184 166 / 0.16), transparent 34%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #e7eef7;
  box-shadow: 1px 0 0 rgb(255 255 255 / 0.07);
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.22) transparent;
  transition: transform var(--transition-base), width var(--transition-base);
}

.sidebar-header,
.brand {
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
}

.brand-mark,
.brand-logo {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-500);
  color: var(--navy-950);
  box-shadow: 0 7px 18px rgb(20 184 166 / 0.25);
  font-weight: 900;
}

.brand-text {
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  margin-top: -1px;
  color: #9fb0c4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-body {
  flex: 1;
  padding: 14px 12px;
}

.nav-section + .nav-section {
  margin-top: 18px;
}

.nav-section-title,
.nav-label-heading {
  margin: 0 10px 7px;
  color: #8499b2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-nav,
.nav-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item,
.nav-link {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #bac8d8;
  font-size: 13px;
  font-weight: 650;
  transition: color var(--transition-fast), background var(--transition-fast),
    border-color var(--transition-fast);
}

.nav-item:hover,
.nav-link:hover {
  background: rgb(255 255 255 / 0.07);
  color: #ffffff;
}

.nav-item.is-active,
.nav-item[aria-current="page"],
.nav-link.is-active,
.nav-link[aria-current="page"] {
  border-color: rgb(20 184 166 / 0.22);
  background: linear-gradient(90deg, rgb(20 184 166 / 0.19), rgb(20 184 166 / 0.08));
  color: #ffffff;
}

.nav-item.is-active::before,
.nav-item[aria-current="page"]::before,
.nav-link.is-active::before,
.nav-link[aria-current="page"]::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--teal-500);
  content: "";
}

.nav-icon {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  color: currentColor;
}

.nav-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-count {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: #dce6f0;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.nav-item.is-active .nav-count,
.nav-link.is-active .nav-count {
  background: var(--teal-500);
  color: var(--navy-950);
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.09);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.05);
}

.sidebar-profile-copy {
  min-width: 0;
  flex: 1;
}

.sidebar-profile-name,
.sidebar-profile-org {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.sidebar-profile-org {
  color: #8fa2b8;
  font-size: 12px;
}

.app-main,
.main-content {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-base);
}

.topbar,
.top-bar {
  position: sticky;
  top: 0;
  z-index: 600;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid rgb(203 213 225 / 0.8);
  background: rgb(255 255 255 / 0.93);
  box-shadow: 0 1px 0 rgb(16 35 63 / 0.02);
}

@supports (backdrop-filter: blur(12px)) {
  .topbar,
  .top-bar {
    background: rgb(255 255 255 / 0.84);
    backdrop-filter: blur(12px) saturate(145%);
  }
}

.topbar-left,
.topbar-right,
.toolbar,
.toolbar-group,
.header-actions,
.card-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-left,
.toolbar,
.toolbar-group {
  min-width: 0;
}

.topbar-right,
.header-actions,
.card-actions {
  flex: 0 0 auto;
}

.sidebar-toggle,
.mobile-menu-button {
  display: none;
}

.breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb > :last-child {
  color: var(--navy-900);
  font-weight: 700;
}

.topbar-title {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page,
.page-content,
.workspace {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 24px 28px 36px;
}

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

.page-heading {
  min-width: 0;
}

.page-title {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(22px, 2.1vw, 29px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.page-description,
.page-subtitle {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Buttons and controls */
.button,
.btn,
.icon-button,
.sidebar-toggle,
.mobile-menu-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.button,
.btn {
  padding: 0 13px;
}

.button:hover:not(:disabled),
.btn:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary,
.btn-primary {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #ffffff;
  box-shadow: 0 4px 12px rgb(16 35 63 / 0.16);
}

.button-primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.button-accent,
.btn-accent {
  border-color: var(--teal-500);
  background: var(--teal-500);
  color: var(--navy-950);
  box-shadow: 0 4px 12px rgb(20 184 166 / 0.2);
}

.button-accent:hover:not(:disabled),
.btn-accent:hover:not(:disabled) {
  border-color: var(--teal-600);
  background: #18c9b6;
}

.button-secondary,
.btn-secondary,
.button-ghost,
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy-900);
}

.button-secondary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.button-ghost:hover:not(:disabled),
.btn-ghost:hover:not(:disabled) {
  border-color: #b8c5d3;
  background: var(--surface-hover);
}

.button-danger,
.btn-danger {
  border-color: #fecaca;
  background: var(--red-50);
  color: var(--red-600);
}

.button-sm,
.btn-sm {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.button-lg,
.btn-lg {
  min-height: 42px;
  padding: 0 17px;
  font-size: 13px;
}

.icon-button {
  width: 36px;
  flex: 0 0 auto;
  padding: 0;
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.icon-button.is-quiet {
  border-color: transparent;
  background: transparent;
}

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

.field-label,
.form-label {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.field-hint,
.form-hint {
  color: var(--muted);
  font-size: 12px;
}

.field-error,
.form-error {
  color: var(--red-600);
  font-size: 12px;
  font-weight: 650;
}

.input,
.select,
.textarea,
.search-input,
.form-control {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input,
.textarea,
.search-input,
.form-control {
  padding: 8px 11px;
}

.select {
  padding: 0 32px 0 11px;
}

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

.input::placeholder,
.textarea::placeholder,
.search-input::placeholder,
.form-control::placeholder {
  color: var(--muted-2);
}

.input:hover,
.select:hover,
.textarea:hover,
.search-input:hover,
.form-control:hover {
  border-color: #a8b7c8;
}

.input:focus,
.select:focus,
.textarea:focus,
.search-input:focus,
.form-control:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 0.13);
  outline: 0;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"],
.form-control[aria-invalid="true"] {
  border-color: #f87171;
}

.search-field,
.search-box {
  position: relative;
  min-width: 220px;
}

.search-field .search-input,
.search-box .search-input,
.search-field input,
.search-box input {
  padding-left: 36px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.control-group,
.input-group {
  display: flex;
  align-items: stretch;
}

.control-group > :not(:first-child),
.input-group > :not(:first-child) {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.control-group > :not(:last-child),
.input-group > :not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Cards and summary metrics */
.panel,
.card,
.table-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.panel-header,
.card-header,
.table-card-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title,
.card-title,
.section-title {
  margin: 0;
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.panel-subtitle,
.card-subtitle,
.section-description {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.panel-body,
.card-body {
  padding: 16px;
}

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

.kpi-card,
.metric-card,
.stat-card {
  position: relative;
  min-width: 0;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  padding: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.kpi-card::after,
.metric-card::after,
.stat-card::after {
  position: absolute;
  inset: auto -18px -32px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(20 184 166 / 0.1), transparent 68%);
  content: "";
  pointer-events: none;
}

.kpi-card:hover,
.metric-card:hover,
.stat-card:hover {
  border-color: #c3d0dc;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.kpi-card-header,
.metric-card-header,
.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.kpi-label,
.metric-label,
.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.kpi-icon,
.metric-icon,
.stat-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-50);
  color: var(--teal-700);
}

.kpi-value,
.metric-value,
.stat-value {
  margin-top: 7px;
  color: var(--navy-900);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.kpi-foot,
.metric-foot,
.stat-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
}

.trend-up {
  color: var(--green-700);
}

.trend-down {
  color: var(--red-600);
}

.trend-neutral {
  color: var(--muted);
}

/* Toolbars, tabs, filters */
.section-toolbar,
.table-toolbar,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.filters,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.filter-chip,
.chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip:hover,
.chip:hover {
  border-color: #b8c5d3;
  background: var(--surface-hover);
}

.filter-chip.is-active,
.chip.is-active,
.filter-chip[aria-pressed="true"],
.chip[aria-pressed="true"] {
  border-color: rgb(20 184 166 / 0.42);
  background: var(--teal-50);
  color: var(--teal-700);
}

.tabs,
.tab-list {
  display: flex;
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.tab,
.tab-button {
  position: relative;
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.tab:hover,
.tab-button:hover {
  color: var(--navy-900);
}

.tab.is-active,
.tab[aria-selected="true"],
.tab-button.is-active,
.tab-button[aria-selected="true"] {
  color: var(--navy-900);
}

.tab.is-active::after,
.tab[aria-selected="true"]::after,
.tab-button.is-active::after,
.tab-button[aria-selected="true"]::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--teal-500);
  content: "";
}

/* Jobs and dense data tables */
.table-wrap,
.table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c3cfdb transparent;
}

.jobs-table,
.job-table,
.data-table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
  background: var(--surface);
}

.jobs-table th,
.job-table th,
.data-table th {
  height: 40px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  color: #58667a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.jobs-table td,
.job-table td,
.data-table td {
  height: 58px;
  padding: 9px 13px;
  border-bottom: 1px solid #e8edf3;
  color: #344054;
  font-size: 12px;
  vertical-align: middle;
}

.jobs-table tbody tr,
.job-table tbody tr,
.data-table tbody tr {
  transition: background var(--transition-fast);
}

.jobs-table tbody tr:hover,
.job-table tbody tr:hover,
.data-table tbody tr:hover {
  background: #f8fbfc;
}

.jobs-table tbody tr:focus-within,
.job-table tbody tr:focus-within,
.data-table tbody tr:focus-within {
  background: var(--teal-50);
}

.jobs-table tbody tr:last-child td,
.job-table tbody tr:last-child td,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-primary,
.job-title-cell {
  min-width: 0;
  color: var(--navy-900);
  font-weight: 750;
}

.cell-primary small,
.job-title-cell small,
.cell-secondary {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkbox,
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--teal-600);
}

.pagination {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.page-button.is-active,
.page-button[aria-current="page"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #ffffff;
}

/* Statuses and identities */
.badge,
.status-badge,
.tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.badge::before,
.status-badge::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.badge-open,
.status-open,
.badge-success,
.status-hired {
  border-color: #bbf7d0;
  background: var(--green-50);
  color: var(--green-700);
}

.badge-draft,
.status-draft,
.badge-muted,
.status-closed {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.badge-warning,
.status-pending,
.status-offer {
  border-color: #fde68a;
  background: var(--amber-50);
  color: var(--amber-600);
}

.badge-danger,
.status-rejected,
.status-overdue {
  border-color: #fecaca;
  background: var(--red-50);
  color: var(--red-600);
}

.badge-info,
.status-review,
.status-interview {
  border-color: #bfdbfe;
  background: var(--blue-50);
  color: var(--blue-600);
}

.badge-accent,
.status-new,
.status-screening {
  border-color: #99f6e4;
  background: var(--teal-50);
  color: var(--teal-700);
}

.avatar,
.user-avatar,
.candidate-avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgb(16 35 63 / 0.08);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--navy-100), var(--teal-100));
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

.avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

.avatar img,
.user-avatar img,
.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar {
  margin-left: -7px;
  border: 2px solid var(--surface);
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

/* Five-stage recruitment pipeline */
.kanban-shell,
.pipeline-shell {
  position: relative;
  min-width: 0;
}

.kanban-board,
.pipeline-board {
  display: grid;
  grid-auto-columns: minmax(272px, 1fr);
  grid-auto-flow: column;
  gap: 11px;
  width: 100%;
  min-height: 560px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b7c5d3 transparent;
}

.kanban-column,
.pipeline-column {
  display: flex;
  width: 100%;
  min-width: 272px;
  max-height: calc(100vh - 222px);
  max-height: calc(100dvh - 222px);
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #edf2f6;
}

.kanban-column-header,
.pipeline-column-header {
  display: flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid #d5dee8;
  background: rgb(248 250 252 / 0.9);
}

.kanban-column-title,
.pipeline-column-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

.stage-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 0.13);
}

.kanban-column:nth-child(2) .stage-dot,
.pipeline-column:nth-child(2) .stage-dot {
  background: var(--blue-600);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.kanban-column:nth-child(3) .stage-dot,
.pipeline-column:nth-child(3) .stage-dot {
  background: var(--purple-600);
  box-shadow: 0 0 0 3px rgb(124 58 237 / 0.12);
}

.kanban-column:nth-child(4) .stage-dot,
.pipeline-column:nth-child(4) .stage-dot {
  background: var(--amber-600);
  box-shadow: 0 0 0 3px rgb(217 119 6 / 0.12);
}

.kanban-column:nth-child(5) .stage-dot,
.pipeline-column:nth-child(5) .stage-dot {
  background: var(--green-700);
  box-shadow: 0 0 0 3px rgb(21 128 61 / 0.12);
}

.stage-count,
.column-count {
  min-width: 23px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dfe7ee;
  color: #526176;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.kanban-column-body,
.pipeline-column-body,
.candidate-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 8px;
  min-height: 90px;
  padding: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c0cbd7 transparent;
}

.kanban-column-body.is-drag-over,
.pipeline-column-body.is-drag-over,
.candidate-list.is-drag-over {
  background: rgb(20 184 166 / 0.08);
  outline: 2px dashed rgb(20 184 166 / 0.55);
  outline-offset: -5px;
}

.candidate-card,
.applicant-card {
  position: relative;
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 11px;
  border: 1px solid #d7e0e8;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: inherit;
  text-align: left;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.candidate-card:hover,
.applicant-card:hover {
  z-index: 1;
  border-color: #aebdcb;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.candidate-card:focus-visible,
.applicant-card:focus-visible,
.candidate-card.is-selected,
.applicant-card.is-selected {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 0.13), var(--shadow-sm);
}

.candidate-card.is-dragging,
.applicant-card.is-dragging {
  z-index: 20;
  opacity: 0.78;
  box-shadow: var(--shadow-md);
  transform: rotate(1deg) scale(1.015);
}

.candidate-card-head,
.candidate-main {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
}

.candidate-copy {
  min-width: 0;
  flex: 1;
}

.candidate-name {
  margin: 0;
  overflow: hidden;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-role,
.candidate-position {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-meta,
.candidate-card-footer {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.candidate-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.candidate-tags .tag {
  min-height: 19px;
  max-width: 100%;
  padding: 1px 6px;
  overflow: hidden;
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #5b687a;
  font-size: 12px;
  text-overflow: ellipsis;
}

.score,
.candidate-score {
  display: inline-flex;
  min-width: 30px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 850;
}

.due-date.is-overdue,
.candidate-meta .is-overdue {
  color: var(--red-600);
  font-weight: 750;
}

.add-candidate-button,
.column-add-button {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 9px 9px;
  border: 1px dashed #bbc7d4;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.56);
  color: #607086;
  font-size: 12px;
  font-weight: 750;
}

.add-candidate-button:hover,
.column-add-button:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
  color: var(--teal-700);
}

/* Candidate detail drawer */
.drawer-backdrop,
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  visibility: hidden;
  background: rgb(7 20 38 / 0.42);
  opacity: 0;
  transition: visibility var(--transition-base), opacity var(--transition-base);
}

.detail-drawer,
.candidate-drawer,
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1100;
  display: flex;
  width: min(var(--drawer-width), 100vw);
  max-width: 100%;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-drawer);
  transform: translateX(102%);
  transition: transform var(--transition-base);
}

.drawer-backdrop.is-open,
.drawer-overlay.is-open,
.drawer-backdrop[data-state="open"],
.drawer-overlay[data-state="open"],
body.drawer-open .drawer-backdrop,
body.drawer-open .drawer-overlay {
  visibility: visible;
  opacity: 1;
}

.detail-drawer.is-open,
.candidate-drawer.is-open,
.drawer.is-open,
.detail-drawer[data-state="open"],
.candidate-drawer[data-state="open"],
.drawer[data-state="open"],
.detail-drawer[open],
.candidate-drawer[open],
.drawer[open],
body.drawer-open .detail-drawer,
body.drawer-open .candidate-drawer,
body.drawer-open .drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  min-height: 64px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.drawer-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scrollbar-width: thin;
}

.drawer-footer {
  display: flex;
  min-height: 60px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.candidate-hero {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 17px;
}

.candidate-hero-copy {
  min-width: 0;
  flex: 1;
}

.candidate-hero-name {
  margin: 0;
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.candidate-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.detail-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

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

.detail-item,
.info-item {
  min-width: 0;
}

.detail-label,
.info-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.detail-value,
.info-value {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 12px;
  font-weight: 650;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  padding-bottom: 16px;
}

.timeline-item::before {
  position: absolute;
  top: 18px;
  bottom: -2px;
  left: 9px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 4px solid var(--surface);
  border-radius: 999px;
  background: var(--teal-500);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-title {
  margin: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.timeline-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* Modal dialog */
.modal-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 20px;
  background: rgb(7 20 38 / 0.54);
  opacity: 0;
  transition: visibility var(--transition-base), opacity var(--transition-base);
}

.modal-backdrop.is-open,
.modal-overlay.is-open,
.modal-backdrop[data-state="open"],
.modal-overlay[data-state="open"],
body.modal-open .modal-backdrop,
body.modal-open .modal-overlay {
  visibility: visible;
  opacity: 1;
}

.modal,
.modal-dialog {
  display: flex;
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 28px 72px rgb(7 20 38 / 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.modal-backdrop.is-open .modal,
.modal-overlay.is-open .modal,
.modal-backdrop[data-state="open"] .modal,
.modal-overlay[data-state="open"] .modal,
body.modal-open .modal {
  opacity: 1;
  transform: translateY(0);
}

dialog.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
}

dialog.modal[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

dialog.modal::backdrop {
  background: rgb(7 20 38 / 0.54);
}

.modal-header {
  display: flex;
  min-height: 62px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  margin: 0;
  color: var(--navy-900);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.modal-description {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modal-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.modal-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

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

.form-grid .is-full,
.form-grid .full-width {
  grid-column: 1 / -1;
}

/* Toasts */
.toast-region,
.toast-stack {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 1300;
  display: grid;
  width: min(370px, calc(100vw - 28px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  pointer-events: auto;
  animation: toast-in 220ms ease both;
}

.toast-success {
  border-left-color: var(--green-700);
}

.toast-warning {
  border-left-color: var(--amber-600);
}

.toast-error {
  border-left-color: var(--red-600);
}

.toast-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
}

.toast-title {
  margin: 0;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

.toast-message {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toast-close {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.toast-close:hover {
  background: var(--surface-hover);
  color: var(--navy-900);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(12px, -4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Supporting states and utilities */
.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
}

.empty-state-title {
  margin: 0 0 4px;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 800;
}

.empty-state-text {
  max-width: 360px;
  margin: 0 auto 13px;
  font-size: 12px;
}

.skeleton {
  overflow: hidden;
  border-radius: 6px;
  background: #e7edf3;
  color: transparent !important;
}

.skeleton::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.62), transparent);
  content: "";
  animation: skeleton-shimmer 1.4s infinite;
  transform: translateX(-100%);
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

.progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaf0;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500));
}

.divider {
  width: 100%;
  height: 1px;
  margin: 14px 0;
  border: 0;
  background: var(--line);
}

.text-muted {
  color: var(--muted) !important;
}

.text-danger {
  color: var(--red-600) !important;
}

.text-success {
  color: var(--green-700) !important;
}

.text-right {
  text-align: right !important;
}

.nowrap {
  white-space: nowrap !important;
}

.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack {
  display: grid;
  gap: 12px;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Explicit desktop collapsed mode */
.app-shell.is-sidebar-collapsed,
body.sidebar-collapsed {
  --sidebar-width: 76px;
}

.is-sidebar-collapsed .brand-text,
.is-sidebar-collapsed .nav-section-title,
.is-sidebar-collapsed .nav-text,
.is-sidebar-collapsed .nav-count,
.is-sidebar-collapsed .sidebar-profile-copy,
body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-section-title,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .nav-count,
body.sidebar-collapsed .sidebar-profile-copy {
  display: none;
}

.is-sidebar-collapsed .brand,
.is-sidebar-collapsed .nav-item,
.is-sidebar-collapsed .nav-link,
.is-sidebar-collapsed .sidebar-profile,
body.sidebar-collapsed .brand,
body.sidebar-collapsed .nav-item,
body.sidebar-collapsed .nav-link,
body.sidebar-collapsed .sidebar-profile {
  justify-content: center;
}

/* Tablet */
@media (max-width: 1180px) {
  .kpi-grid,
  .metrics-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page,
  .page-content,
  .workspace {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 1024px) {
  .sidebar,
  .app-sidebar {
    width: min(var(--sidebar-width), calc(100vw - 56px));
    box-shadow: 18px 0 44px rgb(7 20 38 / 0.28);
    transform: translateX(-102%);
  }

  .sidebar.is-open,
  .app-sidebar.is-open,
  .app-shell.sidebar-open .sidebar,
  .app-shell.sidebar-open .app-sidebar,
  body.sidebar-open .sidebar,
  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 790;
    visibility: hidden;
    background: rgb(7 20 38 / 0.45);
    opacity: 0;
    transition: visibility var(--transition-base), opacity var(--transition-base);
  }

  .sidebar-backdrop.is-open,
  .app-shell.sidebar-open .sidebar-backdrop,
  body.sidebar-open .sidebar-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .app-main,
  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle,
  .mobile-menu-button {
    display: inline-flex;
    width: 36px;
    flex: 0 0 auto;
    padding: 0;
    border-color: var(--line);
    background: var(--surface);
    color: var(--navy-900);
  }

  .topbar,
  .top-bar {
    padding-right: 22px;
    padding-left: 22px;
  }

  .kanban-column,
  .pipeline-column {
    max-height: calc(100vh - 206px);
    max-height: calc(100dvh - 206px);
  }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --topbar-height: 58px;
  }

  .topbar,
  .top-bar {
    gap: 10px;
    padding: 0 14px;
  }

  .topbar-right .search-field,
  .topbar-right .search-box,
  .topbar .breadcrumb,
  .top-bar .breadcrumb,
  .hide-mobile {
    display: none !important;
  }

  .page,
  .page-content,
  .workspace {
    padding: 17px 14px 28px;
  }

  .page-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .page-header .header-actions {
    width: 100%;
  }

  .page-header .header-actions > .button,
  .page-header .header-actions > .btn {
    flex: 1;
  }

  .page-title {
    font-size: 22px;
  }

  .kpi-grid,
  .metrics-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .kpi-card,
  .metric-card,
  .stat-card {
    min-height: 104px;
    padding: 14px;
  }

  .kpi-value,
  .metric-value,
  .stat-value {
    font-size: 23px;
  }

  .section-toolbar,
  .table-toolbar,
  .filter-bar {
    align-items: stretch;
    padding: 11px;
  }

  .section-toolbar > *,
  .table-toolbar > *,
  .filter-bar > *,
  .search-field,
  .search-box {
    width: 100%;
    min-width: 0;
  }

  .filters,
  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .filter-chip,
  .chip {
    flex: 0 0 auto;
  }

  .panel-header,
  .card-header,
  .table-card-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .kanban-board,
  .pipeline-board {
    grid-auto-columns: minmax(82vw, 1fr);
    min-height: 500px;
    scroll-snap-type: x mandatory;
  }

  .kanban-column,
  .pipeline-column {
    min-width: 82vw;
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
  }

  .detail-drawer,
  .candidate-drawer,
  .drawer {
    width: 100vw;
    border-left: 0;
  }

  .drawer-header,
  .drawer-footer,
  .drawer-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  .detail-grid,
  .info-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop,
  .modal-overlay {
    align-items: end;
    padding: 0;
  }

  .modal,
  .modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 28px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    transform: translateY(22px);
  }

  .modal-footer {
    padding-bottom: max(11px, env(safe-area-inset-bottom));
  }

  .modal-footer .button,
  .modal-footer .btn {
    flex: 1;
  }

  .toast-region,
  .toast-stack {
    top: auto;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
  }

  .pagination {
    justify-content: center;
  }

  .pagination > :first-child {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar-title {
    max-width: 150px;
  }

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

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

/* Motion and contrast preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Runtime shell button/search normalization */
.sidebar .brand {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sidebar .nav-item {
  width: 100%;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sidebar .sidebar-profile {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.12);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.topbar .sidebar-toggle {
  display: none;
}

.global-search-wrap {
  height: 38px;
}

.global-search-wrap .search-input {
  padding-right: 62px;
}

.global-search-wrap > kbd {
  position: absolute;
  top: 50%;
  right: 10px;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  transform: translateY(-50%);
}

@media (max-width: 1024px) {
  .topbar .sidebar-toggle {
    display: inline-flex;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #9aa8b8;
    --line-strong: #7d8da0;
    --muted: #475467;
  }

  .button-primary,
  .btn-primary,
  .button-accent,
  .btn-accent,
  .nav-item.is-active,
  .nav-link.is-active {
    box-shadow: none;
  }
}

@media (forced-colors: active) {
  .badge::before,
  .status-badge::before,
  .stage-dot {
    border: 1px solid currentColor;
  }

  .candidate-card.is-selected,
  .applicant-card.is-selected {
    outline: 2px solid Highlight;
  }
}

@media print {
  .sidebar,
  .app-sidebar,
  .topbar,
  .top-bar,
  .header-actions,
  .table-toolbar,
  .drawer-backdrop,
  .detail-drawer,
  .modal-backdrop,
  .toast-region {
    display: none !important;
  }

  .app-main,
  .main-content {
    margin-left: 0;
  }

  .page,
  .page-content,
  .workspace {
    max-width: none;
    padding: 0;
  }

  .panel,
  .card,
  .table-card,
  .kpi-card,
  .metric-card,
  .stat-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Executive administrator workspace */
.admin-only-chip {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid rgb(94 234 212 / 0.28);
  border-radius: 999px;
  background: rgb(20 184 166 / 0.1);
  color: #5eead4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-command-bar {
  position: relative;
  display: flex;
  min-height: 142px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid #233b57;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 15%, rgb(45 212 191 / 0.22), transparent 28%),
    linear-gradient(135deg, #0d223c 0%, #132f4c 58%, #0b3850 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgb(15 35 58 / 0.16);
}

.admin-command-bar::after {
  position: absolute;
  right: -42px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.admin-command-bar > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.admin-command-kicker {
  display: block;
  margin-bottom: 6px;
  color: #5eead4;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-command-bar h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.admin-command-bar p {
  margin: 8px 0 0;
  color: #b8ccdd;
  font-size: 12px;
  line-height: 1.55;
}

.admin-command-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 7px;
}

.admin-command-actions .btn-secondary {
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.admin-command-actions .btn-primary {
  border-color: #20c9b7;
  background: #20c9b7;
  color: #062733;
}

.admin-stale-warning {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 11px;
  border: 1px solid #f5c9a8;
  border-radius: 8px;
  background: #fff8f1;
  color: #8b3f11;
  font-size: 12px;
}

.admin-stale-warning small { flex: 1; color: #a15322; }
.admin-stale-warning button { border: 0; background: transparent; color: #8b3f11; font: inherit; font-weight: 850; text-decoration: underline; }

.active-quality-filter {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 7px 0 9px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.active-quality-filter button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #ccfbf1; color: #0f766e; }

.admin-period-control {
  display: grid;
  gap: 4px;
  color: #a9c1d4;
  font-size: 12px;
  font-weight: 750;
}

.admin-period-control select {
  min-width: 112px;
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  background: #193850;
  color: #fff;
  font: inherit;
  font-size: 12px;
}

.admin-freshness {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.admin-freshness strong {
  color: #344054;
  font-size: 12px;
}

.admin-freshness > span:not(.live-dot, .admin-refreshing) + span {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.live-dot,
.system-ok i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgb(16 185 129 / 0.14);
}

.admin-refreshing {
  margin-left: auto;
  color: #0f8f83;
  font-weight: 800;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.admin-kpi-card {
  position: relative;
  display: flex;
  min-height: 105px;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.admin-kpi-card::after {
  position: absolute;
  right: -17px;
  bottom: -25px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--admin-accent) 8%, transparent);
  content: "";
}

.admin-kpi-card.teal { --admin-accent: #0f9f91; }
.admin-kpi-card.blue { --admin-accent: #3b82f6; }
.admin-kpi-card.green { --admin-accent: #10b981; }
.admin-kpi-card.purple { --admin-accent: #8b5cf6; }
.admin-kpi-card.amber { --admin-accent: #f59e0b; }
.admin-kpi-card.rose { --admin-accent: #e25571; }

.admin-kpi-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--admin-accent) 11%, white);
  color: var(--admin-accent);
}

.admin-kpi-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-kpi-copy > small,
.admin-kpi-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-kpi-copy > small {
  color: #52647a;
  font-weight: 750;
}

.admin-kpi-copy strong {
  color: var(--navy-900);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-kpi-copy strong i {
  margin-left: 2px;
  color: #6b7c8f;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0;
}

.admin-overview-grid,
.admin-management-grid,
.admin-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.admin-management-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
}

.admin-panel {
  min-width: 0;
  overflow: hidden;
}

.admin-panel .panel-head {
  min-height: 58px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.admin-panel .panel-head h3 {
  font-size: 12px;
}

.admin-panel .panel-head p {
  margin-top: 2px;
  font-size: 12px;
}

.admin-panel-tag {
  padding: 3px 6px;
  border-radius: 5px;
  background: #edf7f7;
  color: #0f887e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-pipeline-chart,
.admin-source-list,
.admin-workload-list,
.admin-quality-list,
.admin-audit-list {
  display: grid;
  gap: 0;
  padding: 8px 14px 13px;
}

.admin-pipeline-row {
  display: grid;
  grid-template-columns: 22px minmax(80px, 0.8fr) minmax(100px, 1.4fr) 40px 38px;
  min-height: 41px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eef2f6;
  font-size: 12px;
}

.admin-pipeline-row:last-child,
.admin-source-row:last-child,
.admin-workload-row:last-child,
.admin-audit-row:last-child {
  border-bottom: 0;
}

.admin-stage-index {
  color: #a0aec0;
  font-weight: 800;
  text-align: center;
}

.admin-stage-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #344054;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-stage-name i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--admin-stage);
}

.admin-stage-bar,
.admin-source-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.admin-stage-bar i,
.admin-source-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--admin-stage);
}

.admin-pipeline-row strong,
.admin-pipeline-row small {
  color: #20344b;
  font-size: 12px;
  text-align: right;
}

.admin-pipeline-row small {
  color: var(--muted);
}

.admin-source-row {
  display: grid;
  grid-template-columns: 23px minmax(75px, 0.8fr) minmax(95px, 1.2fr) 37px minmax(72px, auto);
  min-height: 41px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eef2f6;
  font-size: 12px;
}

.admin-source-name {
  overflow: hidden;
  color: #344054;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-source-track i {
  background: linear-gradient(90deg, #14b8a6, #35cdbd);
}

.admin-source-row strong,
.admin-source-row small {
  text-align: right;
}

.admin-source-row small {
  color: var(--muted);
}

.admin-workload-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) repeat(3, minmax(58px, 0.5fr));
  min-height: 57px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #eef2f6;
}

.admin-workload-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.admin-workload-row > span strong,
.admin-workload-row > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workload-row > span strong {
  color: #273a50;
  font-size: 12px;
}

.admin-workload-row > span small,
.admin-workload-row b small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-workload-row b {
  display: grid;
  color: var(--navy-900);
  font-size: 12px;
  text-align: right;
}

.admin-issue-total {
  display: grid;
  min-width: 39px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: #fff2f3;
  color: #c93d55;
  font-size: 12px;
  font-weight: 850;
}

.admin-quality-list {
  gap: 5px;
  padding-top: 11px;
}

.admin-quality-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 43px;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
}

.admin-quality-row:hover {
  border-color: #b8c8d6;
  background: #f9fbfc;
}

.admin-quality-row > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #edf5fa;
  color: #3a6684;
  font-size: 12px;
  font-weight: 900;
}

.admin-quality-row.danger > span:first-child { background: #fff0f2; color: #ce3751; }
.admin-quality-row.warning > span:first-child { background: #fff7e8; color: #b56b00; }

.admin-quality-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.admin-quality-row strong { color: #344054; font-size: 12px; }
.admin-quality-row small { color: var(--muted); font-size: 12px; }

.admin-users-panel {
  margin-bottom: 10px;
}

.admin-users-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-users-table th {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
  color: #68788a;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.admin-users-table th:nth-child(1) { width: 24%; }
.admin-users-table th:nth-child(2) { width: 17%; }
.admin-users-table th:nth-child(3) { width: 14%; }
.admin-users-table th:nth-child(4) { width: 13%; }
.admin-users-table th:nth-child(5) { width: 18%; }
.admin-users-table th:nth-child(6) { width: 10%; }

.admin-users-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #eef2f5;
  color: #344054;
  font-size: 12px;
  vertical-align: middle;
}

.admin-users-table tbody tr:last-child td { border-bottom: 0; }
.admin-users-table tbody tr:hover { background: #fbfcfd; }

.admin-user-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.admin-user-person > i {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: hsl(var(--avatar-hue) 60% 93%);
  color: hsl(var(--avatar-hue) 45% 37%);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-user-person > span {
  display: grid;
  min-width: 0;
}

.admin-user-person strong,
.admin-user-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.admin-inline-input,
.admin-inline-select {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d7e0e8;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 12px;
}

.admin-inline-input:focus,
.admin-inline-select:focus {
  border-color: #14a899;
  outline: 2px solid rgb(20 168 153 / 0.13);
}

.admin-inline-select:disabled {
  cursor: not-allowed;
  background: #f2f5f7;
  color: #788797;
}

.admin-login-time {
  color: #5e6f81;
  white-space: nowrap;
}

.admin-audit-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 45px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #eef2f6;
}

.admin-audit-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: #edf7f7;
  color: #168b81;
}

.admin-audit-row > span:nth-child(2) { display: grid; min-width: 0; }
.admin-audit-row strong { color: #344054; font-size: 12px; }
.admin-audit-row small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-audit-row time { color: #7b8b9a; font-size: 12px; white-space: nowrap; }

.system-ok {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #148660;
  font-size: 12px;
  font-weight: 800;
}

.admin-system-list {
  margin: 0;
  padding: 9px 14px;
}

.admin-system-list > div {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f6;
}

.admin-system-list > div:last-child { border-bottom: 0; }
.admin-system-list dt { color: var(--muted); font-size: 12px; }
.admin-system-list dd { margin: 0; color: #263c53; font-size: 12px; font-weight: 800; text-align: right; }

.admin-method-note {
  margin: 0 14px 13px;
  padding: 10px 11px;
  border: 1px solid #cfe6e4;
  border-radius: 8px;
  background: #f1faf9;
}

.admin-method-note strong { color: #176e68; font-size: 12px; }
.admin-method-note p { margin: 3px 0 0; color: #527672; font-size: 12px; line-height: 1.5; }

.admin-empty {
  display: grid;
  min-height: 86px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.admin-loading,
.admin-load-error,
.admin-access-denied {
  display: grid;
  min-height: 290px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.admin-loading strong,
.admin-load-error strong,
.admin-access-denied h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 14px;
}

.admin-loading p,
.admin-load-error p,
.admin-access-denied p {
  margin: 0;
  font-size: 12px;
}

.admin-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe8e7;
  border-top-color: #14a899;
  border-radius: 50%;
  animation: admin-spin 0.8s linear infinite;
}

@keyframes admin-spin { to { transform: rotate(360deg); } }

.admin-load-error {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 110px;
  place-items: center start;
  text-align: left;
}

.admin-load-error > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #fff0f2;
  color: #c93d55;
  font-weight: 900;
}

.admin-user-form-grid small {
  color: var(--muted);
  font-size: 12px;
}

.admin-role-guide {
  padding: 12px;
  border: 1px solid #d8e9e7;
  border-radius: 9px;
  background: #f5fbfa;
  color: #47635f;
  font-size: 12px;
}

.admin-role-guide strong { color: #185e59; }
.admin-role-guide ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 18px; margin: 8px 0 0; padding-left: 17px; }
.admin-role-guide b { color: #274a47; }

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

@media (max-width: 1080px) {
  .admin-command-bar { align-items: flex-start; flex-direction: column; }
  .admin-command-actions { width: 100%; flex-wrap: wrap; }
  .admin-overview-grid,
  .admin-management-grid,
  .admin-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .admin-command-bar { padding: 20px; }
  .admin-command-actions { align-items: stretch; flex-direction: column; }
  .admin-command-actions .btn,
  .admin-period-control select { width: 100%; }
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-kpi-card { min-height: 94px; }
  .admin-pipeline-row { grid-template-columns: 18px minmax(72px, 1fr) minmax(70px, 1.3fr) 35px; }
  .admin-pipeline-row small { display: none; }
  .admin-source-row { grid-template-columns: 22px minmax(80px, 1fr) auto; }
  .admin-source-track { grid-column: 2 / -1; width: 100%; }
  .admin-source-row small { grid-column: 2 / -1; display: block; }
  .admin-workload-row { grid-template-columns: auto minmax(90px, 1fr) repeat(2, minmax(46px, auto)); }
  .admin-workload-row b:last-child { grid-column: 2 / -1; display: flex; justify-content: flex-start; gap: 5px; }
  .admin-role-guide ul { grid-template-columns: 1fr; }
  .admin-freshness { overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 420px) {
  .admin-kpi-grid { grid-template-columns: 1fr; }
  .admin-kpi-card { min-height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-spinner { animation: none; }
}

/* Authentication and server bootstrap */
[hidden] {
  display: none !important;
}

body.app-loading::before {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--canvas);
  color: var(--navy-900);
  content: "CHECKON ATS 불러오는 중…";
  font-size: 14px;
  font-weight: 800;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgb(20 184 166 / 0.18), transparent 30%),
    radial-gradient(circle at 85% 85%, rgb(99 91 255 / 0.13), transparent 34%),
    #f4f7fa;
}

.auth-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid rgb(203 213 225 / 0.78);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 28px 70px rgb(16 35 63 / 0.16);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 34px;
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 900;
}

.auth-brand small {
  color: var(--teal-700);
  font-size: 12px;
  letter-spacing: .12em;
}

.auth-card h1 {
  margin: 4px 0 7px;
  color: var(--navy-900);
  font-size: 28px;
  letter-spacing: -.04em;
}

.auth-card > div > p,
.auth-card > p {
  margin: 0;
  color: var(--muted);
}

.auth-card form {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  font-size: 13px;
}

.auth-help {
  margin-top: 22px !important;
  font-size: 12px;
  text-align: center;
}

.auth-help a {
  color: var(--teal-700);
  font-weight: 800;
}

.auth-error {
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: var(--red-50);
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .auth-screen { padding: 14px; }
  .auth-card { padding: 25px 20px; border-radius: 14px; }
}

/* Runtime markup compatibility layer
   These selectors bind the generic design system above to the generated ATS views. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-frame {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-base);
}

.app-frame > .app-main {
  min-height: calc(100vh - var(--topbar-height));
  min-height: calc(100dvh - var(--topbar-height));
  margin-left: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 600;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid rgb(203 213 225 / 0.8);
  background: rgb(255 255 255 / 0.93);
  box-shadow: 0 1px 0 rgb(16 35 63 / 0.02);
}

@supports (backdrop-filter: blur(12px)) {
  .app-topbar {
    background: rgb(255 255 255 / 0.84);
    backdrop-filter: blur(12px) saturate(145%);
  }
}

.primary-navigation {
  flex: 1;
  padding: 14px 12px;
}

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

.navigation-link {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #bac8d8;
  font-size: 13px;
  font-weight: 650;
  transition: color var(--transition-fast), background var(--transition-fast),
    border-color var(--transition-fast);
}

.navigation-link:hover {
  background: rgb(255 255 255 / 0.07);
  color: #ffffff;
}

.navigation-link.is-active,
.navigation-link.active,
.navigation-link[aria-current="page"] {
  border-color: rgb(20 184 166 / 0.22);
  background: linear-gradient(90deg, rgb(20 184 166 / 0.19), rgb(20 184 166 / 0.08));
  color: #ffffff;
}

.navigation-link.is-active::before,
.navigation-link.active::before,
.navigation-link[aria-current="page"]::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--teal-500);
  content: "";
}

.navigation-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  color: currentColor;
  font-size: 17px;
  line-height: 1;
}

.brand-text > span {
  margin-left: 3px;
  color: #76e5d8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.brand {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.nav-item {
  width: 100%;
  background: transparent;
  text-align: left;
}

.sidebar-profile {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.08);
  color: inherit;
  text-align: left;
}

.workspace-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 9px;
  background: rgb(255 255 255 / 0.05);
  color: #ffffff;
  text-align: left;
}

.workspace-button:hover {
  background: rgb(255 255 255 / 0.09);
}

.workspace-avatar {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-500);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 900;
}

.workspace-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.workspace-copy strong,
.workspace-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-copy strong {
  font-size: 12px;
}

.workspace-copy span {
  color: #91a3b8;
  font-size: 12px;
}

.sidebar-help {
  display: grid;
  gap: 4px;
  margin: 24px 1px 0;
  padding: 12px;
  border: 1px solid rgb(118 229 216 / 0.16);
  border-radius: 9px;
  background: rgb(20 184 166 / 0.08);
  color: #d8f8f3;
}

.sidebar-help > span {
  display: grid;
  width: 25px;
  height: 25px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 7px;
  background: rgb(20 184 166 / 0.18);
  color: #76e5d8;
}

.sidebar-help strong {
  font-size: 12px;
}

.sidebar-help p {
  margin: 0;
  color: #91a9bd;
  font-size: 12px;
  line-height: 1.5;
}

.sidebar-help button {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #76e5d8;
  font-size: 12px;
  font-weight: 800;
}

.profile-avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(16 35 63 / 0.09);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--navy-100), var(--teal-100));
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

.header-avatar {
  padding: 0;
}

.notification-button {
  position: relative;
}

.notification-button > i {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--red-600);
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.top-create {
  min-width: 106px;
}

.global-search {
  position: relative;
  width: min(420px, 46vw);
  margin-right: auto;
}

.global-search input {
  width: 100%;
  height: 38px;
  padding: 0 68px 0 37px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 12px;
  transition: border-color var(--transition-fast), background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.global-search input::placeholder {
  color: var(--muted-2);
}

.global-search input:focus {
  border-color: var(--teal-500);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 0.13);
  outline: 0;
}

.global-search .search-icon {
  left: 12px;
  color: var(--muted);
  font-size: 19px;
}

.search-shortcut {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 2px 6px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-bottom-color: #bec9d4;
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  pointer-events: none;
}

.global-search-wrap {
  position: relative;
  width: min(420px, 46vw);
  margin-right: auto;
}

.global-search-wrap .global-search {
  width: 100%;
  margin-right: 0;
}

#global-search-results,
.global-search-results {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 720;
  display: none;
  max-height: min(440px, calc(100vh - 96px));
  max-height: min(440px, calc(100dvh - 96px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  scrollbar-width: thin;
}

#global-search-results.open,
.global-search-results.open,
#global-search-results.is-open,
.global-search-results.is-open {
  display: block;
}

.search-result-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.search-result-head span {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #e6edf3;
  color: #536175;
  font-size: 12px;
}

#global-search-results > button,
.global-search-results > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #e9eef3;
  background: var(--surface);
  color: inherit;
  text-align: left;
}

#global-search-results > button:hover,
#global-search-results > button:focus-visible,
.global-search-results > button:hover,
.global-search-results > button:focus-visible {
  background: var(--teal-50);
}

#global-search-results > button > span:nth-child(2),
.global-search-results > button > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

#global-search-results button strong,
#global-search-results button small,
.global-search-results button strong,
.global-search-results button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#global-search-results button strong,
.global-search-results button strong {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
}

#global-search-results button small,
.global-search-results button small {
  color: var(--muted);
  font-size: 12px;
}

#global-search-results kbd,
.global-search-results kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
}

.search-empty {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

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

.profile-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgb(16 35 63 / 0.1);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--navy-100), var(--teal-100));
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

.app-view {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

.app-view[hidden] {
  display: none !important;
}

.view-header {
  padding: 23px 28px 0;
}

.view-header h1 {
  margin: 1px 0 0;
  color: var(--navy-900);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.view-eyebrow,
.eyebrow {
  margin: 0;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.view-content {
  padding: 17px 28px 36px;
}

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

.actions-head {
  min-width: 0;
}

.view-head h2 {
  margin: 3px 0 2px;
  color: var(--navy-900);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.view-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.head-actions,
.toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.btn-compact {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy-900);
  font-size: 12px;
}

.icon-btn {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--surface-hover);
  color: var(--navy-900);
}

.text-btn {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
}

.text-btn:hover {
  color: var(--navy-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel-head {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.panel-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.count-badge {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 850;
}

/* Generated dashboard */
.kpi-card {
  grid-template-areas:
    "icon label"
    "icon value"
    "icon note";
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: center;
  gap: 2px 11px;
  color: inherit;
  text-align: left;
}

.kpi-card .kpi-icon {
  grid-area: icon;
  align-self: start;
}

.kpi-card .kpi-icon.warning {
  background: var(--amber-50);
  color: var(--amber-600);
}

.kpi-card .kpi-label {
  grid-area: label;
}

.kpi-card > strong {
  grid-area: value;
  color: var(--navy-900);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.kpi-card > strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.kpi-note {
  grid-area: note;
  color: var(--muted);
  font-size: 12px;
}

.positive {
  color: var(--green-700) !important;
}

.warning-text {
  color: var(--amber-600) !important;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 12px;
}

.task-panel,
.activity-panel,
.agenda-panel,
.evaluation-panel,
.funnel-panel,
.source-panel,
.leadtime-panel,
.hiring-panel {
  min-width: 0;
}

.agenda-panel,
.evaluation-panel {
  overflow: hidden;
}

.pipeline-summary,
.interview-panel {
  min-width: 0;
}

.stage-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 15px 12px;
}

.stage-metric {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--ink);
  text-align: left;
}

.stage-metric:hover {
  border-color: #b9c7d4;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.stage-metric-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.stage-metric-top strong {
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 850;
}

.stage-dot[style] {
  background: var(--stage-color, var(--teal-500));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stage-color, var(--teal-500)) 15%, transparent);
}

.metric-bar {
  display: block;
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e9ef;
}

.metric-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--stage-color, var(--teal-500));
}

.insight-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 0 15px 14px;
  padding: 10px 11px;
  border: 1px solid #b9eee5;
  border-radius: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
}

.insight-banner > div {
  display: grid;
  min-width: 0;
}

.insight-banner strong {
  color: var(--navy-900);
  font-size: 12px;
}

.insight-banner span {
  color: #527276;
  font-size: 12px;
}

.insight-banner button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgb(13 127 117 / 0.22);
  border-radius: 6px;
  background: var(--surface);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
}

.task-list,
.schedule-list,
.people-list,
.evaluation-list {
  display: grid;
  padding: 4px 14px 10px;
}

.task-row,
.schedule-row,
.person-row,
.evaluation-row {
  display: flex;
  min-width: 0;
  min-height: 51px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e9eef3;
}

.task-row:last-child,
.schedule-row:last-child,
.person-row:last-child,
.evaluation-row:last-child {
  border-bottom: 0;
}

.schedule-row,
.person-row {
  width: 100%;
  padding: 7px 2px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.schedule-row:hover,
.person-row:hover {
  background: #f8fbfc;
}

.task-check {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #b9c6d3;
  border-radius: 6px;
  background: var(--surface);
  color: var(--teal-700);
}

.task-main {
  display: grid;
  min-width: 0;
  flex: 1;
  padding: 8px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.task-main strong,
.schedule-info strong,
.person-main strong {
  overflow: hidden;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-main span,
.schedule-info span,
.person-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row.done {
  opacity: 0.58;
}

.task-row.done .task-main strong {
  text-decoration: line-through;
}

.date-tile {
  display: grid;
  width: 34px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--navy-900);
}

.date-tile strong {
  font-size: 13px;
  line-height: 1;
}

.date-tile small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-info,
.person-main {
  display: grid;
  min-width: 0;
  flex: 1;
}

.avatar-stack i {
  display: grid;
  width: 24px;
  height: 24px;
  margin-left: -6px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #e5edf5;
  color: var(--navy-900);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.avatar-stack i:first-child {
  margin-left: 0;
}

.stage-pill {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #526176;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.stage-applied {
  border-color: #99f6e4;
  background: var(--teal-50);
  color: var(--teal-700);
}

.stage-screening {
  border-color: #bfdbfe;
  background: var(--blue-50);
  color: var(--blue-600);
}

.stage-interview {
  border-color: #ddd6fe;
  background: var(--purple-50);
  color: var(--purple-600);
}

.stage-offer {
  border-color: #fde68a;
  background: var(--amber-50);
  color: var(--amber-600);
}

.stage-hired {
  border-color: #bbf7d0;
  background: var(--green-50);
  color: var(--green-700);
}

.date-muted {
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.empty-mini {
  padding: 28px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Generated job list and pipeline controls */
.view-toolbar,
.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.segmented,
.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.segmented button,
.view-toggle button {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.segmented button:hover,
.view-toggle button:hover {
  color: var(--navy-900);
}

.segmented button.active,
.view-toggle button.active {
  background: var(--surface);
  color: var(--navy-900);
  box-shadow: var(--shadow-xs);
}

.segmented button span,
.filter-count {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #e7edf3;
  color: #59677a;
  font-size: 12px;
}

.table-panel {
  overflow: hidden;
}

.table-meta {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
}

.table-meta strong {
  color: var(--navy-900);
  font-size: 12px;
}

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

.job-title-cell {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.job-title-cell > span:last-child {
  display: grid;
  min-width: 0;
}

.job-mark {
  display: inline-grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--job-color, var(--teal-500)) 17%, white);
  color: var(--job-color, var(--teal-700));
  font-size: 12px;
  font-weight: 900;
}

.job-mark.large,
.job-mark.is-large {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
}

.status-badge::before {
  display: none;
}

.status-badge > i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.status-active {
  border-color: #99f6e4;
  background: var(--teal-50);
  color: var(--teal-700);
}

.status-closed {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.owner-chip i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  background: #e5edf5;
  color: var(--navy-900);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.progress-copy strong {
  color: var(--navy-900);
}

.overdue {
  color: var(--red-600);
  font-weight: 750;
}

.pipeline-header {
  padding: 12px 14px;
}

.job-selector-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.job-selector-wrap label {
  display: grid;
  min-width: 180px;
}

.job-selector-wrap label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.job-selector-wrap select,
.select-control {
  min-height: 34px;
  padding: 0 30px 0 0;
  border: 0;
  background: transparent;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
}

.select-control {
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
}

.inline-search {
  display: flex;
  width: min(360px, 42vw);
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--muted);
}

.inline-search:focus-within {
  border-color: var(--teal-500);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 0.12);
}

.inline-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  outline: 0;
}

.kanban-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 47px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid #d5dee8;
  background: rgb(248 250 252 / 0.92);
}

.kanban-head strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-head > span:not(.stage-dot) {
  display: grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #e2e9f0;
  color: #5b687a;
  font-size: 12px;
  font-weight: 850;
}

.kanban-head button,
.card-more {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.kanban-head button:hover,
.card-more:hover {
  background: #e7edf3;
  color: var(--navy-900);
}

.kanban-cards {
  display: grid;
  min-height: 90px;
  flex: 1;
  align-content: start;
  gap: 8px;
  padding: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c0cbd7 transparent;
}

.kanban-column.drag-over {
  border-color: var(--teal-500);
  background: rgb(20 184 166 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(20 184 166 / 0.4);
}

.applicant-card.dragging {
  opacity: 0.65;
  box-shadow: var(--shadow-md);
  transform: rotate(1deg) scale(1.01);
}

.card-person {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.card-person > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
}

.card-person strong,
.card-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-person strong {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

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

.avatar[style*="--avatar-hue"] {
  background: hsl(var(--avatar-hue, 168) 66% 91%);
  color: hsl(var(--avatar-hue, 168) 58% 27%);
}

.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.avatar.large {
  width: 48px;
  height: 48px;
  font-size: 13px;
}

.card-headline {
  display: -webkit-box;
  min-height: 31px;
  margin: 0;
  overflow: hidden;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-row span,
.skill-list span {
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #5b687a;
  font-size: 12px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rating {
  color: var(--amber-600);
  font-weight: 850;
}

.risk-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: -1px -2px -2px;
  padding: 6px 7px;
  border-radius: 6px;
  background: var(--amber-50);
  color: #a55b05;
  font-size: 12px;
  font-weight: 750;
}

.add-card {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px dashed #b9c6d3;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.add-card:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
  color: var(--teal-700);
}

.table-person,
.evaluation-person,
.evaluation-target {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.table-person > span:last-child,
.evaluation-person > span:last-child,
.evaluation-target > div {
  display: grid;
  min-width: 0;
}

.table-person strong,
.evaluation-person strong,
.evaluation-target strong {
  color: var(--navy-900);
  font-size: 12px;
}

.table-person small,
.evaluation-person small,
.evaluation-target span {
  color: var(--muted);
  font-size: 12px;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:focus-visible {
  outline: 3px solid rgba(99, 91, 255, 0.35);
  outline-offset: -3px;
}

.test-data-mark {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}

/* Interviews */
.interview-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.summary-card {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.summary-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
}

.summary-icon.purple {
  background: var(--purple-50);
  color: var(--purple-600);
}

.summary-icon.orange {
  background: var(--amber-50);
  color: var(--amber-600);
}

.summary-icon.teal {
  background: var(--teal-50);
  color: var(--teal-700);
}

.summary-card > div {
  display: grid;
}

.summary-card > div > span {
  color: var(--muted);
  font-size: 12px;
}

.summary-card > div > strong {
  color: var(--navy-900);
  font-size: 17px;
  font-weight: 850;
}

.summary-action {
  min-width: 150px;
}

.interview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
  gap: 12px;
}

.mini-nav {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.mini-nav button {
  min-width: 29px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.mini-nav button:first-child {
  border-left: 0;
}

.agenda-days {
  display: grid;
}

.agenda-day {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}

.agenda-day:last-child {
  border-bottom: 0;
}

.agenda-day.today {
  background: linear-gradient(90deg, var(--teal-50), transparent 58%);
}

.agenda-date {
  display: grid;
  align-content: center;
  justify-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.agenda-date span {
  font-size: 12px;
}

.agenda-date strong {
  color: var(--navy-900);
  font-size: 16px;
}

.agenda-items {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 7px 10px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 42px 3px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-height: 55px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-align: left;
}

.agenda-item:hover {
  border-color: #b8c5d3;
  box-shadow: var(--shadow-xs);
}

.agenda-time {
  align-self: center;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

.agenda-line {
  border-radius: 999px;
  background: var(--teal-500);
}

.agenda-content {
  display: grid;
  min-width: 0;
  align-content: center;
}

.agenda-content strong,
.agenda-content small,
.agenda-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-content strong {
  color: #344054;
  font-size: 12px;
}

.agenda-content small,
.agenda-content span {
  color: var(--muted);
  font-size: 12px;
}

.no-schedule {
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

.evaluation-row {
  justify-content: space-between;
  padding: 6px 0;
}

.evaluation-person {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

/* Reports */
.period-copy {
  display: grid;
}

.period-copy strong {
  color: var(--navy-900);
  font-size: 12px;
}

.period-copy span {
  color: var(--muted);
  font-size: 12px;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.report-toolbar {
  min-width: 0;
}

.report-kpis > div {
  display: grid;
  gap: 1px;
  min-height: 88px;
  align-content: center;
  padding: 13px 16px;
  border-left: 1px solid var(--line);
}

.report-kpis > div:first-child {
  border-left: 0;
}

.report-kpis span,
.report-kpis small {
  color: var(--muted);
  font-size: 12px;
}

.report-kpis strong {
  color: var(--navy-900);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

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

.funnel-chart,
.source-chart,
.leadtime-bars,
.hiring-list {
  display: grid;
  gap: 9px;
  padding: 15px;
}

.funnel-chart button {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto auto;
  width: var(--funnel-width);
  min-height: 37px;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--stage-color) 35%, white);
  border-radius: 7px;
  background: color-mix(in srgb, var(--stage-color) 13%, white);
  color: #344054;
  font-size: 12px;
  text-align: left;
}

.funnel-chart button strong {
  color: var(--navy-900);
  font-size: 12px;
}

.funnel-chart button small {
  color: var(--muted);
  font-size: 12px;
}

.source-chart > div,
.leadtime-bars > div {
  display: grid;
  grid-template-columns: 24px minmax(88px, 0.6fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 12px;
}

.source-rank {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-hover);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.source-bar,
.horizontal-bar,
.mini-progress,
.score-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf3;
}

.source-bar i,
.horizontal-bar i,
.mini-progress i,
.score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-500);
}

.leadtime-bars > div {
  grid-template-columns: 82px minmax(120px, 1fr) 35px;
}

.horizontal-bar i.slow {
  background: var(--amber-600);
}

.report-insight {
  margin-top: 2px;
}

.hiring-list > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(70px, 0.6fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 7px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
}

.hiring-list > button:last-child {
  border-bottom: 0;
}

.hiring-list > button:hover {
  background: var(--surface-subtle);
}

.hiring-list > button > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.hiring-list strong,
.hiring-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hiring-list strong {
  color: var(--navy-900);
  font-size: 12px;
}

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

.hiring-list b {
  color: var(--navy-900);
  font-size: 12px;
}

/* Generated drawer details */
.drawer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.drawer-actions .btn-primary {
  flex: 1;
}

.drawer-tabs {
  display: flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: stretch;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.drawer-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.drawer-tabs button.active {
  color: var(--navy-900);
}

.drawer-tabs button.active::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  background: var(--teal-500);
  content: "";
}

.drawer-tabs button span {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 3px;
  place-items: center;
  border-radius: 999px;
  background: #e7edf3;
  font-size: 12px;
}

.drawer-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.drawer-title > div {
  display: grid;
  min-width: 0;
}

.drawer-title h2 {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-title p {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-section {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.profile-summary {
  padding-top: 0;
}

.drawer-section:first-child {
  padding-top: 0;
}

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

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

.profile-grid > div {
  display: grid;
}

.profile-grid span,
.section-title > span {
  color: var(--muted);
  font-size: 12px;
}

.profile-grid strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-alert,
.privacy-card > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.drawer-alert {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: var(--amber-50);
  color: var(--amber-600);
}

.drawer-alert > div,
.privacy-card > div > div {
  display: grid;
}

.drawer-alert strong,
.privacy-card strong {
  color: var(--navy-900);
  font-size: 12px;
}

.drawer-alert span,
.privacy-card span {
  color: var(--muted);
  font-size: 12px;
}

.section-title {
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.section-title h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

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

.contact-list a {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-subtle);
  color: #475467;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.drawer-section textarea {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12px;
  resize: vertical;
}

.note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.note-actions > span {
  color: var(--muted);
  font-size: 12px;
}

.privacy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px !important;
  border: 1px solid #c7d9ec !important;
  border-radius: 8px;
  background: #f5f9fd;
}

.hired-message {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 14px;
}

.timeline li > span {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  margin: 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--teal-500);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline li::before {
  position: absolute;
  top: 12px;
  bottom: -1px;
  left: 8px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline li:last-child::before {
  display: none;
}

.timeline li strong {
  color: #344054;
  font-size: 12px;
}

.timeline li p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.score-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.score-overview > div:first-child {
  display: grid;
}

.score-overview span {
  color: var(--muted);
  font-size: 12px;
}

.score-overview strong {
  color: var(--navy-900);
  font-size: 24px;
  font-weight: 850;
}

.score-overview strong small {
  color: var(--muted);
  font-size: 12px;
}

.score-ring {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--teal-500) calc(var(--score) * 1%), #e4eaf0 0);
}

.score-ring::before {
  grid-area: 1 / 1;
  width: 40px;
  height: 40px;
  border-radius: inherit;
  background: var(--surface);
  content: "";
}

.score-ring > span {
  z-index: 1;
  grid-area: 1 / 1;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
}

.criteria-list {
  display: grid;
  gap: 9px;
}

.criteria-list > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.criteria-list strong {
  color: var(--navy-900);
  font-size: 12px;
  text-align: right;
}

.full-width {
  width: 100%;
  margin-top: 12px;
}

/* Generated modal */
:is(.modal-root, #modal-root) {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 20px;
}

body.modal-open :is(.modal-root, #modal-root) {
  display: grid;
}

:is(.modal-root, #modal-root) .modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  visibility: visible;
  display: block;
  padding: 0;
  background: rgb(7 20 38 / 0.54);
  opacity: 1;
}

:is(.modal-root, #modal-root) .modal {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: none;
}

:is(.modal-root, #modal-root) .modal > header {
  display: flex;
  min-height: 62px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}

:is(.modal-root, #modal-root) .modal > header h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 850;
}

:is(.modal-root, #modal-root) .modal > header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

:is(.modal-root, #modal-root) .modal > form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

:is(.modal-root, #modal-root) .modal footer {
  display: flex;
  min-height: 57px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 17px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

.form-grid .full,
.form-grid > .full {
  grid-column: 1 / -1;
}

.field > span {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 0.12);
  outline: 0;
}

.check-field {
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-subtle);
}

.check-field input {
  margin-top: 2px;
}

.check-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.radio-cards label {
  position: relative;
}

.radio-cards input {
  position: absolute;
  opacity: 0;
}

.radio-cards label > span {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.radio-cards input:checked + span {
  border-color: var(--teal-500);
  background: var(--teal-50);
  color: var(--teal-700);
}

.radio-cards input:focus-visible + span {
  outline: 3px solid rgb(20 184 166 / 0.3);
  outline-offset: 2px;
}

.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: var(--blue-50);
  color: #355b91;
  font-size: 12px;
}

.reset-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 9px;
  background: var(--red-50);
  color: var(--red-600);
}

.reset-warning > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fee2e2;
}

.reset-warning > div {
  min-width: 0;
}

.reset-warning strong {
  color: #991b1b;
  font-size: 12px;
}

.reset-warning p {
  margin: 3px 0 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.55;
}

.reset-check {
  margin-top: 10px;
  border-color: #fecaca;
  background: #fffafa;
}

.evaluation-form {
  display: grid;
  gap: 13px;
}

.evaluation-target {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.evaluation-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.evaluation-form legend {
  margin-bottom: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

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

.score-options label {
  position: relative;
}

.score-options input {
  position: absolute;
  opacity: 0;
}

.score-options span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score-options input:checked + span {
  border-color: var(--teal-500);
  background: var(--teal-50);
  color: var(--teal-700);
}

.score-options input:focus-visible + span {
  outline: 3px solid rgb(20 184 166 / 0.3);
  outline-offset: 2px;
}

/* Generated toasts */
:is(.toast-root, #toast-root) {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 1300;
  display: grid;
  width: min(370px, calc(100vw - 28px));
  gap: 8px;
  pointer-events: none;
}

:is(.toast-root, #toast-root) .toast {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  pointer-events: auto;
}

.toast-check {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
}

:is(.toast-root, #toast-root) .toast > strong {
  align-self: center;
  color: var(--navy-900);
  font-size: 12px;
}

:is(.toast-root, #toast-root) .toast > button:not(.toast-close) {
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Generated views: responsive binding */
@media (max-width: 1180px) {
  .dashboard-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }

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

  .summary-action {
    grid-column: 1 / -1;
    min-height: 38px;
  }

  .interview-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .app-frame {
    margin-left: 0;
  }

  .app-topbar {
    padding-right: 22px;
    padding-left: 22px;
  }

  .app-frame::before {
    position: fixed;
    inset: 0;
    z-index: 790;
    visibility: hidden;
    background: rgb(7 20 38 / 0.45);
    opacity: 0;
    content: "";
    pointer-events: none;
    transition: visibility var(--transition-base), opacity var(--transition-base);
  }

  body.sidebar-open .app-frame::before {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .app-topbar {
    gap: 9px;
    min-height: var(--topbar-height);
    padding: 0 14px;
  }

  .global-search {
    width: 100%;
  }

  .global-search-wrap {
    width: 100%;
  }

  .global-search input {
    padding-right: 11px;
  }

  .search-shortcut {
    display: none;
  }

  .top-create {
    display: none;
  }

  .view-header {
    padding: 17px 14px 0;
  }

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

  .view-content {
    padding: 13px 14px 28px;
  }

  .view-head,
  .view-toolbar,
  .pipeline-header {
    align-items: stretch;
    flex-direction: column;
  }

  .head-actions,
  .toolbar-actions {
    width: 100%;
  }

  .head-actions .btn,
  .pipeline-header > .toolbar-actions .btn {
    flex: 1;
  }

  .stage-metrics {
    grid-template-columns: repeat(5, minmax(116px, 1fr));
    overflow-x: auto;
  }

  .task-row,
  .schedule-row,
  .person-row {
    min-height: 55px;
  }

  .person-row .date-muted,
  .person-row > svg {
    display: none;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button {
    flex: 1 0 auto;
  }

  .pipeline-toolbar .toolbar-actions {
    justify-content: space-between;
  }

  .inline-search {
    width: 100%;
  }

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

  .job-selector-wrap label {
    min-width: 0;
    flex: 1;
  }

  .interview-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .report-kpis > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .report-kpis > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .source-chart > div {
    grid-template-columns: 22px minmax(78px, 0.7fr) minmax(80px, 1fr) auto;
  }

  .hiring-list > button {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .hiring-list .mini-progress {
    display: none;
  }

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

  .drawer-actions .btn-secondary,
  .drawer-actions .btn-primary {
    flex: 1;
  }

  :is(.modal-root, #modal-root) {
    align-items: end;
    padding: 0;
  }

  :is(.modal-root, #modal-root) .modal {
    width: 100%;
    max-height: calc(100dvh - 28px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  :is(.modal-root, #modal-root) .modal footer {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  :is(.modal-root, #modal-root) .modal footer .btn {
    flex: 1;
  }

  :is(.toast-root, #toast-root) {
    top: auto;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .topbar-actions .icon-button {
    display: none;
  }

  .sidebar-help {
    margin-top: 16px;
  }

  .contact-list,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .source-chart > div {
    grid-template-columns: 22px minmax(74px, 1fr) auto;
  }

  .source-chart .source-bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-frame,
  .navigation-link,
  .app-topbar,
  :is(.modal-root, #modal-root) .modal,
  #global-search-results,
  .global-search-results {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .app-sidebar,
  .app-topbar,
  .drawer-root,
  .modal-root,
  #modal-root,
  .toast-root,
  #toast-root {
    display: none !important;
  }

  .app-frame,
  .app-frame > .app-main {
    margin-left: 0;
  }

  .view-header,
  .view-content {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }
}
