footer {
  max-width: 1600px;
  padding: 35px 4vw 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  margin: auto;
  color: var(--muted);
  font-size: 12px;
}
.footer-brand {
  font-family: "Songti SC", serif;
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
}
.footer-brand span {
  color: var(--brand);
}
footer > div {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
dialog {
  border: 0;
  padding: 38px;
  width: min(440px, calc(100vw - 28px));
  border-radius: 10px;
  color: var(--ink);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 10px 60px oklch(0 0 0 / 0.18);
}
dialog::backdrop {
  background: oklch(0.1 0 0 / 0.5);
}
dialog h2 {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 10px;
}
dialog > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.close {
  position: absolute;
  right: 14px;
  top: 9px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--muted);
  min-height: 40px;
  min-width: 40px;
}
.auth-brand {
  font-family: "Songti SC", serif;
  font-size: 28px;
  margin-bottom: 28px;
  font-weight: 600;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  margin: 15px 0;
}
form label input {
  width: 100%;
}
.captcha-row {
  display: flex;
  gap: 10px;
}
.captcha-row input {
  min-width: 0;
}
.captcha-row button {
  padding: 0;
  width: 130px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  overflow: hidden;
}
.captcha-row img {
  width: 100%;
  height: 42px;
  object-fit: contain;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  margin: 8px 0;
  min-height: 20px;
}
.auth-switch {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 17px 0;
}
.auth-switch button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 0;
}
.auth-switch button:first-child {
  color: var(--brand);
}
#recovery-value {
  display: block;
  overflow-wrap: anywhere;
  padding: 18px;
  background: var(--surface);
  margin: 18px 0 25px;
  font-size: 16px;
}
#recovery-dialog .button {
  margin-top: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 13px;
  max-width: 90vw;
  z-index: var(--z-toast);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.admin-grid {
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.admin-grid strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
}
.admin-grid span {
  font-size: 12px;
  color: var(--muted);
}
.admin-upload {
  max-width: 600px;
  padding: 25px 0;
}
.admin-title {
  width: 200px;
}
.admin-table input {
  font-size: 12px;
  padding: 7px;
}
.admin-table button {
  font-size: 12px;
  white-space: nowrap;
}
.admin-table label {
  display: flex;
  gap: 7px;
  align-items: center;
}
.admin-pages {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}
