/* The sign-up sheet (client/src/account.ts) on the home page and on /auth/google/. Same ink-and-paper
   look as the Locker; the colours fall back for pages without the home page's tokens. */
dialog.signup {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px 22px 18px;
  border: 3px solid var(--ink, #15111c);
  background: var(--paper, #fff4dc);
  box-shadow: 6px 6px 0 var(--ink, #15111c);
  color: var(--ink, #15111c);
  font: 600 15px/1.4 var(--head, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}
dialog.signup::backdrop {
  background: rgb(21 17 28 / 0.55);
}
dialog.signup.busy {
  cursor: progress;
}
.signup h2 {
  margin: 0 36px 6px 0;
  font: 900 24px/1.1 inherit;
  font-family: inherit;
  text-transform: uppercase;
}
.signup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 3px solid var(--ink, #15111c);
  background: var(--yellow, #ffd23f);
  box-shadow: 3px 3px 0 var(--ink, #15111c);
  color: inherit;
  font: 900 15px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}
.signup-lead {
  margin: 0 0 14px;
  color: var(--ink-soft, #4a4252);
}
.signup-label {
  display: block;
  margin: 4px 0 6px;
  font-weight: 900;
}
.signup-year,
.signup-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 3px solid var(--ink, #15111c);
  background: #fffbe9;
  color: inherit;
  font: 700 18px inherit;
  font-family: inherit;
}
.signup-code {
  font-size: 28px;
  letter-spacing: 0.4em;
  text-align: center;
}
.signup .btn {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 11px 14px;
  border: 3px solid var(--ink, #15111c);
  background: var(--yellow, #ffd23f);
  box-shadow: 4px 4px 0 var(--ink, #15111c);
  color: var(--ink, #15111c);
  font: 900 16px inherit;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.signup .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
/* Every way in the choose step, so a new way of the sign-in list needs no rule here. */
.signup .signup-ways .btn {
  background: #fffbe9;
}
.signup .btn.danger {
  background: var(--red, #ef4d4d);
  color: #fff;
}
.signup-ways {
  margin: 0 0 8px;
}
.signup-link {
  display: block;
  margin: 10px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--ink, #15111c);
  font: 700 14px inherit;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.signup-link:disabled {
  opacity: 0.45;
  cursor: default;
}
.signup-link.danger {
  color: #b02a2a;
}
.signup-error {
  min-height: 1.4em;
  margin: 0 0 6px;
  color: #b02a2a;
  font-weight: 800;
}
.signup-error:empty {
  min-height: 0;
}
.signup-small {
  margin: 10px 0 0;
  color: var(--ink-soft, #4a4252);
  font-size: 12px;
}
.signup-small a {
  color: inherit;
}
.signup-savecode {
  margin: 0 0 10px;
  padding: 12px;
  border: 3px dashed var(--ink, #15111c);
  background: #fffbe9;
  font: 900 20px/1.3 ui-monospace, Menlo, Consolas, monospace;
  text-align: center;
  word-break: break-all;
  user-select: all;
}
.signup-warn {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 5px solid var(--red, #ef4d4d);
  background: #fffbe9;
  font-size: 13px;
}
.signup-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.signup-side {
  padding: 10px;
  border: 3px solid var(--ink, #15111c);
  background: #fffbe9;
}
.signup-side.mine {
  background: var(--yellow, #ffd23f);
}
.signup-side small {
  display: block;
  color: var(--ink-soft, #4a4252);
}
.signup-side b {
  font-size: 18px;
}

/* The Locker's save strip (client/src/account.ts, bindSaveStrip). Here and not in landing-*.css, so
   it stays out of the files other sessions change. */
.locker-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 8px 14px;
  border-bottom: 3px solid var(--ink, #15111c);
  background: #fffbe9;
  font: 800 14px var(--head, system-ui, sans-serif);
}
.locker-save[hidden] {
  display: none;
}
.locker-save-btns {
  display: flex;
  gap: 8px;
}
.locker-save .btn {
  padding: 6px 16px;
  font-size: 14px;
  white-space: nowrap;
}
.locker-save .btn[hidden] {
  display: none;
}
.locker-save.saved b {
  color: #1d7a3a;
}
.locker-save.offer {
  background: var(--yellow, #ffd23f);
}
