/* Shared mobile UI for the applicant and developer public mounts. */
:root {
  --h5-width: 430px;
  --h5-header-height: 56px;
  --h5-ink: #18243b;
  --h5-muted: #758196;
  --h5-blue: #0260f8;
  --h5-line: #e5ebf4;
  --h5-soft: #f3f7ff;
  --h5-canvas: #f6f8fc;
  --h5-radius-card: var(--adm-radius-l, 16px);
  --h5-radius-control: var(--adm-radius-m, 12px);
  --h5-radius-small: var(--adm-radius-s, 8px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--h5-ink);
}

html {
  scroll-padding-top: calc(var(--h5-header-height) + env(safe-area-inset-top, 0px) + 16px);
}

.app.applicant-app,
.app.developer-app {
  max-width: var(--h5-width);
  padding-top: calc(var(--h5-header-height) + env(safe-area-inset-top, 0px));
  --ink: var(--h5-ink);
  --muted: var(--h5-muted);
  --line: var(--h5-line);
  --radius: var(--h5-radius-card);
  --blue: var(--h5-blue);
}

.app .topbar {
  height: 62px;
  padding-inline: 20px;
  border-bottom: 1px solid #edf1f7;
}

.app.applicant-app > .topbar,
.app.developer-app > .topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--h5-width);
  height: calc(var(--h5-header-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 0;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(211, 224, 243, .65);
  box-shadow: 0 4px 18px rgba(24, 49, 89, .04);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.app .brand { gap: 10px; min-width: 0; }
.app .brand img { width: 80px; height: 39px; object-fit: contain; flex: none; }
.app .brand-name { font-size: 11px; color: #68748a; letter-spacing: 0; font-weight: 500; }
.app .guide-link { min-height: 44px; font-size: 12px; color: #5b6f8e; }
.app .page-back { min-height: 44px; }
.app .page-back > a { min-height: 44px; }
.app h1 { letter-spacing: -.7px; }
.app h2 { font-size: 19px; line-height: 1.5; letter-spacing: -.4px; }
.app .subtitle, .app .footnote, .app .section-copy { color: var(--h5-muted); }
.app .footnote { font-size: 12px; line-height: 1.75; }
.app .btn,
.app .ui-full-button,
.app .ui-white-button {
  min-height: 48px;
  border-radius: var(--h5-radius-control);
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
}
.app .btn > svg,
.app .ui-full-button > svg,
.app .ui-white-button > svg { width: 15px; height: 15px; }
.app .btn.secondary { background: #fff; border-color: #d6e2f4; color: #075bde; }
.app .btn.small { min-height: 40px; font-size: 13px; }
.app .bottom-nav,
.app .sticky-action { max-width: var(--h5-width); }
.app .bottom-nav { border-color: var(--h5-line); box-shadow: 0 -5px 20px #16315b04; }
.app .bottom-nav a { min-height: 48px; font-size: 12px; color: #697a91; gap: 4px; }
.app .bottom-nav a.active { color: var(--h5-blue); }
.app .text-link { min-height: 40px; }
.app .field > span { font-size: 14px; color: #34465f; }
.app .field input,
.app .field select,
.app .field textarea { border-radius: var(--h5-radius-control); min-height: 48px; font-size: 16px; }
.app input::placeholder,
.app textarea::placeholder { color: #62748c; }
.app .panel,
.app .interview-card,
.app .followup-card,
.app .partner-card,
.app .next-card,
.app .workspace-clear { border-radius: var(--h5-radius-card); border-color: var(--h5-line); }
.app .person small { color: #60738e; }
.app .person strong { color: var(--h5-ink); }

/* Developer entry: a compact brand cover and a clear workspace entrance. */
.developer-app.page-access:has(.access-refresh) { background: #f6f8fc; padding-bottom: 22px; }
.developer-app .access-refresh { padding: 0; }
.access-cover {
  position: relative;
  overflow: hidden;
  min-height: 266px;
  margin: 0;
  padding: 27px var(--h5-page-padding, 16px) 48px;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(110deg, #104addde, #104bdf42), url('/miniapp-h5-v2/developer/assets/hero.webp') 58% 80% / auto 100%;
}
.access-eyebrow { display: flex; align-items: center; gap: 8px; color: #d5e5ff; font: 500 9px/1.5 Arial, sans-serif; letter-spacing: 1.7px; }
.access-eyebrow::before { content: ''; width: 15px; height: 2px; background: #8be5ff; }
.access-cover h1 { margin-top: 17px; color: #fff; font-size: clamp(24px, 7vw, 29px); font-weight: 700; line-height: 1.5; letter-spacing: -.6px; }
.access-cover > p { margin-top: 12px; color: #e4edff; font-size: 13px; line-height: 1.85; }
.access-cover-caption { display: block; margin-top: 20px; color: #c6dbff; font-size: 10px; letter-spacing: 1px; }
.access-entry {
  position: relative;
  margin: -24px 28px 0;
  padding: 22px 20px 18px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: var(--h5-radius-card);
  box-shadow: 0 8px 24px #203b7b09;
}
.access-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app .access-entry-heading h2 { font-size: 18px; line-height: 1.5; font-weight: 650; letter-spacing: -.5px; }
.access-entry-heading > span { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: #7f8ca2; white-space: nowrap; }
.access-entry > p { margin-top: 8px; color: #6e7b90; font-size: 12px; line-height: 1.8; }
.app .access-primary { position: relative; min-height: 50px; margin-top: 20px; border-radius: var(--h5-radius-control); background: #0960f2; border-color: #0960f2; font-size: 15px; font-weight: 600; box-shadow: 0 4px 12px #0960f212; }
.access-primary > svg { position: absolute; right: 17px; }
.access-entry-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 6px; margin-top: 11px; font-size: 11px; color: #6f7e94; }
.access-entry-footer button { display: inline-flex; align-items: center; gap: 2px; min-height: 30px; color: #526989; font-size: 11px; }
.access-tools { padding: 28px 26px 22px; }
.access-section-heading { margin-bottom: 20px; }
.app .access-section-heading h2 { font-size: 15px; color: #33405a; font-weight: 600; letter-spacing: 0; }
.access-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.access-capabilities li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.access-tool-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border: 1px solid #e5ecf9; border-radius: 13px; background: #edf3ff; color: #3173e3; }
.access-capabilities li strong { color: #45526a; font-size: 12px; font-weight: 500; }
.access-capabilities li > span:last-child { margin-top: 4px; font-size: 11px; color: #697a92; white-space: nowrap; }
.access-start { margin: 0 26px; border-top: 1px solid #e5eaf3; }
.access-start > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 57px; padding: 8px 0; color: #6c7c94; font-size: 12px; font-weight: 400; list-style: none; cursor: pointer; }
.access-start > summary::-webkit-details-marker { display: none; }
.access-start > summary > span { display: flex; align-items: center; gap: 8px; }
.access-start > summary > svg { transition: transform .2s; }
.access-start[open] > summary > svg { transform: rotate(90deg); }
.access-help-symbol { display: inline-flex; color: #8193af; }
.access-step-list { list-style: none; margin: 4px 0 0; padding: 0; }
.access-step-list .step { display: flex; position: relative; gap: 13px; margin: 0; padding: 0 0 19px; border: 0; }
.access-step-list .step:last-child { padding-bottom: 0; }
.access-step-list .step::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 1px; background: #dce5f2; }
.access-step-list .step:last-child::before { display: none; }
.access-step-list .step-index { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border: 1px solid #e0e8f6; border-radius: 50%; background: #fff; color: #7692ba; font: 500 10px Arial, sans-serif; }
.access-step-list .step-body { padding-top: 2px; }
.access-step-list .step-body strong { font-size: 13px; color: #52647e; font-weight: 500; }
.access-step-list .step-body p { margin-top: 3px; color: #65758d; font-size: 12px; line-height: 1.8; }
.access-help { margin: 16px 0 12px 40px; color: #65758d; font-size: 11px; line-height: 1.8; }
.developer-app.gated.has-action { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.developer-app.gated .sticky-action { padding: 12px 20px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 28px #15336105; }
.access-login-note { text-align: center; margin-top: 7px; font-size: 11px; line-height: 1.5; color: #60738e; }
.developer-app.page-login .access-intro { background: linear-gradient(135deg, #f4f8ff, #fff); }
.developer-app.page-login .access-intro h1 { font-size: 25px; line-height: 1.45; }
.developer-app.page-login .access-intro > p { color: #60728d; }
.developer-app.page-login .field { margin-top: 20px; }
.developer-app .captcha-field { gap: 10px; }
.developer-app .captcha-field button { min-height: 48px; border-radius: var(--h5-radius-control); }
.developer-app .captcha-field img { max-height: 46px; }

/* Applicant: the same blue cover, white surfaces and quiet reading scale. */
/* Section backgrounds follow content height; decorative images stay inside cards. */
.applicant-app.page-home { background: var(--h5-canvas); padding-bottom: calc(var(--h5-nav-height, 64px) + env(safe-area-inset-bottom)); }
.applicant-app .ui-hero { height: auto; min-height: 310px; margin: 0; border-radius: 0; overflow: hidden; padding: 27px var(--h5-page-padding, 16px) 24px; background-position: 57% bottom; }
.applicant-app .ui-hero h1 { font-size: 29px; line-height: 1.5; letter-spacing: -.6px; font-weight: 700; font-style: normal; }
.applicant-app .ui-hero p { margin-top: 14px; font-size: 14px; line-height: 1.8; color: #eef4ff; }
.applicant-app .ui-hero-eyebrow { font-size: 9px; letter-spacing: 1.7px; color: #d9e7ff; }
.applicant-app .ui-hero-actions { margin-top: 22px; gap: 20px; }
.applicant-app .ui-light-link { min-height: 44px; font-size: 13px; }
.applicant-app .ui-hero-cues { margin-top: 25px; padding-top: 16px; color: #e1ecff; }
.applicant-app .ui-home-modes { padding: 28px 20px; background: var(--h5-canvas); }
.applicant-app .ui-home-support,
.applicant-app .ui-joining-section { padding: 27px 24px; background: var(--adm-color-background, #fff); }
.applicant-app .ui-meeting-section { background: var(--adm-color-background, #fff); }
.applicant-app .ui-meeting-card { border-radius: 0; padding: 24px var(--h5-page-padding, 16px); }
.applicant-app .ui-home-modes > .ui-overline,
.applicant-app .ui-home-support > .ui-overline,
.applicant-app .ui-joining-section > .ui-overline { display: none; }
.applicant-app .ui-home-modes .ui-section-heading { padding-inline: 3px; margin-bottom: 20px; }
.applicant-app .ui-home-modes h2 { font-size: 20px; font-weight: 650; }
.applicant-app .ui-section-copy { color: #6d7d92; font-size: 13px; }
.applicant-app .ui-overline { color: #4b6c9c; }
.applicant-app .ui-mode-grid { gap: 10px; }
.applicant-app .ui-mode-card { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; border-radius: var(--h5-radius-card); border-color: #fff; background: #fff; min-height: 128px; padding: 16px 16px 12px; }
.applicant-app .ui-mode-card:not(.ui-wide) { grid-template-rows: 52px 1fr; min-height: 112px; padding-bottom: 16px; }
.applicant-app .ui-mode-card > strong { display: block; position: relative; z-index: 1; max-width: none; padding-right: 0; font-size: 16px; line-height: 24px; color: #29374e; font-weight: 600; white-space: normal; text-wrap: balance; }
.applicant-app .ui-mode-card:not(.ui-wide) > strong { align-self: center; padding-right: 56px; }
.applicant-app .ui-mode-card > span { display: block; position: relative; z-index: 1; max-width: none; margin: 0; color: #6b7a92; font-size: 12px; line-height: 1.8; text-wrap: pretty; }
.applicant-app .ui-mode-card > img { width: 64px; height: 64px; right: 8px; top: 8px; bottom: auto; transform: none; }
.applicant-app .ui-mode-card > .ui-mode-description { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; }
.applicant-app .ui-mode-description > span { flex: 1; min-width: 0; }
.applicant-app .ui-mode-description > svg { flex: none; width: 14px; height: 14px; margin-bottom: 4px; color: #7d9cc6; }
.applicant-app .ui-mode-card.ui-wide { display: flex; min-height: 86px; padding: 18px 17px 18px 77px; gap: 0; flex-wrap: wrap; align-content: center; }
.applicant-app .ui-mode-card.ui-wide > img { position: absolute; width: 48px; height: 48px; left: 14px; right: auto; top: 17px; bottom: auto; }
.applicant-app .ui-mode-card.ui-wide > strong { width: 100%; font-size: 15px; }
.applicant-app .ui-mode-card.ui-wide > span { max-width: none; margin-top: 3px; font-size: 12px; }
.applicant-app .ui-mode-card.ui-wide > svg { position: absolute; right: 17px; top: 36px; color: #7d9cc6; }
.applicant-app .ui-mode-card:active { background: #f0f6ff; border-color: #d8e7ff; }
.applicant-app .ui-support-row h3 { color: #253b5b; }
.applicant-app .ui-support-row,
.applicant-app .ui-income-strip { background: var(--adm-color-background, #fff); }
.applicant-app .ui-income-strip { padding: 16px; border: 1px solid var(--h5-line); }
.applicant-app .ui-support-row p,
.applicant-app .ui-income-strip p { color: #687c96; }
.applicant-app .ui-income-strip { border-radius: var(--h5-radius-card); }
.applicant-app .ui-guide-item p,
.applicant-app .ui-guide-top p { color: #657995; }
.applicant-app .ui-form-field input { font-size: 16px; border-radius: var(--h5-radius-control); }
.applicant-app .ui-upload-box { border-radius: var(--h5-radius-control); }

@media (max-width: 350px) {
  .app .topbar { padding-inline: 16px; }
  .app .brand { gap: 7px; }
  .app .brand img { width: 76px; height: 39px; }
  .app .brand-name { padding-left: 7px; font-size: 11px; }
  .app .guide-link { font-size: 11px; gap: 4px; }
  .access-cover h1 { font-size: 24px; }
  .access-entry { margin-inline: 22px; padding-inline: 16px; }
  .access-entry-heading > span { display: none; }
  .access-tools { padding-inline: 20px; }
  .access-start { margin-inline: 20px; }
  .access-entry-footer { justify-content: center; text-align: center; }
  .access-entry-footer > span { width: 100%; }
  .applicant-app .ui-hero h1 { font-size: 26px; }
  .applicant-app .ui-hero-actions { gap: 13px; }
  .applicant-app .ui-mode-card { padding-inline: 12px; }
  .applicant-app .ui-mode-card:not(.ui-wide) > img { width: 56px; height: 56px; right: 6px; }
  .applicant-app .ui-mode-card > strong { font-size: 15px; }
  .applicant-app .ui-mode-card:not(.ui-wide) > strong { padding-right: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .access-start > summary > svg { transition: none; }
}

/* Approved glass banner backgrounds; copy and actions remain real controls. */
.app .h5-glass-hero {
  color: var(--h5-ink);
  background-color: #eaf1ff;
  background-repeat: no-repeat;
}
.app .h5-glass-hero::before { content: none; }
.app .h5-glass-hero h1 { color: var(--h5-ink); text-shadow: none; }
.app .h5-glass-hero > p { color: #526782; }

.app.applicant-app .ui-hero.h5-glass-hero--partner,
.app.developer-app .access-cover.h5-glass-hero--developer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 260px;
  padding: 20px 24px;
}
.app.applicant-app .h5-glass-hero--partner h1,
.app.developer-app .h5-glass-hero--developer h1 {
  margin-top: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.5px;
}
.app.applicant-app .h5-glass-hero--partner > p,
.app.developer-app .h5-glass-hero--developer > p {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
}
.app.applicant-app .ui-hero.h5-glass-hero--partner {
  background-image: url('/miniapp-h5-v2/applicant/assets/banner-glass-20261116.webp');
  background-size: 300px auto;
  background-position: right -24px bottom;
}
.app.applicant-app .h5-glass-hero--partner .ui-hero-actions {
  flex-direction: column;
  align-items: stretch;
  width: 160px;
  gap: 4px;
  margin-top: 20px;
}
.app.applicant-app .h5-glass-hero--partner .btn {
  flex: none;
  background: var(--h5-blue);
  color: #fff;
  box-shadow: 0 4px 12px #0260f81a;
}
.app.developer-app .access-cover.h5-glass-hero--developer {
  padding-bottom: 28px;
  background-image: url('/miniapp-h5-v2/developer/assets/banner-platform-20261116.webp');
  background-size: 260px auto;
  background-position: right 4px bottom 18px;
}
.app.developer-app .h5-glass-hero--developer > p { max-width: 180px; }

@media (max-width: 360px) {
  .app.applicant-app .h5-glass-hero--partner h1,
  .app.developer-app .h5-glass-hero--developer h1 { font-size: 24px; }
  .app.applicant-app .ui-hero.h5-glass-hero--partner { padding-inline: 16px; background-size: 240px auto; background-position: right -14px bottom; }
  .app.applicant-app .h5-glass-hero--partner .ui-hero-actions { width: 148px; }
  .app.developer-app .access-cover.h5-glass-hero--developer {
    padding-inline: 16px;
    background-size: 230px auto;
    background-position: right -4px bottom 18px;
  }
  .app.developer-app .h5-glass-hero--developer > p { max-width: 160px; }
}

/* Same-level surfaces share a radius across both H5 applications. */
.applicant-app .ui-support-row,
.applicant-app .ui-income-strip,
.developer-app .desk-invite {
  border-radius: var(--h5-radius-card);
}
.applicant-app .ui-support-icon,
.developer-app .access-tool-icon {
  border-radius: var(--h5-radius-small);
}
