:root {
  --retro-white: #fafafa;
  --retro-cream: #f5f3ef;
  --retro-black: #1a1a1a;
  --retro-gray-dark: #3a3a3a;
  --retro-gray-mid: #6b6b6b;
  --retro-gray-light: #a0a0a0;
  --retro-border: #2a2a2a;
  --retro-accent: #e74c3c;
  --border-width: 2px;
  --topbar-height: 160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: var(--retro-black);
  background-color: var(--retro-white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--retro-white);
  border-bottom: var(--border-width) solid var(--retro-border);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  line-height: 1.05;
  color: var(--retro-black);
  min-width: 200px;
}

.mailbox-tools {
  width: 100%;
  display: grid;
  gap: 8px;
}

.mailbox-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mailbox-label {
  color: var(--retro-gray-mid);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 58px;
}

#mailboxInput {
  flex: 1;
  min-width: 200px;
  padding: 10px 11px;
  border: var(--border-width) solid var(--retro-border);
  background: var(--retro-white);
  color: var(--retro-black);
  font-size: 14px;
}

#mailboxInput[readonly] {
  color: var(--retro-gray-dark);
  background: #f7f7f7;
}

#mailboxInput::placeholder {
  color: var(--retro-gray-light);
}

#mailboxInput:focus {
  outline: none;
  border-color: var(--retro-black);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.12);
}

.editor-actions,
.quick-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: var(--border-width) solid #cccccc;
  background: transparent;
  color: var(--retro-gray-mid);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--retro-black);
  color: var(--retro-black);
  background: #f3f3f3;
}

.mailbox-address {
  color: var(--retro-gray-mid);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  word-break: break-all;
}

.mailbox-address span {
  color: var(--retro-black);
  font-weight: 700;
  text-transform: none;
}

.main {
  min-height: 100vh;
  padding-top: calc(var(--topbar-height, 160px) + 24px);
  padding-bottom: 20px;
  background-image: radial-gradient(var(--retro-gray-light) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.card {
  background: var(--retro-white);
  border: var(--border-width) solid var(--retro-border);
  padding: 14px;
  margin-bottom: 14px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--retro-gray-light);
}

.card-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-head span {
  color: var(--retro-gray-mid);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-actions .tab-btn {
  padding: 6px 10px;
  letter-spacing: 0.06em;
}

.table-wrap {
  max-height: 430px;
  overflow: auto;
}

#mailTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#mailTable th,
#mailTable td {
  border: 1px solid #dddddd;
  padding: 10px 8px;
  text-align: left;
}

#mailTable th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--retro-cream);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#mailTable tbody tr {
  transition: background-color 0.2s ease;
}

#mailTable tbody tr:hover {
  background: #f2f2f2;
  cursor: pointer;
}

#mailTable tbody tr.active {
  background: #e8e8e8;
}

.content-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tab-btn {
  border: var(--border-width) solid #d6d6d6;
  background: var(--retro-white);
  color: var(--retro-gray-mid);
  padding: 7px 11px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  border-color: var(--retro-black);
  background: var(--retro-black);
  color: var(--retro-white);
}

.content-view {
  border: var(--border-width) solid var(--retro-border);
  background: var(--retro-white);
}

.view-block {
  margin: 0;
  min-height: 300px;
  max-height: 430px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  color: var(--retro-black);
}

#htmlView {
  width: 100%;
  border: 0;
}

#jsonView {
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.api-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.api-card code {
  display: block;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px dashed var(--retro-gray-light);
  background: var(--retro-cream);
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: var(--retro-gray-dark);
  white-space: pre-wrap;
  word-break: break-all;
}

.status-bar {
  min-height: 20px;
  color: var(--retro-gray-mid);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-title {
    font-size: 28px;
    text-align: left;
    min-width: 0;
  }

  .mailbox-tools {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .mailbox-toolbar {
    align-items: stretch;
  }

  .mailbox-label {
    min-width: 0;
  }

  #mailboxInput {
    min-width: 0;
  }

  .view-block {
    min-height: 240px;
    max-height: 320px;
  }
}

/* Modern interface */
:root {
  --ink: #172033;
  --muted: #6f7890;
  --line: #e4e8f1;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --brand: #645cff;
  --brand-dark: #5048e5;
  --brand-soft: #eeedff;
  --success: #24b47e;
  --danger: #e85362;
  --shadow: 0 16px 45px rgba(31, 42, 68, 0.08);
  --topbar-height: 184px;
}

html {
  background: #f5f7fb;
}

body {
  color: var(--ink);
  background: #f5f7fb;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(100, 92, 255, 0.22);
  outline-offset: 2px;
}

.topbar {
  position: fixed;
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-bottom: 1px solid rgba(228, 232, 241, 0.9);
  box-shadow: 0 8px 30px rgba(31, 42, 68, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
  max-width: 1320px;
  min-height: 128px;
  padding: 20px 28px;
  gap: 48px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7770ff, #5148e5);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(100, 92, 255, 0.28);
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-title {
  min-width: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(36, 180, 126, 0.13);
}

.mailbox-tools {
  max-width: 760px;
  margin-left: auto;
  gap: 6px;
}

.mailbox-label {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mailbox-toolbar {
  flex-wrap: nowrap;
  gap: 8px;
}

#mailboxInput {
  min-width: 160px;
  height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#mailboxInput[readonly] {
  color: var(--ink);
  background: var(--surface-soft);
}

#mailboxInput:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(100, 92, 255, 0.12);
}

.editor-actions,
.quick-actions {
  flex: 0 0 auto;
  gap: 6px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 17px;
  font-weight: 650;
  transition: transform 0.15s, border-color 0.15s, color 0.15s,
    background 0.15s;
}

.icon-btn:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #ccc9ff;
  transform: translateY(-1px);
}

.icon-btn.primary {
  width: auto;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-size: 13px;
}

.icon-btn.primary:hover {
  color: #fff;
  background: var(--brand-dark);
}

.icon-btn.confirm {
  color: var(--success);
}

.icon-btn.danger {
  color: var(--danger);
}

.mailbox-address {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.mailbox-address span {
  color: var(--brand-dark);
  font-weight: 650;
}

.main {
  padding-top: calc(var(--topbar-height, 184px) + 28px);
  padding-bottom: 32px;
  background:
    radial-gradient(circle at 8% 12%, rgba(100, 92, 255, 0.08), transparent 26%),
    radial-gradient(circle at 92% 85%, rgba(36, 180, 126, 0.06), transparent 24%),
    #f5f7fb;
}

.container {
  max-width: 1320px;
  padding: 0 28px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(380px, 0.85fr) minmax(520px, 1.4fr);
  gap: 20px;
  align-items: stretch;
}

.card {
  padding: 22px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid rgba(228, 232, 241, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.workspace > .card {
  min-width: 0;
  height: 610px;
}

.card-head {
  min-height: 54px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.card-head h3 {
  margin-top: 2px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: block;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.count-badge {
  padding: 6px 11px;
  color: var(--brand) !important;
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.table-wrap {
  height: 458px;
  max-height: none;
  overflow: auto;
  scrollbar-color: #d6d9e4 transparent;
  scrollbar-width: thin;
}

#mailTable {
  font-size: 13px;
}

#mailTable th,
#mailTable td {
  padding: 13px 10px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
}

#mailTable th {
  color: #9299aa;
  background: rgba(255, 255, 255, 0.96);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

#mailTable th:first-child,
#mailTable td:first-child {
  width: 34%;
}

#mailTable th:last-child,
#mailTable td:last-child {
  width: 28%;
  color: var(--muted);
  font-size: 11px;
}

#mailTable tbody tr {
  position: relative;
  transition: background-color 0.16s, color 0.16s;
}

#mailTable tbody tr:hover {
  background: #f8f8ff;
}

#mailTable tbody tr.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

#mailTable tbody tr.active td:first-child {
  box-shadow: inset 3px 0 var(--brand);
}

.inbox-footer {
  padding-top: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
}

.message-head {
  margin-bottom: 10px;
}

.message-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.message-meta {
  min-height: 32px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.content-tabs {
  gap: 2px;
  margin-bottom: 0;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.tab-btn {
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.tab-btn:hover {
  color: var(--ink);
  background: #fff;
}

.tab-btn.active {
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 2px 7px rgba(31, 42, 68, 0.06);
}

.message-actions .tab-btn {
  padding: 7px 10px;
  background: #fff;
  border-color: var(--line);
  letter-spacing: 0;
  text-transform: none;
}

.message-actions .danger-btn {
  color: var(--danger);
  border-color: rgba(232, 83, 98, 0.25);
}

.message-actions .danger-btn:hover {
  background: #fff4f5;
}

.content-view {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
}

.view-block {
  min-height: 390px;
  max-height: 390px;
  padding: 20px;
  color: #394157;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
}

#jsonView {
  color: #4f5870;
  background: #fafbfe;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.api-card {
  padding: 0;
  overflow: hidden;
}

.api-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
}

.api-card summary::-webkit-details-marker {
  display: none;
}

.api-card summary strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.summary-hint {
  color: var(--muted);
  font-size: 11px;
}

.api-card[open] .summary-hint {
  color: var(--brand);
}

.api-content {
  padding: 0 20px 16px;
}

.api-card code {
  margin-bottom: 8px;
  padding: 10px 12px;
  color: #596178;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.status-bar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  min-height: 0;
  max-width: min(420px, calc(100vw - 48px));
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(31, 42, 68, 0.14);
  font-size: 12px;
  pointer-events: none;
}

.status-bar:empty {
  display: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 4px;
  color: #989faf;
  font-size: 11px;
}

@media (max-width: 1040px) {
  .topbar-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .mailbox-tools {
    max-width: none;
    margin-left: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace > .card {
    height: auto;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    min-height: 0;
    padding: 15px 16px;
    gap: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-title {
    font-size: 18px;
  }

  .mailbox-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #mailboxInput {
    min-width: 0;
  }

  .editor-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .quick-actions {
    grid-column: 1 / -1;
  }

  .quick-actions .icon-btn {
    flex: 1;
  }

  .main {
    padding-top: calc(var(--topbar-height, 245px) + 16px);
  }

  .container {
    padding: 0 12px;
  }

  .card {
    padding: 16px;
    border-radius: 14px;
  }

  .table-wrap {
    height: 360px;
  }

  #mailTable th:first-child,
  #mailTable td:first-child {
    width: 38%;
  }

  #mailTable th:last-child,
  #mailTable td:last-child {
    display: none;
  }

  .message-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .message-actions {
    justify-content: flex-start;
  }

  .view-block {
    min-height: 330px;
    max-height: 430px;
    padding: 14px;
  }

  .footer {
    flex-direction: column;
    gap: 4px;
  }

  .status-bar {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

/* Visual polish */
.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 92, 255, 0.45) 35%,
    rgba(36, 180, 126, 0.35) 65%,
    transparent
  );
}

.brand-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 4px;
}

.brand-badges span {
  padding: 3px 7px;
  color: #6d668e;
  background: rgba(100, 92, 255, 0.07);
  border: 1px solid rgba(100, 92, 255, 0.11);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.mailbox-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mailbox-tip {
  color: #9ba1b1;
  font-size: 10px;
}

.icon-btn.text-btn {
  width: auto;
  padding: 0 12px;
  gap: 5px;
  font-size: 12px;
}

.icon-btn.text-btn span {
  color: var(--brand);
  font-size: 14px;
}

.mailbox-address {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mailbox-address .address-check {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

.mailbox-address strong {
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: none;
}

.workspace {
  position: relative;
}

.workspace::before {
  position: absolute;
  top: -70px;
  left: -85px;
  z-index: 0;
  width: 190px;
  height: 190px;
  content: "";
  background: rgba(100, 92, 255, 0.055);
  border-radius: 44% 56% 62% 38%;
  filter: blur(1px);
  pointer-events: none;
  transform: rotate(20deg);
}

.workspace > .card {
  position: relative;
  z-index: 1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.workspace > .card:hover {
  border-color: rgba(100, 92, 255, 0.18);
  box-shadow: 0 20px 55px rgba(31, 42, 68, 0.11);
  transform: translateY(-2px);
}

.inbox-card::before,
.message-card::before {
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  border-radius: 0 0 3px 3px;
  opacity: 0.65;
}

.message-card::before {
  background: linear-gradient(90deg, transparent, var(--success), transparent);
  opacity: 0.5;
}

.inbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inbox-footer .live-dot {
  width: 6px;
  height: 6px;
}

#mailTable tbody:empty::after {
  display: block;
  padding: 80px 20px;
  color: var(--muted);
  content: "收件箱空空如也";
  font-size: 13px;
  text-align: center;
}

#mailTable .empty-cell {
  height: 300px;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

#mailTable .empty-cell:hover {
  background: #fff;
}

.empty-cell .empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(100, 92, 255, 0.12);
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(100, 92, 255, 0.1);
  font-size: 23px;
}

.empty-cell strong,
.empty-cell small {
  display: block;
}

.empty-cell strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}

.empty-cell small {
  color: #9aa1b1;
  font-size: 11px;
  font-weight: 400;
}

.content-view {
  position: relative;
}

.content-view::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  content: "";
  background:
    linear-gradient(135deg, transparent 48%, rgba(100, 92, 255, 0.045) 49%),
    linear-gradient(45deg, transparent 48%, rgba(36, 180, 126, 0.04) 49%);
  border-radius: 10px;
  pointer-events: none;
}

.api-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.api-card:hover {
  border-color: rgba(100, 92, 255, 0.18);
  box-shadow: 0 16px 45px rgba(31, 42, 68, 0.1);
}

.api-card summary {
  transition: background 0.2s ease;
}

.api-card summary:hover {
  background: #fbfbff;
}

.api-card[open] .summary-hint::before {
  content: "已展开 · ";
}

.footer > span:first-child {
  color: #7e8598;
  font-weight: 700;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 5px;
}

@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-bar:not(:empty) {
  animation: status-in 0.22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1180px) and (min-width: 1041px) {
  .brand-badges {
    display: none;
  }

  .topbar-inner {
    gap: 28px;
  }

  .icon-btn.text-btn {
    width: 42px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    gap: 0;
  }

  .icon-btn.text-btn span {
    color: var(--brand);
  }
}

@media (max-width: 680px) {
  .brand-badges {
    margin-left: auto;
  }

  .mailbox-tip {
    display: none;
  }

  .quick-actions .icon-btn.text-btn {
    width: auto;
  }

  .inbox-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
