#sign-in-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 42px;
  padding: 10px clamp(16px, calc(12px + .833vw), 20px);
  border: 1px solid rgb(240 223 181 / .66);
  border-radius: 4px;
  color: var(--cream, #f0dfb5);
  background: rgb(240 223 181 / .035);
  box-shadow: inset 0 1px 0 rgb(255 240 207 / .06), 0 2px 5px rgb(26 0 5 / .08);
  font: 400 clamp(12px, calc(11.4px + .125vw), 13px)/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .025em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms, border-color 180ms;
}
#sign-in-toggle:hover { background: rgb(240 223 181 / .09); border-color: var(--cream, #f0dfb5); }
#sign-in-toggle:focus-visible { outline: 2px solid var(--cream, #f0dfb5); outline-offset: 5px; }
.poster-header:has(#sign-in-toggle .hj-profile-name) { column-gap: 12px; }
#sign-in-toggle:has(.hj-profile-name) { flex: 0 1 auto; min-width: 0; max-width: min(340px, 48vw); gap: clamp(7px, calc(6.4px + .125vw), 8px); padding-inline: clamp(12px, calc(7.2px + 1vw), 20px); }
#sign-in-toggle > svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
#sign-in-toggle .hj-profile-name { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
body.hj-login-open { overflow: hidden; }
.hj-login-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #d5c3a2;
  border-radius: 9px;
  color: #34211b;
  background: #f1e8d4;
  box-shadow: 0 3px 8px #18000529, 0 24px 70px #18000559;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  text-align: left;
  color-scheme: light;
}
.hj-login-dialog::backdrop { background: rgb(24 0 5 / .62); backdrop-filter: blur(5px); }
.hj-login-inner { position: relative; padding: 43px 35px 26px; }
.hj-login-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #644b3f;
  background: transparent;
  cursor: pointer;
}
.hj-login-close:hover { background: #73000f0a; }
.hj-login-eyebrow { margin: 0 0 15px; color: #80634e; font-size: 11px; line-height: 1.3; letter-spacing: .18em; }
.hj-login-dialog h2 {
  margin: 0;
  color: #73000f;
  font: 400 clamp(32px, 9vw, 42px)/1.12 var(--display, Georgia, serif);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.hj-login-dialog h2:focus { outline: none; }
#hj-login-description { margin: 13px 0 26px; color: #6b5143; font-size: 14px; line-height: 1.6; }
.hj-login-content { min-height: 44px; }
.hj-login-content[aria-busy='true'] .hj-google-button { pointer-events: none; }
.hj-login-dialog [hidden] { display: none !important; }
.hj-google-button { width: 100%; min-height: 44px; }
.hj-google-button > div { margin-inline: auto; }
.hj-login-status { margin: 0; padding: 9px 0; color: #6b5143; font-size: 13px; }
.hj-login-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #73000f;
  border-radius: 4px;
  color: #f5e9cd;
  background: #73000f;
  box-shadow: inset 0 1px 0 #ffe7bd12, 0 2px 4px #2800090f;
  font: 400 13px/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background-color 180ms;
}
.hj-login-button:hover { background: #5c000c; }
.hj-login-dialog :is(button, a):focus-visible { outline: 2px solid #73000f; outline-offset: 4px; }
.hj-login-error { margin: 0; }
.hj-login-error p { margin: 0 0 15px; color: #8a2029; font-size: 13px; line-height: 1.6; }
.hj-login-button + .hj-login-error { margin-top: 16px; }
.hj-login-privacy { display: inline-block; margin-top: 27px; color: #7d6556; font-size: 12px; line-height: 1.5; text-underline-offset: 3px; }
.hj-login-privacy:hover { color: #73000f; }
.hj-login-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 25px; }
.hj-login-links .hj-login-privacy { margin-top: 0; }
.hj-login-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 23px; border: 1px solid #d7c9b2; border-radius: 6px; }
.hj-login-modes button { min-height: 38px; border: 0; border-radius: 3px; background: transparent; color: #725748; font: 400 13px/1.3 Arial, Helvetica, sans-serif; cursor: pointer; }
.hj-login-modes button[aria-pressed='true'] { color: #73000f; background: #fffbef; box-shadow: 0 1px 3px #3c190b0c; }
.hj-login-divider { display: flex; align-items: center; gap: 13px; margin: 21px 0; color: #927969; font-size: 11px; }
.hj-login-divider::before, .hj-login-divider::after { content: ''; flex: 1; height: 1px; background: #d8cab4; }
.hj-login-form { display: grid; gap: 17px; margin: 0; }
.hj-login-field { display: grid; gap: 7px; }
.hj-login-field > label { color: #4c352b; font-size: 12px; line-height: 1.4; }
.hj-login-field input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 45px; padding: 11px 12px; border: 1px solid #cbb99c; border-radius: 4px; background: #fffcf3; color: #352219; font: 400 15px/1.4 Arial, Helvetica, sans-serif; box-shadow: inset 0 1px 2px #6e4e2610; }
.hj-login-field input::placeholder { color: #a08b7a; }
.hj-login-field input:focus-visible { outline: 2px solid #73000f; outline-offset: 2px; }
.hj-login-field input[aria-invalid='true'] { border-color: #9c2934; }
.hj-login-field input[readonly] { background: #e9deca; color: #705646; box-shadow: none; }
.hj-login-help { margin: 0; color: #806858; font-size: 11px; line-height: 1.5; }
.hj-username-status { display: flex; align-items: center; gap: 6px; min-height: 18px; margin: 0; color: #806858; font-size: 12px; line-height: 1.5; }
.hj-username-status svg { width: 16px; height: 16px; flex: 0 0 16px; }
.hj-username-status[data-state='available'] { color: #24613e; }
.hj-username-status:is([data-state='taken'], [data-state='invalid'], [data-state='error']) { color: #9a2933; }
.hj-login-consents { display: grid; gap: 12px; padding: 2px 0; }
.hj-login-consent { display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 9px; color: #705646; font-size: 12px; line-height: 1.55; cursor: pointer; }
.hj-login-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #73000f; }
.hj-login-consent input:focus-visible { outline: 2px solid #73000f; outline-offset: 3px; }
.hj-login-consent a { color: #73000f; text-underline-offset: 3px; }
.hj-login-actions { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; justify-content: space-between; }
.hj-login-text-button { display: inline; width: fit-content; min-height: 30px; padding: 3px 0; border: 0; background: transparent; color: #73000f; font: 400 12px/1.5 Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hj-login-button:disabled, .hj-login-text-button:disabled { opacity: .5; cursor: default; }
.hj-login-button:disabled:hover { background: #73000f; }
.hj-login-button.is-secondary { color: #73000f; background: transparent; border-color: #c8af94; box-shadow: none; }
.hj-login-button.is-secondary:hover { background: #73000f08; }
.hj-login-notice { margin: 0 0 19px; padding: 12px 13px; border: 1px solid #d5c6ac; border-radius: 4px; color: #6b5143; background: #fff9e94d; font-size: 12px; line-height: 1.6; }
.hj-login-notice[data-tone='success'] { color: #24613e; border-color: #aebe9e; }
.hj-login-notice p { margin: 0; }
.hj-login-notice .hj-login-text-button { margin-top: 7px; }
.hj-account-details { display: grid; gap: 14px; margin: 0 0 23px; }
.hj-account-detail { display: grid; gap: 3px; min-width: 0; }
.hj-account-detail dt { color: #8c705c; font-size: 11px; }
.hj-account-detail dd { margin: 0; color: #4b3226; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.hj-account-editor { border-top: 1px solid #d8cab4; padding-top: 20px; margin-top: 20px; }
.hj-account-editor + .hj-login-button { margin-top: 21px; }
.hj-account-signout { margin-top: 12px; }
.hj-login-message { margin: 0 0 21px; color: #6b5143; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.hj-login-form .hj-login-error p { margin-bottom: 0; }
.hj-login-form .hj-login-error:empty { display: none; }
/* Signup keeps every control in view on a typical laptop without shrinking fields. */
.hj-login-dialog.is-compact-signup .hj-login-inner { padding: 28px 30px 20px; }
.hj-login-dialog.is-compact-signup h2 { margin-bottom: 12px; font-size: 34px; }
.is-compact-signup .hj-login-close { top: 5px; right: 5px; width: 44px; height: 44px; }
.is-compact-signup .hj-login-modes { padding: 3px; margin-bottom: 12px; }
.is-compact-signup .hj-login-modes button { min-height: 44px; }
.is-compact-signup .hj-login-divider { margin-block: 8px; }
.is-compact-signup .hj-login-form { gap: 8px; }
.is-compact-signup .hj-login-field { gap: 5px; }
.is-compact-signup :is(.hj-login-password-field, .hj-login-username-field) { grid-template-columns: minmax(0, 1fr) auto; }
.is-compact-signup :is(.hj-login-password-field, .hj-login-username-field) > label { grid-column: 1; grid-row: 1; align-self: center; }
.is-compact-signup :is(.hj-login-password-field, .hj-login-username-field) > input { grid-column: 1 / -1; }
.is-compact-signup .hj-login-password-field > .hj-login-help,
.is-compact-signup .hj-username-status { grid-column: 2; grid-row: 1; align-self: center; text-align: right; }
.is-compact-signup .hj-login-username-field > .hj-login-help,
.is-compact-signup .hj-login-username-field > .hj-login-text-button { grid-column: 1 / -1; }
.is-compact-signup .hj-username-status { max-width: 235px; justify-content: flex-end; }
.is-compact-signup .hj-login-consents { padding-block: 5px; }
.is-compact-signup .hj-login-consent { line-height: 1.45; }
.is-compact-signup .hj-login-text-button { min-height: 44px; }
/* Neutral charcoal and the retained light palette follow the device preference. */
.hj-login-dialog[data-menu-theme='dark'] { color-scheme: dark; color: #eee4cf; border-color: #575650; background: linear-gradient(145deg, #2a2b2c, #222324); box-shadow: 0 3px 8px #0005, 0 24px 70px #0009; }
.hj-login-dialog[data-menu-theme='dark'] h2 { color: #f1e5cc; }
.hj-login-dialog[data-menu-theme='dark'] :is(#hj-login-description, .hj-login-status, .hj-login-message, .hj-login-consent) { color: #c8bda9; }
.hj-login-dialog[data-menu-theme='dark'] :is(.hj-login-eyebrow, .hj-login-help, .hj-login-privacy, .hj-login-divider, .hj-account-detail dt) { color: #b9af9d; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-close { color: #d7cbb6; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-close:hover { background: #ffffff0a; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-modes { border-color: #57544d; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-modes button { color: #c3b8a3; background: transparent; border: 0; box-shadow: none; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-modes button[aria-pressed='true'] { color: #f3e7ce; background: #45433d; box-shadow: 0 1px 3px #0002; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-modes button:hover { color: #f3e7ce; background: #45433d; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-divider::before,
.hj-login-dialog[data-menu-theme='dark'] .hj-login-divider::after { background: #55524b; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-field > label,
.hj-login-dialog[data-menu-theme='dark'] .hj-account-detail dd { color: #e3d8c2; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-field input { color: #f3ead8; background: #191b1c; border-color: #68635a; box-shadow: inset 0 1px 2px #0004; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-field input::placeholder { color: #aaa191; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-field input[readonly] { background: #303233; color: #c6bba6; box-shadow: none; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-field input[aria-invalid='true'] { border-color: #dc8a84; }
.hj-login-dialog[data-menu-theme='dark'] .hj-username-status { color: #c0b5a1; }
.hj-login-dialog[data-menu-theme='dark'] .hj-username-status[data-state='available'] { color: #91d6aa; }
.hj-login-dialog[data-menu-theme='dark'] .hj-username-status:is([data-state='taken'], [data-state='invalid'], [data-state='error']),
.hj-login-dialog[data-menu-theme='dark'] .hj-login-error p { color: #ffa5a0; }
.hj-login-dialog[data-menu-theme='dark'] :is(.hj-login-text-button, .hj-login-consent a, .hj-login-privacy:hover) { color: #ead8b5; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-consent input { accent-color: #ead8b5; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-button { color: #30261d; background: #ead8b5; border-color: #ead8b5; box-shadow: inset 0 1px 0 #fff5, 0 2px 4px #0002; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-button:hover { background: #f3e4c6; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-button:disabled:hover { background: #ead8b5; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-button.is-secondary { color: #ead8b5; background: transparent; border-color: #7a7262; box-shadow: none; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-button.is-secondary:hover { background: #ffffff08; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-notice { color: #d0c4ac; border-color: #615c51; background: #ffffff04; }
.hj-login-dialog[data-menu-theme='dark'] .hj-login-notice[data-tone='success'] { color: #91d6aa; border-color: #54715c; }
.hj-login-dialog[data-menu-theme='dark'] :is(button, a, input):focus-visible { outline-color: #ead8b5; }
@media (max-width: 480px) {
  .hj-login-inner { padding: 43px 25px 25px; }
  .hj-login-field input { font-size: 16px; }
  .hj-login-dialog.is-compact-signup .hj-login-inner { padding: 31px 25px 23px; }
  .is-compact-signup .hj-username-status { max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  #sign-in-toggle, .hj-login-button { transition: none; }
}
