/* 用户邮箱页面：在管理后台样式（base.css）基础上补充的部分 */

/* 登录 / 注册 */
.auth .card { width: 420px; }
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.auth-tabs button { flex: 1; border: 0; background: none; padding: 10px 0; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14.5px; }
.auth-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.auth .domain-input .input { height: 36px; }
.auth .domain-input select.input { width: auto; max-width: 52%; background: #fafbfb; }
.auth .closed { text-align: center; color: var(--ink-2); padding: 18px 4px 6px; }
.auth .closed .empty-ico { margin-bottom: 10px; }
.auth .switch-line { text-align: center; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.auth .switch-line a { cursor: pointer; }

/* 侧栏 */
.compose-btn { margin: 4px 18px 8px; }
.compose-btn .btn { width: 100%; padding: 8px; }
.nav a .count { margin-left: auto; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.foot .who small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot .who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 邮件列表 */
.mail-list td { padding-top: 12px; padding-bottom: 12px; }
.mail-list .who-col { width: 220px; max-width: 220px; }
.mail-list tr.unread td { font-weight: 600; color: var(--ink); }
.mail-list tr.unread .who-col::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin: 0 8px 1px -2px; }
.mail-list tr:not(.unread) .subject { font-weight: 400; color: var(--ink-2); }
.mail-list .time-col { width: 150px; text-align: right; }

/* 写信 */
.compose .field { margin-bottom: 12px; }
.compose textarea.input { height: 260px; resize: vertical; line-height: 1.6; padding: 10px 12px; }
.compose .quota { margin-right: auto; align-self: center; }

/* 设置 */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-grid .card-body .input { width: 100%; }
.settings-grid .full { grid-column: 1 / -1; }

@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .compose-btn { position: absolute; top: 10px; right: 64px; margin: 0; }
  .compose-btn .btn { padding: 3px 10px; font-size: 13px; }
  .mail-list .who-col { width: auto; max-width: 140px; }
  .mail-list .time-col { width: auto; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth form { padding: 0; }
