:root {
  --font-ui: "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --radius-2xl: 30px;
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 46px rgba(24, 22, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  overflow-x: hidden;
}

body.front-candidate {
  --bg: #fff7ef;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-soft: rgba(255, 250, 245, 0.92);
  --ink: #1f2a37;
  --muted: #6c7280;
  --line: rgba(31, 42, 55, 0.08);
  --accent: #f47c2d;
  --accent-2: #f2c94c;
  --ok: #1e8e5a;
  --ok-soft: rgba(30, 142, 90, 0.12);
  --warn: #d9a321;
  --warn-soft: rgba(217, 163, 33, 0.14);
  --hero-glow: rgba(244, 124, 45, 0.14);
}

body.front-recruiter {
  --bg: #f6faff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(246, 250, 255, 0.96);
  --ink: #20262e;
  --muted: #67707d;
  --line: rgba(22, 59, 102, 0.08);
  --accent: #163b66;
  --accent-2: #2f76d2;
  --ok: #1f8a70;
  --ok-soft: rgba(31, 138, 112, 0.12);
  --warn: #d9a321;
  --warn-soft: rgba(217, 163, 33, 0.14);
  --hero-glow: rgba(47, 118, 210, 0.12);
}

body {
  background:
    radial-gradient(circle at top left, var(--hero-glow), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, white 6%) 0%, var(--bg) 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.phone-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.7));
  overflow-x: clip;
}

.role-page-shell {
  min-height: 500dvh;
}

.stack {
  display: grid;
  gap: 14px;
  padding: 16px;
  min-width: 0;
  overflow-x: clip;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(31, 42, 55, 0.06);
  padding: 18px;
  min-width: 0;
}

.panel.hero {
  padding: 20px;
  background:
    radial-gradient(circle at top right, var(--hero-glow), transparent 42%),
    linear-gradient(180deg, var(--surface-soft), var(--surface));
}

.candidate-home-hero,
.candidate-home-current,
.candidate-home-jobs,
.application-hero,
.application-list-panel,
.application-material-panel,
.job-detail-panel,
.recruiter-jobs-panel,
.task-detail-hero,
.task-detail-panel,
.demand-hero,
.demand-panel,
.action-hero-panel,
.action-panel {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.candidate-home-hero {
  padding-top: 4px;
}

.candidate-location-bar {
  margin-top: 14px;
}

.session-note {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.05);
}

.candidate-location-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.05);
}

.candidate-location-status.ready {
  background: linear-gradient(180deg, rgba(232, 247, 238, 0.96), rgba(248, 255, 251, 0.94));
}

.candidate-location-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.candidate-location-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.candidate-location-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  max-width: 32ch;
}

.candidate-location-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(30, 142, 90, 0.10);
  flex: 0 0 auto;
  margin-top: 2px;
}

.candidate-location-action {
  border: 0;
  border-radius: 999px;
  background: rgba(244, 124, 45, 0.14);
  color: var(--accent);
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.candidate-home-current .queue-item,
.candidate-home-jobs .job-card {
  box-shadow: none;
}

.candidate-home-current {
  padding: 16px 16px 12px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(227, 103, 66, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(244, 124, 45, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 229, 213, 0.98), rgba(255, 241, 230, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(227, 103, 66, 0.12),
    0 18px 36px rgba(227, 103, 66, 0.1);
}

.candidate-home-current .section-head {
  margin-bottom: 14px;
}

.candidate-home-current .queue-item {
  background:
    radial-gradient(circle at top left, rgba(255, 244, 234, 0.52), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 251, 247, 1));
  box-shadow:
    0 0 0 1px rgba(227, 103, 66, 0.11),
    0 22px 44px rgba(31, 42, 55, 0.09);
}

.candidate-home-current .current-priority-card {
  padding: 18px 16px 16px;
  border-radius: 36px;
  overflow: hidden;
  background-clip: padding-box;
  clip-path: inset(0 round 36px);
}

.candidate-home-current .title-md {
  font-size: 22px;
  line-height: 1.08;
}

.candidate-home-current .section-head p {
  margin-top: 6px;
  max-width: 18em;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(31, 42, 55, 0.68);
}

.priority-carousel {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-y: hidden;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.priority-carousel::-webkit-scrollbar {
  display: none;
}

.priority-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
}

.candidate-home-jobs {
  padding: 20px 18px 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 253, 249, 0.99));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 14px 30px rgba(244, 124, 45, 0.05);
}

.candidate-home-jobs.is-secondary {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.92), rgba(255, 255, 252, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48), 0 10px 24px rgba(31, 42, 55, 0.035);
}

.candidate-home-jobs.is-secondary .section-head p {
  color: rgba(31, 42, 55, 0.58);
}

.application-priority-panel {
  margin-bottom: 2px;
}

.application-priority-card {
  margin-top: 2px;
}

.priority-schedule {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.priority-meta {
  margin-top: 6px;
}

.application-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.application-sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 6px 16px rgba(31, 42, 55, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  position: relative;
}

.application-corner-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 24px 0 18px 0;
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.06);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}

.application-corner-badge.warn {
  background: linear-gradient(180deg, rgba(255, 243, 224, 0.98), rgba(255, 236, 201, 1));
  color: #b97a10;
}

.application-corner-badge.ok {
  background: linear-gradient(180deg, rgba(232, 247, 238, 0.98), rgba(217, 241, 228, 1));
  color: var(--ok);
}

.application-sticker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.05);
  pointer-events: none;
}

.application-sticker.warn {
  background: linear-gradient(180deg, rgba(255, 243, 224, 0.96), rgba(255, 236, 201, 0.98));
  color: #b97a10;
}

.application-sticker.ok {
  background: linear-gradient(180deg, rgba(232, 247, 238, 0.96), rgba(217, 241, 228, 0.98));
  color: var(--ok);
}

.application-sticker.reminder {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 248, 0.98));
  color: var(--muted);
  margin: 12px 12px 0 0;
}

.priority-reminder-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 92%, white 8%);
  box-shadow: 0 0 0 4px rgba(30, 142, 90, 0.09);
  flex: 0 0 auto;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(225, 88, 59, 0.12);
  color: #d8583b;
  font-size: 18px;
  font-weight: 900;
}

.candidate-home-jobs .job-grid {
  gap: 10px;
}

.candidate-home-card {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 1px rgba(31, 42, 55, 0.05),
    0 10px 24px rgba(31, 42, 55, 0.045);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  cursor: pointer;
}

.candidate-home-card:hover,
.candidate-home-card:active,
.candidate-home-card.in-focus {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(31, 42, 55, 0.06),
    0 14px 28px rgba(31, 42, 55, 0.07);
  background: rgba(255, 255, 255, 1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title-lg,
.title-md,
.title-sm {
  margin: 0;
  letter-spacing: -0.05em;
}

.title-lg {
  font-size: 34px;
  line-height: 1.02;
}

.title-md {
  font-size: 24px;
  line-height: 1.08;
}

.title-sm {
  font-size: 18px;
  line-height: 1.15;
}

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

.actions,
.inline-pills,
.stat-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-strip {
  margin-top: 16px;
}

.micro-stat {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(244, 247, 251, 0.94));
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.05);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.micro-stat-link {
  text-decoration: none;
}

.micro-stat-link.active {
  background: color-mix(in srgb, var(--accent) 18%, white 82%);
}

.actions {
  margin-top: 16px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cta-primary {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 78%, white 22%));
  color: white;
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.cta-secondary.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.job-card,
.mini-card,
.queue-item,
.timeline-item,
.insight-row {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 246, 0.94));
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.05);
}

.job-grid,
.mini-grid,
.queue-list,
.timeline,
.insight-list,
.detail-list,
.material-stack {
  display: grid;
  gap: 10px;
}

.job-card {
  padding: 16px;
}

.candidate-job-card {
  padding: 13px 14px;
}

.candidate-job-card .row-head strong {
  font-size: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.candidate-job-card .row-head {
  align-items: flex-start;
}

.candidate-job-card .job-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.candidate-job-card .job-pay-cue {
  color: rgba(31, 42, 55, 0.28);
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.job-summary {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-meta,
.mini-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.job-line-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.job-line-item {
  display: inline-flex;
  align-items: center;
}

.job-line-divider {
  color: rgba(31, 42, 55, 0.26);
  font-size: 12px;
}

.candidate-job-card .job-meta {
  gap: 6px;
  margin-top: 8px;
}

.job-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.candidate-tags {
  margin-top: 0;
  flex: 1 1 auto;
}

.candidate-job-card .pill {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.candidate-inline-detail {
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
}

.pill-icon,
.inline-icon {
  margin-right: 6px;
  line-height: 1;
}

.pill.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

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

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

.recruiter-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.stat {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46), 0 0 0 1px var(--line);
}

.stat-link {
  text-decoration: none;
}

.stat-link:hover {
  transform: translateY(-1px);
}

.recruiter-overview .stat {
  padding: 12px 14px;
  border-radius: 16px;
}

.stat label {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.recruiter-overview .stat label {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.recruiter-overview .stat strong {
  margin-top: 8px;
  font-size: 22px;
}

.queue-item,
.timeline-item,
.insight-row,
.mini-card {
  padding: 14px;
}

.queue-item.active {
  background: color-mix(in srgb, var(--accent) 10%, white 90%);
  box-shadow: 0 14px 30px rgba(244, 124, 45, 0.1);
}

.queue-item.compact {
  display: grid;
  gap: 6px;
}

.candidate-application-card {
  position: relative;
  padding: 11px 13px;
  padding-top: 44px;
  gap: 5px;
}

.candidate-application-card .actions {
  margin-top: 4px;
}

.application-list-panel .section-head {
  margin-bottom: 10px;
}

.application-next-step {
  margin: 0;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.42;
}

.application-schedule-line {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(86, 101, 123, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.application-hero .micro-stat,
.application-hero .switch-link,
.candidate-application-card .cta-secondary {
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(244, 247, 251, 0.94));
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.05);
}

.application-hero .switch-link,
.application-hero .icon-link {
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.05);
}

.application-list-panel .cta-primary,
.application-list-panel .cta-secondary,
.apply-modal-actions .cta-primary,
.apply-modal-actions .cta-secondary {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

.candidate-application-card .actions {
  align-items: center;
  gap: 8px;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.row-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

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

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

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.recruiter-task-card {
  gap: 0;
  position: relative;
  padding: 14px 15px 16px;
  padding-top: 48px;
}

.recruiter-hero-panel .title-lg {
  margin-bottom: 8px;
}

.recruiter-hero-panel .copy {
  margin: 0;
  max-width: none;
}

.recruiter-hero-panel .stats-3 {
  margin-top: 16px;
}

.recruiter-hero-panel .stats-4 {
  margin-top: 16px;
}

.recruiter-overview .stat {
  padding: 14px 12px;
}

.recruiter-overview .stat label {
  font-size: 11px;
}

.recruiter-overview .stat strong {
  font-size: 24px;
  line-height: 1;
}

.recruiter-home-card {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 1px rgba(31, 42, 55, 0.05),
    0 10px 24px rgba(31, 42, 55, 0.045);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
}

.recruiter-home-card.is-active-task {
  box-shadow:
    0 0 0 1px rgba(244, 124, 45, 0.10),
    0 14px 30px rgba(244, 124, 45, 0.08);
}

.recruiter-home-card.is-stable-task {
  box-shadow:
    0 0 0 1px rgba(31, 42, 55, 0.04),
    0 8px 20px rgba(31, 42, 55, 0.035);
}

.recruiter-home-card:hover,
.recruiter-home-card:active {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(31, 42, 55, 0.06),
    0 14px 28px rgba(31, 42, 55, 0.07);
  background: rgba(255, 255, 255, 1);
}

.recruiter-home-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  bottom: 22px;
  color: rgba(31, 42, 55, 0.28);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.tag-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-alert-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 244, 220, 0.98), rgba(255, 235, 190, 1));
  color: #b97a10;
  box-shadow: 0 8px 18px rgba(217, 163, 33, 0.12);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.card-alert-badge.ok {
  background: linear-gradient(180deg, rgba(232, 247, 238, 0.98), rgba(217, 241, 228, 1));
  color: var(--ok);
  box-shadow: 0 10px 22px rgba(31, 138, 112, 0.14);
}

.card-alert-badge.ok::before {
  box-shadow: 0 0 0 4px rgba(31, 138, 112, 0.12);
}

.card-alert-badge.danger {
  background: linear-gradient(180deg, rgba(253, 235, 233, 0.98), rgba(250, 219, 215, 1));
  color: #c23f3f;
  box-shadow: 0 10px 22px rgba(194, 63, 63, 0.14);
}

.card-alert-badge.danger::before {
  box-shadow: 0 0 0 4px rgba(194, 63, 63, 0.12);
}

.card-alert-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(217, 163, 33, 0.12);
}

.recruiter-task-card .row-head {
  margin-top: 30px;
}

.recruiter-task-card .row-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.recruiter-card-summary {
  margin: 7px 0 0;
  color: rgba(86, 101, 123, 0.92);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recruiter-home-card.is-stable-task .recruiter-card-summary {
  color: rgba(86, 101, 123, 0.78);
}

.task-site {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.task-metric-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 28px;
  margin-top: 8px;
}

.metric-inline-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  min-height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.metric-inline-link strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-inline-link span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.metric-divider {
  color: rgba(31, 42, 55, 0.22);
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.recruiter-task-card .row-head {
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  min-width: 0;
  max-width: 100%;
}

.recruiter-task-card .row-head strong {
  font-size: 14px;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recruiter-task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 2px;
}

.recruiter-jobs-panel > .section-head + .queue-list {
  margin-bottom: 18px;
}

.recruiter-all-zone {
  padding: 16px 16px 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(243, 247, 255, 0.82), rgba(249, 251, 255, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 14px 30px rgba(22, 59, 102, 0.045);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.recruiter-all-list .recruiter-task-card {
  opacity: 0.96;
}

.recruiter-task-card.is-active-task {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(252, 247, 242, 0.98));
  box-shadow:
    0 0 0 1px rgba(244, 124, 45, 0.16),
    0 16px 34px rgba(244, 124, 45, 0.09);
}

.recruiter-all-jobs-head {
  margin-top: 2px;
  margin-bottom: 12px;
}

.recruiter-all-jobs-head p {
  margin-top: 4px;
  color: rgba(31, 42, 55, 0.62);
}

.recruiter-home-actions,
.recruiter-home-footer {
  margin-top: 14px;
  width: 100%;
  min-width: 0;
}

.recruiter-home-footer {
  justify-content: center;
  margin-top: 18px;
}

.recruiter-status-hint {
  margin: -2px 0 8px;
  color: color-mix(in srgb, var(--muted) 62%, white 38%);
  font-size: 11px;
  line-height: 1.4;
}

.metric-inline-link.active strong,
.metric-inline-link.active span {
  color: var(--blue);
}

.inline-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.quick-apply-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(244, 124, 45, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.quick-apply-link.applied {
  background: rgba(31, 42, 55, 0.08);
  color: var(--ink);
}

.timeline-item {
  display: grid;
  gap: 6px;
}

.timeline-item strong {
  font-size: 14px;
}

.timeline-item p,
.mini-card p,
.queue-item p,
.insight-row p {
  margin: 0;
  color: color-mix(in srgb, var(--muted) 72%, white 28%);
  font-size: 13px;
  line-height: 1.55;
}

.material-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.material-pills.compact-only {
  margin-top: 8px;
}

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

.priority-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, white 82%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.hero-preview {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(31, 42, 55, 0.05);
}

.hero-preview small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.hero-preview strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.hero-preview p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.dashboard-card,
.signal-row,
.step-card,
.board-row,
.quick-create-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46), 0 0 0 1px var(--line);
}

.dashboard-card {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 14px;
}

.dashboard-card strong {
  font-size: 24px;
  line-height: 1;
}

.dashboard-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.icon-dot,
.signal-icon,
.board-icon,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  color: var(--ink);
}

.dashboard-card.danger .icon-dot,
.signal-row.danger .signal-icon,
.priority-row.danger .priority-icon {
  background: linear-gradient(180deg, rgba(244, 112, 87, 0.2), rgba(233, 92, 63, 0.12));
  color: #c23f3f;
  box-shadow:
    0 10px 20px rgba(227, 103, 66, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.dashboard-card.ok .icon-dot,
.signal-row.ok .signal-icon,
.priority-row.ok .priority-icon {
  background: var(--ok-soft);
  color: var(--ok);
}

.signal-stack,
.step-rail,
.compact-board,
.quick-create-grid,
.priority-stack {
  display: grid;
  gap: 10px;
}

.signal-row,
.step-card,
.board-row,
.quick-create-card,
.priority-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.signal-row strong,
.step-card strong,
.board-row strong,
.quick-create-card strong,
.priority-row strong {
  display: block;
  font-size: 15px;
}

.signal-row p,
.step-card p,
.board-row p,
.priority-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.priority-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 12px;
}

.candidate-priority-row {
  margin: 0 0 6px;
  align-items: center;
  gap: 10px;
}

.candidate-priority-copy {
  min-width: 0;
}

.candidate-priority-row strong {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-priority-row p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.32;
  color: rgba(31, 42, 55, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-priority-card {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  padding: 12px;
  background:
    radial-gradient(circle at top left, rgba(255, 247, 240, 0.6), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 252, 248, 1));
  box-shadow:
    0 0 0 1px rgba(227, 103, 66, 0.13),
    0 22px 46px rgba(31, 42, 55, 0.11);
}

.current-priority-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.current-priority-card .actions {
  margin-top: 8px;
}

.priority-schedule {
  margin: 0;
  font-size: 11px;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.priority-card-actions {
  gap: 8px;
  flex-wrap: nowrap;
}

.priority-card-actions .cta-primary,
.priority-card-actions .cta-secondary {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
  line-height: 1.08;
  white-space: nowrap;
  justify-content: center;
}

.actions .has-badge {
  position: relative;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f47c2d;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.apply-modal.hidden {
  display: none;
}

.apply-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 55, 0.3);
  backdrop-filter: blur(6px);
}

.apply-modal-sheet {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 241, 0.98));
  box-shadow: 0 20px 42px rgba(31, 42, 55, 0.18);
}

.apply-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.apply-modal-wa,
.create-demand-wa {
  margin-top: 10px;
}

.apply-modal-wa {
  margin-top: 0;
  margin-left: auto;
}

.apply-input {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(31, 42, 55, 0.06);
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.apply-input:focus {
  box-shadow: 0 0 0 2px rgba(244, 124, 45, 0.22);
}

.apply-modal-actions {
  margin-top: 14px;
}

.priority-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  background: rgba(215, 221, 230, 0.55);
  color: var(--ink);
  flex: 0 0 auto;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.detail-summary {
  display: grid;
  gap: 10px;
}

.detail-summary strong {
  font-size: 16px;
}

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

.detail-list li {
  line-height: 1.55;
}

.sticky-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.9) 18%, rgba(255,255,255,0.98));
}

.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.role-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46), 0 0 0 1px var(--line);
}

.role-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.role-toggle-btn.active {
  background: color-mix(in srgb, var(--accent) 14%, white 86%);
  color: var(--ink);
}

.floating-role-switch {
  position: fixed;
  bottom: 86px;
  right: max(2px, calc((100vw - min(100vw, 430px)) / 2 + 2px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  transform: none;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 24px rgba(24, 36, 52, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.floating-role-switch.candidate-fab {
  background: linear-gradient(180deg, rgba(218, 238, 255, 0.98), rgba(232, 244, 255, 0.98));
  box-shadow: 0 14px 24px rgba(42, 102, 170, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #1c5d9e;
}

.floating-role-switch.recruiter-fab {
  background: linear-gradient(180deg, rgba(255, 229, 213, 0.98), rgba(255, 241, 233, 0.98));
  box-shadow: 0 14px 24px rgba(198, 104, 38, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #a14f1f;
}

.floating-role-switch-icon {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.9;
}

.floating-role-switch-label {
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.loading-card {
  position: relative;
  overflow: hidden;
}

.loading-line,
.loading-chip {
  position: relative;
  overflow: hidden;
  background: rgba(144, 156, 176, 0.16);
}

.loading-line::after,
.loading-chip::after,
.loading-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.78) 50%, transparent 100%);
  animation: loading-sheen 1.25s ease-in-out infinite;
}

.loading-card::after {
  opacity: 0.62;
}

.loading-line,
.loading-chip {
  display: block;
  border-radius: 999px;
}

.loading-line {
  height: 14px;
}

.loading-line-xs {
  width: 42%;
  height: 10px;
}

.loading-line-sm {
  width: 72%;
}

.loading-line-md {
  width: 84%;
  height: 18px;
}

.loading-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.loading-chip {
  width: 88px;
  height: 34px;
}

.loading-chip-lg {
  width: 126px;
}

.loading-priority-card,
.loading-stat-card {
  isolation: isolate;
}

.recruiter-loading-viewport {
  min-height: calc(100vh - 190px);
  overflow: hidden;
}

@keyframes loading-sheen {
  100% {
    transform: translateX(100%);
  }
}

.floating-role-switch {
  view-transition-name: role-fab;
}

.role-page-shell {
  view-transition-name: role-shell;
}

::view-transition-group(role-shell) {
  animation: none;
}

::view-transition-group(role-fab) {
  animation: none;
}

::view-transition-old(role-shell),
::view-transition-new(role-shell) {
  animation-duration: 800ms;
  animation-timing-function: cubic-bezier(0.16, 0.84, 0.2, 1);
  mix-blend-mode: normal;
  width: 100%;
  height: 100%;
}

::view-transition-old(role-shell) {
  animation-name: role-shell-old;
  transform-origin: center center;
}

::view-transition-new(role-shell) {
  animation-name: role-shell-new;
  transform-origin: center center;
}

::view-transition-old(role-fab),
::view-transition-new(role-fab) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

::view-transition-old(role-fab) {
  animation-name: role-fab-old;
}

::view-transition-new(role-fab) {
  animation-name: role-fab-new;
}

@keyframes role-shell-old {
  0% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.18;
    transform: scaleX(0.34);
  }
}

@keyframes role-shell-new {
  0% {
    opacity: 0.18;
    transform: scaleX(0.34);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes role-fab-old {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes role-fab-new {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.subnav a {
  white-space: nowrap;
  text-decoration: none;
}

.wa-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 2px 0 2px 2px;
  border-radius: 999px;
  background: transparent;
}

.wa-entry.compact {
  margin-left: auto;
}

.wa-entry.detail-mode {
  padding: 4px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.66);
  padding-right: 10px;
}

.switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-link,
.switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46), 0 0 0 1px var(--line);
  text-decoration: none;
}

.icon-link span {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.icon-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.switch-link {
  min-height: 40px;
  padding: 0 10px 0 8px;
  gap: 8px;
  border-radius: 999px;
}

.switch-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 30px;
  height: 20px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(31, 138, 112, 0.22);
}

.switch-knob {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--ok);
  transform: translateX(10px);
}

.switch-copy {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.switch-label-link,
.switch-label-copy {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.switch-button.off .switch-track {
  background: rgba(194, 63, 63, 0.16);
}

.switch-button.off .switch-knob {
  background: #c23f3f;
  transform: translateX(0);
}

.switch-button.on .switch-track {
  background: rgba(31, 138, 112, 0.22);
}

.switch-button.on .switch-knob {
  background: var(--ok);
  transform: translateX(10px);
}

.reminder-screen .phone-shell {
  background: transparent;
}

.reminder-screen .stack {
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 28px;
}

.clean-panel {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.reminder-intro {
  margin-top: 22px;
  gap: 10px;
}

.reminder-hero-card {
  padding: 18px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(255, 214, 186, 0.16);
}

.reminder-intro .title-lg {
  font-size: 28px;
  line-height: 1.06;
}

.reminder-intro p {
  font-size: 14px;
  line-height: 1.45;
  max-width: 20ch;
}

.reminder-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 248, 243, 0.92);
  box-shadow: 0 10px 24px rgba(255, 214, 186, 0.1);
}

.reminder-status-copy {
  display: grid;
  gap: 4px;
}

.reminder-status-copy strong {
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
}

.reminder-status-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.reminder-status-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
}

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

.reminder-section-head .title-md {
  font-size: 18px;
  line-height: 1.14;
}

.reminder-section-head p {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.reminder-list,
.reminder-template-list {
  display: grid;
  gap: 12px;
}

.reminder-row,
.reminder-template {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 28px rgba(31, 42, 55, 0.06);
}

.reminder-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}

.reminder-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.reminder-copy {
  display: grid;
  gap: 4px;
}

.reminder-copy strong,
.reminder-template strong {
  font-size: 15px;
  line-height: 1.3;
}

.reminder-copy p,
.reminder-template p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.reminder-template-list {
  margin-top: 2px;
}

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

.role-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.role-tab.active {
  background: color-mix(in srgb, var(--accent) 18%, white 82%);
  color: var(--ink);
}

.role-tab.passive {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.role-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.panel.recruiter-zone {
  background:
    radial-gradient(circle at top right, rgba(47, 118, 210, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(236, 244, 255, 0.98), rgba(228, 239, 255, 0.96));
  color: var(--ink);
}

.panel.recruiter-zone .title-lg,
.panel.recruiter-zone .title-md,
.panel.recruiter-zone .title-sm,
.panel.recruiter-zone strong {
  color: var(--ink);
}

.panel.recruiter-zone .eyebrow,
.panel.recruiter-zone .stat,
.panel.recruiter-zone .mini-card,
.panel.recruiter-zone .pill {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(22, 59, 102, 0.08);
}

.recruiter-jobs-panel .micro-stat {
  background: rgba(47, 118, 210, 0.08);
  color: var(--ink);
}

.panel.recruiter-zone .copy,
.panel.recruiter-zone .section-head p,
.panel.recruiter-zone .stat label {
  color: var(--muted);
}

.cta-recruiter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, #2f76d2, #5b95e3);
  color: white;
}

.form-stack,
.field-stack,
.option-grid {
  display: grid;
  gap: 10px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 244, 0.94));
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.05);
}

.field-box strong {
  font-size: 15px;
}

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

.status-callout {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(233, 248, 240, 0.98), rgba(245, 252, 248, 0.98));
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.04);
}

.application-material-panel .material-pills,
.application-material-panel .material-note,
.job-detail-panel .detail-list,
.task-detail-panel .queue-list,
.demand-panel .queue-list,
.action-panel .detail-list {
  margin-top: 0;
}

.application-list-panel .queue-item,
.job-detail-panel .field-box,
.recruiter-jobs-panel .queue-item,
.task-detail-panel .queue-item,
.demand-panel .queue-item,
.action-panel .field-box,
.action-panel .status-callout {
  backdrop-filter: blur(10px);
}

.recruiter-jobs-panel .queue-list,
.task-detail-panel .queue-list,
.demand-panel .queue-list,
.application-list-panel .queue-list {
  gap: 12px;
}

.task-detail-overview {
  position: relative;
  padding: 50px 4px 4px;
}

.task-entry-note {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.task-detail-overview .title-lg {
  margin-top: 8px;
  margin-bottom: 10px;
}

.task-detail-overview .copy {
  margin: 0;
  max-width: none;
}

.task-detail-requirements {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.task-detail-metric-row {
  margin-top: 20px;
  padding-right: 0;
  gap: 10px;
}

.task-detail-metric-row .metric-inline-link strong {
  font-size: 22px;
}

.task-detail-feed {
  gap: 14px;
}

.task-reminder-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(252, 253, 255, 0.96));
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.035);
  margin-bottom: 14px;
  overflow: hidden;
}

.task-reminder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(47, 118, 210, 0.08);
  font-size: 14px;
}

.task-reminder-window {
  min-width: 0;
  overflow: hidden;
  height: 18px;
}

.task-reminder-track {
  display: grid;
  gap: 12px;
  min-width: 100%;
  animation: taskReminderScrollVertical 8s linear infinite;
}

.task-reminder-text {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  line-height: 18px;
}

@keyframes taskReminderScrollVertical {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.task-feed-card {
  position: relative;
  padding: 16px 16px 16px;
}

.task-feed-card::after {
  display: none;
}

.task-feed-card.action-required {
  padding-top: 46px;
}

.task-feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.task-feed-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.28;
  margin-bottom: 10px;
}

.task-feed-copy p {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  padding-bottom: 0;
  font-size: 12px;
  line-height: 1.62;
}

.task-feed-actions {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.task-feed-actions .cta-secondary {
  min-width: 96px;
}

.task-feed-actions .cta-secondary.attention {
  background: rgba(47, 118, 210, 0.11);
  color: var(--blue);
  box-shadow: none;
}

.task-feed-actions .cta-secondary.soft {
  background: rgba(31, 42, 55, 0.06);
  color: var(--ink);
  box-shadow: none;
}

.task-feed-card.broadcast-only {
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(252, 253, 255, 0.96));
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.035);
}

.task-feed-card.broadcast-only .task-feed-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.task-feed-card.broadcast-only .task-feed-copy strong {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.task-feed-card.broadcast-only .task-feed-copy p {
  font-size: 13px;
  color: var(--ink);
}

.task-feed-card.action-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.96));
}

.task-feed-card.followup-collapsed {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.96));
}

.task-feed-card.followup-collapsed.expanded {
  box-shadow: 0 14px 28px rgba(31, 42, 55, 0.08);
}

.followup-group-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.96));
  position: relative;
  isolation: isolate;
  box-shadow: 0 14px 28px rgba(31, 42, 55, 0.07);
}

.followup-group-card::before,
.followup-group-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 248, 255, 0.84));
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.04);
  z-index: -1;
}

.followup-group-card::before {
  bottom: -8px;
  height: calc(100% - 8px);
  opacity: 0.74;
}

.followup-group-card::after {
  bottom: -16px;
  left: 24px;
  right: 24px;
  height: calc(100% - 18px);
  opacity: 0.45;
}

.followup-group-card.expanded {
  box-shadow: 0 18px 34px rgba(31, 42, 55, 0.1);
}

.task-followup-group-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 42, 55, 0.08);
}

.task-followup-group-list {
  gap: 10px;
}

.task-followup-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}

.task-followup-item + .task-followup-item {
  border-top: 1px solid rgba(31, 42, 55, 0.08);
}

.task-followup-item-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.task-followup-item-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}

.task-feed-card.followup-collapsed .task-feed-row {
  align-items: center;
}

.task-feed-card.followup-collapsed .task-feed-copy strong {
  margin-bottom: 0;
}

.task-followup-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 42, 55, 0.08);
}

.task-followup-detail {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.task-followup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}

.task-followup-actions .cta-secondary {
  min-width: 104px;
  justify-content: center;
}

.task-view-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.task-view-link {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.94));
  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.04);
  justify-content: flex-start;
}

.task-view-link.active {
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.95), rgba(243, 248, 255, 0.98));
  box-shadow: 0 12px 26px rgba(47, 118, 210, 0.08);
}

.task-person-card,
.task-backup-card {
  padding: 14px 14px 14px;
  padding-top: 52px;
}

.task-person-card.recruiter-home-card::after,
.task-backup-card.recruiter-home-card::after,
.task-feed-card.recruiter-home-card::after,
.followup-group-card.recruiter-home-card::after {
  content: none;
}

.task-person-card.highlighted {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 0 0 1px rgba(244, 124, 45, 0.10),
    0 16px 36px rgba(244, 124, 45, 0.10);
}

.task-person-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
}

.task-person-corner {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 24px 0 18px 0;
  background: rgba(47, 118, 210, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.06);
}

.task-person-corner.ok {
  background: linear-gradient(180deg, rgba(232, 247, 238, 0.98), rgba(217, 241, 228, 1));
  color: var(--ok);
}

.task-person-corner.warn {
  background: linear-gradient(180deg, rgba(255, 243, 224, 0.98), rgba(255, 236, 201, 1));
  color: #b97a10;
}

.task-person-alert {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: 180px;
  padding: 0 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 6px 16px rgba(31, 42, 55, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 800;
  pointer-events: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

.task-person-alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: currentColor;
}

.task-person-alert.ok {
  background: linear-gradient(180deg, rgba(232, 247, 238, 0.96), rgba(217, 241, 228, 0.98));
  color: var(--ok);
}

.task-person-alert.warn {
  background: linear-gradient(180deg, rgba(255, 243, 224, 0.96), rgba(255, 236, 201, 0.98));
  color: #b97a10;
}

.task-person-alert.danger {
  background: linear-gradient(180deg, rgba(255, 233, 233, 0.98), rgba(255, 217, 217, 0.98));
  color: #c23f3f;
}

.task-person-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.task-person-copy {
  min-width: 0;
}

.task-person-card .row-head {
  margin-bottom: 8px;
}

.task-person-card .row-head strong,
.task-backup-card .row-head strong {
  font-size: 15px;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-person-card p,
.task-backup-card p {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  padding-bottom: 0;
  font-size: 13px;
  line-height: 1.48;
  color: rgba(86, 101, 123, 0.88);
  max-width: 32ch;
}

.task-person-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}

.task-person-actions .cta-secondary {
  min-width: 104px;
  justify-content: center;
}

.task-person-actions .cta-secondary.attention {
  background: rgba(47, 118, 210, 0.12);
  color: var(--blue);
}

.task-person-actions .wa-link {
  position: relative;
  padding-right: 22px;
}

.task-person-actions .wa-link::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(31, 42, 55, 0.32);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.task-detail-panel + .task-detail-panel {
  margin-top: 8px;
}

.task-alerts,
.task-people,
.task-backups {
  gap: 0;
}

.task-detail-panel .section-head {
  margin-bottom: 14px;
}

.schedule-modal-sheet {
  width: min(100%, 368px);
  display: grid;
  gap: 16px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98));
  box-shadow: 0 18px 42px rgba(31, 42, 55, 0.14);
}

.schedule-modal-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-modal-topline strong {
  font-size: 16px;
}

.schedule-close {
  border: 0;
  background: rgba(31, 42, 55, 0.06);
  color: var(--muted);
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.schedule-modal-copy {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.schedule-option-group {
  display: grid;
  gap: 10px;
}

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

.schedule-option-grid {
  display: grid;
  gap: 10px;
}

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

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

.schedule-wheel {
  display: grid;
  gap: 8px;
}

.schedule-wheel-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.schedule-wheel-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 2px;
  scroll-snap-type: y proximity;
}

.schedule-option {
  border: 0;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.05);
  cursor: pointer;
  scroll-snap-align: center;
}

.schedule-option.active {
  background: rgba(47, 118, 210, 0.12);
  color: var(--blue);
}

.schedule-address-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.05);
}

.schedule-address-input::placeholder {
  color: var(--muted);
}

.schedule-modal-actions {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}


.job-detail-panel .detail-summary,
.application-material-panel .material-pills,
.application-material-panel .material-note {
  padding-inline: 2px;
}

.job-detail-panel .title-lg {
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.job-detail-panel .title-md {
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.job-detail-panel .copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.job-detail-panel .pill,
.job-detail-panel .eyebrow,
.job-detail-panel .source-toggle {
  font-size: 12px;
}

.job-detail-panel .section-head {
  margin-bottom: 10px;
}

.job-detail-panel .detail-hero {
  gap: 18px;
}

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

.detail-scan-card {
  display: grid;
  gap: 6px;
  padding: 14px 14px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 246, 0.98));
  box-shadow:
    0 0 0 1px rgba(31, 42, 55, 0.05),
    0 10px 24px rgba(31, 42, 55, 0.04);
}

.detail-scan-label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(86, 101, 123, 0.64);
}

.detail-scan-card strong {
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}

.detail-quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-inline-link {
  color: rgba(86, 101, 123, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.detail-inline-link:hover,
.detail-inline-link:active {
  color: var(--ink);
}

.job-detail-panel .detail-summary {
  gap: 12px;
}

.job-detail-panel .detail-summary strong {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}

.job-detail-panel .detail-list {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.job-detail-panel .detail-list li + li {
  margin-top: 8px;
}

.source-section-head {
  margin-bottom: 12px;
}

.source-detail-summary {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(215, 221, 230, 0.58);
}

.source-detail-summary.collapsed {
  max-height: 168px;
  overflow: hidden;
  position: relative;
}

.source-detail-summary.collapsed::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%);
  pointer-events: none;
}

.source-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.source-toggle {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  padding: 0 2px;
}

.status-callout strong {
  font-size: 15px;
  color: var(--ok);
}

.status-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.option-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46), 0 0 0 1px var(--line);
}

.option-card.active {
  background: color-mix(in srgb, var(--accent) 12%, white 88%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, white 72%), 0 0 0 1px var(--line);
}

.option-card strong {
  font-size: 14px;
}

.option-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.motion-up {
  transform: translateY(10px);
  opacity: 0;
  animation: rise 480ms ease forwards;
}

.motion-up:nth-child(2) {
  animation-delay: 60ms;
}

.motion-up:nth-child(3) {
  animation-delay: 120ms;
}

.motion-up:nth-child(4) {
  animation-delay: 180ms;
}

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.front-admin {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 228, 208, 0.92), transparent 42%),
    radial-gradient(circle at top right, rgba(220, 235, 255, 0.88), transparent 44%),
    linear-gradient(180deg, #f8fbff 0%, #f6f8fc 100%);
}

.analytics-admin-shell {
  width: min(1320px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

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

.analytics-admin-grid {
  display: grid;
  gap: 16px;
}

.analytics-admin-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.analytics-kpi-card,
.analytics-mini-card,
.analytics-list-card,
.analytics-login-card {
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(31, 42, 55, 0.04),
    0 16px 36px rgba(31, 42, 55, 0.05);
  border-radius: 24px;
}

.analytics-kpi-card,
.analytics-mini-card,
.analytics-list-card {
  padding: 18px;
}

.analytics-kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.analytics-kpi-card span,
.analytics-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.analytics-mini-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.analytics-login-card {
  width: min(420px, 100%);
  margin: 10vh auto 0;
  padding: 24px;
}

.analytics-filter-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(31, 42, 55, 0.04),
    0 16px 36px rgba(31, 42, 55, 0.05);
}

.analytics-filter-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.analytics-filter-group {
  display: grid;
  gap: 10px;
}

.analytics-segmented {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(245, 247, 251, 0.98);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.05);
}

.analytics-segment {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.analytics-segment.is-active {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(31, 42, 55, 0.06);
}

.analytics-date-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.analytics-date-range input {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(245, 247, 251, 0.98);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.05);
}

.analytics-date-range span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.analytics-filter-summary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.analytics-login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.analytics-login-form input {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(246, 248, 252, 0.96);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.06);
}

.analytics-login-error {
  min-height: 18px;
  color: #c23f3f;
  font-size: 12px;
  line-height: 1.4;
}

.analytics-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.analytics-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.analytics-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.analytics-stat-list,
.analytics-page-list,
.analytics-source-list,
.analytics-event-list,
.analytics-whatsapp-list {
  display: grid;
  gap: 10px;
}

.analytics-stat-row,
.analytics-page-row,
.analytics-source-row,
.analytics-event-row,
.analytics-whatsapp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analytics-stat-row strong,
.analytics-page-row strong,
.analytics-source-row strong,
.analytics-event-row strong,
.analytics-whatsapp-row strong {
  font-size: 14px;
  line-height: 1.3;
}

.analytics-stat-row span,
.analytics-page-row span,
.analytics-source-row span,
.analytics-event-row span,
.analytics-whatsapp-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.analytics-whatsapp-row {
  align-items: flex-start;
}

.analytics-whatsapp-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.analytics-whatsapp-meta em {
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.analytics-event-table {
  width: 100%;
  border-collapse: collapse;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-event-table th,
.analytics-event-table td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(31, 42, 55, 0.06);
  font-size: 13px;
  line-height: 1.45;
}

.analytics-event-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analytics-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .analytics-admin-grid.cols-4,
  .analytics-admin-grid.cols-3,
  .analytics-admin-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .analytics-admin-shell {
    width: min(100vw - 20px, 100%);
    padding: 20px 0 36px;
  }

  .analytics-topbar {
    align-items: flex-start;
  }
}
