:root {
  --cui-body-bg: #f3f5fb;
  --cui-body-color: #1f2a44;
  --rt-sidebar-bg: #ffffff;
  --rt-sidebar-border: #e4e9f3;
  --rt-surface: #ffffff;
  --rt-surface-2: #f8faff;
  --rt-accent: #3c4bdf;
  --rt-accent-2: #5d6bff;
  --rt-muted: #6d7a94;
  --rt-success: #198754;
  --rt-danger: #dc3545;
  --rt-warning: #f4b740;
  --saved: #94a3b8;
  --applied: #3b82f6;
  --interview: #8b5cf6;
  --offer: #22c55e;
  --rejected: #ef4444;
}

html {
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  background: radial-gradient(circle at top left, #ffffff 0, #f3f5fb 42%, #edf1fb 100%);
  color: var(--cui-body-color);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #17233a;
}

p {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--rt-muted);
}

.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.container.narrow {
  width: min(540px, 100%);
  padding-top: 5rem;
}

.entry-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.entry-card {
  width: min(640px, 100%);
  margin: 0;
  border-radius: 0.8rem;
  box-shadow: 0 0.45rem 1.4rem rgba(18, 35, 76, 0.08);
}

.entry-actions {
  margin-top: 0.35rem;
}

.page-loader-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.page-loader-wrap.compact {
  min-height: 260px;
}

.page-loader-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid #d5dff3;
  border-top-color: #2d62e2;
  animation: spin 0.8s linear infinite;
}

.page-loader-text {
  font-size: 0.82rem;
  color: #5f7296;
  font-weight: 700;
}

.global-api-loader {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: #1c2b4d;
  color: #e9f0ff;
  border: 1px solid #3a568d;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 0.4rem 1rem rgba(17, 32, 68, 0.28);
}

.global-api-spinner {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid #adc0ea;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

body.api-loading button,
body.api-loading a.btn {
  pointer-events: none !important;
  opacity: 0.65;
  cursor: wait !important;
}

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

.gpt-page {
  font-size: 14px;
}

.gpt-page h1 {
  font-size: 1.5rem;
}

.gpt-page h2 {
  font-size: 1.2rem;
}

.gpt-page h3 {
  font-size: 1rem;
}

.gpt-page p,
.gpt-page label,
.gpt-page .section-body,
.gpt-page .message,
.gpt-page .btn,
.gpt-page input,
.gpt-page select,
.gpt-page textarea {
  font-size: 0.85rem;
}

.gpt-page .json-box {
  font-size: 0.78rem;
}

.card {
  border: 1px solid #e5eaf4;
  border-radius: 0.85rem;
  box-shadow: 0 0.3rem 1rem rgba(18, 35, 76, 0.06);
  background: var(--rt-surface);
  padding: 1rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: #33415e;
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd7e8;
  border-radius: 0.55rem;
  padding: 0.62rem 0.72rem;
  margin-bottom: 0.85rem;
  font-family: inherit;
  font-size: 0.84rem;
  color: #203153;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #8ca6ff;
  box-shadow: 0 0 0 0.2rem rgba(60, 75, 223, 0.14);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.jobs-compact-textarea {
  min-height: 82px;
  background: #d3e0ff;
}

.jobs-compact-textarea.is-danger {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.14);
}

.jobs-compact-textarea.is-danger:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18);
}

.jobs-inline-review {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: -0.35rem 0 0.75rem;
  color: #4b5f86;
  font-size: 0.78rem;
  font-weight: 700;
}

.inline-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid #c7d5ef;
  border-top-color: #2d62e2;
  animation: spin 0.8s linear infinite;
}

.btn {
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--rt-accent) 0%, var(--rt-accent-2) 100%);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.56rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn:hover {
  filter: brightness(1.04);
}

.btn.secondary {
  background: #f9fbff;
  color: #2b3f66;
  border-color: #cdd7eb;
}

.btn.dark {
  background: #1d2d50;
}

.btn.green {
  background: linear-gradient(135deg, #198754 0%, #1ca769 100%);
}

.btn.danger {
  background: var(--rt-danger);
  color: #fff;
}

.resume-cv-missing-btn {
  color: var(--rt-danger);
}

.btn-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.message {
  padding: 0.6rem 0.75rem;
  border-radius: 0.55rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  font-size: 0.78rem;
}

.message.success {
  background: #e2f5eb;
  color: #106c4b;
  border: 1px solid #a9dfc4;
}

.message.error {
  background: #feeaed;
  color: #9a2330;
  border: 1px solid #f6b8bf;
}

.muted {
  color: var(--rt-muted);
}

.small {
  font-size: 0.78rem;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.section-grid {
  display: grid;
  gap: 0.75rem;
}

.section-card {
  border: 1px solid #dfe5f2;
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: #f8faff;
}

.section-body {
  border: 1px solid #e2e8f3;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.7rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.json-box {
  white-space: pre-wrap;
  background: #131e39;
  color: #e6eeff;
  border-radius: 0.65rem;
  padding: 0.8rem;
  max-height: 480px;
  overflow: auto;
}

.jobs-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  transition: grid-template-columns 0.18s ease;
}

body.sidebar-collapsed .jobs-shell {
  grid-template-columns: 58px 1fr;
}

.jobs-sidebar {
  background: var(--rt-sidebar-bg);
  border-right: 1px solid var(--rt-sidebar-border);
  padding: 0.8rem 0.65rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.jobs-brand {
  font-size: 1.62rem;
  font-weight: 800;
  color: var(--rt-accent);
  padding: 0.5rem 0.2rem 1rem 0.65rem;
  border-bottom: 1px solid #e7ecf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

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

.jobs-brand-logo {
  display: block;
  width: min(150px, 100%);
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
  min-width: 0;
}

.sidebar-toggle-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid #cdd7eb;
  border-radius: 0.5rem;
  background: #f9fbff;
  color: #2b3f66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.sidebar-toggle-btn:hover {
  background: #eef3ff;
  border-color: #b9c8e6;
}

.sidebar-toggle-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.jobs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.6rem;
}

.jobs-nav-item {
  border: 0;
  background: transparent;
  color: #334b72;
  border-radius: 0.6rem;
  padding: 0.58rem 0.55rem;
  text-align: left;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 0.52rem;
  cursor: pointer;
  min-width: 0;
}

.jobs-nav-item:hover {
  background: #f3f6fd;
}

.jobs-nav-item.active {
  background: #eaf0ff;
  color: #1c4fda;
  font-weight: 700;
}

.jobs-nav-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  border: 1px solid #d5dff3;
  background: #f7f9ff;
  color: #5b6f93;
  font-size: 0.56rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

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

.jobs-sidebar-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e3e9f6;
}

.sidebar-help-btn {
  width: 100%;
  border: 1px dashed #b8c9ea;
  background: #f8fbff;
  color: #2f58c8;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.5rem;
}

.sidebar-profile-card {
  background: #ecf1fa;
  border: 1px solid #dde6f5;
  border-radius: 0.6rem;
  padding: 0.55rem;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.5rem;
}

.sidebar-profile-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d62e2 0%, #5f79ff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-profile-meta {
  min-width: 0;
}

.sidebar-profile-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2e4f;
}

.sidebar-profile-email {
  font-size: 0.75rem;
  color: #6b7c98;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-tags {
  margin-top: 0.25rem;
  display: flex;
  gap: 0.28rem;
  flex-wrap: wrap;
}

.sidebar-profile-tags span {
  background: #dfe9ff;
  color: #2c52bf;
  border-radius: 0.35rem;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.1rem 0.36rem;
  text-transform: uppercase;
}

.sidebar-signout-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.jobs-sidebar.collapsed {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.jobs-sidebar.collapsed .jobs-brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.jobs-sidebar.collapsed .jobs-brand-logo {
  width: 34px;
  height: 34px;
  object-position: center;
}

.jobs-sidebar.collapsed .jobs-brand-text,
.jobs-sidebar.collapsed .jobs-nav-label,
.jobs-sidebar.collapsed .jobs-sidebar-footer {
  display: none;
}

.jobs-sidebar.collapsed .jobs-nav-item {
  justify-content: center;
  padding: 0.55rem 0;
}

.jobs-page .card:first-child {
  background: linear-gradient(110deg, #1b2a4f 0%, #141f3f 75%, #111a34 100%);
  color: #f8fbff;
  border-color: #425a92;
}

.jobs-page .card:first-child h5 {
  color: #ffd15b;
}

.jobs-page .card:first-child p,
.jobs-page .card:first-child .kicker,
.jobs-page .card:first-child .jobs-total span {
  color: #d3e0ff;
}

.jobs-manual-form label {
  color: #d3e0ff;
}

.jobs-form-title {
  color: #d3e0ff;
}

.jobs-manual-form textarea,
.jobs-manual-form select,
.jobs-manual-form input {
  color: #13233f;
  background: #ffffff;
}

.jobs-manual-form .jobs-compact-textarea {
  background: #d3e0ff;
}

.jobs-manual-form textarea::placeholder,
.jobs-manual-form input::placeholder {
  color: #7185a6;
}

.jobs-manual-form select option {
  color: #13233f;
  background: #ffffff;
}

.jobs-manual-form .muted.small {
  color: #4e6386;
}

.jobs-total {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.jobs-total span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
}

.kicker {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: #7e93bd;
  margin-bottom: 0.25rem;
}

.tab-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid #cdd8ec;
  background: #fff;
  color: #334d74;
  border-radius: 0.48rem;
  padding: 0.43rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  border-color: #89a5ef;
  color: #2052db;
  background: #eef3ff;
}

.resume-mode-switch {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.history-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) auto;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.55rem;
}

.history-filter-row.with-user-filter {
  grid-template-columns: minmax(180px, 1.1fr) minmax(170px, 1fr) minmax(140px, 0.75fr) minmax(140px, 0.75fr) auto;
}

.history-filter-field {
  min-width: 0;
}

.history-filter-field input,
.history-filter-field select {
  margin-bottom: 0;
}

.history-filter-actions {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
}

.history-detail-sections {
  display: grid;
  gap: 0.8rem;
}

.history-detail-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.history-detail-field-head label {
  margin: 0;
}

.history-detail-text {
  border: 1px solid #dbe3f2;
  border-radius: 0.65rem;
  background: #f8faff;
  padding: 0.75rem 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  color: #223553;
  min-height: 3rem;
}

.inline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  border-bottom: 1px solid #dbe3f2;
  text-align: left;
  padding: 0.55rem;
  vertical-align: top;
  font-size: 0.76rem;
}

th {
  color: #5d718f;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8faff;
}

.empty {
  text-align: center;
  color: var(--rt-muted);
}

.clip {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-table {
  min-width: 100%;
}

.compact-table th,
.compact-table td {
  font-size: 0.75rem;
}

.jobs-filter-panel {
  border: 1px solid #dbe4f3;
  border-radius: 0.75rem;
  background: #fbfcff;
  padding: 0.8rem;
  margin-bottom: 0.9rem;
}

.jobs-filter-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) minmax(170px, 0.95fr) minmax(140px, 0.8fr) minmax(160px, 0.9fr) minmax(128px, 0.7fr) minmax(128px, 0.7fr) auto;
  gap: 0.7rem;
  align-items: end;
  justify-content: start;
}

.jobs-list-filter-grid {
  grid-template-columns: minmax(150px, 0.85fr) minmax(150px, 0.85fr) minmax(118px, 0.68fr) minmax(135px, 0.75fr) minmax(116px, 0.6fr) minmax(116px, 0.6fr) auto;
}

.new-jobs-filter-grid {
  grid-template-columns: minmax(200px, 0.9fr) minmax(130px, 0.55fr) minmax(130px, 0.55fr) auto;
}

.pipeline-filter-grid {
  grid-template-columns: minmax(180px, 0.75fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr) auto;
}

.resume-generate-filter-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(132px, 0.62fr) minmax(124px, 0.56fr) minmax(124px, 0.56fr) minmax(92px, 0.42fr);
}

.resume-generate-filter-grid .jobs-filter-search {
  max-width: 280px;
}

.resume-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.35rem;
  gap: 0.4rem;
  align-items: center;
}

.resume-search-control .icon-btn {
  width: 2.35rem;
  height: 2.35rem;
}

.jobs-filter-search,
.jobs-filter-role,
.jobs-filter-date {
  min-width: 0;
  width: 100%;
}

.jobs-filter-search {
  max-width: 220px;
}

.jobs-filter-role {
  max-width: 165px;
}

.jobs-filter-date {
  max-width: 140px;
}

.jobs-filter-search input,
.jobs-filter-search select,
.jobs-filter-role input,
.jobs-filter-role select,
.jobs-filter-date input,
.jobs-filter-date select {
  margin-bottom: 0;
  width: 100%;
}

.jobs-filter-actions {
  display: flex;
  align-items: end;
  gap: 0.55rem;
}

.jobs-list-filter-grid .jobs-filter-actions {
  gap: 0.35rem;
  padding-bottom: 0.05rem;
}

.jobs-filter-bottom {
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e5ebf7;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.jobs-filter-actions-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.resume-auto-generate-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.resume-auto-generate-control span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4d5d7c;
}

.resume-auto-generate-control input {
  width: 5.2rem;
  min-height: 2.35rem;
}

.jobs-chip-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.jobs-chip-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #526785;
  margin-right: 0.2rem;
}

.jobs-chip {
  border: 2px solid #3d7cff;
  background: #f6f9ff;
  color: #2f57bd;
  min-width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  padding: 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.jobs-chip.active {
  background: #e9f1ff;
  color: #1f46b5;
}

.jobs-filter-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #657792;
  font-size: 0.82rem;
}

.jobs-pagination-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.jobs-pagination-summary {
  font-size: 0.88rem;
  color: #24324d;
}

.jobs-pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.jobs-per-page {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.jobs-per-page span {
  white-space: nowrap;
}

.jobs-per-page select {
  width: 88px;
  margin-bottom: 0;
}

.jobs-page-btn {
  min-width: 2.4rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.jobs-page-label {
  color: #4d607d;
  font-size: 0.82rem;
  font-weight: 700;
}

.jobs-list-table {
  min-width: 1120px;
}

.jobs-list-table tr.jobs-low-ats-row td {
  background: #fff1f2;
  color: #7f1d1d;
}

.jobs-list-table tr.jobs-low-ats-row:hover td {
  background: #ffe4e6;
}

.jobs-list-table tr.jobs-low-ats-row .jobs-ats-cell {
  color: #b91c1c;
}

.jobs-new-table {
  min-width: 760px;
}

.resume-link-draft-list {
  display: grid;
  gap: 0.75rem;
}

.resume-link-profile-select {
  margin-bottom: 0.75rem;
}

.resume-link-profile-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.resume-link-profile-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #d7deec;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.resume-link-profile-checkbox input {
  margin: 0;
}

.resume-link-draft-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 0.8fr) minmax(280px, 1.5fr) auto;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #dfe6f2;
  border-radius: 0.65rem;
  background: #fbfcff;
  align-items: end;
}

.resume-link-draft-row.has-bad-keyword {
  border-color: #f2a6a6;
  background: #fff7f7;
}

.resume-link-bad-keyword-list {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.45rem;
}

.resume-link-bad-keyword-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
}

.resume-link-inline-warning {
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.32rem;
}

.resume-link-draft-row select,
.resume-link-draft-row input,
.resume-link-draft-row textarea {
  margin-bottom: 0;
}

.resume-link-draft-row textarea {
  min-height: 84px;
}

.resume-link-remove-cell {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 2.05rem;
}

.resume-tailor-links-table {
  min-width: 940px;
}

.resume-tailor-links-table .resume-link-id-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.resume-tailor-links-table .resume-link-id-col {
  width: 3.6rem;
  min-width: 3.6rem;
  max-width: 3.6rem;
}

.resume-tailor-links-table .resume-link-submitter-col {
  width: 6.5rem;
  max-width: 6.5rem;
}

.resume-tailor-links-table .resume-link-profile-col {
  width: 8rem;
  max-width: 8rem;
}

.resume-tailor-links-table .resume-link-company-col {
  width: 8rem;
  max-width: 8rem;
}

.resume-tailor-links-table .resume-link-created-col {
  width: 6.2rem;
  max-width: 6.2rem;
  white-space: nowrap;
}

.resume-tailor-links-table .resume-pdf-status-col {
  width: 6.2rem;
  max-width: 6.2rem;
  white-space: nowrap;
}

.resume-tailor-links-table .resume-link-url-col {
  width: 7rem;
  max-width: 7rem;
}

/* Cut long names with "..."; the full text shows on hover (title). */
.resume-tailor-links-table .resume-link-cell-clip {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wide enough for all 4 action buttons (Resume icon, JD, CV, CV_T) on one line. */
.resume-tailor-links-table .resume-link-actions-col,
.resume-tailor-links-table .resume-link-actions-cell {
  width: 12.5rem;
  min-width: 12.5rem;
  max-width: 12.5rem;
  text-align: center;
}

.resume-tailor-links-table .resume-link-actions-cell {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  white-space: nowrap;
}

.resume-tailor-links-table tr.job-checker-red-text-row td,
.resume-tailor-links-table tr.job-checker-red-text-row a,
.resume-tailor-links-table tr.job-checker-red-text-row select {
  color: #dc2626;
}

.resume-tailor-links-table tr.resume-tailor-red-text-row td,
.resume-tailor-links-table tr.resume-tailor-red-text-row a,
.resume-tailor-links-table tr.resume-tailor-red-text-row select {
  color: #dc2626;
}

.resume-pdf-status-cell {
  text-align: center;
}

.resume-pdf-check {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-weight: 900;
}

.pay-rules-page .card h5 {
  margin-bottom: 0.35rem;
}

.pay-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pay-stat-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pay-stat {
  min-width: 132px;
  border: 1px solid #dbe4f3;
  border-radius: 0.65rem;
  background: #f8fbff;
  padding: 0.75rem 0.9rem;
}

.pay-stat.primary {
  background: #eaf0ff;
  border-color: #b9caff;
}

.pay-stat span {
  display: block;
  color: #60708d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pay-stat strong {
  color: #061733;
  font-size: 1.12rem;
}

.pay-bidder-strip {
  margin-top: 1rem;
  border: 1px solid #dfe6f2;
  border-radius: 0.75rem;
  background: #fbfcff;
  padding: 0.7rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pay-bidder-pill {
  min-width: 88px;
  border: 1px solid #d7e1f3;
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.5rem 0.7rem;
  text-align: center;
}

.pay-bidder-pill strong,
.pay-bidder-pill span {
  display: block;
  font-size: 0.78rem;
}

.pay-bidder-pill strong {
  color: #1d4ed8;
}

.pay-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 1rem;
}

.pay-visibility-list {
  display: grid;
}

.pay-toggle-row {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e1e7f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.pay-toggle-row > span:first-child {
  color: #14233f;
  font-size: 0.92rem;
}

.pay-toggle-row > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #33415e;
  font-size: 0.74rem;
  font-weight: 600;
}

.pay-toggle-row input {
  width: auto;
  margin: 0;
}

.pay-rates-table {
  min-width: 980px;
}

.pay-rates-table input {
  width: 92px;
  margin-bottom: 0;
  padding: 0.4rem 0.5rem;
}

.new-jobs-admin-grid {
  align-items: start;
}

.jobs-cleanup-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 1rem;
}

.jobs-cleanup-scope span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid #d8e2f7;
  border-radius: 999px;
  background: #f8fbff;
  color: #41557a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 0.75rem;
}

.jobs-inline-note {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  border-radius: 999px;
  padding: 0 0.8rem;
  background: #f4f7ff;
  border: 1px solid #d8e2f7;
  color: #41557a;
  font-size: 0.78rem;
  font-weight: 700;
}

.jobs-url-cell {
  max-width: 540px;
}

.jobs-col-check {
  width: 36px;
}

.jobs-col-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.table-sort-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0;
  cursor: pointer;
}

.jobs-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 190px;
}

.jobs-ats-cell,
.jobs-risk-cell {
  white-space: nowrap;
  text-align: center;
  font-weight: 700;
  color: #1f3f80;
  min-width: 3.8rem;
}

.jobs-risk-cell {
  color: #9a3412;
}

.jobs-actions-cell select {
  margin-bottom: 0;
  width: auto;
  min-width: 84px;
  max-width: 96px;
  padding: 0.38rem 0.45rem;
  font-size: 0.78rem;
}

.icon-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid #cdd7eb;
  border-radius: 0.5rem;
  background: #f9fbff;
  color: #2b3f66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.icon-btn:hover {
  background: #eef3ff;
  border-color: #b9c8e6;
}

.icon-btn .inline-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border-width: 2px;
}

.icon-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.icon-btn.danger {
  color: #a12836;
  border-color: #efc3ca;
  background: #fff7f8;
}

.icon-btn.danger:hover {
  background: #feeaed;
  border-color: #e9a7b1;
}

.toolbar-icon-btn {
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 auto;
}

.toolbar-icon-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.pipeline-counts {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.count-value {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.count-label {
  color: var(--rt-muted);
  font-size: 0.72rem;
}

.teammate-list {
  display: grid;
  gap: 0.65rem;
}

.teammate-row {
  display: grid;
  grid-template-columns: 180px 1fr 48px;
  align-items: center;
  gap: 0.65rem;
}

.teammate-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.teammate-total {
  text-align: right;
  font-weight: 700;
  color: #334155;
}

.stacked-bar {
  width: 100%;
  height: 0.95rem;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid #c9d4e7;
  background: #f1f5f9;
}

.seg {
  height: 100%;
}

.seg.saved {
  background: var(--saved);
}

.seg.applied {
  background: var(--applied);
}

.seg.interview {
  background: var(--interview);
}

.seg.offer {
  background: var(--offer);
}

.seg.rejected {
  background: var(--rejected);
}

.daily-bars {
  display: flex;
  gap: 0.38rem;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.day-item {
  width: 1.35rem;
  flex: 0 0 auto;
}

.day-bar-wrap {
  display: flex;
  align-items: flex-end;
}

.day-bar {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  border: 1px solid #d8e1f1;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: #f8fbff;
}

.day-seg {
  width: 100%;
  min-height: 0;
}

.day-seg.saved {
  background: var(--saved);
}

.day-seg.applied {
  background: var(--applied);
}

.day-seg.interview {
  background: var(--interview);
}

.day-seg.offer {
  background: var(--offer);
}

.day-seg.rejected {
  background: var(--rejected);
}

.day-label {
  font-size: 0.62rem;
  color: #64748b;
  margin-top: 0.35rem;
  transform: rotate(-35deg);
  transform-origin: left top;
  white-space: nowrap;
}

.profile-page .card:first-child {
  background: linear-gradient(110deg, #1b2a4f 0%, #141f3f 75%, #111a34 100%);
  color: #f8fbff;
  border-color: #425a92;
}

.profile-page .card:first-child h5 {
  color: #ffd15b;
}

.profile-page .card:first-child p,
.profile-page .card:first-child .kicker {
  color: #d3e0ff;
}

.dashboard-page .card:first-child {
  background: linear-gradient(120deg, #172343 0%, #101936 100%);
  color: #f7faff;
  border-color: #41547f;
}

.dashboard-page .card:first-child h5 {
  color: #ffd15b;
}

.dashboard-page .card:first-child p,
.dashboard-page .card:first-child .kicker {
  color: #d3e0ff;
}

.dashboard-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-chart-title {
  color: #b56b00;
  margin-bottom: 0.25rem;
}

.dashboard-chart-subtitle {
  margin: 0;
  color: #7787a3;
}

.dashboard-profile-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.dashboard-profile-filter-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #d3e0ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-profile-filter-head span {
  margin-right: auto;
}

.dashboard-profile-filter-head button,
.dashboard-profile-toggle {
  border: 1px solid rgba(179, 199, 238, 0.42);
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e9f1ff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.34rem 0.55rem;
}

.dashboard-profile-filter-head button:disabled {
  cursor: default;
  opacity: 0.45;
}

.dashboard-profile-toggle.active {
  border-color: #76a9ff;
  background: #eaf2ff;
  color: #123a70;
}

.dashboard-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(30px, 1fr));
  gap: 0.45rem;
  align-items: end;
}

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

.dashboard-week-chart {
  min-width: 0;
  border: 1px solid #e0e8f4;
  border-radius: 8px;
  padding: 0.8rem;
  background: #fbfcff;
}

.dashboard-week-title {
  color: #173056;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.dashboard-bars-week {
  grid-template-columns: repeat(7, minmax(30px, 1fr));
}

.dashboard-day-item {
  min-width: 0;
}

.dashboard-day-total {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #173056;
  margin-bottom: 0.45rem;
}

.dashboard-day-total-paired {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.12rem;
  min-height: 0.9rem;
  line-height: 1;
}

.dashboard-day-total-blue {
  color: #2f6fe5;
}

.dashboard-day-separator {
  color: #7284a0;
}

.dashboard-day-not-applied {
  color: #d93025;
}

.dashboard-day-bar-shell {
  height: 160px;
  display: flex;
  align-items: flex-end;
}

.dashboard-day-bar-track {
  width: 100%;
  height: 145px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid #d8e1f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7f9fc 0%, #edf2f8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.dashboard-day-bar-fill {
  width: calc(100% - 6px);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #6aa9ff 0%, #2f6fe5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.dashboard-day-label {
  text-align: center;
  font-size: 0.78rem;
  color: #5b6f92;
  margin-top: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-header-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.profile-avatar-xl {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d62e2 0%, #5f79ff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-upload-text {
  color: #8a99b4;
  font-size: 0.8rem;
}

.profile-divider {
  border-top: 1px solid #dbe3f2;
  margin: 0.65rem 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.profile-grid-label {
  color: #4e6da0;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.users-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.users-actions-row {
  grid-column: 1 / -1;
}

.users-actions-col {
  flex-direction: column;
  align-items: flex-start;
}

.team-openapi-cell {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.team-openapi-cell input {
  margin-bottom: 0;
}

.team-bad-keyword-cell {
  min-width: 230px;
  display: grid;
  gap: 0.35rem;
}

.team-bad-keyword-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 0.3rem;
  align-items: center;
}

.team-bad-keyword-row input {
  margin-bottom: 0;
}

.team-user-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.team-user-filter-field select {
  margin-bottom: 0;
}

.team-user-filter-meta {
  color: #5d6f91;
  font-size: 0.82rem;
  font-weight: 700;
  padding-bottom: 0.72rem;
}

.job-copy-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.btn-inline {
  padding: 0.32rem 0.55rem;
  font-size: 0.72rem;
}

.profile-list {
  display: grid;
  gap: 0.32rem;
}

.profile-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #a6b8df;
  background: #eef3ff;
  color: #223f80;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.profile-state {
  font-size: 0.66rem;
  border: 1px solid #e0c27f;
  background: #fff6de;
  color: #9a6700;
  padding: 0.06rem 0.38rem;
  border-radius: 999px;
}

.profile-state.ok {
  border-color: #86d8bb;
  background: #e5f8ef;
  color: #0f6b4f;
}

.profile-state.completed {
  border-color: #93c5fd;
  background: #e0edff;
  color: #1d4ed8;
}

.profile-state.pending {
  border-color: #f2a6a6;
  background: #fee2e2;
  color: #b91c1c;
}

.profile-state.failed {
  border-color: #f2a6a6;
  background: #fee2e2;
  color: #b91c1c;
}

.bad-keyword-highlight {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 0.2rem;
  padding: 0 0.12rem;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(10, 20, 43, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal,
.modal-card {
  width: min(860px, 100%);
  background: #fff;
  border-radius: 0.8rem;
  border: 1px solid #d7deec;
  box-shadow: 0 0.9rem 2.4rem rgba(18, 35, 76, 0.2);
  padding: 0.95rem;
}

.resume-link-detail-modal {
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.resume-link-detail-section-head {
  margin-top: 0.95rem;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.color-picker {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0.45rem;
  padding: 0;
  background: transparent;
  margin: 0;
}

.job-profiles-page .card:first-child {
  background: linear-gradient(110deg, #1b2a4f 0%, #141f3f 75%, #111a34 100%);
  color: #f8fbff;
  border-color: #425a92;
}

.job-profiles-page .card:first-child h5 {
  color: #ffd15b;
}

.job-profiles-page .card:first-child p,
.job-profiles-page .card:first-child .kicker {
  color: #d3e0ff;
}

.job-profile-layout {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.job-profile-left-col {
  display: grid;
  gap: 1rem;
}

.job-profile-list-table {
  min-width: 100%;
}

.job-profile-list-table tr.is-selected td {
  background: #eef3ff;
}

.job-profile-select {
  border: 0;
  background: transparent;
  color: #2052db;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.job-profile-row-actions {
  flex-wrap: nowrap;
}

.job-profile-detail-list {
  display: grid;
  gap: 0.35rem;
}

.job-profile-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e5ebf6;
}

.job-profile-detail-row span {
  color: #51698f;
  font-weight: 700;
}

.job-profile-detail-row strong {
  color: #17233a;
  font-weight: 700;
}

.job-profile-preview-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid #d7deec;
  border-radius: 0.7rem;
  background: #fff;
}

.job-profile-preview-stack {
  display: grid;
  gap: 1rem;
}

.job-profile-preview-text-card {
  border: 1px solid #d7deec;
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.9rem;
}

.job-profile-preview-text {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  color: #17233a;
  max-height: 360px;
  overflow: auto;
}

.job-profile-preview-empty {
  min-height: 720px;
  border: 1px dashed #c9d4e7;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  color: #6d7a94;
  background: #fbfcff;
  text-align: center;
}

.job-profile-preview-empty.compact {
  min-height: 180px;
}

.job-profile-editor-area {
  min-height: 240px;
}

.job-profile-admin-form {
  display: grid;
  gap: 1rem;
}

.job-profile-admin-form .card {
  margin-bottom: 0;
}

.job-profile-admin-form textarea {
  min-height: 120px;
}

.job-profile-repeater {
  display: grid;
  gap: 0.9rem;
}

.job-profile-repeat-card {
  border: 1px solid #dbe3f2;
  border-radius: 0.7rem;
  background: #f9fbff;
  padding: 0.8rem;
}

.profile-share-panel {
  margin-top: 0.9rem;
  border: 1px solid #dbe3f2;
  border-radius: 0.75rem;
  padding: 0.8rem;
  background: #fbfcff;
}

.profile-share-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.profile-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #ced9ef;
  background: #fff;
  color: #28456f;
  border-radius: 0.55rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.profile-share-chip.active {
  border-color: #6f9cff;
  background: #edf4ff;
  color: #2052db;
  box-shadow: inset 0 0 0 1px rgba(32, 82, 219, 0.12);
}

.profile-share-chip:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-share-chip-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #9fc9b3;
  flex: 0 0 auto;
}

.profile-share-chip.active .profile-share-chip-dot {
  background: #2fbc68;
}

.basic-info-grid {
  display: grid;
  gap: 0.55rem;
}

.job-profiles-page .card.basic-info-card,
.job-profiles-page .card.basic-info-card:first-child {
  background: #ffffff;
  color: #17233a;
  border-color: #d7deec;
}

.job-profiles-page .card.basic-info-card h5 {
  color: #17233a;
}

.job-profiles-page .card.basic-info-card .kicker {
  color: #51698f;
}

.basic-info-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.48rem 0;
  border-bottom: 1px solid #e5ebf6;
}

.basic-info-row > span {
  color: #51698f;
  font-weight: 800;
}

.basic-info-copy {
  border: 0;
  background: transparent;
  color: #17233a;
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  word-break: break-word;
}

.basic-info-copy:hover,
.basic-info-link:hover {
  color: #2052db;
  text-decoration: underline;
}

.basic-info-copy.multiline {
  display: block;
  line-height: 1.45;
}

.basic-info-link {
  color: #2052db;
  font-weight: 800;
  word-break: break-word;
}

.basic-info-list {
  display: grid;
  gap: 0.65rem;
}

.basic-info-item {
  display: grid;
  gap: 0.36rem;
  border: 1px solid #dbe3f2;
  border-radius: 0.5rem;
  background: #f9fbff;
  padding: 0.62rem 0.72rem;
}

.basic-info-subrow {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.basic-info-subrow > span {
  color: #51698f;
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-page {
  min-width: 0;
  padding: 0.8rem 0.8rem 1.4rem;
}

.calendar-page .card {
  border-radius: 0.45rem;
  margin-bottom: 1.05rem;
}

.calendar-hero {
  min-height: 198px;
  border: 1px solid #344469;
  border-radius: 0.85rem;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.96) 0%, rgba(20, 31, 62, 0.94) 74%, rgba(13, 22, 44, 0.98) 100%),
    url('https://images.unsplash.com/photo-1506784983877-45594efa4cbe?auto=format&fit=crop&w=1800&q=75') center/cover;
  color: #f7fbff;
  padding: 1.65rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 1.2rem 2.4rem rgba(24, 37, 70, 0.16);
}

.calendar-hero h1 {
  color: #ffd15b;
  font-size: 1.8rem;
  margin-bottom: 0.65rem;
}

.calendar-hero p,
.calendar-hero .kicker {
  max-width: 760px;
  color: #e0e8f7;
  font-weight: 700;
}

.calendar-hero-links {
  color: #ffd15b;
  font-size: 0.9rem;
  font-weight: 800;
}

.calendar-hero-toggle,
.calendar-hero-restore {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(221, 229, 246, 0.35);
  border-radius: 0.45rem;
  background: rgba(10, 18, 36, 0.45);
  color: #eaf0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.calendar-hero-restore {
  margin-left: auto;
  margin-bottom: 0.5rem;
  background: #ffffff;
  color: #24405f;
  border-color: #d6dfef;
}

.calendar-tabbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid #dde5f3;
  border-radius: 0.45rem;
  padding: 0.55rem;
  margin: 0.9rem 0 1rem;
  box-shadow: 0 0.45rem 1rem rgba(18, 35, 76, 0.06);
}

.calendar-tabbar-scroll {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
}

.calendar-tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #2f405e;
  border-radius: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.calendar-tab-btn.active {
  border-color: #9eb8d9;
  color: #154f93;
  background: #ffffff;
  box-shadow: 0 0.2rem 0.45rem rgba(20, 48, 92, 0.08);
}

.calendar-timezone-select {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  white-space: nowrap;
}

.calendar-timezone-select span {
  color: #68778e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.calendar-timezone-select select,
.calendar-dashboard-controls input,
.calendar-records-head input,
.calendar-records-controls select,
.calendar-user-report-head select {
  margin-bottom: 0;
}

.calendar-tab-content {
  min-width: 0;
}

.calendar-toolbar,
.calendar-dashboard-controls,
.calendar-records-head,
.calendar-records-controls,
.calendar-user-report-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.calendar-toolbar {
  margin-bottom: 0.9rem;
}

.calendar-toolbar h2 {
  color: #24344d;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 auto 0 0;
}

.calendar-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  border: 1px solid #dfe6f1;
  border-radius: 0.65rem;
  background: #eef3f9;
  padding: 0.18rem;
}

.calendar-view-switch button {
  border: 0;
  border-radius: 0.38rem;
  background: transparent;
  color: #62728b;
  cursor: pointer;
  font-weight: 800;
  padding: 0.34rem 0.65rem;
  font-size: 0.82rem;
}

.calendar-view-switch button.active {
  background: #ffffff;
  color: #1d56a7;
  box-shadow: 0 0.18rem 0.45rem rgba(18, 35, 76, 0.08);
}

.calendar-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.calendar-toolbar-actions .btn,
.calendar-records-controls .btn,
.calendar-help-actions .btn {
  padding: 0.36rem 0.62rem;
}

.active-soft {
  color: #1d56a7 !important;
  border-color: #9eb8d9 !important;
  background: #eff6ff !important;
}

.calendar-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0.8rem;
}

.calendar-grid-shell {
  min-width: 0;
  border: 1px solid #dfe5ef;
  border-radius: 0.55rem;
  overflow: auto;
  background: #fff;
}

.calendar-grid-head {
  min-width: 760px;
  display: grid;
  grid-template-columns: 72px repeat(7, 1fr);
  border-bottom: 1px solid #dfe5ef;
}

.calendar-timezone-stack,
.calendar-day-head {
  min-height: 64px;
  border-right: 1px solid #dfe5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f8fafc;
}

.calendar-timezone-stack {
  flex-direction: row;
  gap: 0.35rem;
  color: #28384f;
  font-size: 0.68rem;
}

.calendar-day-head span {
  color: #6f7d91;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.calendar-day-head strong {
  color: #333d4d;
  font-size: 1.24rem;
  font-weight: 500;
}

.calendar-day-head.today {
  background: #eef8ff;
}

.calendar-day-head.today strong {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  background: #1f7ad8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.calendar-week-grid {
  position: relative;
  min-width: 760px;
  height: 640px;
  display: grid;
  grid-template-columns: 72px repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
}

.calendar-hour,
.calendar-slot {
  border-right: 1px solid #e3e8f0;
  border-bottom: 1px solid #e3e8f0;
}

.calendar-hour {
  color: #5f6f86;
  font-size: 0.68rem;
  padding: 0.58rem 0.45rem;
  background: #fff;
}

.calendar-slot:nth-child(8n) {
  background: #eef8ff;
}

.calendar-event {
  position: absolute;
  z-index: 2;
  width: calc((100% - 72px) / 7 - 6px);
  min-height: 28px;
  transform: translateX(3px);
  border: 1px solid var(--profile-border, #1d6ca6);
  border-radius: 0.3rem;
  background: var(--profile-bg, #dff0ff);
  color: var(--profile-text, #172942);
  padding: 0.24rem 0.32rem;
  box-shadow: 0 0.2rem 0.45rem var(--profile-shadow, rgba(19, 81, 137, 0.12));
  font-size: 0.75rem;
  line-height: 1.2;
}

.calendar-event strong,
.calendar-event span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event strong {
  padding-right: 1.05rem;
}

.calendar-event em {
  position: absolute;
  right: 0.18rem;
  top: 0.18rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--profile-badge, #1f7ad8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.calendar-now-line {
  position: absolute;
  z-index: 3;
  height: 2px;
  background: #d92531;
  pointer-events: none;
}

.calendar-now-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d92531;
}

.calendar-help-panel {
  border-radius: 0.55rem;
  background: #f4f7fb;
  padding: 0.8rem;
  box-shadow: inset 0 0 0 1px #e0e7f2;
}

.calendar-help-panel p {
  color: #5c6b82;
  line-height: 1.45;
}

.calendar-profile-filter {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.calendar-profile-filter-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #24344d;
  font-size: 0.76rem;
  font-weight: 800;
}

.calendar-profile-filter-head span {
  margin-right: auto;
}

.calendar-profile-filter-head button {
  border: 1px solid #cfd9e8;
  border-radius: 0.35rem;
  background: #fff;
  color: #27527f;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.24rem 0.45rem;
}

.calendar-profile-filter-head button:disabled {
  cursor: default;
  opacity: 0.45;
}

.calendar-profile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #cfdae9;
  border-radius: 0.45rem;
  background: #fff;
  color: #53647c;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.38rem 0.45rem;
  text-align: left;
}

.calendar-profile-toggle span {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #edf3fa;
  color: #37516d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 900;
}

.calendar-profile-toggle.active {
  border-color: var(--profile-border, #1f7ad8);
  background: var(--profile-bg, #eaf4ff);
  color: var(--profile-text, #123e70);
}

.calendar-profile-toggle.active span {
  background: var(--profile-badge, #1f7ad8);
  color: #fff;
}

.calendar-help-actions {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.calendar-profile-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #b8d6ee;
  border-radius: 0.55rem;
  background: #eaf6ff;
  padding: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.calendar-profile-chip span,
.calendar-avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 3px solid #3e8edb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #24405f;
  background: #f9fbff;
  font-size: 0.72rem;
  font-weight: 900;
}

.calendar-profile-chip i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #5f7593;
}

.calendar-dashboard-controls input {
  max-width: 170px;
}

.calendar-dashboard-controls .calendar-avatar {
  margin-left: auto;
}

.calendar-metrics-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 1rem;
  border: 1px solid #e1e7f2;
  border-radius: 0.45rem;
  background: #fff;
  padding: 1rem;
  margin-bottom: 1.05rem;
  box-shadow: 0 0.3rem 1rem rgba(18, 35, 76, 0.06);
}

.calendar-metrics-card strong {
  display: block;
  color: #24344d;
  font-size: 1.55rem;
  line-height: 1;
}

.calendar-metrics-card span {
  color: #68778e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-team-week-card {
  margin-bottom: 1.05rem;
}

.calendar-team-week-card > p {
  max-width: 780px;
  color: #8792a4;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.calendar-team-week-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.calendar-dashboard-table-block {
  min-width: 0;
  margin-top: 0.9rem;
}

.calendar-dashboard-table-block h6,
.calendar-team-score-panel h6 {
  color: #172942;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
}

.calendar-dashboard-table-block p {
  color: #8792a4;
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0 0 0.55rem;
}

.calendar-dashboard-table-scroll {
  overflow-x: auto;
  border: 1px solid #dde5ef;
  border-radius: 0.35rem;
}

.calendar-dashboard-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.calendar-dashboard-table th,
.calendar-dashboard-table td {
  border-right: 1px solid #dde5ef;
  border-bottom: 1px solid #dde5ef;
  padding: 0.45rem 0.5rem;
  text-align: right;
  white-space: nowrap;
}

.calendar-dashboard-table th:first-child,
.calendar-dashboard-table td:first-child {
  width: 150px;
  text-align: left;
}

.calendar-dashboard-table th {
  background: #f3f6fa;
  color: #34445b;
  font-weight: 800;
}

.calendar-dashboard-table tbody tr.dashboard-row-total td {
  background: #eef5fb;
  color: #0f263d;
  font-weight: 900;
}

.calendar-dashboard-table tbody tr.dashboard-row-type td:first-child {
  color: #778397;
  padding-left: 1.35rem;
}

.calendar-dashboard-table td span {
  display: block;
  color: #8a96a8;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.12rem;
}

.calendar-team-score-panel {
  min-width: 0;
  padding-top: 0.9rem;
}

.calendar-weighted-chart {
  min-height: 284px;
  position: relative;
}

.calendar-weighted-chart svg {
  display: block;
  width: 100%;
  height: 250px;
  overflow: visible;
}

.weighted-grid-line {
  stroke: #dfe6ef;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.weighted-axis {
  stroke: #8b95a3;
  stroke-width: 1.5;
}

.weighted-y-label,
.weighted-x-label {
  fill: #657287;
  font-size: 11px;
}

.weighted-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weighted-line.mean {
  stroke: #0f1d34;
  stroke-width: 4;
}

.weighted-line.member {
  stroke: #276dff;
  stroke-width: 2.4;
}

.weighted-point {
  fill: #fff;
  stroke-width: 3;
}

.weighted-point.mean {
  stroke: #0f1d34;
}

.weighted-point.member {
  stroke: #276dff;
}

.calendar-weighted-legend {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  color: #24344d;
  font-size: 0.74rem;
  margin-top: 0.15rem;
}

.calendar-weighted-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.calendar-weighted-legend i {
  width: 1rem;
  height: 0.45rem;
  display: inline-block;
  border-top: 2px solid currentColor;
  position: relative;
}

.calendar-weighted-legend i::after {
  content: '';
  width: 0.34rem;
  height: 0.34rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 0.32rem;
  top: -0.28rem;
}

.calendar-weighted-legend .mean {
  color: #0f1d34;
}

.calendar-weighted-legend .member {
  color: #276dff;
}

.calendar-section-title,
.calendar-chart-card h6,
.calendar-chart-panel h6,
.calendar-dashboard-grid h6 {
  color: #9b6a13;
  font-weight: 800;
}

.calendar-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 1.2rem;
}

.calendar-small-table table {
  min-width: 560px;
}

.calendar-small-table th,
.calendar-small-table td {
  padding: 0.48rem;
}

.calendar-small-table span {
  color: #7a8798;
  font-size: 0.72rem;
}

.calendar-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.calendar-chart-card {
  border: 1px solid #e1e7f2;
  border-radius: 0.45rem;
  background: #fff;
  padding: 1rem;
  margin-bottom: 1.05rem;
  box-shadow: 0 0.3rem 1rem rgba(18, 35, 76, 0.06);
}

.calendar-chart-card h6,
.calendar-chart-panel h6 {
  margin: 0 0 0.8rem;
}

.calendar-chart-wide {
  margin-bottom: 1.05rem;
}

.calendar-scheduled-card h6 {
  color: #9b6a13;
}

.calendar-scheduled-chart {
  min-height: 270px;
}

.calendar-scheduled-chart svg {
  display: block;
  width: 100%;
  height: 260px;
  overflow: visible;
}

.scheduled-grid-line {
  stroke: #dfe6ef;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.scheduled-axis {
  stroke: #8b95a3;
  stroke-width: 1.5;
}

.scheduled-y-label,
.scheduled-x-label {
  fill: #657287;
  font-size: 11px;
}

.scheduled-line {
  fill: none;
  stroke: #e57a00;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scheduled-point {
  fill: #fff;
  stroke: #e57a00;
  stroke-width: 3;
  cursor: pointer;
  outline: none;
}

.scheduled-hover-line {
  stroke: #bcc5d1;
  stroke-width: 1.2;
}

.scheduled-tooltip rect {
  fill: #fff;
  stroke: #c7cdd6;
  stroke-width: 1;
  filter: drop-shadow(0 0.2rem 0.25rem rgba(18, 35, 76, 0.08));
}

.scheduled-tooltip text {
  fill: #172942;
  font-size: 13px;
}

.scheduled-tooltip .scheduled-tooltip-value {
  fill: #e57a00;
}

.calendar-profile-activity-card {
  margin-bottom: 1.05rem;
}

.calendar-profile-activity-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.calendar-profile-activity-head h5 {
  margin: 0 auto 0 0;
}

.calendar-profile-activity-head label {
  min-width: 210px;
  margin: 0;
}

.calendar-profile-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.35rem;
}

.calendar-profile-daily-chart,
.calendar-profile-monthly-chart {
  min-width: 0;
}

.calendar-profile-daily-chart h6,
.calendar-profile-monthly-chart h6 {
  color: #9b6a13;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.calendar-profile-daily-chart svg,
.calendar-profile-monthly-chart svg {
  display: block;
  width: 100%;
  height: 252px;
  overflow: visible;
}

.profile-grid-line {
  stroke: #dfe6ef;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.profile-axis {
  stroke: #8b95a3;
  stroke-width: 1.5;
}

.profile-axis-label,
.profile-x-label,
.profile-month-label {
  fill: #657287;
  font-size: 11px;
}

.profile-month-label {
  text-anchor: middle;
}

.profile-daily-bar {
  fill: #1197b2;
  cursor: pointer;
  outline: none;
}

.profile-daily-bar:hover,
.profile-daily-bar:focus {
  fill: #0f849d;
}

.profile-month-line {
  fill: none;
  stroke: #8047f6;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-month-point {
  fill: #8047f6;
  stroke: #8047f6;
  stroke-width: 2;
  cursor: pointer;
  outline: none;
}

.profile-hover-line {
  stroke: #bcc5d1;
  stroke-width: 1.2;
}

.profile-tooltip rect {
  fill: #fff;
  stroke: #c7cdd6;
  stroke-width: 1;
  filter: drop-shadow(0 0.2rem 0.25rem rgba(18, 35, 76, 0.08));
}

.profile-tooltip text {
  fill: #172942;
  font-size: 13px;
}

.profile-tooltip .profile-tooltip-value {
  fill: #1197b2;
}

.profile-tooltip .profile-month-tooltip-value {
  fill: #8047f6;
}

.calendar-chart-panel {
  min-width: 0;
  padding-top: 0.1rem;
}

.calendar-axis-card {
  height: 270px;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 0.2rem;
}

.calendar-y-label {
  color: #46566d;
  font-size: 0.74rem;
  text-align: right;
}

.calendar-horizontal-axis {
  height: 235px;
  display: flex;
  align-items: center;
  border-left: 2px solid #9ea8b8;
  border-bottom: 2px solid #9ea8b8;
  background-image:
    linear-gradient(to right, rgba(194, 205, 221, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(194, 205, 221, 0.35) 1px, transparent 1px);
  background-size: 25% 100%, 100% 25%;
  position: relative;
}

.calendar-horizontal-bar {
  height: 64%;
  width: 100%;
  border-radius: 0.16rem;
}

.calendar-axis-values {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.25rem;
  display: flex;
  justify-content: space-between;
  color: #66768e;
  font-size: 0.72rem;
}

.calendar-line-chart {
  position: relative;
  min-height: 260px;
  padding-bottom: 2rem;
}

.calendar-line-grid {
  position: absolute;
  inset: 0 0 2rem;
  border-left: 2px solid #a4adbb;
  border-bottom: 2px solid #a4adbb;
  background-image:
    linear-gradient(to right, rgba(194, 205, 221, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(194, 205, 221, 0.35) 1px, transparent 1px);
  background-size: 16.66% 100%, 100% 25%;
}

.calendar-line-chart svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 210px;
  overflow: visible;
}

.calendar-line-chart polyline {
  fill: none;
  stroke: #bd7a13;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-line-chart circle {
  fill: #fff;
  stroke: #bd7a13;
  stroke-width: 3;
}

.calendar-line-chart.purple polyline,
.calendar-line-chart.purple circle {
  stroke: #7a3fe0;
}

.calendar-chart-labels {
  display: flex;
  justify-content: space-between;
  color: #68778e;
  font-size: 0.62rem;
}

.calendar-chart-labels span {
  transform: rotate(-35deg);
  transform-origin: left top;
}

.calendar-line-chart.purple .calendar-chart-labels span {
  transform: none;
}

.calendar-user-report-head {
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.calendar-user-report-head label {
  width: min(280px, 100%);
  margin: 0;
}

.calendar-column-chart {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.6rem;
  border-left: 2px solid #a4adbb;
  border-bottom: 2px solid #a4adbb;
  padding: 0 0.45rem;
  background-image:
    linear-gradient(to right, rgba(194, 205, 221, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(194, 205, 221, 0.35) 1px, transparent 1px);
  background-size: 16.66% 100%, 100% 25%;
}

.calendar-column-chart span {
  display: block;
  border-radius: 0.25rem 0.25rem 0 0;
  background: #1594b1;
}

.calendar-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.calendar-form label {
  font-weight: 600;
}

.calendar-records-head {
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.calendar-records-head input {
  width: min(380px, 100%);
}

.calendar-records-controls {
  justify-content: flex-end;
  margin-bottom: 0.55rem;
}

.calendar-records-controls label {
  width: 128px;
  margin: 0;
}

.calendar-records-controls input {
  margin-bottom: 0;
}

.calendar-records-table table {
  min-width: 1040px;
}

.calendar-records-table td {
  white-space: nowrap;
}

.calendar-icon-btn {
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  background: transparent;
  color: #2f6bb7;
  cursor: pointer;
}

.calendar-icon-btn.danger {
  color: #c83246;
}

.calendar-sync-guide {
  border: 1px solid #dfe5ef;
  border-radius: 0.55rem;
  background: #fbfcff;
  padding: 1rem;
  margin: 1rem 0;
}

.calendar-sync-guide h5 {
  margin-bottom: 0.7rem;
}

.calendar-sync-guide ol {
  margin: 0 0 0.9rem 1.1rem;
  padding: 0;
  color: #37445a;
  font-size: 0.86rem;
}

.calendar-sync-guide details {
  border: 1px solid #dfe5ef;
  border-radius: 0.55rem;
  padding: 0.75rem 1rem 0.65rem;
  background: #fff;
  margin-top: 0.7rem;
}

.calendar-sync-guide summary {
  cursor: pointer;
  color: #07337f;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.calendar-sync-guide details ol {
  margin-bottom: 0;
}

.calendar-sync-guide details li {
  margin-bottom: 0.48rem;
  line-height: 1.45;
}

.calendar-sync-guide details li:last-child {
  margin-bottom: 0;
}

.calendar-sync-guide code {
  border-radius: 0.28rem;
  background: #eef3fb;
  color: #18365f;
  padding: 0.08rem 0.28rem;
  font-size: 0.78rem;
}

.calendar-sync-guide a {
  color: #0d63ce;
  font-weight: 700;
}

.calendar-sync-form {
  margin-top: 0.9rem;
}

.calendar-week-grid.live {
  height: 1536px;
}

.calendar-slot-btn {
  border: 0;
  border-right: 1px solid #e3e8f0;
  border-bottom: 1px solid #e3e8f0;
  background: transparent;
  cursor: pointer;
}

.calendar-slot-btn:hover {
  background: #eef8ff;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 1px;
  min-width: 880px;
  background: #dfe5ef;
}

.calendar-month-cell {
  min-height: 132px;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 0.65rem;
  cursor: pointer;
}

.calendar-month-cell:hover {
  background: #f4f8ff;
}

.calendar-month-cell strong,
.calendar-month-cell span {
  display: block;
}

.calendar-month-cell strong {
  color: #31445f;
  margin-bottom: 0.45rem;
}

.calendar-month-cell span {
  border-radius: 0.35rem;
  border-left: 3px solid var(--profile-border, #1d6ca6);
  background: var(--profile-bg, #e2f1ff);
  color: var(--profile-text, #19385c);
  padding: 0.25rem 0.35rem;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-live-bars {
  display: grid;
  gap: 0.65rem;
}

.calendar-live-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 150px) 1fr 42px;
  gap: 0.6rem;
  align-items: center;
  color: #46566d;
  font-size: 0.78rem;
  font-weight: 700;
}

.calendar-live-bar-row div {
  height: 1.25rem;
  border-radius: 0.25rem;
  background: #eef3fb;
  overflow: hidden;
}

.calendar-live-bar-row i {
  display: block;
  height: 100%;
  border-radius: 0.25rem;
}

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

  body.sidebar-collapsed .jobs-shell {
    grid-template-columns: 1fr;
  }

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

  .grid-two,
  .jobs-filter-grid,
  .teammate-row,
  .users-grid-four,
  .job-profile-layout,
  .job-profile-detail-row,
  .basic-info-row,
  .basic-info-subrow {
    grid-template-columns: 1fr;
  }

  .jobs-filter-actions,
  .history-filter-actions,
  .jobs-filter-bottom,
  .jobs-pagination-bar,
  .jobs-pagination-controls {
    align-items: stretch;
  }

  .history-filter-row {
    grid-template-columns: 1fr;
  }

  .team-user-filter-row {
    grid-template-columns: 1fr;
  }

  .team-user-filter-meta {
    padding-bottom: 0;
  }

  .job-copy-section-head {
    align-items: flex-start;
  }

  .new-jobs-filter-grid {
    grid-template-columns: 1fr;
  }

  .resume-link-draft-row {
    grid-template-columns: 1fr;
  }

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

  .jobs-filter-meta,
  .jobs-chip-row {
    width: 100%;
  }

  .dashboard-bars {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
  }

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

  .profile-header-row {
    grid-template-columns: 1fr;
  }

  .job-profile-preview-frame,
  .job-profile-preview-empty {
    min-height: 480px;
  }

  .calendar-page {
    padding: 0.7rem;
  }

  .calendar-hero {
    min-height: 172px;
    padding: 1.2rem;
  }

  .calendar-hero h1 {
    font-size: 1.45rem;
  }

  .calendar-tabbar,
  .calendar-main-layout,
  .calendar-dashboard-grid,
  .calendar-chart-grid,
  .calendar-team-week-grid,
  .calendar-profile-activity-grid,
  .calendar-form-row {
    grid-template-columns: 1fr;
  }

  .calendar-profile-activity-head {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-profile-activity-head label {
    min-width: 0;
  }

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

  .calendar-tabbar {
    display: grid;
  }

  .calendar-timezone-select {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-main-layout {
    display: grid;
  }

  .calendar-dashboard-controls .calendar-avatar {
    margin-left: 0;
  }

  .calendar-month-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}
