/* Silver constellation entry shared with the original landing page. */
.entry-shell{--pe-silver:#e6ebee;--pe-ink:#27373d;--pe-muted:#53646d;--pe-rule:#c6d0d5;--pe-accent:#9c4839;--pe-serif:"Songti SC","Noto Serif CJK SC",STSong,serif;position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;min-height:calc(100svh - 45px);margin:0;overflow:hidden;background:var(--pe-silver);color:var(--pe-ink);font:14px/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.entry-shell *{box-sizing:border-box}.entry-shell a{color:inherit;text-decoration:none}.entry-shell button{font:inherit;cursor:pointer}.entry-shell a:focus-visible,.entry-shell button:focus-visible{outline:3px solid #824437;outline-offset:4px}.entry-shell .entry-skip{position:absolute;top:-100px;left:20px;z-index:5;padding:10px 14px;background:#fcfaf6;border:1px solid var(--pe-accent);border-radius:5px}.entry-shell .entry-skip:focus{top:12px}
.entry-shell .entry-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 clamp(24px,5.5vw,88px);padding:25px 0 22px;border-bottom:1px solid var(--pe-rule)}.entry-shell .entry-brand{display:flex;align-items:center;gap:12px;font-size:27px;line-height:1.3;font-weight:650;letter-spacing:.05em}.entry-shell .entry-brand-mark{display:grid;place-items:center;width:42px;height:44px;background:linear-gradient(145deg,#aa5b4b,#924333);border:1px solid #9c594b;border-radius:10px;color:#fffaf4;font:600 25px/1 var(--pe-serif);box-shadow:inset 0 1px 0 #c58c7c,0 2px 3px rgb(84 48 35 / 12%)}.entry-shell .entry-brand small{display:block;margin-top:4px;color:var(--pe-muted);font-size:10px;line-height:1.5;font-weight:400;letter-spacing:.12em}.entry-shell .entry-header-actions{display:flex;align-items:center;gap:12px}.entry-shell .entry-header-link{display:inline-flex;min-height:44px;min-width:52px;align-items:center;justify-content:center;font-size:13px;letter-spacing:.04em;border-radius:6px;padding:9px 14px}.entry-shell .entry-header-register{border:1px solid #9fadb4;background:rgb(252 250 246 / 46%)}.entry-shell .entry-header-link[aria-current="page"]{color:#8b4033;box-shadow:inset 0 -2px 0 #9c4839}.entry-shell .entry-header-link:hover{background:#f4f5f1}
.entry-shell .entry-main{position:relative;z-index:1;flex:1;display:flex;align-items:center;min-height:520px;padding:60px clamp(24px,5.5vw,88px) 74px}.entry-shell .entry-copy{position:relative;width:min(620px,49%);padding:15px 0 25px}.entry-shell .entry-eyebrow{display:flex;align-items:center;gap:14px;color:var(--pe-muted);font-size:10px;line-height:1.5;letter-spacing:.24em;margin:0 0 28px}.entry-shell .entry-eyebrow>span{display:inline-block;flex-shrink:0;width:28px;height:1px;background:var(--pe-accent)}.entry-shell .entry-copy h1{font-family:var(--pe-serif);font-weight:500;font-size:clamp(42px,4.4vw,68px);line-height:1.4;letter-spacing:-.035em;margin:0}.entry-shell .entry-copy h1>span{color:var(--pe-accent)}.entry-shell .entry-description{font-size:13px;line-height:2.1;letter-spacing:.055em;color:var(--pe-muted);margin:29px 0 0}.entry-shell .entry-actions{display:flex;align-items:center;gap:18px;margin-top:32px}.entry-shell .entry-primary,.entry-shell .entry-secondary{display:inline-flex;align-items:center;justify-content:space-between;gap:36px;min-height:48px;padding:11px 23px;border-radius:7px;font-size:13px;line-height:1.7;font-weight:600;transition:background-color 150ms ease,box-shadow 150ms ease,transform 150ms ease}.entry-shell .entry-primary{min-width:148px;background:linear-gradient(180deg,#af5948,#984334);border:1px solid #8a3e31;color:#fffaf4;box-shadow:inset 0 1px 0 rgb(255 226 205 / 35%),0 3px 0 #793a30,0 6px 12px rgb(115 59 44 / 12%)}.entry-shell .entry-primary:hover{background:linear-gradient(180deg,#a54e3e,#8e3c2f)}.entry-shell .entry-primary:active{transform:translateY(2px);box-shadow:inset 0 1px 2px rgb(64 24 18 / 12%),0 1px 0 #70352c}.entry-shell .entry-secondary{min-width:115px;border:1px solid #a5b4bc;color:#33494f;background:rgb(252 250 246 / 35%);box-shadow:inset 0 1px 0 rgb(255 255 255 / 50%)}.entry-shell .entry-secondary:hover{background:#f6f6f2}.entry-shell .entry-preview-note{font-size:10px;letter-spacing:.08em;line-height:1.7;color:#53646d;margin:22px 0 0}.entry-shell .entry-field-caption{position:absolute;right:7%;bottom:70px;display:grid;grid-template-columns:auto auto;gap:1px 20px;color:#68757b;font:11px/1.9 var(--pe-serif);letter-spacing:.16em;pointer-events:none}.entry-shell .entry-field-caption>small{grid-column:2;grid-row:1/3;align-self:center;font:9px/1.6 -apple-system,sans-serif;letter-spacing:.15em}
.entry-shell .entry-field{position:absolute;inset:0;z-index:0;pointer-events:none;mask-image:linear-gradient(90deg,transparent 18%,#0003 42%,#000 58%);-webkit-mask-image:linear-gradient(90deg,transparent 18%,#0003 42%,#000 58%)}.entry-shell .entry-field canvas{display:block;width:100%;height:100%}.entry-shell .entry-footer{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 clamp(24px,5.5vw,88px);padding:16px 0 22px;border-top:1px solid var(--pe-rule);color:#53646d;font-size:11px;letter-spacing:.04em}.entry-shell .entry-footer p{margin:0}.entry-shell .entry-motion-control{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #a5b5bd;border-radius:6px;background:rgb(252 250 246 / 35%);color:#40555e;padding:9px 13px;font-size:11px;line-height:1.4;white-space:nowrap}.entry-shell .entry-motion-control:hover{background:#f8f8f3}.entry-shell .entry-motion-control:disabled{opacity:1;cursor:default;color:#53636e}
.entry-shell .entry-account-main{min-height:540px;padding-top:38px;padding-bottom:45px}.entry-shell .entry-account{position:relative;width:min(440px,49%);padding:28px 30px;background:#fcfaf6;border:1px solid #cbd1d1;border-top:3px solid #a45b4b;border-radius:12px;box-shadow:inset 0 1px 0 #fff,0 15px 35px rgb(39 55 61 / 6%)}.entry-shell .entry-back{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:#53656b;margin:-12px 0 20px}.entry-shell .entry-account .entry-eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:12px}.entry-shell .entry-account h1{font:500 35px/1.4 var(--pe-serif);margin:0 0 12px;letter-spacing:.03em}.entry-shell .entry-account-intro{font-size:13px;line-height:1.8;margin:0 0 23px;color:var(--pe-muted)}.entry-shell .entry-demo-account{display:flex;align-items:center;gap:12px;padding:16px;background:#edf0ed;border:1px solid #d5dcda;border-radius:8px}.entry-shell .entry-demo-avatar{display:grid;place-items:center;width:42px;height:44px;border-radius:9px;background:#dde6e1;color:#3d5b55;font:500 22px var(--pe-serif)}.entry-shell .entry-demo-account strong,.entry-shell .entry-demo-account div>span{display:block}.entry-shell .entry-demo-account strong{font-size:16px;line-height:1.5}.entry-shell .entry-demo-account div>span{font-size:11px;color:#586a6d;margin-top:3px}.entry-shell .entry-account-note{font-size:12px;line-height:1.85;color:#53666b;margin:19px 0 23px}.entry-shell .entry-account-enter{width:100%;gap:10px}.entry-shell .entry-switch{font-size:12px;line-height:1.8;color:#5b6c70;margin:22px 0 0}.entry-shell .entry-switch a{display:inline-flex;align-items:center;min-height:44px;color:#844436;text-decoration:underline;text-underline-offset:4px}
@media(max-width:900px) and (min-width:601px){.entry-shell .entry-copy{width:55%}.entry-shell .entry-copy h1{font-size:clamp(37px,5.1vw,48px)}.entry-shell .entry-account{width:55%;padding:25px}.entry-shell .entry-main{min-height:520px}}
@media(max-width:600px){.entry-shell{min-height:calc(100svh - 50px)}.entry-shell .entry-header{margin:0 20px;padding:17px 0 15px;gap:12px}.entry-shell .entry-brand{font-size:23px;gap:9px}.entry-shell .entry-brand-mark{width:34px;height:36px;border-radius:8px;font-size:22px}.entry-shell .entry-brand small{font-size:9px;letter-spacing:.06em}.entry-shell .entry-header-actions{gap:4px}.entry-shell .entry-header-link{min-width:43px;font-size:12px;padding:8px 10px}.entry-shell .entry-main{align-items:start;min-height:570px;padding:38px 24px 175px}.entry-shell .entry-copy{width:100%;padding:0}.entry-shell .entry-eyebrow{font-size:9px;letter-spacing:.2em;margin-bottom:22px;gap:12px}.entry-shell .entry-eyebrow>span{width:24px}.entry-shell .entry-copy h1{font-size:clamp(33px,9.7vw,45px);line-height:1.46;letter-spacing:-.045em}.entry-shell .entry-description{margin-top:20px;font-size:12px;line-height:2}.entry-shell .entry-actions{gap:14px;margin-top:27px}.entry-shell .entry-primary,.entry-shell .entry-secondary{min-height:48px;padding:10px 19px;gap:27px;font-size:12px}.entry-shell .entry-primary{min-width:132px}.entry-shell .entry-secondary{min-width:102px}.entry-shell .entry-preview-note{font-size:10px;margin-top:20px;letter-spacing:.04em}.entry-shell .entry-field-caption{right:24px;bottom:24px;font-size:10px;gap:1px 12px}.entry-shell .entry-field-caption>small{font-size:8px}.entry-shell .entry-field{mask-image:linear-gradient(180deg,transparent 26%,#0001 44%,#000 65%);-webkit-mask-image:linear-gradient(180deg,transparent 26%,#0001 44%,#000 65%)}.entry-shell .entry-footer{margin:0 20px;padding:11px 0 14px;gap:12px;font-size:10px;line-height:1.65}.entry-shell .entry-motion-control{font-size:10px;padding:9px 10px}.entry-shell .entry-account-main{padding:28px 20px 95px;min-height:570px}.entry-shell .entry-account{width:100%;padding:23px 22px}.entry-shell .entry-account h1{font-size:31px}.entry-shell .entry-account .entry-eyebrow{font-size:9px}.entry-shell .entry-account-intro{font-size:12px}.entry-shell .entry-account-enter{font-size:13px;gap:8px}.entry-shell[data-entry-mode="login"] .entry-field,.entry-shell[data-entry-mode="register"] .entry-field{opacity:.45}}
@media(max-width:359px){.entry-shell .entry-header{margin-inline:16px}.entry-shell .entry-brand{font-size:21px}.entry-shell .entry-brand small{font-size:8px}.entry-shell .entry-header-link{font-size:11px;min-width:40px;padding-inline:8px}.entry-shell .entry-main{padding-inline:21px}.entry-shell .entry-copy h1{font-size:33px}.entry-shell .entry-actions{gap:12px}.entry-shell .entry-primary{min-width:125px}.entry-shell .entry-secondary{min-width:99px}.entry-shell .entry-primary,.entry-shell .entry-secondary{padding-inline:16px}.entry-shell .entry-account-main{padding-inline:16px}.entry-shell .entry-account{padding-inline:20px}.entry-shell .entry-account-enter{font-size:12px}.entry-shell .entry-footer{margin-inline:16px}}
@media(prefers-reduced-motion:reduce){.entry-shell .entry-primary,.entry-shell .entry-secondary{transition:none}.entry-shell .entry-primary:active{transform:none}}
@media print{.entry-shell .entry-field,.entry-shell .entry-header-actions,.entry-shell .entry-motion-slot{display:none}.entry-shell{background:#fff;min-height:0}.entry-shell .entry-main{min-height:0}}
/* Candidate04: the field owns the first screen; a single account pair rests at lower left. */
.entry-shell .entry-main{max-width:none;margin:0;width:100%}
.entry-shell[data-entry-mode="welcome"]{min-height:100svh}
.entry-shell[data-entry-mode="welcome"] .entry-header{position:absolute;top:0;left:0;right:0;border:0;padding-top:28px}
.entry-shell[data-entry-mode="welcome"] .entry-main{position:relative;display:block;flex:none;height:100svh;min-height:720px;padding:0}
.entry-shell[data-entry-mode="welcome"] .entry-copy{position:absolute;left:clamp(36px,5.5vw,88px);bottom:76px;width:min(470px,42%);padding:0}
.entry-shell[data-entry-mode="welcome"] .entry-eyebrow{margin-bottom:16px;font-size:9px}
.entry-shell[data-entry-mode="welcome"] .entry-copy h1{font-size:clamp(34px,3.2vw,48px);line-height:1.45;letter-spacing:-.03em}
.entry-shell[data-entry-mode="welcome"] .entry-description{margin-top:18px;font-size:12px;line-height:1.9}
.entry-shell[data-entry-mode="welcome"] .entry-actions{margin-top:24px}
.entry-shell[data-entry-mode="welcome"] .entry-preview-note{margin-top:15px;font-size:10px}
.entry-shell[data-entry-mode="welcome"] .entry-field-caption{right:7%;bottom:31%;opacity:.8}
.entry-shell[data-entry-mode="welcome"] .entry-field{mask-image:linear-gradient(90deg,#0004 0%,#000 40%);-webkit-mask-image:linear-gradient(90deg,#0004 0%,#000 40%)}
.entry-shell[data-entry-mode="welcome"] .entry-footer{position:absolute;bottom:0;left:0;right:0;border:0;padding-bottom:18px;font-size:10px}
.entry-shell[data-entry-mode="welcome"] .entry-motion-control{background:rgb(246 248 246 / 70%);font-size:10px}
@media(max-width:600px){
 .entry-shell[data-entry-mode="welcome"] .entry-header{margin:0 22px;padding-top:20px}
 .entry-shell[data-entry-mode="welcome"] .entry-main{height:100svh;min-height:740px}
 .entry-shell[data-entry-mode="welcome"] .entry-copy{left:24px;bottom:calc(72px + env(safe-area-inset-bottom,0px));width:calc(100% - 48px)}
 .entry-shell[data-entry-mode="welcome"] .entry-eyebrow{font-size:8px;margin-bottom:12px}
 .entry-shell[data-entry-mode="welcome"] .entry-copy h1{font-size:clamp(28px,8vw,34px);line-height:1.4}
 .entry-shell[data-entry-mode="welcome"] .entry-description{font-size:11px;line-height:1.8;margin-top:13px}
 .entry-shell[data-entry-mode="welcome"] .entry-actions{margin-top:20px;gap:14px}
 .entry-shell[data-entry-mode="welcome"] .entry-preview-note{font-size:9px;margin-top:13px}
 .entry-shell[data-entry-mode="welcome"] .entry-field{mask-image:linear-gradient(180deg,#000 0%,#000 48%,#0001 64%,transparent 76%);-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 48%,#0001 64%,transparent 76%)}
 .entry-shell[data-entry-mode="welcome"] .entry-field-caption{right:22px;top:42%;bottom:auto;font-size:9px}
 .entry-shell[data-entry-mode="welcome"] .entry-footer{margin:0 22px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));font-size:9px}
}

body.is-unauthenticated,
body.is-onboarding {
  background: #e6ebee;
  color: #27373d;
}

.is-unauthenticated .site-header,
.is-unauthenticated #workspace,
.is-onboarding .site-header,
.is-onboarding #workspace {
  display: none;
}

#auth-section.entry-shell { min-height: 100svh; }
.entry-shell .entry-main[hidden] { display: none; }

.entry-shell .entry-primary,
.entry-shell .entry-secondary {
  white-space: nowrap;
}

.entry-shell .entry-actions .entry-primary { gap: 0.75rem; }

.entry-shell .entry-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-block-end: 1.2rem;
  padding: 0.2rem;
  border: 1px solid #d3dcdf;
  border-radius: 8px;
  background: #eaf0ef;
}

.entry-shell .entry-auth-tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--pe-muted);
}

.entry-shell .entry-auth-tabs button[aria-pressed="true"] {
  border-color: #d9c9c2;
  background: #fcfaf6;
  color: #884035;
  font-weight: 650;
  box-shadow: 0 1px 4px rgb(39 55 61 / 8%);
}

.entry-shell .entry-account .field {
  display: grid;
  gap: 0.25rem;
  color: var(--pe-ink);
  font-size: 0.84rem;
}

.entry-shell .entry-account input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #aab9be;
  border-radius: 6px;
  color: var(--pe-ink);
  background: #fffdf8;
  font-size: 1rem;
}

.entry-shell .entry-account input:focus-visible {
  outline: 2px solid var(--pe-accent);
  outline-offset: 2px;
}

.entry-shell .entry-invite-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  padding: 0.4rem 0;
  background: transparent;
  color: var(--pe-muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.entry-shell #auth-form .entry-primary {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.entry-shell[data-entry-mode="login"] .entry-main,
.entry-shell[data-entry-mode="register"] .entry-main {
  min-height: 540px;
  padding-block: 38px 45px;
}

.entry-shell .entry-back:hover { text-decoration: underline; }
.entry-shell .entry-account .form-status { margin: 0; }

.onboarding-screen {
  --onboarding-accent: #9c4839;
  --onboarding-rule: #c6d0d5;
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: 100svh;
  padding: clamp(1rem, 4vw, 3rem);
  background: #e6ebee;
  color: #27373d;
}

.onboarding-card {
  width: min(100%, 38rem);
  padding: clamp(1.25rem, 4vw, 2.2rem);
  border: 1px solid var(--onboarding-rule);
  border-top: 3px solid var(--onboarding-accent);
  border-radius: 12px;
  background: #fcfaf6;
  box-shadow: 0 12px 30px rgb(39 55 61 / 7%);
}

.onboarding-card h1,
.onboarding-card h2 {
  margin-block: 0.65rem 1.25rem;
  font: 500 clamp(1.65rem, 3vw, 2.1rem)/1.35 var(--serif);
}

.onboarding-progress {
  display: block;
  width: 100%;
  height: 0.35rem;
  margin-block: 0.55rem;
  accent-color: var(--onboarding-accent);
}

.onboarding-form, .onboarding-fields {
  display: grid;
  gap: 0.9rem;
}

.onboarding-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onboarding-form .field { min-width: 0; font-size: 0.875rem; }
.onboarding-relationship { grid-column: 1 / -1; }

.onboarding-step {
  font-size: 0.78rem;
  color: #53646d;
}

.onboarding-choices {
  min-width: 0;
  padding: 0;
  border: 0;
}

.onboarding-choices legend {
  padding: 0;
  margin-block-end: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.onboarding-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
}

.onboarding-pills label { position: relative; cursor: pointer; }
.onboarding-pills input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.onboarding-pills label > span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.3rem 0.95rem;
  border: 1px solid #aab9be;
  border-radius: 99px;
  background: #fffdf8;
  color: #27373d;
  font-size: 0.85rem;
}

.onboarding-pills input:checked + span {
  border-color: var(--onboarding-accent);
  color: #7c392c;
  background: #f5e9e2;
  font-weight: 650;
}

.onboarding-pills input:focus-visible + span {
  outline: 2px solid var(--onboarding-accent);
  outline-offset: 2px;
}

.onboarding-leap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: #53646d;
  font-size: 0.83rem;
  cursor: pointer;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding-top: 0.5rem;
}

.onboarding-actions .form-status { flex-basis: 100%; }

.onboarding-actions button {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 7px;
  font: inherit;
}

.onboarding-actions .onboarding-primary {
  border: 1px solid #883d30;
  background: linear-gradient(#a75343, #914034);
  color: #fffaf4;
  font-weight: 650;
}

.onboarding-actions .onboarding-skip {
  border: 0;
  background: transparent;
  color: #53646d;
}

.onboarding-skip:hover { text-decoration: underline; }

.onboarding-toast {
  position: fixed;
  z-index: 10;
  right: clamp(1rem, 4vw, 2.25rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  border: 1px solid #c4d6ca;
  border-radius: 8px;
  background: #eff5ee;
  box-shadow: 0 6px 24px rgb(39 55 61 / 15%);
  color: #345642;
}

@media (max-width: 900px) {
  .entry-shell .entry-actions .entry-primary,
  .entry-shell .entry-actions .entry-secondary {
    gap: 0.65rem;
    padding-inline: 0.85rem;
  }
}

@media (max-width: 639px) {
  .onboarding-actions {
    position: sticky;
    z-index: 2;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding-block: 0.55rem max(0.25rem, env(safe-area-inset-bottom));
    margin-block-end: -0.5rem;
    background: #fcfaf6;
    box-shadow: 0 -6px 10px #fcfaf6;
  }
}

@media (max-width: 600px) {
  .entry-shell[data-entry-mode="login"] .entry-main,
  .entry-shell[data-entry-mode="register"] .entry-main {
    min-height: 0;
    padding: 28px 20px 36px;
  }
}

@media (max-width: 359px) {
  .entry-shell[data-entry-mode="welcome"] .entry-actions { gap: 0.45rem; }
  .entry-shell .entry-actions .entry-primary,
  .entry-shell .entry-actions .entry-secondary {
    min-width: 0;
    gap: 0.45rem;
    padding-inline: 0.65rem;
    font-size: 11px;
  }

  .onboarding-pills label > span { padding-inline: 0.65rem; }
}
