:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #d0d7e2;
  --line-soft: #e6ebf2;
  --panel: #ffffff;
  --field: #f8fafc;
  --paper: #eef3f8;
  --paper-2: #f7f9fc;
  --primary: #175cd3;
  --primary-dark: #1849a9;
  --primary-soft: #eaf1ff;
  --teal: #0e766a;
  --teal-soft: #e6f4f1;
  --amber: #b7791f;
  --amber-soft: #fff4de;
  --accent: #b42318;
  --success: #087443;
  --shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 8px 22px rgba(16, 24, 40, 0.06);
  --ring: 0 0 0 3px rgba(23, 92, 211, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(23, 92, 211, 0.07), rgba(255, 255, 255, 0) 280px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

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

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

button,
.actions a {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(180deg, #2870e8, var(--primary));
  box-shadow: 0 10px 20px rgba(23, 92, 211, 0.2);
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: linear-gradient(180deg, #1c5fc7, var(--primary-dark));
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

button.secondary:hover {
  border-color: #b8c4d6;
  background: #f8fbff;
}

button.danger {
  background: var(--accent);
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 28px;
}

.mobile-shell {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 18px;
}

.admin-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(208, 215, 226, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #12326b, #0e766a);
  box-shadow: 0 12px 28px rgba(23, 92, 211, 0.22);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.1;
  font-weight: 850;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.lead {
  max-width: 30em;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.panel {
  border: 1px solid rgba(208, 215, 226, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero {
  overflow: hidden;
  position: relative;
  padding: 30px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 241, 255, 0.94)),
    linear-gradient(90deg, rgba(23, 92, 211, 0.1), rgba(15, 118, 110, 0.12));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--teal));
}

.hero::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(23, 92, 211, 0.16);
  background:
    linear-gradient(90deg, rgba(23, 92, 211, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.13) 1px, transparent 1px);
  background-size: 11px 11px;
  opacity: 0.55;
}

.section {
  padding: 22px;
  margin-top: 16px;
}

.mobile-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink);
}

.mobile-section-head span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 850;
}

.mobile-section-head strong {
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 18px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, 0.72fr);
  align-items: start;
}

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

.panel-head h2,
.panel-head p {
  margin-bottom: 0;
}

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

.field span,
.label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--field);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input {
  height: 48px;
  padding: 0 14px;
}

select {
  height: 48px;
  padding: 0 12px;
}

textarea {
  min-height: 164px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.58;
}

input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

.actions button,
.actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.actions a.secondary {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.actions a.secondary:hover {
  border-color: #b8c4d6;
  background: #f8fbff;
  transform: translateY(-1px);
}

.call-link {
  color: #ffffff;
  background: linear-gradient(180deg, #0f8a63, var(--success));
  box-shadow: 0 10px 20px rgba(8, 116, 67, 0.2);
}

.result-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.company-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--shadow-soft);
}

.company-card .booth {
  display: inline-flex;
  min-width: 76px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #12294d, var(--primary));
  font-size: 22px;
  font-weight: 850;
}

.company-card h3 {
  margin-bottom: 0;
}

.company-card .actions {
  grid-column: 1 / -1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--paper-2);
}

.empty {
  padding: 22px;
  border: 1px dashed #b8c4d6;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
}

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

.stat {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid rgba(208, 215, 226, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.stat:nth-child(2)::before {
  background: var(--teal);
}

.stat:nth-child(3)::before {
  background: var(--amber);
}

.stat strong {
  display: block;
  margin-top: 7px;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.toolbar + .toolbar {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.event-toolbar {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.import-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
  margin-bottom: 16px;
}

.import-card,
.csv-panel {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--shadow-soft);
}

.import-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

input[type="file"] {
  display: flex;
  height: 44px;
  align-items: center;
  padding: 8px 10px;
  background: #ffffff;
}

input[type="file"]::file-selector-button {
  height: 28px;
  margin-right: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #f8fafc;
  cursor: pointer;
}

.csv-panel textarea {
  min-height: 112px;
}

.csv-panel button {
  width: fit-content;
}

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

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

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

th {
  color: var(--ink-soft);
  background: linear-gradient(180deg, #f8fafc, #f2f6fb);
  font-size: 12px;
  font-weight: 850;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:hover {
  background: #fbfdff;
}

td input {
  height: 38px;
  padding: 0 10px;
  background: #ffffff;
}

.check-cell {
  width: 88px;
  text-align: center;
}

.check-cell input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.qr-box {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: stretch;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  text-align: center;
}

.qr-box img {
  width: 116px;
  height: 116px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.qr-box small {
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.network-hint {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(14, 118, 106, 0.14);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(14, 118, 106, 0.08);
  font-size: 13px;
  line-height: 1.55;
}

.status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(8, 116, 67, 0.14);
  border-radius: 999px;
  color: var(--success);
  background: rgba(8, 116, 67, 0.09);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .app-shell {
    padding: 14px;
  }

  .admin-grid,
  .toolbar,
  .import-grid,
  .file-row {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 520px) {
  .mobile-shell {
    padding: 12px;
  }

  .hero {
    padding: 26px 20px;
  }

  .hero::after {
    right: 10px;
    bottom: 10px;
    width: 64px;
    height: 64px;
  }

  h1 {
    font-size: 31px;
  }

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

  .company-card .booth {
    grid-row: auto;
    width: fit-content;
  }

  .actions button,
  .actions a {
    flex: 1 1 auto;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head button {
    width: 100%;
  }

  .qr-box {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media print {
  html,
  body {
    background: #ffffff;
  }

  .no-print,
  .table-wrap,
  .stats,
  .toolbar,
  textarea,
  .status {
    display: none !important;
  }

  .app-shell,
  .section {
    padding: 0;
  }

  .panel,
  .topbar {
    border: 0;
    box-shadow: none;
  }

  .admin-grid {
    display: block;
  }

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

.mpb-mobile-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 212, 38, 0.32), transparent 22%),
    radial-gradient(circle at 0% 0%, rgba(34, 122, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #eaf3ff 0%, #f7fbff 44%, #eef5ff 100%);
}

.mpb-mobile-page.staff-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 211, 39, 0.24), transparent 20%),
    radial-gradient(circle at 10% 0%, rgba(31, 111, 255, 0.34), transparent 36%),
    linear-gradient(180deg, #071a3f 0%, #102a60 46%, #eef5ff 46%, #f7fbff 100%);
}

.mpb-mobile-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

.mpb-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 18px 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 24px 68px rgba(16, 55, 130, 0.18);
}

.mpb-hero-enterprise {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(229, 240, 255, 0.92)),
    linear-gradient(160deg, rgba(18, 74, 197, 0.1), rgba(255, 211, 39, 0.16));
}

.mpb-hero-staff {
  border-color: rgba(86, 139, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(13, 42, 94, 0.98), rgba(17, 75, 171, 0.92)),
    #102a60;
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(2, 13, 39, 0.34);
}

.mpb-hero::before {
  content: none;
}

.mpb-hero::after {
  content: "";
  position: absolute;
  inset: auto -34px -42px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(18, 72, 200, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 72, 200, 0.1) 1px, transparent 1px);
  background-size: 14px 14px;
}

.mpb-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mpb-logo {
  display: block;
  width: 136px;
  height: 42px;
  object-fit: contain;
  padding: 7px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1248c8, #0b2f7e);
  box-shadow: 0 14px 30px rgba(18, 72, 200, 0.22);
}

.mpb-topline span {
  display: inline-flex;
  min-width: 0;
  max-width: 260px;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(18, 72, 200, 0.14);
  border-radius: 999px;
  color: #1248c8;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpb-hero-staff .mpb-topline span {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.mpb-hero-copy {
  position: relative;
  z-index: 2;
  width: 58%;
  padding: 38px 0 38px;
}

.mpb-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin: 0 0 12px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1248c8;
  background: rgba(255, 211, 38, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.mpb-hero-staff .mpb-kicker {
  color: #ffd326;
  background: rgba(255, 211, 38, 0.14);
}

.mpb-hero-copy h1 {
  margin: 0 0 10px;
  color: #102a60;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 900;
}

.mpb-hero-staff .mpb-hero-copy h1 {
  color: #ffffff;
}

.mpb-hero-copy p {
  max-width: 186px;
  margin: 0;
  color: #49637f;
  font-size: 14px;
  line-height: 1.65;
}

.mpb-hero-staff .mpb-hero-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.mpb-mascot {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: -28px;
  width: 166px;
  max-width: none;
  filter: drop-shadow(0 26px 34px rgba(19, 58, 128, 0.24));
  pointer-events: none;
}

.mpb-mascot-staff {
  right: 28px;
  opacity: 0.86;
}

.mpb-search-panel {
  position: relative;
  z-index: 3;
  margin-top: -24px;
  padding: 20px;
  border: 1px solid rgba(216, 229, 255, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(16, 55, 130, 0.14);
}

.mpb-search-panel-staff {
  border-color: rgba(18, 72, 200, 0.16);
}

.mpb-search-panel .mobile-section-head span {
  color: #1248c8;
  background: #eaf2ff;
}

.mpb-search-panel input {
  height: 54px;
  border-color: #c9d9ff;
  background: #f8fbff;
  font-size: 16px;
}

.mpb-search-panel input:focus {
  border-color: #1248c8;
  box-shadow: 0 0 0 4px rgba(18, 72, 200, 0.12);
}

.mpb-search-panel .result-list {
  margin-top: 16px;
}

.mpb-search-panel .empty {
  border-color: #c9d9ff;
  background: #f8fbff;
}

.mpb-search-panel .company-card {
  border-color: #dce7ff;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 34px rgba(16, 55, 130, 0.1);
}

.mpb-search-panel .company-card .booth {
  background: linear-gradient(135deg, #1248c8, #0c7fff);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.1);
}

.mpb-search-panel .call-link {
  background: linear-gradient(180deg, #155eef, #1248c8);
}

.mpb-brand-qrs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(201, 217, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(16, 55, 130, 0.1);
  overflow: hidden;
}

.mpb-brand-qrs-dark {
  border-color: rgba(18, 72, 200, 0.16);
}

.mpb-qr-card {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border-radius: 7px;
  background: #dbe9ff;
}

.mpb-qr-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
}

@media (max-width: 390px) {
  .mpb-hero-copy {
    width: 62%;
  }

  .mpb-hero-copy h1 {
    font-size: 32px;
  }

  .mpb-mascot {
    right: 18px;
    width: 160px;
  }
}

/* Recruitment operations console */
.admin-page {
  background: #f3f6fb;
}

.admin-app {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 24px 18px;
  color: #fff;
  background: #0c2e6b;
}

.admin-brand {
  padding: 4px 8px 28px;
}

.admin-brand img {
  display: block;
  width: 138px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.admin-brand span {
  display: block;
  margin-top: 8px;
  color: #b8cdf8;
  font-size: 13px;
  font-weight: 700;
}

.admin-nav {
  display: grid;
  gap: 7px;
}

.admin-nav-item {
  display: grid;
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid transparent;
  color: #dce7ff;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.admin-nav-item strong,
.admin-nav-item span {
  display: block;
}

.admin-nav-item span {
  margin-top: 4px;
  color: #94b2ea;
  font-size: 12px;
  font-weight: 500;
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: #17468e;
  transform: none;
}

.admin-nav-item.is-active {
  box-shadow: inset 3px 0 #ffd338;
}

.admin-side-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.admin-side-links a {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: #dce7ff;
  text-decoration: none;
  font-size: 13px;
}

.admin-main {
  min-width: 0;
  padding: 24px 28px 160px;
}

.admin-header,
.admin-panel-head,
.admin-event-actions,
.admin-import-row,
.filter-bar,
.row-actions,
.form-grid,
.dialog-actions {
  display: flex;
  align-items: center;
}

.admin-header {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-header h1 {
  font-size: 30px;
}

.admin-event-actions {
  gap: 10px;
}

.compact-field {
  min-width: 260px;
}

.compact-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: block;
  animation: admin-view-in 180ms ease-out;
}

@keyframes admin-view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.admin-metric,
.admin-panel {
  border: 1px solid #dce4f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(16, 42, 86, 0.06);
}

.admin-metric {
  position: relative;
  min-height: 122px;
  padding: 20px;
  overflow: hidden;
}

.admin-metric::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #175cd3;
  content: "";
}

.admin-metric span,
.admin-metric small {
  display: block;
  color: #667085;
}

.admin-metric strong {
  display: block;
  margin: 8px 0 4px;
  color: #102f69;
  font-size: 30px;
}

.admin-metric small {
  font-size: 12px;
}

.admin-panel {
  margin-bottom: 16px;
  padding: 20px;
}

.admin-panel-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin: 0;
}

.admin-panel-head .eyebrow {
  color: #175cd3;
}

.admin-import-row,
.filter-bar {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-bar input,
.filter-bar select {
  min-width: 180px;
}

.upload-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 13px;
  border: 1px solid #d7e0ed;
  border-radius: 7px;
  background: #f8faff;
  font-size: 13px;
  font-weight: 700;
}

.upload-inline input {
  max-width: 220px;
  border: 0;
  padding: 0;
  background: transparent;
}

.csv-details {
  position: relative;
}

.csv-details summary {
  min-height: 42px;
  padding: 11px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.csv-details[open] {
  width: min(520px, 100%);
}

.csv-details textarea {
  width: 100%;
  min-height: 110px;
  margin: 8px 0;
}

.check-control {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.check-control input {
  width: 17px;
  height: 17px;
}

.text-danger {
  min-height: 34px;
  padding: 4px 8px;
  color: #b42318;
  background: transparent;
  box-shadow: none;
}

.text-danger:hover {
  color: #912018;
  background: #fff1f0;
  transform: none;
}

.button-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid #d0d7e2;
  border-radius: 7px;
  color: #344054;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.resume-admin-list,
.task-admin-list,
.staff-editor {
  display: grid;
  gap: 9px;
}

.resume-admin-row,
.task-admin-row,
.staff-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid #e1e7f0;
  border-radius: 7px;
  background: #fbfcfe;
}

.resume-admin-row {
  grid-template-columns: 52px minmax(180px, 1fr) auto auto;
  padding: 12px;
}

.file-type {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 7px;
  color: #1248c8;
  background: #eaf1ff;
  font-size: 11px;
  font-weight: 900;
}

.resume-meta strong,
.resume-meta span,
.task-main strong,
.task-main span,
.task-main small {
  display: block;
  overflow-wrap: anywhere;
}

.resume-meta span,
.task-main span,
.task-main small {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.status-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.status-new,
.status-pending { color: #9a5b00; background: #fff3d5; }
.status-viewed,
.status-in_progress { color: #175cd3; background: #eaf1ff; }
.status-archived,
.status-completed { color: #087443; background: #e6f4ed; }

.row-actions {
  justify-content: flex-end;
  gap: 6px;
}

.row-actions button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
  gap: 16px;
}

.staff-row {
  grid-template-columns: 1fr auto;
  padding: 7px;
}

.staff-row input {
  min-width: 0;
}

.staff-panel > button {
  width: 100%;
  margin-top: 12px;
}

.panel-description {
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.import-preview {
  margin-top: 12px;
}

.import-preview ol {
  max-height: 180px;
  margin: 10px 0;
  padding-left: 24px;
  overflow: auto;
  color: #475467;
  font-size: 13px;
}

.preview-summary span {
  display: block;
  margin-top: 4px;
  color: #b54708;
  font-size: 12px;
}

.task-admin-row {
  grid-template-columns: 4px minmax(240px, 1fr) auto auto;
  padding: 13px;
}

.task-admin-row.is-completed .task-main strong {
  color: #667085;
  text-decoration: line-through;
}

.priority-mark {
  align-self: stretch;
  border-radius: 3px;
  background: #d0d5dd;
}

.priority-high { background: #f04438; }
.priority-normal { background: #175cd3; }
.priority-low { background: #12b76a; }

.admin-qr-dock {
  position: fixed;
  right: 28px;
  bottom: 18px;
  left: 268px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #d3deef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(12, 46, 107, 0.16);
  backdrop-filter: blur(12px);
}

.admin-qr-dock > div:first-child {
  min-width: 180px;
}

.admin-qr-dock span,
.admin-qr-dock small {
  display: block;
}

.admin-qr-dock small {
  max-width: 190px;
  margin-top: 4px;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-qr-row {
  display: flex;
  flex: 1;
  gap: 16px;
}

.admin-qr-row article {
  display: grid;
  min-width: 150px;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
}

.admin-qr-row img {
  width: 48px;
  height: 48px;
  grid-row: 1 / 3;
  border: 1px solid #e4e7ec;
  background: #fff;
}

.admin-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(9, 30, 66, 0.32);
}

.admin-dialog::backdrop {
  background: rgba(9, 30, 66, 0.58);
  backdrop-filter: blur(3px);
}

.admin-dialog form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.icon-close {
  width: 36px;
  min-height: 36px;
  padding: 0;
  color: #475467;
  background: #f2f4f7;
  box-shadow: none;
}

.form-grid {
  gap: 12px;
}

.form-grid > * {
  flex: 1;
}

.dialog-actions {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 4px;
}

/* Mobile service, transfer assistant and todo */
.mobile-service-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 22px;
}

.mobile-service-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid #dbe5f8;
  border-radius: 7px;
  color: #344054;
  background: #f8faff;
  text-decoration: none;
}

.mobile-service-card.is-active {
  border-color: #175cd3;
  color: #123e91;
  background: #edf4ff;
}

.mobile-service-card > span:last-child {
  min-width: 0;
}

.mobile-service-card strong,
.mobile-service-card small {
  display: block;
}

.mobile-service-card strong {
  font-size: 13px;
}

.mobile-service-card small {
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
}

.service-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #1248c8;
  background: #dce9ff;
  font-size: 11px;
  font-weight: 900;
}

.mpb-hero-resume {
  min-height: 272px;
  background: linear-gradient(145deg, #0e3c99 0%, #1268df 66%, #2c82ee 100%);
}

.mpb-hero-resume .mpb-hero-copy {
  width: 56%;
}

.mpb-hero-resume .mpb-kicker {
  color: #123e91;
  background: #ffd338;
}

.mpb-hero-resume .mpb-hero-copy h1 {
  font-size: 32px;
  line-height: 1.12;
}

.mpb-hero-resume .mpb-hero-copy > p:last-child {
  color: #e1ecff;
  font-size: 12px;
  line-height: 1.65;
}

.mpb-mascot-resume {
  right: -2px;
  bottom: -22px;
  width: 158px;
}

.upload-workspace {
  position: relative;
  z-index: 3;
  margin-top: -24px;
  padding: 18px;
  border: 1px solid #d8e5fb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(16, 55, 130, 0.14);
}

.resume-dropzone {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px 18px;
  border: 2px dashed #9dbcf4;
  border-radius: 8px;
  background: #f7faff;
  cursor: pointer;
  text-align: center;
}

.resume-dropzone:focus-within,
.resume-dropzone:focus {
  outline: none;
  border-color: #175cd3;
  box-shadow: var(--ring);
}

.resume-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #123e91;
  background: #ffd338;
  font-size: 30px;
  font-weight: 400;
}

.resume-dropzone > span:not(.upload-symbol),
.resume-dropzone small {
  color: #667085;
  font-size: 13px;
}

.upload-queue {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.upload-file-row {
  padding: 12px;
  border: 1px solid #e0e7f2;
  border-radius: 7px;
  background: #fbfcff;
}

.upload-file-row.is-success { border-color: #a9dfc4; background: #f2fbf6; }
.upload-file-row.is-error { border-color: #f4b5b0; background: #fff6f5; }

.upload-file-head,
.upload-file-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.upload-file-head > div {
  min-width: 0;
}

.upload-file-head strong {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.upload-file-head span,
.upload-file-head small {
  color: #667085;
  font-size: 11px;
  white-space: nowrap;
}

.upload-progress {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 5px;
  background: #e9eef6;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #175cd3;
  transition: width 160ms ease;
}

.upload-file-row.is-success .upload-progress span { background: #12a866; }
.upload-file-row.is-error .upload-progress span { background: #d92d20; }

.mobile-status {
  margin: 12px 0 0;
  text-align: center;
}

.upload-trust-strip {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 15px;
  border-left: 4px solid #ffd338;
  color: #fff;
  background: #103a85;
}

.upload-trust-strip span {
  color: #c9dbff;
  font-size: 12px;
}

.todo-page {
  background: #eef4ff;
}

.todo-shell {
  padding-bottom: 40px;
}

.todo-mobile-header {
  position: relative;
  min-height: 242px;
  padding: 22px 20px 28px;
  overflow: hidden;
  color: #fff;
  background: #103f9f;
}

.todo-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
}

.todo-welcome > div {
  position: relative;
  z-index: 2;
  max-width: 66%;
}

.todo-welcome h1 {
  margin-bottom: 8px;
  font-size: 36px;
}

.todo-welcome p:last-child {
  margin: 0;
  color: #d5e4ff;
  font-size: 13px;
  line-height: 1.6;
}

.todo-welcome img {
  position: absolute;
  right: 8px;
  bottom: -25px;
  width: 178px;
  pointer-events: none;
}

.todo-identity {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 9px;
  margin: -19px 14px 0;
  padding: 14px;
  border: 1px solid #d9e4f6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 55, 130, 0.14);
}

.todo-identity button {
  min-width: 66px;
}

.todo-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 14px;
  overflow: hidden;
  border: 1px solid #d9e4f6;
  border-radius: 8px;
  background: #d9e4f6;
}

.todo-service-switch {
  margin: 14px 14px 0;
}

.smart-import-table {
  display: grid;
  gap: 8px;
  max-height: 390px;
  margin: 12px 0;
  overflow: auto;
}

.smart-import-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(110px, 0.7fr) minmax(130px, 0.8fr) auto;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e1e7f0;
  border-radius: 7px;
  background: #fbfcfe;
}

.smart-import-row input {
  min-width: 0;
  height: 38px;
  padding: 7px 9px;
  font-size: 12px;
}

.suggested-staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.suggested-staff-list label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #bad0f5;
  border-radius: 999px;
  color: #1248c8;
  background: #edf4ff;
  font-size: 12px;
  font-weight: 700;
}

.suggested-staff-list input {
  width: 15px;
  height: 15px;
}

.import-loading {
  padding: 14px;
  color: #175cd3;
  background: #edf4ff;
  font-size: 13px;
}

.import-error {
  padding: 12px;
  color: #b42318;
  background: #fff1f0;
  font-size: 13px;
}

.todo-summary button {
  display: grid;
  min-width: 0;
  min-height: 68px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: 0;
  color: #667085;
  background: #fff;
  box-shadow: none;
}

.todo-summary button:hover,
.todo-summary button.is-active {
  color: #1248c8;
  background: #edf4ff;
  transform: none;
}

.todo-summary strong {
  font-size: 20px;
}

.todo-summary span {
  font-size: 11px;
}

.todo-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 10px;
  color: #667085;
  font-size: 12px;
}

.filter-toggle {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cfdcf0;
  color: #344054;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}

.filter-toggle.is-active {
  border-color: #175cd3;
  color: #1248c8;
  background: #eaf1ff;
}

.mobile-task-list {
  display: grid;
  gap: 10px;
  padding: 0 14px;
}

.mobile-task-card {
  padding: 16px;
  border: 1px solid #d9e4f6;
  border-left: 4px solid #f5b82e;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 55, 130, 0.08);
}

.mobile-task-card.status-in_progress { border-left-color: #175cd3; }
.mobile-task-card.status-completed { border-left-color: #12a866; }
.mobile-task-card.status-completed h2 { color: #667085; text-decoration: line-through; }

.mobile-task-top,
.mobile-task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.priority-label {
  color: #b42318;
  font-size: 11px;
  font-weight: 800;
}

.mobile-task-card h2 {
  margin: 13px 0 7px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.mobile-task-card p {
  margin-bottom: 12px;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.mobile-task-meta {
  margin-bottom: 13px;
  color: #667085;
  font-size: 11px;
}

.mobile-task-card > button {
  width: 100%;
}

@media (max-width: 1080px) {
  .admin-app { grid-template-columns: 200px minmax(0, 1fr); }
  .admin-main { padding-right: 20px; padding-left: 20px; }
  .admin-qr-dock { left: 220px; }
  .admin-qr-dock > div:first-child { display: none; }
  .resume-admin-row { grid-template-columns: 52px minmax(160px, 1fr) auto; }
  .resume-admin-row .row-actions { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .admin-app { display: block; }
  .admin-sidebar { position: static; height: auto; padding: 16px; }
  .admin-brand { padding-bottom: 14px; }
  .admin-nav { grid-template-columns: repeat(3, 1fr); }
  .admin-nav-item { min-height: 58px; padding: 9px; text-align: center; }
  .admin-nav-item span, .admin-side-links { display: none; }
  .admin-main { padding: 18px 14px 34px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-event-actions { width: 100%; align-items: stretch; }
  .compact-field { min-width: 0; flex: 1; }
  .admin-metric-grid, .todo-metrics { grid-template-columns: 1fr 1fr; }
  .admin-two-column { grid-template-columns: 1fr; }
  .resume-admin-row, .task-admin-row { grid-template-columns: 42px minmax(0, 1fr); }
  .resume-admin-row .status-chip, .task-admin-row .status-chip { grid-column: 2; justify-self: start; }
  .resume-admin-row .row-actions, .task-admin-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .admin-qr-dock { position: static; margin-top: 16px; }
  .admin-qr-row { overflow-x: auto; }
  .smart-import-row { grid-template-columns: 1fr 1fr; }
  .smart-import-row input:first-child { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
  .mobile-service-switch { grid-template-columns: 1fr; }
  .todo-summary { margin-right: 10px; margin-left: 10px; }
  .todo-identity, .mobile-task-list { margin-right: 10px; margin-left: 10px; }
  .mobile-task-list { padding: 0; }
  .upload-file-head strong { max-width: 180px; }
}

@media print {
  .admin-sidebar,
  .admin-header,
  .admin-view,
  .no-print { display: none !important; }
  .admin-app, .admin-main { display: block; padding: 0; }
  .admin-qr-dock { position: static; display: block !important; border: 0; box-shadow: none; }
  .admin-qr-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .admin-qr-row article { display: block; text-align: center; }
  .admin-qr-row img { width: 180px; height: 180px; }
}
