.masthead-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  align-self: start;
}

.auth-trigger {
  min-height: 37px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 210, 101, .62);
  border-radius: 11px;
  background: var(--nav-corn);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  transition: background .18s ease, transform .18s ease;
}

.auth-trigger:hover { background: #333; transform: translateY(-1px); }
.auth-trigger:focus-visible { outline: 3px solid var(--nav-focus); outline-offset: 3px; }
.auth-modal { width: min(100%, 470px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 20px; padding: 4px; border-radius: 13px; background: var(--paper-deep); }
.auth-tab { padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.auth-tab.is-active { background: var(--white); color: var(--coral-deep); box-shadow: 0 4px 12px rgba(91, 62, 49, .07); }
.auth-provider-note { margin-bottom: 10px; }
.google-auth-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 700; }
.google-auth-button:hover { border-color: #c8b6ac; background: #fffdfb; }
.google-mark { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #4285f4; font-family: Arial, sans-serif; font-size: 15px; font-weight: 800; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--muted); font-size: 10px; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.auth-submit { width: 100%; margin-top: 3px; }
.auth-status { margin: 19px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff3e8; color: #8b6555; font-size: 11px; line-height: 1.45; }
.auth-status[data-kind="success"] { background: #eaf6eb; color: #4d7957; }
.auth-status[data-kind="error"] { background: #fff0ef; color: #a14f4c; }
.auth-submit:disabled { cursor: wait; opacity: .65; }

@media (max-width: 680px) {
  .masthead-tools { align-items: flex-end; gap: 7px; }
  .auth-trigger { padding: 8px 10px; font-size: 11px; }
  .auth-modal { padding-top: 31px; }
}
