/* Auth pages + sidebar member — nyangzip palette only */

.auth-page .main-nav {
  margin-bottom: 32px;
}

.auth-shell {
  box-sizing: border-box;
  width: 500px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.auth-page[data-auth="account"] .auth-shell {
  width: 560px;
}

.auth-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.auth-head .latest-head {
  min-width: 0;
  margin-bottom: 10px;
  text-align: left;
}

.auth-choco {
  display: block;
  flex: 0 0 auto;
  width: 86px;
  height: auto;
  margin: 0 4px -10px 0;
  pointer-events: none;
}

.auth-page[data-auth="forgot"] .auth-choco,
.auth-page[data-auth="reset"] .auth-choco {
  width: 108px;
  margin-bottom: -14px;
}

.auth-page[data-auth="verify"] .auth-panel {
  padding-top: 50px;
}

.auth-page[data-auth="verify"] .auth-head {
  margin-bottom: 0;
}

.auth-page[data-auth="verify"] .auth-head .latest-head {
  margin-bottom: 0;
}

.auth-page[data-auth="verify"] .auth-choco {
  position: relative;
  z-index: 1;
  width: 92px;
  margin: 0 6px -22px 0;
}

.auth-page[data-auth="account"] .auth-head {
  margin-bottom: 0;
}

.auth-page[data-auth="account"] .auth-head .latest-head {
  margin-bottom: 0;
}

.auth-page[data-auth="account"] .auth-choco {
  position: relative;
  z-index: 1;
  width: 92px;
  margin: 0 6px -18px 0;
}

.auth-panel .latest-head h1 {
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.auth-panel .latest-lead {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.auth-card {
  box-sizing: border-box;
  width: 100%;
  padding: 20px 20px 18px;
  border: 1px solid #efe8e2;
  border-radius: 8px;
  background: #fffaf6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.auth-form--signup {
  gap: 8px;
}

.auth-form--compact {
  width: 100%;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.auth-field input,
.auth-captcha input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e4dcd4;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  outline: none;
}

.auth-field input:focus,
.auth-captcha input:focus {
  border-color: #c4b3a4;
}

.auth-status {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: var(--muted);
}

.auth-status:empty {
  display: none;
}

.auth-form--signup .auth-field {
  gap: 4px;
}

.auth-status.is-ok {
  color: #3d7a4a;
}

.auth-status.is-error {
  color: #b42318;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.auth-check a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-submit,
.auth-secondary,
.auth-leave {
  height: 40px;
  border: 0;
  border-radius: 5px;
  background: var(--brown);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.auth-submit:hover,
.auth-secondary:hover {
  background: var(--brown-deep);
}

.auth-submit[hidden] {
  display: none !important;
}

.auth-secondary {
  width: fit-content;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #d9cfc6;
  color: var(--brown);
}

.auth-leave {
  background: #fff;
  border: 1px solid #e4dcd4;
  color: var(--ink-soft);
}

.auth-verify-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px 22px;
}

.auth-verify-status {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.auth-verify-status[hidden],
.auth-verify-done[hidden],
.auth-verify-login[hidden] {
  display: none !important;
}

.auth-verify-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.auth-verify-copy {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.auth-verify-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: auto;
  min-width: 168px;
  margin-top: 22px;
  padding: 0 28px;
  text-decoration: none;
}

.auth-verify-login {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.auth-verify-login a:hover {
  color: var(--brown);
}

.auth-card + .auth-links {
  margin-top: 14px;
}

.auth-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.auth-links a:hover {
  color: var(--brown);
}

.auth-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-captcha {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-captcha-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-captcha-label {
  font-size: 13px;
  font-weight: 650;
}

.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-captcha-code {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  height: 48px;
  border: 1px solid #efe8e2;
  border-radius: 5px;
  background: #fffaf6;
  overflow: hidden;
}

.auth-captcha-code img {
  width: 188px;
  height: 48px;
}

.auth-captcha-refresh {
  width: 36px;
  height: 36px;
  border: 1px solid #e4dcd4;
  border-radius: 5px;
  background: #fff;
  color: var(--brown);
  cursor: pointer;
}

.auth-account {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-account-block {
  width: 100%;
  max-width: 100%;
  padding: 20px 20px 18px;
}

.auth-account-block h2 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 680;
}

.auth-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.auth-account-row strong {
  min-width: 0;
}

.auth-account-row span {
  width: 56px;
  color: var(--muted);
}

.auth-verify-flag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid #ded4c8;
  border-radius: 999px;
  background: #fff;
  color: #7a6554;
  font-size: 11px;
  font-weight: 650;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.auth-verify-flag.is-pending {
  border-color: #e4d4c4;
  background: #f6efe8;
  color: #8a6a52;
}

.auth-verify-flag:empty {
  display: none;
}

.auth-hint {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.side-member {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-member[hidden],
.side-member-verify-box[hidden],
.side-member-actions[hidden],
.side-member-badge[hidden],
.side-login-form[hidden],
.side-login[hidden],
.side-login-msg[hidden],
.side-card--login.is-auth-pending #login-title {
  display: none !important;
}

.side-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-member-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.side-member-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-member-admin {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--brown);
}

.side-member-admin:hover {
  color: var(--brown-deep);
}

.side-member-admin[hidden] {
  display: none !important;
}

.side-member-admin svg {
  display: block;
  width: 16px;
  height: 16px;
}

.side-member-badge {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 7px;
  border: 1px solid rgba(143, 212, 0, 0.45);
  border-radius: 999px;
  background: rgba(184, 255, 0, 0.32);
  color: #2a3d12;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.4;
  cursor: pointer;
}

.side-member-badge:hover,
.side-member-badge:focus {
  filter: brightness(0.97);
}

.side-member-badge.is-pending {
  border-color: #e4d4c4;
  background: #f6efe8;
  color: #8a6a52;
}

.side-member-verify-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 6px;
}

.side-member-verify-box > * {
  min-width: 0;
}

.side-member-verify-box .side-member-rule {
  grid-column: 1 / -1;
}

.side-member-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  text-align: center;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.side-member-verify-icon {
  flex: 0 0 auto;
  display: block;
  color: #c47a3a;
}

.side-member-rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: #f3ece5;
}

.side-member-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.side-member-scrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
}

.side-member-resend {
  display: grid;
  place-items: center;
  width: 100%;
  height: 34px;
  padding: 0 6px;
  white-space: nowrap;
  border: 1px solid #9a7058;
  border-radius: 5px;
  background: #9a7058;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.side-member-resend:hover {
  border-color: #865f4a;
  background: #865f4a;
}

html.is-nz-scroll-lock,
body.is-nz-scroll-lock {
  overflow: hidden;
}

body.is-nz-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.auth-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
}

.auth-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 22, 0.38);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: 360px;
  max-width: calc(100% - 48px);
  padding: 22px 20px 18px;
  border: 1px solid #efe8e2;
  border-radius: 8px;
  background: #fffaf6;
  outline: none;
}

.auth-dialog-title {
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.auth-dialog-text {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.auth-dialog-captcha {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.auth-dialog-captcha .auth-captcha-code,
.auth-dialog-captcha .auth-captcha-code img {
  width: 100%;
  max-width: 220px;
}

.auth-dialog-captcha-input {
  height: 36px;
  padding: 0 11px;
  border: 1px solid #e4dcd4;
  border-radius: 5px;
  background: #fff;
}

.auth-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.auth-dialog-ok,
.auth-dialog-cancel {
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.auth-dialog-ok {
  border: 0;
  background: var(--brown);
  color: #fff;
}

.auth-dialog-ok:hover {
  background: var(--brown-deep);
}

.auth-dialog-cancel {
  border: 1px solid #d9cfc6;
  background: #fff;
  color: var(--brown);
}

.side-card--login.is-member #login-title {
  display: none;
}

.nz-legal-modal[hidden] {
  display: none !important;
}

.nz-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
}

.nz-legal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(34, 28, 22, 0.38);
  cursor: pointer;
}

.nz-legal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 560px;
  max-width: calc(100% - 48px);
  max-height: 72vh;
  border: 1px solid #efe8e2;
  border-radius: 8px;
  background: #fffaf6;
  outline: none;
}

.nz-legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #efe8e2;
}

.nz-legal-head h2 {
  min-width: 0;
  font-size: 17px;
  font-weight: 740;
  letter-spacing: -0.03em;
}

.nz-legal-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.nz-legal-close:hover,
.nz-legal-close:focus {
  color: var(--brown);
}

.nz-legal-body {
  overflow: auto;
  padding: 16px 18px 20px;
}

.nz-legal-doc h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.nz-legal-doc h4 {
  margin: 16px 0 6px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 720;
}

.nz-legal-doc p,
.nz-legal-doc li {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.nz-legal-doc ul {
  margin: 6px 0 10px 18px;
  list-style: disc;
}

.nz-about-dialog {
  width: 600px;
}

.nz-about-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.nz-about-choco {
  flex: 0 0 auto;
  width: 88px;
  height: auto;
}

.nz-about-hero-copy {
  min-width: 0;
}

.nz-about-logo {
  display: block;
  height: 34px;
  width: auto;
  margin-bottom: 8px;
}

.nz-about-lead {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.nz-inquiry-dialog {
  width: 480px;
}

.nz-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
}

.nz-inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.nz-inquiry-field input,
.nz-inquiry-field textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #e4dcd4;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
}

.nz-inquiry-field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

.nz-inquiry-field input:focus,
.nz-inquiry-field textarea:focus {
  border-color: #c4b3a4;
}

.nz-inquiry-captcha {
  margin-top: 2px;
}

.nz-inquiry-error,
.nz-inquiry-msg {
  color: #a15a3a;
  font-size: 12px;
  line-height: 1.45;
}

.nz-inquiry-error[hidden],
.nz-inquiry-msg[hidden] {
  display: none !important;
}

.nz-inquiry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.auth-dialog--sleep {
  width: 280px;
  padding: 20px 18px 16px;
  text-align: center;
}

.auth-dialog-sleep {
  display: block;
  width: 84px;
  height: auto;
  margin: 2px auto 12px;
}

.auth-dialog--sleep .auth-dialog-title {
  font-size: 14px;
  line-height: 1.45;
}

.auth-dialog--sleep .auth-dialog-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-dialog--sleep .auth-dialog-actions {
  justify-content: stretch;
  margin-top: 14px;
}

.auth-dialog--sleep .auth-dialog-ok {
  width: 100%;
}

.auth-dialog--pair .auth-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: stretch;
}

.auth-dialog--pair .auth-dialog-ok,
.auth-dialog--pair .auth-dialog-cancel {
  width: 100%;
  min-width: 0;
}

.scrap-action {
  position: relative;
  min-width: 0;
}

.scrap-toast {
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  z-index: 6;
  padding: 3px 9px;
  border-radius: 999px;
  background: #5c4634;
  color: #fffaf6;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 70, 52, 0.18);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.scrap-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
