.logo-icon {
  width: 34px;
  height: 34px;
  border: 2px solid #111;
  background: #fff;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.logo-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 8px;
  height: 14px;
  border: 1px solid #c8ccd7;
  background: linear-gradient(135deg, transparent 48%, #d7dce8 49%, #d7dce8 51%, transparent 52%);
}

.logo-icon::after {
  content: "@";
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #ff3b30;
  font-size: 12px;
  font-weight: 700;
}

.mail-logo-icon {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.mail-logo-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 4px;
  width: 26px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #0f244e;
  background: #bdefff;
}

.mail-logo-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: #ff563b;
  box-shadow: 0 7px 0 #0f244e;
}

.fake-upload {
  height: 128px;
  border: 2px dashed #cfd7ff;
  border-radius: 14px;
  background: #fafbff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #6573a6;
  user-select: none;
}

.fake-upload-inner {
  text-align: center;
}

.fake-upload-cloud {
  font-size: 34px;
  color: #7480f4;
  margin-bottom: 8px;
}

.fake-upload-text {
  font-size: 14px;
}

.fake-upload-line {
  width: 24px;
  height: 6px;
  background: #eef0ff;
  border-radius: 999px;
  margin: 10px auto 0;
}

.input {
  width: 184px;
  height: 38px;
  border: 1px solid #dde4f4;
  border-radius: 8px;
  outline: none;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #071a46;
}

.input:focus {
  border-color: #6472f3;
  box-shadow: 0 0 0 3px rgba(100, 114, 243, .10);
}

.search {
  width: 288px;
  height: 36px;
  border: 1px solid #dde4f4;
  border-radius: 8px;
  outline: none;
  padding: 0 14px;
  background: #fff;
  color: #071a46;
}

.btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  background: #5665ef;
  box-shadow: 0 8px 16px rgba(86, 101, 239, .22);
  transition: .18s;
  white-space: nowrap;
  font-size: 13px;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn.red {
  background: #ff6470;
  box-shadow: 0 8px 16px rgba(255, 100, 112, .22);
}

.btn.soft {
  color: #5665ef;
  background: #eef1ff;
  box-shadow: none;
}

.btn.soft-red {
  color: #ff5b65;
  background: #fff1f2;
  box-shadow: none;
}

.refresh-top-btn {
  margin-left: 22px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  background: #5665ef;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(86, 101, 239, .22);
  white-space: nowrap;
  transition: .18s;
}

.refresh-top-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.refresh-top-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  height: 42px;
  background: #fbfcff;
  color: #5b6a9d;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 0 16px;
  border-bottom: 1px solid #e7ebf6;
}

td {
  height: 72px;
  color: #071a46;
  font-size: 14px;
  padding: 0 16px;
  border-bottom: 1px solid #edf1f8;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

.checkbox-cell {
  width: 60px;
  text-align: center;
}

.email-col {
  width: 18%;
}

.password-col {
  width: 14%;
}

.client-col {
  width: 27%;
}

.token-col {
  width: 20%;
}

.action-col {
  width: 260px;
  text-align: center;
}

.custom-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.token-badge {
  display: inline-block;
  max-width: 150px;
  padding: 6px 10px;
  color: #5c68f2;
  background: #f1f3ff;
  border-radius: 7px;
  font-size: 12px;
  font-family: Consolas, monospace;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.actions-cell {
  text-align: center;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.row-actions {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.action-btn {
  min-width: 68px;
  height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  transition: .18s;
}

.action-btn.inbox,
.action-btn.junk {
  background: #eef1ff;
  color: #5665ef;
}

.action-btn.delete {
  background: #fff1f2;
  color: #ff5a65;
}

.action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.empty-box {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa4bf;
  font-size: 14px;
  background: #fff;
}

.empty-inner {
  text-align: center;
}

.empty-icon {
  width: 40px;
  height: 32px;
  border: 6px solid #c9cfdf;
  border-top: 10px solid #c9cfdf;
  border-radius: 5px;
  margin: 0 auto 12px;
  opacity: .8;
}

.page-number {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #5665ef;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(86, 101, 239, .22);
}

.page-size {
  width: 96px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #071a46;
  padding: 0 10px;
  outline: none;
}

.mail-table th {
  height: 40px;
}

.mail-table td {
  height: 52px;
}

.mail-action {
  width: 64px;
  height: 28px;
  border-radius: 8px;
  background: #eef1ff;
  color: #5665ef;
  font-weight: 700;
  font-size: 12px;
}

.back-link {
  background: transparent;
  color: #5665ef;
  font-weight: 700;
  height: auto;
  padding: 0;
  box-shadow: none;
}

.back-link:hover {
  transform: none;
  text-decoration: underline;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 42, .54);
  backdrop-filter: blur(5px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  width: 760px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .26);
  padding: 28px;
}

.modal.small {
  width: 610px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 28px;
  color: #071a46;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #5361ff;
  background: #eef0ff;
  font-size: 22px;
}

.textarea {
  width: 100%;
  height: 210px;
  border: 1px solid #dfe5f3;
  border-radius: 10px;
  resize: none;
  outline: none;
  padding: 14px;
  line-height: 1.65;
  font-size: 14px;
}

.mail-detail-item {
  border: 1px solid #edf0f7;
  border-left: 4px solid #5361ff;
  border-radius: 13px;
  padding: 16px;
  margin-bottom: 12px;
}

.mail-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.mail-detail-from {
  color: #071a46;
  font-weight: 700;
}

.mail-detail-date {
  color: #8491bd;
  font-size: 13px;
}

.mail-detail-subject {
  font-size: 19px;
  font-weight: 800;
  color: #071a46;
  line-height: 1.4;
}

.mail-detail-code {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef0ff;
  color: #5361ff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
}

.mail-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e5e9f5;
  color: #44527d;
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
}

.loading {
  padding: 60px 20px;
  text-align: center;
  color: #8d98bb;
}