/* Cabinet email screens (2026-12-04, js/cabinet-mail.js): the email field of the sign-up form, «Забыл пароль?»,
   «Проверь почту», «Новый пароль» (on the same clipboard as the login form), the envelope knob and the «Почта» note.
   Loaded after skin.css on cabinet.html only. */
#auth:not(.reg) #aEmail { display: none; }
#auth.reg #forgotBtn { display: none; }
#auth.reg .authLogo, #auth.mail .authLogo { height: clamp(90px, 24vh, 190px); }
#auth.mail .authCard > h1 { display: none; }

/* a quiet text button (no plank, no shadow) */
button.linkBtn, .skin-cab button.linkBtn { align-self: center; padding: 2px 8px; border: 0; border-image: none; border-radius: 6px; background: none; box-shadow: none; filter: none;
  color: var(--brown); text-shadow: none; font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
button.linkBtn:hover:not(:disabled), .skin-cab button.linkBtn:hover:not(:disabled) { background: rgba(255, 255, 255, .55); box-shadow: none; filter: none; }
#authForm .linkBtn { margin-top: -6px; }

/* the email screens sit on the same clipboard as #authForm */
.mailForm { width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 24px;
  background: linear-gradient(180deg, #fffaf0 0%, var(--cream) 60%, var(--cream2) 100%); border: 4px solid var(--brown); box-shadow: var(--edge), var(--shine); }
.skin-cab .mailForm { background: none; box-shadow: none; border-radius: 4px; border-style: solid; border-image: url(/img/ui/clipboard.webp) 110 40 40 fill / 34px 14px 14px / 0 stretch; padding-top: 40px; filter: var(--drop); }
.mpane { display: flex; flex-direction: column; gap: 10px; }
.mpane h2 { margin: 0; font-size: 22px; line-height: 1.15; color: #8a1f12; }
.mpane p { margin: 0; }
.mSmall { font-size: 13px; color: var(--muted); }
.mAddr { font-size: 16px; font-weight: 800; word-break: break-all; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .75); }
.mailForm input, #mbForm input { font: inherit; font-weight: 800; padding: 10px 16px; border-radius: 6px; border: 3px solid rgba(74, 36, 16, .5); background: #fff; color: var(--brown); text-align: center; }
.mpane > button.primary { font-size: 16px; padding: 9px 10px; }
.authLinks { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }

/* the envelope knob: an orange dot when the account has no email yet */
#mailBtn { position: relative; display: grid; place-items: center; }
#mailBtn.need::after { content: "!"; position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: #ff7a1a; color: #fff; font: 800 12px/18px Exo2, system-ui, sans-serif; text-shadow: none; box-shadow: 0 2px 0 var(--brown); }

/* «Почта» note */
#mbForm { width: min(440px, 100%); }
#mbState { display: flex; flex-direction: column; gap: 6px; }
.mbTxt { font-weight: 700; }
#mbForm .err { margin: -4px 0 0; }
.cardFoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cardFoot a { color: var(--brown); font-weight: 800; text-underline-offset: 3px; text-decoration-thickness: 2px; }
