:root {
  --bg: #050505;
  --surface: #0b0b0b;
  --card: #111;
  --card-secondary: #171717;
  --border: #242424;
  --border-soft: #1a1a1a;
  --text: #f5f5f5;
  --muted: #8c8c8c;
  --muted-dark: #5f5f5f;
  --accent: #dedede;
  --hover: #191919;
  --success: #22c55e;
  --danger: #ef4444;
  --sidebar: 218px;
  --list: 410px;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
  scrollbar-color: #3b3b3b #070707;
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-track {
  background: #070707;
}
*::-webkit-scrollbar-thumb {
  border: 2px solid #070707;
  border-radius: 999px;
  background: linear-gradient(180deg, #595959, #303030);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #777, #404040);
}
*::-webkit-scrollbar-corner {
  background: #070707;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  max-width: 100%;
  min-height: 100%;
  overflow-x: clip;
  background: var(--bg);
}
body {
  overflow: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
body.page-ready {
  opacity: 1;
  transform: translateY(0);
}
body.page-leaving {
  opacity: 0;
  transform: translateY(4px);
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 10;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) var(--list) 1fr;
  height: 100vh;
  overflow: hidden;
}
.sidebar,
.inbox-panel,
.viewer-panel {
  min-width: 0;
}
.sidebar {
  display: flex;
  flex-direction: column;
  background: #080808;
  border-right: 1px solid var(--border-soft);
  padding: 18px 14px 14px;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #f3f3f3;
  font: 700 17px/1 Space Grotesk;
  text-decoration: none;
  margin: 5px 7px 27px;
  letter-spacing: -0.4px;
}
.brand span span {
  color: #898989;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #050505;
  background: #e6e6e6;
  border-radius: 8px;
  font-size: 15px;
  transform: skew(-5deg);
}
.new-inbox-btn,
.primary-btn {
  border: 1px solid #303030;
  color: #080808;
  background: #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: 0.2s ease;
}
.new-inbox-btn {
  height: 42px;
  width: 100%;
  padding: 0 11px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 12px;
}
.new-inbox-btn kbd {
  color: #555;
  background: #d5d5d5;
  border-radius: 4px;
  font: 600 10px Inter;
  margin-left: auto;
  padding: 2px 5px;
}
.new-inbox-btn:hover,
.primary-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}
.svg-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-label,
.list-meta,
.card-label,
.field-label {
  color: var(--muted-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sidebar-spacer {
  flex: 1;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  color: #777;
  background: transparent;
  padding: 9px 7px;
  text-align: left;
  font-size: 12px;
  transition: 0.2s;
}
.nav-item:hover,
.nav-item.active {
  color: #ddd;
  background: #131313;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b5b5b5;
  padding: 14px 2px 0;
}
.profile strong {
  display: block;
  font-size: 11px;
}
.profile small {
  display: block;
  margin-top: 4px;
  color: #686868;
  font-size: 9px;
}
.profile > .svg-icon {
  margin-left: auto;
  color: #5a5a5a;
}
.online-dot,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px #22c55e99;
}
.inbox-panel {
  overflow: hidden;
  background: #0a0a0a;
  border-right: 1px solid var(--border);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  border-bottom: 1px solid var(--border-soft);
}
.inbox-header {
  padding: 17px 20px 14px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: #747474;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin: 0;
  font-family:
    Space Grotesk,
    Inter,
    sans-serif;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 25px;
}
.header-actions,
.viewer-actions {
  display: flex;
  gap: 5px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #8f8f8f;
  background: #101010;
  transition: 0.18s;
}
.icon-btn:hover {
  border-color: #3b3b3b;
  color: #efefef;
  background: #181818;
}
.icon-btn.danger:hover {
  color: var(--danger);
}
.address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 16px 14px;
  padding: 13px 14px;
  border: 1px solid #292929;
  border-radius: 9px;
  background: linear-gradient(135deg, #171717, #111);
}
.address-stack {
  display: grid;
  gap: 8px;
  min-width: 450px;
}
.plan-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #222;
  border-radius: 7px;
  background: #0d0d0d;
  padding: 8px 10px;
}
.plan-control > div {
  display: grid;
  gap: 3px;
}
.plan-label {
  color: #696969;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.plan-control strong {
  color: #ddd;
  font-size: 12px;
  text-transform: lowercase;
}
.plan-upgrade {
  border: 1px solid #333;
  border-radius: 6px;
  color: #111;
  background: #e5e5e5;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.plan-upgrade:hover {
  background: #fff;
}
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  outline: 0;
  color: #ddd;
  background: #151515;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 700;
}
.address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.address-row strong {
  max-width: 242px;
  overflow: hidden;
  color: #efefef;
  font: 600 13px Space Grotesk;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #343434;
  border-radius: 6px;
  color: #d3d3d3;
  background: #202020;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 600;
  transition: 0.18s;
}
.copy-btn:hover {
  background: #292929;
}
.toolbar {
  display: flex;
  gap: 6px;
  padding: 0 16px 13px;
}
.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #6f6f6f;
  background: #0e0e0e;
}
.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #d7d7d7;
  background: transparent;
  padding: 9px 0;
  font-size: 11px;
}
.filter-btn {
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #777;
  background: #0e0e0e;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 600;
  transition: 0.18s;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: #3b3b3b;
  color: #d5d5d5;
  background: #191919;
}
.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 9px;
}
.list-meta button {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 0;
  color: #6a6a6a;
  background: transparent;
  font-size: 10px;
  text-transform: uppercase;
}
.list-meta .svg-icon {
  width: 12px;
}
.message-list {
  height: calc(100vh - 248px);
  overflow-y: auto;
  border-top: 1px solid var(--border-soft);
}
.message-card {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  color: #8f8f8f;
  background: transparent;
  padding: 15px 17px 14px;
  text-align: left;
  transition: 0.16s;
}
.message-card:hover {
  background: #111;
}
.message-card.active {
  background: #171717;
  box-shadow: inset 2px 0 #e2e2e2;
}
.message-card.unread .message-sender,
.message-card.unread .message-subject {
  color: #e7e7e7;
}
.message-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
}
.message-sender {
  overflow: hidden;
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-time {
  margin-left: auto;
  color: #686868;
  font-size: 10px;
}
.message-subject {
  overflow: hidden;
  color: #c7c7c7;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-preview {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: #717171;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.message-tags {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.tag {
  border: 1px solid #2c2c2c;
  border-radius: 4px;
  color: #797979;
  background: #151515;
  padding: 3px 5px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}
.tag.otp {
  color: #d1d1d1;
  border-color: #4a4a4a;
}
.viewer-panel {
  overflow: hidden;
  background: #0b0b0b;
}
.viewer-header {
  justify-content: flex-end;
  padding: 0 24px;
}
#messageViewer {
  height: calc(100vh - 84px);
  overflow-y: auto;
}
.message-detail {
  max-width: 820px;
  padding: 38px 42px 50px;
  animation: fadeUp 0.32s ease both;
}
.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #282828;
  border-radius: 4px;
  color: #8c8c8c;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.message-detail h2 {
  max-width: 700px;
  margin: 18px 0 23px;
  color: #f0f0f0;
  font-size: 29px;
  line-height: 1.16;
}
.sender {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.sender-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #343434;
  border-radius: 50%;
  color: #b9b9b9;
  background: #1d1d1d;
  font-size: 12px;
  font-weight: 700;
}
.sender strong {
  display: block;
  color: #d8d8d8;
  font-size: 12px;
}
.sender small {
  display: block;
  margin-top: 4px;
  color: #737373;
  font-size: 11px;
}
.sender time {
  margin-left: auto;
  color: #676767;
  font-size: 10px;
}
.mail-body {
  color: #aaa;
  padding-top: 25px;
  font-size: 13px;
  line-height: 1.8;
}
.mail-body p {
  margin: 0 0 17px;
}
.mail-body strong {
  color: #dfdfdf;
}
.otp-block {
  max-width: 380px;
  margin: 25px 0;
  border: 1px solid #333;
  border-radius: 9px;
  background: #121212;
  padding: 18px 19px;
}
.otp-block span {
  display: block;
  color: #777;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.otp-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  color: #eee;
  font: 700 28px Space Grotesk;
  letter-spacing: 0.2em;
}
.otp-code button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #333;
  border-radius: 6px;
  color: #929292;
  background: #1c1c1c;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 290px;
  margin-top: 25px;
  border: 1px solid #292929;
  border-radius: 8px;
  padding: 10px 11px;
  background: #111;
}
.attachment strong,
.attachment small {
  display: block;
}
.attachment strong {
  color: #bfbfbf;
  font-size: 11px;
}
.attachment small {
  margin-top: 3px;
  color: #676767;
  font-size: 10px;
}
.attachment .svg-icon:last-child {
  margin-left: auto;
  color: #737373;
}
.empty-state {
  display: grid;
  place-content: center;
  justify-items: center;
  height: 100%;
  color: #656565;
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  color: #7d7d7d;
  background: #111;
}
.empty-state h3 {
  margin-top: 18px;
  color: #bbb;
  font-size: 17px;
}
.empty-state p {
  max-width: 260px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.modal {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  color: #e8e8e8;
  background: #101010;
  padding: 26px;
  box-shadow: 0 24px 80px #000c;
}
.modal.fallback-open {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 40;
  display: block;
  transform: translate(-50%, -50%);
}
.modal::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
.modal[open] {
  animation: modalIn 0.22s ease both;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  border: 0;
  color: #7b7b7b;
  background: transparent;
}
.modal-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border: 1px solid #323232;
  border-radius: 8px;
  color: #d2d2d2;
  background: #1c1c1c;
}
.modal h2 {
  margin-bottom: 8px;
  font-size: 25px;
}
.modal-copy {
  margin: 0 0 24px;
  color: #7f7f7f;
  font-size: 12px;
  line-height: 1.6;
}
.field-label {
  display: block;
  margin-bottom: 8px;
}
.generator-input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #171717;
}
.generator-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #dedede;
  background: transparent;
  padding: 12px;
  font-size: 12px;
}
.generator-input input {
  flex: 1;
}
.domain-label {
  margin-top: 14px;
}
.domain-picker {
  position: relative;
}
.domain-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #dedede;
  background: #171717;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
}
.domain-trigger:hover,
.domain-trigger[aria-expanded="true"] {
  border-color: #4a4a4a;
  background: #1b1b1b;
}
.domain-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  border: 1px solid #353535;
  border-radius: 8px;
  background: #101010;
  padding: 7px;
  box-shadow: 0 18px 45px #000c;
}
.domain-option {
  border: 0;
  border-radius: 6px;
  color: #aaa;
  background: transparent;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
.domain-option:hover,
.domain-option.active {
  color: #eee;
  background: #1d1d1d;
}
.empty-action {
  width: auto;
  margin-top: 18px;
  padding: 10px 14px;
}
.turnstile-box {
  margin-top: 14px;
}
.primary-btn {
  width: 100%;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}
.modal .primary-btn {
  margin-top: 20px;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #343434;
  border-radius: 7px;
  color: #d3d3d3;
  background: #1b1b1b;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: 0.24s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-icon {
  color: var(--success);
}
.mobile-only {
  display: none;
}
.sidebar-backdrop {
  display: none;
}
.shadow-mode .sidebar {
  background: #050505;
}
.shadow-mode .address-card,
.shadow-mode .message-card.active {
  background: #101010;
}
.spinning .svg-icon {
  animation: spin 0.8s ease;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  :root {
    --sidebar: 218px;
    --list: 365px;
  }
  .message-detail {
    padding: 34px 30px;
  }
}
@media (max-width: 800px) {
  body {
    overflow: hidden;
  }
  .app-shell {
    display: block;
  }
  .mobile-only {
    display: grid;
  }
  .sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: #0009;
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .inbox-panel {
    height: 100vh;
    border-right: 0;
  }
  .viewer-panel {
    position: fixed;
    z-index: 22;
    inset: 0;
    transform: translateX(100%);
    transition: transform 0.26s ease;
  }
  .viewer-panel.open {
    transform: translateX(0);
  }
  .viewer-header {
    justify-content: space-between;
    padding: 0 17px;
  }
  .address-row strong {
    max-width: 55vw;
  }
  .message-detail {
    padding: 27px 21px 40px;
  }
  .message-detail h2 {
    font-size: 25px;
  }
  .message-list {
    height: calc(100vh - 248px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
body {
  min-height: 100vh;
  overflow: hidden;
}
.topbar {
  height: 58px;
  border-bottom: 1px solid var(--border-soft);
  background: #080808;
}
.topbar-inner {
  display: flex;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  height: 100%;
  margin: auto;
}
.topbar .brand {
  gap: 10px;
  margin: 0;
  font:
    700 16px/1 Inter,
    sans-serif;
  letter-spacing: -0.7px;
}
.topbar .brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #333;
  border-radius: 7px;
  color: #e5e5e5;
  background: #141414;
  transform: none;
}
.topbar .brand-logo {
  width: 32px;
  height: 32px;
}
.topbar .brand-mark .svg-icon {
  width: 17px;
  height: 17px;
}
.brand-name span {
  color: #8c8c8c;
}
.topbar-nav {
  display: flex;
  flex: 1;
  align-self: stretch;
  gap: 4px;
  margin-left: 34px;
}
.topbar-nav::-webkit-scrollbar {
  display: none;
}
.topbar-nav {
  scrollbar-width: none;
}
.topbar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 5px;
  color: #858585;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.18s,
    background 0.18s;
}
.topbar-nav a:hover {
  color: #ddd;
  background: #121212;
}
.topbar-nav a.active {
  color: #eee;
}
.topbar-nav a.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 1px;
  background: #e2e2e2;
}
.topbar-nav a[href="/login"],
.topbar-nav a[href="/signup"],
.topbar-nav a[href="/dashboard"] {
  height: 32px;
  align-self: center;
  border: 1px solid #262626;
}
.topbar-nav a[href="/login"],
.topbar-nav a[href="/dashboard"] {
  margin-left: auto;
}
.topbar-nav a[href="/signup"] {
  margin-left: 4px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #858585;
  font-size: 11px;
  font-weight: 500;
}
.message-tags {
  display: none;
}
.page-shell {
  width: min(1180px, 100%);
  height: calc(100vh - 58px);
  margin: auto;
  padding: 24px 18px 0;
}
.address-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
  margin-bottom: 20px;
}
.address-section h1 {
  font-size: 26px;
}
.address-section p {
  margin: 7px 0 0;
  color: #737373;
  font-size: 12px;
}
.inbox-switcher { margin: 0 0 12px; }
.switcher-label { display: flex; justify-content: space-between; margin: 0 2px 7px; color: #666; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.inbox-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 6px; max-height: 116px; overflow-y: auto; padding: 0 4px 2px 0; overscroll-behavior: contain; }
.inbox-tab { display: flex; align-items: center; min-width: 0; border: 1px solid #222; border-radius: 6px; background: #0d0d0d; transition: .18s; }
.inbox-tab:hover { border-color: #333; background: #121212; }
.inbox-tab.active { border-color: #444; background: #171717; }
.inbox-tab.expired { border-color: #3a2c19; background: #141009; }
.inbox-tab > button:first-child { min-width: 0; flex: 1; border: 0; color: #aaa; background: transparent; padding: 9px 8px; text-align: left; }
.inbox-tab strong, .inbox-tab span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-tab strong { color: #ddd; font-size: 11px; }
.inbox-tab span { margin-top: 4px; color: #666; font-size: 9px; }
.inbox-tab small { display: block; margin-top: 4px; color: #8b7a58; font-size: 9px; font-weight: 700; }
.tab-reactivate { flex: none; border: 1px solid #3b3324; border-radius: 5px; color: #d8c08b; background: #1d160c; padding: 6px 7px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tab-reactivate:hover { color: #ffe1a3; background: #261b0d; }
.tab-delete { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 4px; border: 0; border-radius: 5px; color: #666; background: transparent; }
.tab-delete:hover { color: #ef4444; background: #201111; }
.tab-delete .svg-icon { width: 13px; height: 13px; }
.mail-shell {
  display: grid;
  grid-template-columns: var(--list) 1fr;
  height: calc(100vh - 254px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: #0a0a0a;
}
.mail-shell .inbox-header,
.mail-shell .viewer-header {
  height: 58px;
  padding: 0 16px;
}
.mail-shell .inbox-header h2 {
  font-size: 17px;
}
.address-section .address-card {
  min-width: 450px;
  margin: 0;
  padding: 10px;
  border-radius: 7px;
  background: #101010;
}
.address-main,
.address-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.address-main strong {
  max-width: 245px;
  overflow: hidden;
  color: #efefef;
  font: 600 13px Space Grotesk;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secondary-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  color: #999;
  background: transparent;
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 600;
}
.secondary-btn:hover {
  color: #ddd;
  background: #191919;
}
.mail-shell .toolbar {
  padding: 12px 12px 10px;
}
.mail-shell .message-list {
  height: calc(100% - 122px);
}
.mail-shell #messageViewer {
  height: calc(100% - 58px);
}
.html-message {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 800px) {
  .topbar {
    height: auto;
  }
  .topbar-inner {
    flex-wrap: wrap;
    width: calc(100% - 28px);
    padding: 10px 0 8px;
  }
  .topbar-nav {
    display: flex;
    order: 3;
    width: 100%;
    height: 34px;
    gap: 0;
    margin: 7px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar-nav a { flex: none; padding: 0 8px; font-size: 11px; }
  .topbar-nav a[href="/about"],
  .topbar-nav a[href="/support"],
  .topbar-nav a[href="/docs"] {
    display: none;
  }
  .topbar-nav a[href="/login"],
  .topbar-nav a[href="/dashboard"] {
    margin-left: auto;
  }
  .connection {
    font-size: 10px;
  }
  .page-shell {
    height: calc(100vh - 94px);
    padding: 18px 0 0;
  }
  .address-section {
    display: block;
    height: auto;
    margin: 0 14px 16px;
  }
  .address-section h1 {
    font-size: 21px;
  }
  .address-section p {
    display: none;
  }
  .address-stack {
    min-width: 0;
    margin-top: 13px;
  }
  .address-section .address-card {
    display: block;
    min-width: 0;
    padding: 11px;
  }
  .address-main {
    min-width: 0;
    padding: 2px 1px 11px;
  }
  .address-main strong {
    max-width: 100%;
    font-size: 13px;
  }
  .address-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .address-actions .copy-btn,
  .address-actions .secondary-btn {
    justify-content: center;
    min-height: 37px;
  }
  .mail-shell {
    display: block;
    height: calc(100vh - 299px);
    min-height: 290px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .inbox-switcher { margin: 0 10px 10px; }
  .inbox-tabs { grid-template-columns: 1fr; max-height: 102px; overflow-y: auto; padding-right: 4px; }
  .mail-shell .inbox-panel {
    height: 100%;
    border-right: 0;
  }
  .mail-shell .inbox-header {
    height: 52px;
    padding: 0 14px;
  }
  .mail-shell .toolbar {
    flex-wrap: wrap;
    padding: 10px 10px 9px;
  }
  .search-box {
    flex-basis: 100%;
    height: 38px;
  }
  .filter-btn {
    min-height: 31px;
    padding: 0 12px;
  }
  .list-meta {
    padding: 1px 14px 9px;
  }
  .mail-shell .message-list {
    height: calc(100% - 143px);
  }
  .message-card {
    padding: 15px 14px 14px;
  }
  .message-preview {
    margin-top: 6px;
    -webkit-line-clamp: 1;
  }
  .viewer-panel {
    background: #090909;
  }
  .mail-shell .viewer-header {
    height: 54px;
    padding: 0 12px;
    background: #0d0d0d;
  }
  .viewer-actions {
    gap: 4px;
  }
  .viewer-actions .icon-btn {
    width: 33px;
    height: 33px;
    border-color: transparent;
    background: transparent;
  }
  .message-detail {
    padding: 23px 18px 40px;
  }
  .message-detail h2 {
    margin: 14px 0 19px;
    font-size: 23px;
    line-height: 1.2;
  }
  .sender {
    gap: 9px;
    padding-bottom: 18px;
  }
  .sender-avatar {
    width: 34px;
    height: 34px;
  }
  .sender time {
    font-size: 9px;
  }
  .mail-body {
    padding-top: 19px;
    font-size: 13px;
  }
  .otp-block {
    margin: 19px 0;
    padding: 15px;
  }
  .modal {
    padding: 22px 18px;
  }
  .modal h2 {
    font-size: 22px;
  }
  .generator-input {
    display: block;
  }
  .generator-input input {
    width: 100%;
  }
}
@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
