/* Membership starts on a single branded surface at every viewport width. */
body.machine-shop:has(.auth-scene) {background:#04252a}
.machine-shop .cabinet.member-scene.auth-scene {
  --display:"Kuji Display","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --auth-ink:#effcf5;--auth-muted:#b8d3c9;--auth-line:#46726b;--auth-mint:#abf6cb;
  width:100%;max-width:none;height:100dvh;max-height:none;color-scheme:dark;color:var(--auth-ink);box-shadow:none;
  background:radial-gradient(ellipse at 50% 29%,#12504a 0%,#093a3a 32%,#042a2f 62%,#03232a 100%);
  font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
}
.machine-shop .auth-scene.ime-open {height:var(--ime-height,100dvh)}
.auth-scene .drawer-page {isolation:isolate}
.auth-scene .drawer-page::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:radial-gradient(#b7edce20 .7px,transparent .9px);background-size:6px 6px;
  mask-image:radial-gradient(ellipse at 50% 25%,#000,transparent 65%);
}
.auth-top {flex:none;position:relative;height:calc(56px + env(safe-area-inset-top))}
.machine-shop .auth-scene .drawer-page > button.drawer-key:not(.paper):not(#pages button),
.machine-shop .auth-scene .member-drawer > button.drawer-key:not(.paper):not(#pages button) {
  top:calc(8px + env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:auto;background:#063335;
  color:#d3eae0;border:1px solid #45746d;box-shadow:none;border-radius:50%;
}
.auth-back {position:absolute;right:max(16px,env(safe-area-inset-right));top:calc(8px + env(safe-area-inset-top));
  display:grid;place-items:center;width:44px;height:44px;color:#def7ed;border:1px solid var(--auth-line);border-radius:50%}
.auth-back .icon {transform:rotate(180deg)}
.machine-shop .cabinet.auth-scene .screen {
  padding:0 max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));
  background:none;scrollbar-color:#4c776d transparent;scrollbar-gutter:auto
}
.auth-flow {width:min(100%,368px);margin-inline:auto;display:flex;flex-direction:column}
.auth-entry .auth-flow {min-height:100%;justify-content:center;gap:clamp(58px,11svh,110px);padding-block:20px clamp(32px,10svh,100px)}
.auth-wordmark {display:flex;align-items:center;justify-content:center;gap:8px;flex:none;line-height:1}
.auth-wordmark img {width:clamp(136px,26vw,172px);height:auto}
.auth-wordmark span {
  color:#effff3;font:900 clamp(40px,8vw,52px)/1 var(--display);letter-spacing:-.085em;padding-right:.085em;
  transform:skewX(-6deg);text-shadow:0 2px 0 #1d6d55;
}
.auth-actions {display:grid;gap:18px;min-width:0}
.auth-entry .social-methods {gap:16px;margin:0}
.auth-entry .social-method-heading {display:block;color:var(--auth-muted);font-size:14px;font-weight:550}
.auth-entry .social-method-heading::before,.auth-entry .social-method-heading::after {display:none}
.auth-entry .social-icon-row {gap:18px}
.auth-entry .social-icon {width:58px;height:58px;box-shadow:0 3px 10px #00181745;transition:transform .13s}
.auth-entry .social-icon-google {border-color:#d8e6dc}
.auth-entry .social-icon[href]:hover {transform:translateY(-2px)}
.auth-entry .auth-brand {width:27px;height:27px}
.auth-divider {display:flex;align-items:center;gap:12px;color:var(--auth-muted);font-size:12px}
.auth-divider::before,.auth-divider::after {content:"";flex:1;height:1px;background:var(--auth-line)}
.auth-email {
  display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:10px 20px;
  border:1px solid #c7ffde;border-radius:12px;background:var(--auth-mint);color:#073d31;
  font-weight:750;font-size:16px;box-shadow:inset 0 1px #eafff0,0 3px 0 #206c55;
}
.auth-email:hover {background:#c3ffdc}
.auth-form .auth-flow {padding-top:clamp(12px,4svh,40px);padding-bottom:24px;gap:clamp(24px,4svh,40px);width:min(100%,420px)}
.auth-form .auth-wordmark img {width:124px}
.auth-form .auth-wordmark span {font-size:37px}
.auth-scene.ime-open .auth-wordmark {display:none}
.email-tabs {display:grid;grid-template-columns:1fr 1fr;padding:4px;background:#052b2e;border:1px solid var(--auth-line);border-radius:12px}
.email-tabs a {display:grid;place-items:center;min-height:43px;border-radius:8px;color:#bdd6cd;font-weight:650}
.email-tabs a[aria-current=page] {background:#b4f4d2;color:#123e32}
.machine-shop .auth-form .sheet {padding:20px;border:1px solid #37635e;border-radius:14px;background:#0b353a;color:var(--auth-ink);box-shadow:none}
.machine-shop .auth-form .sheet :is(h2,legend,label),.machine-shop .auth-form .postcode-dialog h2 {color:var(--auth-ink)}
.machine-shop .auth-form :is(small,.member-tools a,summary,.sheet a,.auth-return,.member-download) {color:#c6e4d7}
.auth-return {justify-self:center;display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:.24em}
.auth-form .check {line-height:1.45}
.auth-form #login-replacement[open]:not(:modal) {position:static;width:100%;margin:0}
.auth-form #login-replacement:modal {position:fixed;inset:0;margin:auto;max-height:85dvh;overflow:auto}
.auth-form .recovery-links {gap:18px}
@media(max-height:530px) {
  .auth-entry .auth-flow {gap:28px;padding-block:12px 24px}
  .auth-entry .social-methods {gap:8px}
}
@media(prefers-reduced-motion:reduce) {
  .auth-entry .social-icon {transition:none}
}
