:root {
  --teal: #0d5c56;
  --teal-deep: #0a4f4a;
  --ink: #1c1c1e;
  --muted: #8e8e93;
  --soft: #f3f4f6;
  --chip: #f2f3f5;
  --white: #fff;
  --ok-bg: #e8f8ef;
  --ok: #1f8a4c;
  --danger: #b42318;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--soft);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
}
body {
  display: block;
}
.shell {
  width: 100%;
  min-height: 100%;
  height: 100dvh;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.status-bar { display: none; }
#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--soft);
}

.bar {
  background: var(--teal);
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 6px 12px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 108px;
  align-items: center;
  min-height: 56px;
}
.bar h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar .back, .bar .ico-btn {
  color: #fff;
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: none;
}
.bar .back {
  justify-self: start;
  margin-left: 4px;
}
.bar .back svg, .bar .ico-btn svg {
  display: block;
  width: 26px;
  height: 26px;
}
.bar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  justify-self: end;
  margin-right: 2px;
}
.page {
  flex: 1;
  overflow: auto;
  padding: 14px 16px calc(132px + env(safe-area-inset-bottom, 0px));
  background: var(--soft);
}
.page-empty {
  display: flex;
  flex-direction: column;
}
.portal-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 24px 16px 72px;
  text-align: center;
  gap: 12px;
  color: #5f6b68;
}
.portal-loading-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #d7e4e2;
  border-top-color: var(--teal);
  animation: portal-spin 0.75s linear infinite;
}
.portal-loading-title {
  font-size: 16px;
  font-weight: 700;
  color: #5f6b68;
}
.portal-loading-sub {
  font-size: 13px;
  color: #9aa3a0;
}
@keyframes portal-spin {
  to { transform: rotate(360deg); }
}
.embed-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.embed-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.embed-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.embed-loading .portal-loading {
  min-height: 0;
  padding: 16px;
}
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 8px 16px 72px;
  text-align: center;
}
.empty-ico {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e7eeed;
  color: #8a9a97;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #5f6b68;
}
.empty-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #9aa3a0;
}

.hero { text-align: center; padding: 36px 12px 4px; }
.logo {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 20px; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
}
.logo.house svg { display: block; }
.hero h2 { margin: 0; font-size: 28px; font-weight: 800; color: var(--teal); letter-spacing: 0.5px; }
.hero h2 span { font-weight: 800; }
.hero p { margin: 10px 0 0; color: #8a9390; font-size: 15px; }
.tabs { display: flex; gap: 24px; justify-content: center; margin: 16px 0 8px; }
.tabs button {
  background: none; border: 0; padding: 8px 0; font-size: 15px; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button.on { color: var(--teal); font-weight: 700; border-color: var(--teal); }

.page.auth-page {
  padding: 24px 28px 40px;
  background: #f7f8f8;
  max-width: none;
  width: 100%;
  margin: 0;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 22px;
  border-bottom: 1px solid #ececec;
}
.auth-tabs button {
  background: none;
  border: 0;
  padding: 12px 0 14px;
  font-size: 17px;
  color: #9aa0a6;
  font-weight: 500;
}
.auth-tabs button.on {
  color: var(--teal);
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--teal);
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  margin-bottom: 14px;
  min-height: 54px;
}
.field .ico { color: #9aa0a6; display: grid; place-items: center; flex: none; }
.field input {
  border: 0;
  padding: 16px 0;
  font-size: 16px;
  background: transparent;
  border-radius: 0;
}
.field .eye {
  border: 0;
  background: none;
  color: #9aa0a6;
  padding: 8px 0 8px 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.captcha-field input { flex: 1; }
.captcha-field .cap {
  height: 40px;
  width: auto;
  max-width: 120px;
  border-radius: 8px;
  border: 1px solid #eee;
  cursor: pointer;
  background: #fff;
  flex: none;
}
.auth-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 8px;
  font-size: 14px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}
.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.text-link {
  border: 0;
  background: none;
  color: var(--teal);
  font-size: 14px;
  padding: 0;
  font-weight: 600;
}
.agree {
  margin: 18px 8px 0;
  text-align: center;
  color: #9aa0a6;
  font-size: 13px;
  line-height: 1.6;
}
.agree .text-link { font-size: 13px; }
.legal-page .legal-p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 12px;
}
.auth-page .btn {
  margin-top: 18px;
  padding: 16px;
  font-size: 18px;
  border-radius: 14px;
}

label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
input, textarea, select {
  width: 100%; border: 1px solid #e6e6e6; border-radius: 12px;
  padding: 12px 14px; font-size: 15px; background: #fff; outline: none;
}
.row-2 { display: flex; gap: 8px; align-items: center; }
.row-2 img, .row-2 .cap {
  height: 44px; border-radius: 8px; border: 1px solid #e6e6e6; cursor: pointer; background: #fff;
}
.btn {
  width: 100%; border: 0; border-radius: 12px; padding: 13px;
  font-size: 16px; font-weight: 700; background: var(--teal); color: #fff; margin-top: 18px;
}
.btn:disabled { opacity: .5; }
.btn.ghost { background: #fff; color: var(--teal); border: 1px solid var(--teal); margin-top: 8px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; text-align: center; }
.err { color: var(--danger); font-size: 16px; font-weight: 600; margin-top: 8px; min-height: 22px; line-height: 1.45; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 28px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.search svg { flex: none; color: #c4c4c8; width: 20px; height: 20px; }
.search input {
  border: 0;
  padding: 0;
  font-size: 16px;
  background: transparent;
  color: var(--ink);
}
.search input::placeholder { color: #c4c4c8; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none;
  border: 0;
  background: #fff;
  color: #3a3a3c;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 500;
}
.chips button.on {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 14px 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.card.block { display: block; }
.av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #ececec;
  flex: none;
}
.av.lg { width: 96px; height: 96px; }
.card-body { flex: 1; min-width: 0; padding-top: 2px; }
.name-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.name { font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.2; flex: none; }
.sub {
  font-size: 13px; color: #8a8f98; font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #1b8a4a;
  font-weight: 600;
}
.tag.g {
  background: var(--chip);
  color: #6b7280;
  font-weight: 500;
}
.salary {
  color: var(--teal);
  font-weight: 800;
  font-size: 18px;
  margin-top: 8px;
  letter-spacing: 0.2px;
}
.intro {
  font-size: 12px;
  color: #9aa0a6;
  margin-top: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
}
.site-foot {
  margin: 22px 4px 12px;
  padding: 14px 12px 8px;
  border-top: 1px solid #e8eceb;
  color: #9aa3a1;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}
.site-foot-name {
  color: #7a8482;
  font-weight: 650;
  margin-bottom: 4px;
}
.site-foot-line {
  word-break: break-all;
}
.site-foot a {
  color: #7a8482;
  text-decoration: none;
}
.site-foot a:active {
  opacity: 0.75;
}
.site-foot-beian {
  color: var(--teal) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.nav button {
  background: none;
  border: 0;
  font-size: 13px;
  color: #9aa0a6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}
.nav button.on { color: var(--teal); font-weight: 700; }
.nav button.on:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 28px;
  height: 3px;
  margin-left: -14px;
  background: var(--teal);
  border-radius: 2px;
}
.nav svg { width: 26px; height: 26px; }

.staff { display: flex; gap: 10px; align-items: center; padding: 12px; }
.staff.on { outline: 2px solid var(--teal); border-radius: 12px; }
.radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c5cdd4; flex: none;
}
.staff.on .radio { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.banner {
  background: #ecfdf3; color: var(--ok); border-radius: 10px;
  padding: 8px 12px; font-size: 12px; margin-bottom: 12px;
}
.qrbox { text-align: center; background: #fff; border-radius: 12px; padding: 20px 12px; }
.qrbox #qr { display: inline-block; padding: 8px; background: #fff; }
.qrbox .url { font-size: 11px; color: var(--muted); word-break: break-all; margin-top: 10px; }
.detail-hero { text-align: center; padding: 8px 0 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #eee; }
.kv span:first-child { color: var(--muted); }
.section { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.section h3 { margin: 0 0 8px; font-size: 14px; }
#toast {
  position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%);
  background: rgba(26,35,50,.92); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-size: 13px; z-index: 20; max-width: 80%;
}
.empty { text-align: center; color: var(--muted); padding: 48px 16px; font-size: 14px; }
.upload {
  border: 1px dashed #c5cdd4; border-radius: 12px; padding: 16px; text-align: center;
  color: var(--muted); font-size: 13px; background: #fff; margin-bottom: 8px;
}
.upload input { display: none; }
.upload.on { border-color: var(--teal); color: var(--teal); }

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 14px 0 8px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(13, 92, 86, 0.08);
}
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: var(--teal);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  min-width: 108px;
  height: 40px;
  width: fit-content;
}
.pager-btn:first-of-type { justify-self: start; }
.pager-btn:last-of-type { justify-self: end; }
.pager-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: none;
}
.pager-btn:disabled {
  background: #f1f3f4;
  color: #c4c8cc;
  box-shadow: none;
}
.pager-info {
  text-align: center;
  min-width: 88px;
  padding: 0 8px;
}
.pager-info b {
  display: block;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.2;
}
.pager-info span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a9390;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 40;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 18px 18px 0 0;
  z-index: 41;
}
.sheet-head {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  padding: 10px 8px 6px;
  flex: none;
}
.sheet-head h3 { margin: 0; text-align: center; font-size: 16px; }
.sheet-head-btn {
  border: 0;
  background: none;
  color: #6b7280;
  font-size: 14px;
  padding: 8px 4px;
}
.sheet-head-btn.strong { color: var(--teal); font-weight: 700; }
.sheet-body {
  flex: 1;
  overflow: auto;
  padding: 4px 16px 12px;
  -webkit-overflow-scrolling: touch;
}
.sheet-body label {
  display: block;
  margin: 12px 0 8px;
  font-size: 12px;
  color: #6b7280;
}
.sheet-body input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--chip);
}
.sheet .row-2 { display: flex; gap: 8px; }
.f-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.f-chips button {
  flex: none;
  border: 0;
  background: var(--chip);
  color: #3a3a3c;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
}
.f-chips button.on {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}
.sheet-actions {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 10px 16px 18px;
  border-top: 1px solid #eee;
  background: #fff;
}
.sheet-actions .btn { margin-top: 0; flex: 1; }
.search-go {
  flex: none;
  border: 0;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
}
.hist { margin-top: 8px; }
.hist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.hist-head h3 { margin: 0; font-size: 15px; }
.hist-head button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.hist-empty { padding: 24px 8px; }

.page.cert-page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 16px 16px 118px;
  background: #f3f4f6;
}
.cert-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  margin-bottom: 14px;
}
.cert-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cert-head b { font-size: 18px; color: var(--ink); font-weight: 800; }
.cert-head em { font-style: normal; font-size: 14px; color: #9aa0a6; }
.cert-head div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.cert-ico {
  width: 32px; height: 32px; color: var(--teal);
  display: grid; place-items: center; flex: none;
}
.cert-ico svg { width: 26px; height: 26px; }
.cert-lab, .req-lab {
  display: block;
  margin: 14px 0 8px;
  font-size: 16px;
  color: #374151;
  font-weight: 650;
  white-space: nowrap;
}
.cert-lab i, .req-lab i {
  color: #e11d48;
  font-style: normal;
  font-weight: 800;
  margin-left: 4px;
  white-space: nowrap;
}
.cert-line, .cert-box {
  width: 100%;
  font-size: 16px;
  background: #fff;
  outline: none;
}
.cert-line {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 10px 0 12px;
}
.cert-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 14px;
}
.cert-up-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #374151;
  font-weight: 650;
  min-width: 0;
}
.cert-up-row .req-lab {
  margin: 0;
  flex: 0 0 7.6em;
  white-space: nowrap;
}
.cert-up {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 96px;
  border: 1px dashed #b7c4c2;
  border-radius: 12px;
  color: var(--teal);
  background: #fff;
  font-size: 15px;
  font-weight: 650;
  padding: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.cert-up-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: var(--teal);
}
.cert-up-placeholder[hidden] {
  display: none !important;
}
.cert-up-placeholder em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cert-up svg { width: 22px; height: 22px; flex: none; }
.cert-up input { display: none; }
.cert-up.on { border-color: var(--teal); background: #f3faf8; }
.cert-up.has-preview {
  padding: 0;
  background: #fff;
  border-style: solid;
}
.cert-up.uploading::after {
  content: '上传中…';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}
.cert-preview {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 11px;
}
.cert-preview[hidden] {
  display: none !important;
}
.cert-tip {
  font-size: 15px;
  color: #6b7280;
  padding: 4px 4px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cert-tip:before {
  content: "i";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #9aa0a6;
  color: #9aa0a6;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.cert-page .btn {
  margin-top: 8px;
  padding: 16px;
  font-size: 18px;
  border-radius: 12px;
}
.cert-wait {
  margin-top: 48px;
  padding: 36px 24px 28px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
}
.cert-wait-ico {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  color: var(--teal);
}
.cert-wait-ico.no {
  color: #e11d48;
}
.cert-wait-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cert-wait h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.cert-wait p {
  margin: 0 0 28px;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.5;
}
.cert-wait-reason {
  margin: 0 16px 28px !important;
  padding: 12px 14px;
  background: #fef2f2;
  border-radius: 10px;
  color: #991b1b !important;
  font-size: 15px !important;
  text-align: left;
  word-break: break-word;
}
.cert-wait-company {
  margin: 0 0 8px !important;
  font-size: 17px !important;
  font-weight: 700;
  color: var(--ink) !important;
}
.cert-wait-company + .btn {
  margin-top: 28px;
}
.cert-wait .btn {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.bar.light {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #ececec;
}
.bar.light .back,
.bar.light .ico-btn {
  color: var(--ink);
}
.bar.light h1 {
  font-size: 19px;
  font-weight: 700;
}

.staff-pick-page {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 118px !important;
  background: #fff;
  overflow: hidden;
}
.staff-pick-head {
  padding: 6px 4px 14px;
}
.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cert-pill svg {
  width: 18px;
  height: 18px;
  display: block;
}
.staff-pick-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
}
.staff-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.staff-search svg {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex: none;
}
.staff-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  min-width: 0;
}
.staff-search input::placeholder {
  color: #b0b6be;
}
.staff-list {
  flex: 1;
  overflow: auto;
  min-height: 0;
  margin: 0 -16px;
  padding: 0 4px 8px;
}
.staff-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.staff-row:active {
  background: #fafafa;
}
.staff-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #eef2f1;
  flex: none;
  border: 1px solid rgba(13, 92, 86, 0.08);
}
.staff-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.staff-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.staff-dept,
.staff-phone {
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.3;
}
.staff-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex: none;
  position: relative;
}
.staff-row.on .staff-check {
  border-color: var(--teal);
  background: var(--teal);
}
.staff-row.on .staff-check:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.staff-foot {
  flex: none;
  padding: 12px 0 4px;
  background: #fff;
}
.staff-foot .btn {
  margin: 0;
  height: 50px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  background: var(--teal);
}
.staff-foot .btn:active {
  filter: brightness(0.96);
}

.intake-embed-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 0 calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  background: #f3f4f6;
  overflow: hidden;
}
.intake-embed {
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  display: block;
  background: #f3f4f6;
  touch-action: pan-y;
}

.detail-embed-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 0 calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  background: #f3f4f6;
  overflow: hidden;
  position: relative;
}
.detail-embed {
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.detail-float {
  position: absolute;
  right: 0;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  pointer-events: none;
}
.detail-float-inner {
  display: flex;
  align-items: stretch;
  padding-right: 10px;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.detail-float.is-collapsed .detail-float-inner {
  transform: translateX(calc(100% - 34px));
}
.detail-float-toggle {
  pointer-events: auto;
  align-self: center;
  flex: none;
  width: 24px;
  height: 48px;
  margin-right: -1px;
  border: 1px solid rgba(13, 92, 86, 0.12);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  display: grid;
  place-items: center;
  box-shadow: -2px 2px 10px rgba(15, 40, 38, 0.08);
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.detail-float-toggle svg {
  width: 14px;
  height: 14px;
}
.detail-float-card {
  pointer-events: auto;
  width: min(196px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 92, 86, 0.1);
  box-shadow: 0 10px 28px rgba(15, 40, 38, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.detail-float.is-collapsed .detail-float-card {
  pointer-events: none;
}
.detail-float-pub {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 2px 0;
}
.detail-float-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #e8f4f2;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(13, 92, 86, 0.08);
}
.detail-float-pub-txt {
  min-width: 0;
  flex: 1;
}
.detail-float-pub span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #7a9390;
  margin-bottom: 2px;
}
.detail-float-pub b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--teal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-float-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #12706a 0%, var(--teal) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(13, 92, 86, 0.22);
}
.detail-float-call svg {
  width: 15px;
  height: 15px;
  flex: none;
}

#certGate {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.gate-box {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.gate-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e8f3f1;
  color: var(--teal);
  display: grid;
  place-items: center;
}
.gate-ico svg { width: 34px; height: 34px; }
.gate-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.gate-box p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #5b6563;
}
.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gate-actions .btn {
  margin: 0;
}

.me-page {
  padding-bottom: 132px !important;
}
.me-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
}
.me-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d9f0ec;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex: none;
  overflow: hidden;
}
.me-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.me-hero-txt {
  flex: 1;
  min-width: 0;
}
.me-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.me-set {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #eef5f3;
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}
.me-set svg {
  width: 22px;
  height: 22px;
  display: block;
}
.me-set:active {
  filter: brightness(0.96);
}
.me-phone {
  margin-top: 4px;
  font-size: 14px;
  color: #8e8e93;
}
.me-uid {
  margin-top: 3px;
  font-size: 13px;
  color: #a1a1aa;
  font-weight: 600;
}
.me-certline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.me-cert-ico {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex: none;
}
.me-cert-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}
.me-cert-ico:not(.ok) {
  color: #c5cdd4;
}
.me-cert-lab {
  font-size: 16px;
  font-weight: 800;
  color: var(--teal);
}
.me-certline b {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-actions {
  margin: 0 0 14px;
}
.me-block {
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px 8px;
  margin-bottom: 12px;
}
.me-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 2px 8px;
}
.me-block-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}
.me-block-head span {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}
.me-empty {
  text-align: center;
  color: #8e8e93;
  font-size: 14px;
  padding: 28px 8px 24px;
  line-height: 1.5;
}
.me-nanny {
  display: flex;
  gap: 12px;
  padding: 14px 2px;
  border-top: 1px solid #f0f1f3;
  cursor: pointer;
}
.me-nanny:active {
  background: #fafafa;
}
.me-nanny-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f0ee;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  flex: none;
  overflow: hidden;
}
.me-nanny-main { flex: 1; min-width: 0; }
.me-nanny-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.me-nanny-name {
  font-size: 17px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-nanny-job {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: #e8f3f1;
  border-radius: 999px;
  padding: 2px 8px;
}
.me-nanny-meta,
.me-nanny-staff {
  margin-top: 5px;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.45;
}
.me-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  border: 0;
  background: var(--teal);
  color: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}
.me-call svg {
  width: 16px;
  height: 16px;
}
.me-actions .btn { margin-top: 10px; }
.me-actions .btn.ghost { margin-top: 0; }
.me-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.me-sheet[hidden] { display: none !important; }
.me-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.me-sheet-box {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.me-sheet-box h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
.me-sheet-box input {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
}
.me-sheet-ops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.me-sheet-ops .btn { margin: 0; }
.me-set-box { padding-top: 18px; }
.me-set-avwrap {
  text-align: center;
  margin-bottom: 8px;
}
.me-set-avwrap p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #8e8e93;
}
.me-set-avbtn {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
}
.me-set-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #d9f0ec;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  border: 0;
}
.me-set-circle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.me-set-circle img[hidden],
.me-set-circle span[hidden] {
  display: none !important;
}
.me-set-circle span {
  line-height: 1;
  position: relative;
  z-index: 0;
}
.me-set-cam {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-sizing: border-box;
  z-index: 1;
}
.me-set-cam svg {
  width: 13px;
  height: 13px;
}
.me-set-lab {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #5b6563;
}
.me-pager {
  margin: 8px 0 4px;
  box-shadow: none;
  background: transparent;
  padding: 4px 0;
}
.gate-actions .btn {
  margin-top: 0;
  flex: 1;
  padding: 14px 12px;
  font-size: 16px;
  border-radius: 12px;
}
