:root {
  --bg: #080c12;
  --panel: #111821;
  --panel-2: #151e27;
  --line: #25313a;
  --line-soft: rgba(181, 217, 225, 0.12);
  --text: #f3f6f4;
  --muted: #87949b;
  --dim: #58666e;
  --acid: #c5ef61;
  --acid-dark: #0b1b13;
  --cyan: #73d8d4;
  --danger: #ff8f85;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: Manrope, Inter, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
svg {
  display: block;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
[hidden] {
  display: none !important;
}
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(95px);
  opacity: 0.22;
  border-radius: 50%;
  z-index: -1;
}
.ambient-one {
  width: 480px;
  height: 480px;
  background: #3c8b7a;
  top: -290px;
  left: -160px;
}
.ambient-two {
  width: 580px;
  height: 580px;
  background: #6b7628;
  right: -340px;
  bottom: -360px;
  opacity: 0.12;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 19px;
  letter-spacing: -0.075em;
  font-weight: 800;
  white-space: nowrap;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.brand-name {
  color: #f5f8f5;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.055em;
}
.brand-domain {
  color: var(--acid);
}
.brand-subline {
  color: #91b69f;
  font: 500 9px/1.2 var(--mono);
  letter-spacing: 0.16em;
}
.brand-muted {
  color: var(--acid);
}
.brand-mark {
  display: flex;
  gap: 3px;
  align-items: end;
  width: 26px;
  height: 25px;
  transform: skew(-18deg);
}
.brand-mark span {
  background: var(--acid);
  width: 7px;
  display: block;
}
.brand-mark span:nth-child(1) {
  height: 12px;
}
.brand-mark span:nth-child(2) {
  height: 19px;
}
.brand-mark span:nth-child(3) {
  height: 25px;
}
.brand-large {
  font-size: 25px;
}
.brand-large .brand-name {
  font-size: 23px;
}
.brand-large .brand-subline {
  font-size: 10px;
}
.brand-large .brand-mark {
  transform: skew(-18deg) scale(1.12);
  margin-right: 5px;
}
.brand-pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--acid);
  border: 1px solid #45643a;
  border-radius: 3px;
  padding: 5px 7px;
  margin-left: 4px;
}
.section-kicker,
.eyebrow,
.auth-panel-label,
.panel-id,
.account-label,
.otp-badge,
.otp-sequence,
.otp-meta,
.otp-card-foot,
.reader-body-label,
.reader-overline,
.auth-foot,
.auth-panel-bottom,
.app-footer,
.auth-help,
label,
.field-hint,
.story-route,
.live-indicator,
.back-button,
.count-pill {
  font-family: var(--mono);
}
.section-kicker {
  margin: 0;
  color: var(--acid);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
}
.period,
.kicker-accent {
  color: var(--acid);
}
/* Sign in */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(410px, 0.87fr);
  width: min(1180px, 100%);
  min-height: min(740px, calc(100dvh - 56px));
  border: 1px solid var(--line-soft);
  box-shadow: 0 28px 95px #0008;
  overflow: hidden;
  background: var(--panel);
}
.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 50px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 58%, #1e3933 0, transparent 39%),
    linear-gradient(145deg, #13211f, #0c1519 72%);
}
.auth-story:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#b8eeb012 1px, transparent 1px),
    linear-gradient(90deg, #b8eeb012 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000b);
  pointer-events: none;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid #b6eaa230;
  border-radius: 50%;
  right: -160px;
  top: 32%;
  box-shadow:
    0 0 0 68px #b6eaa208,
    0 0 0 140px #b6eaa205;
  pointer-events: none;
}
.auth-story > * {
  z-index: 1;
}
.auth-story-content {
  max-width: 520px;
  margin-top: 60px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.eyebrow-line {
  width: 21px;
  height: 1px;
  background: var(--acid);
}
.eyebrow-index {
  color: #759080;
  margin-left: auto;
}
.auth-story h1 {
  font-size: clamp(48px, 5.2vw, 75px);
  line-height: 1.08;
  letter-spacing: -0.082em;
  margin: 24px 0 24px;
  font-weight: 800;
}
.auth-story h1 em {
  font-style: normal;
  color: var(--acid);
}
.auth-story-content > p {
  max-width: 410px;
  color: #a9bdb7;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.story-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 62px;
  color: #d1ded9;
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.route-accent,
.route-end {
  color: var(--acid);
}
.route-line {
  width: 44px;
  height: 1px;
  background: #69877a;
}
.story-route .icon {
  width: 15px;
}
.route-end {
  margin-left: auto;
}
.auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid #bce7bb2a;
  color: #719085;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.auth-panel {
  background: #111820;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 49px 31px;
  position: relative;
}
.auth-panel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 2px;
  background: var(--acid);
}
.auth-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #809096;
  font-size: 10px;
  letter-spacing: 0.13em;
}
.panel-id {
  color: #5d6b70;
}
.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  margin: 35px auto;
}
.auth-icon,
.modal-icon {
  width: 52px;
  height: 52px;
  background: #223127;
  border: 1px solid #435e3f;
  display: grid;
  place-items: center;
  color: var(--acid);
  border-radius: 13px;
  margin-bottom: 29px;
}
.auth-icon .icon,
.modal-icon .icon {
  width: 23px;
  height: 23px;
}
.auth-form-wrap h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.065em;
  margin: 10px 0 12px;
}
.auth-subtitle {
  color: #91a0a4;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 34px;
}
.auth-form-wrap form,
.modal form {
  display: flex;
  flex-direction: column;
}
label {
  font-size: 10px;
  font-weight: 500;
  color: #a7b7b9;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}
.field {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  border: 1px solid #324047;
  background: #0b1219;
  border-radius: 7px;
  padding: 0 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field:focus-within {
  border-color: #92c88a;
  box-shadow: 0 0 0 3px #bced8620;
}
.field > .icon {
  width: 17px;
  height: 17px;
  color: #6e8488;
}
.field input {
  background: transparent;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  color: #fff;
  font-size: 13px;
  padding: 15px 0;
}
.field input::placeholder {
  color: #607078;
}
.field input:focus-visible {
  outline: 0;
}
.field-hint {
  font-size: 10px;
  color: #75858b;
  line-height: 1.5;
  margin: 9px 0 26px;
}
.password-field {
  margin-bottom: 18px;
}
.field-action {
  border: 0;
  background: transparent;
  padding: 7px;
  color: #8ea1a2;
}
.field-action:hover {
  color: var(--acid);
}
.field-action .icon {
  width: 18px;
  height: 18px;
}
.form-error {
  color: #ffd3ce;
  background: #542e2c65;
  border: 1px solid #8f514b;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 15px;
}
.primary-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: #14200c;
  border-radius: 6px;
  padding: 0 21px;
  min-height: 52px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition:
    transform 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.primary-button:hover {
  transform: translateY(-2px);
  background: #d8ff7b;
  box-shadow: 0 9px 32px #bdeb4e38;
}
.primary-button:active {
  transform: scale(0.985);
}
.primary-button:disabled {
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}
.primary-button .icon {
  width: 18px;
}
.login-button {
  width: 100%;
}
.auth-help {
  color: #74848a;
  font-size: 10px;
  line-height: 1.6;
  margin: 23px 0 0;
  text-align: center;
}
.auth-panel-bottom {
  color: #667c7b;
  font-size: 9px;
  letter-spacing: 0.09em;
  border-top: 1px solid #29363a;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.secure-dot {
  width: 6px;
  height: 6px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--acid);
}
.bottom-divider {
  height: 12px;
  width: 1px;
  background: #3b494a;
  margin: 0 8px;
}
/* Mailbox */
.app-shell {
  min-height: 100vh;
}
.app-header {
  height: 77px;
  border-bottom: 1px solid var(--line-soft);
  background: #0b1118e8;
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(30px, calc((100vw - 1440px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-account {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-right: 13px;
  padding-right: 20px;
  border-right: 1px solid var(--line-soft);
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--acid);
  background: #253523;
  border: 1px solid #5b744b;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}
.header-account > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 230px;
}
.account-label {
  color: #77898b;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.header-account strong {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid #2d3c42;
  background: #172128;
  color: #abbabd;
  border-radius: 6px;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.icon-button:hover {
  background: #24343a;
  color: var(--acid);
  transform: translateY(-1px);
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.workspace {
  width: min(1440px, 100%);
  margin: auto;
  padding: 34px 30px 24px;
}
.workspace-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 0 0 24px;
}
.workspace-intro h1 {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.065em;
  line-height: 1.16;
  margin: 7px 0 0;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #345148;
  background: #11211e;
  color: #a9d4b9;
  padding: 10px 13px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.live-indicator.is-offline {
  background: #24201a;
  border-color: #675136;
  color: #e1b178;
}
.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}
.live-dot:after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  animation: live-pulse 2s infinite;
}
.is-offline .live-dot {
  background: #d7a465;
  box-shadow: none;
}
.is-offline .live-dot:after {
  display: none;
}
@keyframes live-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.otp-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #638e56;
  border-radius: 11px;
  background: radial-gradient(
    circle at 74% 45%,
    #294734 0,
    #142820 43%,
    #111e1c 76%
  );
  box-shadow:
    inset 0 0 0 1px #aeeaa015,
    0 16px 55px #0005,
    0 0 55px #8ddd5415;
  margin-bottom: 22px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.otp-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 370px;
  height: 370px;
  border: 1px solid #abeb9650;
  box-shadow:
    0 0 0 42px #c1ee9d0b,
    0 0 0 96px #c1ee9d0a,
    0 0 0 160px #c1ee9d05;
  border-radius: 50%;
  right: 6%;
  top: -160px;
}
.otp-card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--acid), transparent);
}
.otp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#add3930b 1px, transparent 1px),
    linear-gradient(90deg, #add3930b 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000);
  z-index: -1;
}
.otp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 26px 0;
}
.otp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #b3ee8c13;
  border: 1px solid #b3ee8c46;
  border-radius: 3px;
  padding: 8px 10px;
  color: #d7f6a5;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.otp-badge .icon {
  width: 14px;
  height: 14px;
}
.otp-sequence {
  color: #80a18c;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.otp-card-body {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 30px 27px;
}
.otp-main {
  min-width: 0;
}
.otp-card h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: #f1f8ed;
}
.otp-description {
  color: #9fbdab;
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}
.otp-code-line {
  display: flex;
  align-items: center;
  gap: 19px;
  margin: 16px 0 10px;
}
.otp-code {
  color: #e1ff9b;
  font-family: var(--mono);
  font-size: clamp(44px, 6.1vw, 91px);
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 0 40px #baf16f47;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.otp-code-caret {
  width: 2px;
  height: clamp(36px, 4.5vw, 64px);
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  animation: blink 1.1s steps(1) infinite;
}
.is-waiting .otp-code {
  color: #8daa82;
  text-shadow: none;
  opacity: 0.65;
}
.is-waiting .otp-code-caret {
  opacity: 0.4;
}
.otp-card.is-fresh {
  animation: card-flash 1.25s ease-out;
}
@keyframes card-flash {
  0% {
    box-shadow: 0 0 0 0 #c5ef6100;
  }
  30% {
    box-shadow:
      0 0 0 5px #c5ef6155,
      0 0 80px #baf16f65;
  }
  100% {
    box-shadow:
      0 16px 55px #0005,
      0 0 55px #8ddd5415;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.otp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a5c3a2;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.otp-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
}
.copy-button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 210px;
  min-height: 55px;
  border: 1px solid var(--acid);
  border-radius: 5px;
  background: var(--acid);
  color: #172612;
  padding: 0 13px 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.copy-button:hover:not(:disabled) {
  transform: translateY(-3px);
  background: #dcff95;
  box-shadow: 0 10px 28px #bff57555;
}
.copy-button:active:not(:disabled) {
  transform: scale(0.96);
}
.copy-button:disabled {
  background: #79977a;
  border-color: #79977a;
  color: #263a26;
  opacity: 0.7;
}
.copy-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #ffffff4a;
  border-radius: 3px;
}
.copy-icon .icon {
  width: 17px;
  height: 17px;
}
.copy-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
}
.copy-button.is-copied {
  background: #e3ffae;
  animation: copy-bounce 0.35s ease-out;
}
@keyframes copy-bounce {
  50% {
    transform: scale(1.045);
  }
}
.otp-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #c8edb021;
  padding: 12px 26px;
  color: #7e9b81;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.foot-slash {
  color: var(--acid);
  padding: 0 4px;
}
.mail-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.39fr) minmax(0, 0.61fr);
  gap: 18px;
  min-height: 520px;
}
.mail-panel {
  background: linear-gradient(145deg, #131c24, #0f171e);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 505px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 22px 19px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0 0;
  font-size: 21px;
  letter-spacing: -0.05em;
}
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 23px;
  padding: 0 5px;
  border: 1px solid #425456;
  background: #25353a;
  border-radius: 4px;
  color: #b6d0ca;
  font-size: 11px;
  letter-spacing: 0;
}
.refresh-button.is-spinning .icon {
  animation: spin 0.65s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.message-list {
  max-height: 590px;
  overflow: auto;
}
.message-item {
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  position: relative;
  transition: background 0.16s;
}
.message-item:hover {
  background: #1b2a2b;
}
.message-item.is-selected {
  background: linear-gradient(90deg, #203b31, #1a292a 80%);
}
.message-item.is-selected:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--acid);
}
.message-item.is-unread .message-subject {
  color: #fff;
}
.message-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #557c60;
  background: #243e32;
  border-radius: 5px;
  color: #c9eeaa;
  font-size: 14px;
  font-weight: 800;
}
.message-info {
  min-width: 0;
  flex: 1;
}
.message-head,
.message-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.message-sender {
  color: #c1d1ce;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-time {
  color: #71858a;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}
.message-subject {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b0c1bd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 5px 0 8px;
}
.message-bottom {
  justify-content: flex-start;
}
.message-otp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  background: #b4e97517;
  border: 1px solid #93b46a55;
  border-radius: 3px;
  color: #d3efa9;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.message-no-otp {
  color: #708489;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  margin-left: auto;
  box-shadow: 0 0 9px var(--acid);
}
.empty-list {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 66px 28px;
  color: #9badad;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #3a5550;
  border-radius: 15px;
  background: #1b302c;
  color: #acd689;
  margin-bottom: 18px;
}
.empty-icon .icon {
  width: 26px;
  height: 26px;
}
.empty-list strong {
  font-size: 14px;
  color: #d8e3dd;
}
.empty-list p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 240px;
  margin: 8px 0 0;
}
.reader-placeholder {
  height: 100%;
  min-height: 505px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.placeholder-graphic {
  position: relative;
  width: 96px;
  height: 96px;
  border: 1px solid #395149;
  background: radial-gradient(circle, #294236, #162720);
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #bce78e;
  box-shadow:
    0 0 0 22px #acd78906,
    0 0 0 48px #acd78904;
  margin-bottom: 48px;
  transform: rotate(-7deg);
}
.placeholder-graphic .icon {
  width: 42px;
  height: 42px;
  transform: rotate(7deg);
}
.placeholder-ping {
  position: absolute;
  right: -6px;
  top: -7px;
  width: 16px;
  height: 16px;
  border: 3px solid #162720;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 17px var(--acid);
}
.reader-placeholder h2 {
  font-size: 22px;
  letter-spacing: -0.05em;
  margin: 12px 0 7px;
}
.reader-placeholder p {
  font-size: 12px;
  color: #839699;
}
.reader-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 505px;
}
.reader-topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
}
.back-button {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 0;
}
.back-button .icon {
  width: 16px;
  height: 16px;
}
.reader-header {
  padding: 24px 29px 23px;
  border-bottom: 1px solid var(--line);
}
.reader-overline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a4c29d;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.mail-type-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
}
.reader-header h2 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.055em;
  margin: 12px 0 22px;
  overflow-wrap: anywhere;
}
.reader-address {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sender-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: #263b34;
  border: 1px solid #4b6a58;
  color: var(--acid);
  font-family: var(--mono);
  font-weight: 500;
}
.reader-address div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.reader-address span:not(.sender-avatar) {
  color: #cbdad5;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.reader-address small {
  font-size: 10px;
  color: #7e9193;
  font-family: var(--mono);
}
.reader-otp {
  margin: 20px 29px 0;
  padding: 16px 18px;
  border: 1px solid #52794b;
  background: #1d3226;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.reader-otp > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.reader-otp strong {
  font: 500 25px var(--mono);
  letter-spacing: 0.08em;
  color: #e4ffa9;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #76976a;
  background: #30472d;
  border-radius: 4px;
  color: #def4be;
  padding: 9px 12px;
  font: 500 10px var(--mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.secondary-button:hover {
  background: #426038;
}
.secondary-button .icon {
  width: 15px;
  height: 15px;
}
.reader-body-label {
  color: #788f91;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 22px 29px 11px;
}
.reader-content iframe {
  width: calc(100% - 58px);
  flex: 1;
  min-height: 290px;
  margin: 0 29px 29px;
  background: #fff;
  border: 0;
  border-radius: 4px;
  color: #111;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 0;
  color: #5f777a;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.app-footer a {
  color: #afcf9a;
  text-decoration: none;
  border-bottom: 1px solid #78946d;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.app-footer a:hover {
  color: var(--acid);
  border-color: var(--acid);
}
/* Modal and feedback */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #020508bd;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: min(450px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid #43534a;
  border-radius: 10px;
  background: linear-gradient(150deg, #1a2926, #111b22 55%);
  box-shadow: 0 30px 100px #000b;
  padding: 25px 28px 28px;
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-icon {
  margin: 19px 0 15px;
}
.modal h2 {
  font-size: 29px;
  letter-spacing: -0.06em;
  margin: 0 0 6px;
}
.modal-description {
  color: #8fa3a0;
  font-size: 12px;
  margin: 0 0 24px;
}
.modal label {
  margin-top: 15px;
}
.modal .field {
  min-height: 48px;
}
.modal .field input {
  padding: 12px 0;
}
.modal .form-error {
  margin: 18px 0 0;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}
.modal-actions .primary-button {
  min-height: 45px;
  font-size: 10px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #a4b4b1;
  font: 500 10px var(--mono);
  letter-spacing: 0.07em;
  padding: 12px;
}
.text-button:hover {
  color: #fff;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 13px 17px;
  max-width: min(360px, calc(100vw - 32px));
  background: #263f2d;
  border: 1px solid #6ca45c;
  border-radius: 6px;
  color: #e1f7d1;
  box-shadow: 0 15px 45px #0008;
  font-size: 12px;
  font-weight: 700;
  animation: toast-in 0.22s ease-out;
}
.toast.is-error {
  background: #462a29;
  border-color: #ad6861;
  color: #ffe3df;
}
@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .auth-page {
    padding: 0;
  }
  .auth-layout {
    min-height: 100dvh;
    width: 100%;
    grid-template-columns: 1fr;
    border: 0;
  }
  .auth-story {
    min-height: 320px;
    padding: 26px 30px;
  }
  .auth-story-content {
    margin-top: 38px;
  }
  .auth-story h1 {
    font-size: 46px;
    margin: 15px 0 12px;
  }
  .auth-story-content > p {
    font-size: 13px;
  }
  .story-route,
  .auth-foot {
    display: none;
  }
  .auth-panel {
    padding: 30px;
    min-height: 580px;
  }
  .auth-form-wrap {
    margin: 25px auto;
  }
  .mail-grid {
    grid-template-columns: minmax(260px, 0.44fr) minmax(0, 0.56fr);
  }
  .otp-code {
    font-size: clamp(44px, 6vw, 64px);
  }
}
@media (max-width: 680px) {
  .app-header {
    height: 64px;
    padding: 0 16px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-pill {
    display: none;
  }
  .brand-mark {
    transform: skew(-18deg) scale(0.88);
    margin-right: -2px;
  }
  .header-account {
    margin-right: 2px;
    padding-right: 10px;
    gap: 7px;
  }
  .account-avatar,
  .account-label {
    display: none;
  }
  .header-account > div {
    max-width: 115px;
  }
  .header-account strong {
    font-size: 10px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-button {
    width: 33px;
    height: 33px;
  }
  .workspace {
    padding: 23px 14px 20px;
  }
  .workspace-intro {
    align-items: start;
    gap: 12px;
    margin-bottom: 17px;
  }
  .workspace-intro h1 {
    font-size: 28px;
  }
  .live-indicator {
    padding: 7px 8px;
    font-size: 0;
    min-width: 28px;
    height: 28px;
    justify-content: center;
    margin-top: 3px;
  }
  .live-indicator .live-dot {
    width: 7px;
    height: 7px;
  }
  .live-indicator #liveText {
    display: none;
  }
  .otp-card {
    margin-bottom: 16px;
    border-radius: 9px;
  }
  .otp-card:before {
    right: -150px;
    top: -145px;
  }
  .otp-card-head {
    padding: 15px 16px 0;
  }
  .otp-badge {
    font-size: 9px;
    padding: 7px;
  }
  .otp-sequence {
    font-size: 8px;
  }
  .otp-card-body {
    padding: 22px 18px 19px;
    display: block;
  }
  .otp-card h2 {
    font-size: 14px;
  }
  .otp-description {
    font-size: 11px;
    max-width: 320px;
  }
  .otp-code-line {
    margin: 19px 0 11px;
    gap: 12px;
  }
  .otp-code {
    font-size: clamp(45px, 11.3vw, 75px);
    letter-spacing: 0.065em;
  }
  .otp-code-caret {
    height: 40px;
  }
  .otp-meta {
    font-size: 9px;
  }
  .copy-button {
    width: 100%;
    min-height: 53px;
    margin-top: 23px;
    font-size: 11px;
  }
  .otp-card-foot {
    padding: 10px 16px;
    font-size: 8px;
  }
  .otp-card-foot span:last-child {
    display: none;
  }
  .mail-grid {
    display: block;
    min-height: 0;
  }
  .mail-panel {
    min-height: 370px;
  }
  .list-panel {
    display: block;
  }
  .reader-panel {
    display: none;
  }
  .mail-grid.is-reading .list-panel {
    display: none;
  }
  .mail-grid.is-reading .reader-panel {
    display: block;
  }
  .panel-heading {
    padding: 19px;
  }
  .message-list {
    max-height: none;
  }
  .message-item {
    padding: 17px 18px;
  }
  .reader-topline {
    justify-content: space-between;
    padding: 18px;
  }
  .back-button {
    display: inline-flex;
  }
  .reader-header {
    padding: 21px 18px;
  }
  .reader-header h2 {
    font-size: 23px;
  }
  .reader-otp {
    margin: 16px 18px 0;
    padding: 14px;
  }
  .reader-otp strong {
    font-size: 21px;
  }
  .reader-body-label {
    padding: 20px 18px 10px;
  }
  .reader-content iframe {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    min-height: 360px;
  }
  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 8px;
  }
  .toast {
    right: 16px;
    bottom: 16px;
  }
  .modal {
    padding: 22px;
  }
}
@media (max-width: 400px) {
  .auth-story {
    min-height: 265px;
  }
  .auth-story h1 {
    font-size: 40px;
  }
  .auth-story-content > p {
    font-size: 12px;
  }
  .auth-panel {
    padding: 24px 22px;
  }
  .auth-panel-bottom {
    font-size: 8px;
  }
  .workspace-intro h1 {
    font-size: 25px;
  }
  .otp-code {
    font-size: clamp(41px, 11vw, 55px);
  }
  .otp-badge {
    letter-spacing: 0;
  }
  .otp-sequence {
    display: none;
  }
  .reader-otp {
    align-items: start;
    flex-direction: column;
  }
  .secondary-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.auth-story h1 {
  letter-spacing: -0.055em;
}
.auth-form-wrap h2,
.workspace-intro h1,
.reader-header h2,
.panel-heading h2,
.reader-placeholder h2 {
  letter-spacing: -0.035em;
}
@media (max-width: 680px) {
  .header-account > div {
    display: none;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-subline {
    font-size: 8px;
  }
  .brand-large .brand-name {
    font-size: 20px;
  }
  .brand-large .brand-subline {
    font-size: 9px;
  }
  .account-avatar {
    display: grid;
  }
  .header-account {
    padding-right: 9px;
    margin-right: 0;
  }
  .otp-code {
    font-size: clamp(36px, 10vw, 64px);
    letter-spacing: 0.04em;
  }
}
@media (max-width: 360px) {
  .app-header .brand {
    gap: 7px;
  }
  .app-header .brand-name {
    font-size: 13px;
  }
  .app-header .brand-subline {
    font-size: 7px;
  }
  .header-account {
    display: none;
  }
}
@media (max-width: 400px) {
  .otp-code {
    font-size: clamp(36px, 10vw, 45px);
  }
}

/* ======================================================================
   GUIDE BANNER ABOVE HÒM THƯ CỦA BẠN
   ====================================================================== */
.guide-banner {
  position: relative;
  margin-bottom: 26px;
  background: linear-gradient(135deg, rgba(21, 30, 39, 0.95) 0%, rgba(13, 27, 19, 0.9) 100%);
  border: 1px solid rgba(197, 239, 97, 0.28);
  border-radius: 14px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(197, 239, 97, 0.15);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.guide-banner:hover {
  border-color: rgba(197, 239, 97, 0.55);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.5), 0 0 28px rgba(197, 239, 97, 0.12);
  transform: translateY(-1px);
}

.guide-banner-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(197, 239, 97, 0.15) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
}

.guide-banner-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 820px;
}

.guide-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(197, 239, 97, 0.12);
  border: 1px solid rgba(197, 239, 97, 0.25);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--acid);
}

.guide-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.guide-banner-title {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.25;
}

.guide-banner-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-banner-right {
  flex-shrink: 0;
}

.guide-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  background: var(--acid);
  color: #0b1509;
  border: 1px solid var(--acid);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(197, 239, 97, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.guide-banner-btn:hover {
  background: #d8ff75;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(197, 239, 97, 0.45);
}

.guide-banner-btn .guide-btn-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0b1509;
  color: var(--acid);
}

.guide-banner-btn:hover .guide-btn-icon {
  background: #000;
  color: #d8ff75;
}

.guide-banner-btn .arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.guide-banner-btn:hover .arrow-icon {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .guide-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
  }
  .guide-banner-right {
    width: 100%;
  }
  .guide-banner-btn {
    width: 100%;
    justify-content: center;
  }
}
