:root {
  --ink: #0d0f0e;
  --ink-soft: #171a18;
  --ink-raised: #202421;
  --paper: #efeee5;
  --paper-bright: #fbfaf3;
  --paper-muted: #deddd3;
  --text-primary: #111310;
  --text-secondary: #686b64;
  --text-on-dark: #f4f3ea;
  --text-dark-muted: #9da29a;
  --acid: #c8ff3d;
  --acid-deep: #9dd313;
  --coral: #ff705d;
  --cyan: #72dfe2;
  --border-dark: rgba(255, 255, 255, 0.13);
  --border-light: rgba(13, 15, 14, 0.15);
  --shadow-panel: 0 28px 80px rgba(0, 0, 0, 0.28);
  --font-sans: "Manrope", Arial, sans-serif;
  --font-mono: "DM Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scrollbar-color: rgba(244, 243, 234, 0.22) transparent;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

body:not(.authenticated) {
  overflow: hidden;
}

body:not(.authenticated) > .app-container,
body:not(.authenticated) > .modal-overlay,
body:not(.authenticated) > .toast-container {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

body.authenticated > .app-container {
  visibility: visible;
}

::-webkit-scrollbar {
  height: 7px;
  width: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(244, 243, 234, 0.2);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 243, 234, 0.34);
  background-clip: padding-box;
}

.main-panel,
.modal-content,
.msg-body {
  scrollbar-color: rgba(13, 15, 14, 0.24) transparent;
  scrollbar-width: thin;
}

.main-panel::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.msg-body::-webkit-scrollbar-thumb {
  background: rgba(13, 15, 14, 0.2);
  background-clip: padding-box;
  border: 2px solid transparent;
}

.main-panel::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.msg-body::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 15, 14, 0.34);
  background-clip: padding-box;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

svg {
  display: block;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

.ambient {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  position: absolute;
}

.ambient-scan {
  animation: ambientScan 9s var(--ease-out) infinite;
  background: rgba(200, 255, 61, 0.1);
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

@keyframes ambientScan {
  0% {
    opacity: 0;
    transform: translateY(4vh);
  }
  12% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(92vh);
  }
}

.auth-gate {
  align-items: flex-start;
  background: var(--ink);
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  overflow: auto;
  padding: 0 32px;
  position: fixed;
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
  z-index: 300;
}

body.authenticated .auth-gate {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.auth-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1220px;
  position: relative;
  width: 100%;
}

.auth-header {
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  flex: 0 0 80px;
  justify-content: space-between;
}

.auth-environment,
.auth-step,
.auth-footer,
.auth-index,
.auth-context p {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.auth-environment {
  align-items: center;
  color: var(--text-dark-muted);
  display: inline-flex;
  font-size: 10px;
  gap: 9px;
}

.auth-workspace {
  align-items: stretch;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(240px, 0.68fr) minmax(440px, 1fr);
  min-height: 610px;
  min-width: 0;
  width: 100%;
}

.auth-context {
  border-right: 1px solid var(--border-dark);
  color: var(--text-dark-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 64px 50px 0;
}

.auth-index {
  color: var(--acid);
  font-size: 9px;
}

.auth-signal {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 46px);
  margin: 28px 0 30px;
  width: max-content;
}

.auth-signal span {
  aspect-ratio: 1;
  border: 1px solid rgba(244, 243, 234, 0.22);
  position: relative;
}

.auth-signal span:first-child,
.auth-signal span:last-child {
  background: var(--acid);
  border-color: var(--acid);
}

.auth-signal span:last-child {
  background: transparent;
}

.auth-signal span:last-child::after {
  border: 1px solid var(--acid);
  content: "";
  inset: 9px;
  position: absolute;
}

.auth-context p {
  font-size: 9px;
}

.auth-panel {
  align-self: center;
  background: var(--paper-bright);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  color: var(--text-primary);
  justify-self: end;
  max-width: 520px;
  min-height: 510px;
  min-width: 0;
  padding: 34px;
  position: relative;
  width: 100%;
}

.auth-panel::before {
  background: var(--acid);
  content: "";
  height: 3px;
  left: 34px;
  position: absolute;
  top: -1px;
  width: 74px;
}

.auth-panel-head {
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding-bottom: 18px;
}

.auth-lock {
  align-items: center;
  background: var(--ink);
  color: var(--acid);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.auth-lock svg,
.auth-toggle-token svg,
.auth-submit svg,
.btn-logout svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.auth-lock svg {
  height: 18px;
  width: 18px;
}

.auth-step {
  color: var(--text-secondary);
  font-size: 8px;
}

.auth-checking {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 84px 34px 64px;
  justify-content: center;
  position: absolute;
}

.auth-checking p {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  margin-top: 18px;
  text-transform: uppercase;
}

.auth-loader {
  border: 1px solid var(--border-light);
  height: 38px;
  position: relative;
  width: 38px;
}

.auth-loader::after {
  animation: authLoader 1s steps(4, end) infinite;
  background: var(--ink);
  content: "";
  height: 8px;
  left: 7px;
  position: absolute;
  top: 7px;
  width: 8px;
}

@keyframes authLoader {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(15px, 0);
  }
  50% {
    transform: translate(15px, 15px);
  }
  75% {
    transform: translate(0, 15px);
  }
}

.auth-form {
  padding-top: 34px;
}

.auth-form h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.auth-copy {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 27px;
  max-width: 390px;
}

.auth-form > label {
  color: var(--text-secondary);
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 52px;
  outline: none;
  padding: 0 52px 0 14px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
  width: 100%;
}

.auth-input-wrap input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.72);
}

.auth-input-wrap input[aria-invalid="true"] {
  border-color: #b93425;
  box-shadow: 0 0 0 3px rgba(255, 112, 93, 0.22);
}

.auth-input-wrap input::placeholder {
  color: #969990;
  font-family: var(--font-sans);
}

.auth-toggle-token {
  align-items: center;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
}

.auth-toggle-token:hover {
  color: var(--text-primary);
}

.auth-toggle-token svg {
  height: 18px;
  width: 18px;
}

.auth-eye-closed,
.auth-toggle-token.is-visible .auth-eye-open {
  display: none;
}

.auth-toggle-token.is-visible .auth-eye-closed {
  display: block;
}

.auth-error {
  color: #a52616;
  font-size: 10px;
  min-height: 29px;
  padding-top: 8px;
}

.auth-submit {
  align-items: center;
  background: var(--ink);
  color: var(--text-on-dark);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 16px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  width: 100%;
}

.auth-submit:hover:not(:disabled) {
  background: var(--ink-raised);
  transform: translateY(-2px);
}

.auth-submit.is-success {
  background: var(--acid);
  color: var(--ink);
}

.auth-submit svg {
  height: 18px;
  width: 18px;
}

.button-loader {
  animation: buttonSpin 700ms linear infinite;
  border: 1px solid rgba(244, 243, 234, 0.35);
  border-right-color: var(--acid);
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-footer {
  bottom: 25px;
  color: var(--text-secondary);
  display: flex;
  font-size: 8px;
  justify-content: space-between;
  left: 34px;
  position: absolute;
  right: 34px;
}

.app-container {
  margin: 0 auto;
  max-width: 1480px;
  padding: 0 32px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.app-header {
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  height: 80px;
  justify-content: space-between;
  opacity: 0;
}

.brand {
  align-items: center;
  color: var(--text-on-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  color: var(--acid);
  height: 25px;
  transition: transform 450ms var(--ease-spring);
  width: 25px;
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.header-status {
  align-items: center;
  color: var(--text-dark-muted);
  display: flex;
  font-family: var(--font-mono);
  font-size: 11px;
  gap: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn-logout {
  align-items: center;
  background: transparent;
  border-left: 1px solid var(--border-dark);
  color: var(--text-dark-muted);
  display: inline-flex;
  height: 44px;
  justify-content: flex-end;
  margin-left: 2px;
  padding-left: 16px;
  width: 45px;
}

.btn-logout:hover {
  color: var(--acid);
}

.btn-logout svg {
  height: 18px;
  width: 18px;
}

.system-state {
  align-items: center;
  color: var(--text-on-dark);
  display: inline-flex;
  gap: 8px;
}

.status-dot {
  animation: statusPulse 2.2s ease-in-out infinite;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.5);
  display: inline-block;
  height: 7px;
  width: 7px;
}

.header-rule {
  background: var(--border-dark);
  height: 20px;
  width: 1px;
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 61, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(200, 255, 61, 0.12);
  }
}

.workspace {
  display: grid;
  grid-template-columns: minmax(330px, 0.42fr) minmax(600px, 0.78fr);
  min-height: calc(100vh - 80px);
}

.manifest {
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 74px 48px 46px 0;
}

.manifest-content {
  max-width: 520px;
}

.manifest-line {
  opacity: 0;
  transform: translateY(22px);
}

.eyebrow,
.section-label {
  align-items: center;
  display: flex;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--text-dark-muted);
  gap: 14px;
  margin-bottom: 32px;
}

.eyebrow span {
  color: var(--acid);
}

.manifest h1 {
  color: var(--text-on-dark);
  font-size: 58px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.01;
  margin-bottom: 32px;
}

.accent-text {
  color: var(--acid);
  font-weight: 700;
}

.manifest-copy {
  color: var(--text-dark-muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 470px;
}

.trust-metrics {
  border-bottom: 1px solid var(--border-dark);
  border-top: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 72px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 94px;
  padding: 19px 18px 16px 0;
}

.metric:nth-child(2) {
  border-left: 1px solid var(--border-dark);
  padding-left: 22px;
}

.metric-wide {
  align-items: center;
  border-top: 1px solid var(--border-dark);
  flex-direction: row;
  grid-column: 1 / -1;
  min-height: 58px;
}

.metric-value {
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 500;
}

.metric-wide .metric-value {
  color: var(--acid);
  font-size: 12px;
  min-width: 54px;
}

.metric-label {
  color: var(--text-dark-muted);
  font-size: 11px;
}

.privacy-note {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.privacy-note svg {
  fill: none;
  flex: 0 0 auto;
  height: 21px;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 21px;
}

.privacy-note p {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 3px;
}

.privacy-note strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

.privacy-note span {
  color: var(--text-dark-muted);
}

.console-wrap {
  min-width: 0;
  padding: 30px 0 30px 42px;
}

.console-index {
  color: var(--text-dark-muted);
  display: flex;
  font-family: var(--font-mono);
  font-size: 9px;
  justify-content: space-between;
  letter-spacing: 0;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.glass-panel {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  color: var(--text-primary);
}

.main-panel {
  min-height: 680px;
  opacity: 0;
  overflow: hidden;
  padding: 42px;
  position: relative;
}

.main-panel::before {
  background: var(--acid);
  content: "";
  height: 3px;
  left: 42px;
  position: absolute;
  top: 0;
  width: 48px;
}

.state-view {
  display: none;
  min-height: 594px;
  width: 100%;
}

.state-view.active {
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  align-items: flex-end;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  min-height: 88px;
  padding-bottom: 24px;
}

.dashboard-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dashboard-actions .btn-sm {
  min-height: 42px;
}

.section-label {
  color: var(--text-secondary);
  margin-bottom: 9px;
}

.title-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.dashboard-title,
.inbox-header h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.count-badge,
.badge,
.timer-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 9px;
  justify-content: center;
  letter-spacing: 0;
  text-transform: uppercase;
}

.count-badge {
  background: rgba(13, 15, 14, 0.07);
  color: var(--text-secondary);
  min-height: 25px;
  padding: 0 10px;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-quiet,
.btn-copy,
.btn-back,
.empty-cta,
.btn-icon {
  align-items: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  position: relative;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease,
    transform 350ms var(--ease-out);
}

.btn-primary svg,
.btn-secondary svg,
.btn-danger svg,
.btn-copy svg,
.btn-back svg,
.empty-cta svg,
.btn-icon svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 17px;
}

.btn-primary {
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 0 20px;
}

.btn-primary::before {
  background: var(--acid);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateY(102%);
  transition: transform 430ms var(--ease-out);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.btn-copy:active,
.empty-cta:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  transform: none;
}

.btn-primary.is-loading::after {
  animation: spin 700ms linear infinite;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: currentColor;
  content: "";
  height: 14px;
  position: relative;
  width: 14px;
  z-index: 2;
}

.btn-primary.is-loading svg {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}

.create-inbox-form {
  align-items: flex-end;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 0 18px;
}

.create-alias-field {
  min-width: 0;
}

.create-alias-field label {
  color: var(--text-secondary);
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.alias-input-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 46px;
  overflow: hidden;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.alias-input-row:focus-within {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.72);
}

.alias-input-row input {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 44px;
  min-width: 0;
  outline: none;
  padding: 0 13px;
}

.alias-input-row input[aria-invalid="true"] {
  color: #9f2819;
}

.alias-input-row:has(input[aria-invalid="true"]) {
  border-color: rgba(175, 47, 30, 0.48);
  box-shadow: 0 0 0 3px rgba(255, 112, 93, 0.18);
}

.alias-input-row input::placeholder {
  color: #969990;
  font-family: var(--font-sans);
}

.alias-domain {
  border-left: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  padding: 0 13px;
  white-space: nowrap;
}

.create-option {
  align-items: center;
  background: rgba(13, 15, 14, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 9px;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.create-option input {
  accent-color: var(--ink);
  height: 14px;
  width: 14px;
}

.inbox-card {
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 90px;
  opacity: 0;
  overflow: hidden;
  padding: 18px 18px 16px;
  position: relative;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    transform 380ms var(--ease-out);
}

.inbox-card::after {
  background: var(--acid);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
  width: 100%;
}

.inbox-card:hover {
  background: var(--paper-bright);
  border-color: var(--border-light);
  transform: translateX(4px);
}

.inbox-card:hover::after {
  transform: scaleX(1);
}

.inbox-card:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--acid-deep);
  outline-offset: 2px;
}

.inbox-card-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.inbox-card-address {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-card-meta {
  align-items: center;
  color: var(--text-secondary);
  display: flex;
  font-size: 10px;
  gap: 9px;
  margin-top: 8px;
  text-transform: uppercase;
}

.inbox-card-meta::before {
  background: var(--border-light);
  content: "";
  height: 1px;
  width: 18px;
}

.inbox-card-right {
  align-items: center;
  display: flex;
  gap: 10px;
}

.badge {
  border: 1px solid var(--border-light);
  min-height: 26px;
  padding: 0 10px;
  white-space: nowrap;
}

.badge-active {
  background: rgba(200, 255, 61, 0.18);
  border-color: rgba(99, 133, 16, 0.3);
  color: #415c00;
}

.badge-expired {
  background: rgba(255, 112, 93, 0.12);
  border-color: rgba(175, 47, 30, 0.25);
  color: #9f2819;
}

.inbox-card-delete {
  align-items: center;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
  width: 44px;
}

.inbox-card:hover .inbox-card-delete,
.inbox-card-delete:focus-visible {
  opacity: 1;
}

.inbox-card-delete:hover {
  background: rgba(255, 112, 93, 0.14);
  color: #a52616;
}

.inbox-card-delete svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.75;
  width: 16px;
}

.empty-state {
  align-items: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.dashboard-empty {
  flex: 1;
  min-height: 410px;
  padding: 34px 20px 10px;
}

.signal-mark {
  align-items: center;
  display: flex;
  height: 116px;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  width: 116px;
}

.signal-mark::before,
.signal-mark::after,
.signal-ring {
  border: 1px solid rgba(13, 15, 14, 0.15);
  border-radius: 50%;
  content: "";
  inset: 0;
  position: absolute;
}

.signal-mark::after {
  inset: 18px;
}

.signal-ring-one {
  animation: signalOut 2.8s ease-out infinite;
}

.signal-ring-two {
  animation: signalOut 2.8s 1.4s ease-out infinite;
}

@keyframes signalOut {
  0% {
    opacity: 0;
    transform: scale(0.56);
  }
  30% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.signal-mark svg {
  fill: none;
  height: 34px;
  position: relative;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  width: 34px;
  z-index: 1;
}

.empty-index {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  margin-bottom: 11px;
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.empty-state > p:last-of-type {
  font-size: 12px;
}

.empty-cta {
  background: transparent;
  color: var(--text-primary);
  margin-top: 15px;
  padding: 0 6px;
}

.empty-cta::after {
  background: currentColor;
  bottom: 8px;
  content: "";
  height: 1px;
  left: 6px;
  position: absolute;
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
  width: calc(100% - 12px);
}

.empty-cta:hover::after {
  transform: scaleX(0.35);
}

.empty-cta svg {
  transition: transform 300ms var(--ease-out);
}

.empty-cta:hover svg {
  transform: translateX(4px);
}

.active-top-bar {
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding-bottom: 18px;
}

.btn-back {
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  min-height: 44px;
  padding: 0 8px 0 0;
}

.btn-back:hover {
  color: var(--text-primary);
}

.btn-back svg {
  transition: transform 300ms var(--ease-out);
}

.btn-back:hover svg {
  transform: translateX(-3px);
}

.timer-badge {
  background: rgba(13, 15, 14, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  gap: 7px;
  min-height: 27px;
  padding: 0 11px;
}

.timer-badge::before {
  background: var(--acid-deep);
  border-radius: 50%;
  content: "";
  height: 5px;
  width: 5px;
}

.timer-badge.expiring-soon {
  background: rgba(255, 112, 93, 0.12);
  border-color: rgba(175, 47, 30, 0.24);
  color: #9f2819;
}

.timer-badge.expiring-soon::before {
  background: var(--coral);
}

.email-display {
  border-bottom: 1px solid var(--border-light);
  padding: 29px 0 28px;
}

.address-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.mono-text {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 23px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.btn-copy {
  background: var(--paper-bright);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  flex: 0 0 auto;
  min-width: 90px;
  padding: 0 14px;
}

.btn-copy:hover {
  background: var(--ink);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.btn-copy .check-icon {
  display: none;
}

.btn-copy.is-copied {
  background: var(--acid);
  border-color: var(--acid-deep);
  color: var(--ink);
}

.btn-copy.is-copied .copy-icon {
  display: none;
}

.btn-copy.is-copied .check-icon {
  display: block;
}

.address-meta {
  color: var(--text-secondary);
  display: flex;
  font-size: 10px;
  gap: 22px;
  margin-top: 12px;
  text-transform: uppercase;
}

.address-meta span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.address-meta .status-dot {
  background: var(--acid-deep);
}

.email-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.btn-secondary,
.btn-danger {
  padding: 0 16px;
}

.btn-secondary {
  background: var(--ink);
  color: var(--text-on-dark);
}

.btn-secondary:hover {
  background: var(--ink-raised);
  transform: translateY(-2px);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-danger:hover,
.btn-danger.is-confirming {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
  transform: translateY(-2px);
}

.inbox-section {
  padding-top: 28px;
}

.inbox-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.inbox-header h3 {
  font-size: 20px;
}

.pulse-indicator {
  align-items: center;
  color: var(--text-secondary);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 9px;
  gap: 8px;
  min-height: 30px;
  text-transform: uppercase;
}

.listener-wave {
  align-items: center;
  display: inline-flex;
  height: 10px;
  position: relative;
  width: 14px;
}

.listener-wave::before,
.listener-wave::after {
  animation: listener 1.2s ease-in-out infinite;
  background: var(--acid-deep);
  content: "";
  height: 5px;
  left: 2px;
  position: absolute;
  width: 2px;
}

.listener-wave::after {
  animation-delay: 180ms;
  height: 9px;
  left: 8px;
}

.pulse-indicator.is-syncing .listener-wave::before,
.pulse-indicator.is-syncing .listener-wave::after {
  background: #a38200;
}

.pulse-indicator.is-offline .listener-wave::before,
.pulse-indicator.is-offline .listener-wave::after {
  animation: none;
  background: var(--coral);
}

@keyframes listener {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.messages-empty {
  background: rgba(255, 255, 255, 0.34);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  min-height: 170px;
  padding: 24px;
}

.mail-radar {
  align-items: center;
  display: flex;
  height: 46px;
  justify-content: center;
  margin-bottom: 13px;
  overflow: hidden;
  position: relative;
  width: 58px;
}

.mail-radar span {
  animation: radarScan 2s ease-in-out infinite;
  background: var(--acid-deep);
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.mail-radar svg {
  fill: none;
  height: 25px;
  stroke: var(--text-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  width: 25px;
}

@keyframes radarScan {
  0% {
    opacity: 0;
    transform: translateY(2px);
  }
  30% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(42px);
  }
}

.messages-empty h4 {
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 4px;
}

.messages-empty p {
  font-size: 10px;
}

.message-item {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  opacity: 0;
  overflow: hidden;
  transition:
    background-color 220ms ease,
    border-color 220ms ease;
}

.message-item:hover,
.message-item.is-open {
  background: var(--paper-bright);
  border-color: var(--border-light);
}

.message-outbound {
  border-color: rgba(27, 93, 100, 0.18);
}

.message-outbound .msg-from {
  color: #1b5d64;
}

.message-trigger {
  align-items: center;
  background: transparent;
  color: var(--text-primary);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 0.42fr) minmax(160px, 1fr) auto 28px;
  min-height: 72px;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
}

.message-trigger:focus-visible {
  outline: 2px solid var(--acid-deep);
  outline-offset: -2px;
}

.msg-from,
.msg-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-from {
  font-family: var(--font-mono);
  font-size: 10px;
}

.msg-subject {
  font-size: 12px;
  font-weight: 700;
}

.msg-time {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.msg-chevron {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 300ms var(--ease-out);
  width: 16px;
}

.message-item.is-open .msg-chevron {
  transform: rotate(180deg);
}

.msg-body {
  border-top: 1px solid var(--border-light);
  color: #3e413c;
  font-size: 12px;
  line-height: 1.75;
  margin: 0 16px;
  max-height: 0;
  opacity: 0;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 0;
  transition:
    max-height 420ms var(--ease-out),
    opacity 250ms ease,
    padding 420ms var(--ease-out);
}

.message-item.is-open .msg-body {
  max-height: 560px;
  opacity: 1;
  padding: 18px 0 20px;
}

.rich-message {
  overflow-x: hidden;
}

.rich-message-content {
  display: flow-root;
  max-width: 72ch;
}

.rich-message-content > *:first-child {
  margin-top: 0;
}

.rich-message-content > *:last-child {
  margin-bottom: 0;
}

.rich-message-content p,
.rich-message-content ul,
.rich-message-content ol,
.rich-message-content blockquote,
.rich-message-content pre,
.rich-message-content table {
  margin: 0 0 14px;
}

.rich-message-content p {
  min-height: 1em;
}

.rich-message-content a {
  color: #1b5d64;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(27, 93, 100, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rich-message-content a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.rich-message-content ul,
.rich-message-content ol {
  padding-left: 22px;
}

.rich-message-content li + li {
  margin-top: 5px;
}

.rich-message-content blockquote {
  border-left: 3px solid var(--acid-deep);
  color: var(--text-secondary);
  padding-left: 13px;
}

.rich-message-content pre,
.rich-message-content code {
  background: rgba(13, 15, 14, 0.07);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rich-message-content code {
  padding: 2px 5px;
}

.rich-message-content pre {
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.rich-message-content pre code {
  background: transparent;
  padding: 0;
}

.rich-message-content table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow: auto;
}

.rich-message-content th,
.rich-message-content td {
  border: 1px solid var(--border-light);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.attachment-list {
  border-top: 1px solid var(--border-light);
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
}

.attachment-list-title {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  margin: 0;
  text-transform: uppercase;
}

.attachment-chip {
  align-items: center;
  background: rgba(13, 15, 14, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: grid;
  gap: 9px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 8px 10px;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 220ms var(--ease-out);
}

.attachment-chip:hover {
  background: var(--paper-bright);
  border-color: rgba(13, 15, 14, 0.28);
  transform: translateY(-1px);
}

.attachment-chip svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 18px;
}

.attachment-name {
  font-size: 11px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.modal-overlay {
  align-items: center;
  background: rgba(6, 8, 7, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity 260ms ease;
  z-index: 100;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--paper-bright);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  max-height: calc(100vh - 48px);
  max-width: 620px;
  opacity: 0;
  overflow-y: auto;
  padding: 34px;
  transform: translateY(20px);
  width: 100%;
}

.modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 23px;
}

.modal-header h2 {
  font-size: 25px;
  letter-spacing: 0;
}

.btn-icon {
  background: transparent;
  color: var(--text-secondary);
  height: 44px;
  width: 44px;
}

.btn-icon:hover {
  background: rgba(13, 15, 14, 0.07);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.compose-from {
  align-items: center;
  background: var(--ink);
  color: var(--text-dark-muted);
  display: flex;
  font-family: var(--font-mono);
  font-size: 9px;
  gap: 15px;
  margin: 20px 0 24px;
  min-height: 44px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.compose-from strong {
  color: var(--acid);
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  color: var(--text-secondary);
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  padding: 13px 14px;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  width: 100%;
}

.form-group input {
  min-height: 48px;
}

.form-group input[type="file"] {
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  padding: 10px 12px;
}

.form-group textarea {
  line-height: 1.6;
  min-height: 150px;
  resize: vertical;
}

.attachment-summary {
  color: var(--text-secondary);
  font-size: 10px;
  margin-top: 8px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #969990;
}

.form-group input:hover,
.form-group textarea:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(13, 15, 14, 0.28);
}

.form-group input:focus,
.form-group textarea:focus {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.72);
}

.modal-actions {
  align-items: center;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 22px;
}

.btn-quiet {
  background: transparent;
  color: var(--text-secondary);
  padding: 0 18px;
}

.btn-quiet:hover {
  color: var(--text-primary);
}

.modal-actions .btn-primary {
  min-width: 155px;
}

.api-key-modal-content {
  max-width: 680px;
}

.api-key-copy {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  margin: 22px 0 16px;
}

.api-key-value-wrap {
  align-items: stretch;
  display: flex;
  gap: 8px;
}

.api-key-value {
  background: var(--ink);
  color: var(--acid);
  display: block;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 14px;
}

.api-key-status {
  color: var(--text-secondary);
  font-size: 11px;
  margin-top: 11px;
}

.api-doc-link {
  color: var(--text-primary);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.api-key-actions {
  justify-content: space-between;
}

.toast-container {
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  z-index: 200;
}

.toast {
  align-items: center;
  animation: toastIn 500ms var(--ease-out) both;
  background: var(--paper-bright);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 11px;
  max-width: min(360px, calc(100vw - 32px));
  min-height: 50px;
  min-width: 250px;
  padding: 12px 15px;
}

.toast::before {
  background: var(--cyan);
  content: "";
  height: 22px;
  width: 3px;
}

.toast-success::before {
  background: var(--acid-deep);
}

.toast-error::before {
  background: var(--coral);
}

.toast-out {
  animation: toastOut 300ms ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .app-container {
    padding: 0 24px;
  }

  .workspace {
    grid-template-columns: minmax(310px, 0.36fr) minmax(540px, 0.64fr);
  }

  .manifest {
    padding-right: 34px;
  }

  .manifest h1 {
    font-size: 46px;
  }

  .console-wrap {
    padding-left: 28px;
  }

  .main-panel {
    padding: 34px;
  }

  .main-panel::before {
    left: 34px;
  }
}

@media (max-width: 920px) {
  .auth-gate {
    padding: 0 20px;
  }

  .auth-workspace {
    display: flex;
    justify-content: center;
    min-height: 680px;
  }

  .auth-context {
    display: none;
  }

  .auth-panel {
    justify-self: auto;
    margin: auto 0;
  }

  .app-container {
    padding: 0 20px 20px;
  }

  .workspace {
    display: block;
  }

  .manifest {
    border-bottom: 1px solid var(--border-dark);
    border-right: 0;
    min-height: 520px;
    padding: 64px 0 38px;
  }

  .manifest-content {
    max-width: 660px;
  }

  .manifest h1 {
    font-size: 54px;
  }

  .manifest-copy {
    max-width: 560px;
  }

  .trust-metrics {
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 54px;
  }

  .metric {
    min-height: 86px;
  }

  .metric-wide {
    align-items: flex-start;
    border-left: 1px solid var(--border-dark);
    border-top: 0;
    flex-direction: column;
    grid-column: auto;
    justify-content: center;
    padding-left: 22px;
  }

  .privacy-note {
    margin-top: 24px;
  }

  .console-wrap {
    padding: 28px 0 0;
  }
}

@media (max-width: 620px) {
  .auth-gate {
    align-items: stretch;
    padding: 0 14px 14px;
  }

  .auth-shell {
    min-height: 100%;
  }

  .auth-header {
    flex-basis: 68px;
  }

  .auth-environment {
    font-size: 8px;
  }

  .auth-workspace {
    align-items: center;
    min-height: 0;
  }

  .auth-panel {
    flex: 0 1 calc(100vw - 28px);
    margin: 20px 0;
    max-width: calc(100vw - 28px);
    min-height: 500px;
    min-width: 0;
    padding: 25px 18px;
    width: calc(100vw - 28px);
  }

  .auth-panel::before {
    left: 18px;
  }

  .auth-form {
    padding-top: 29px;
  }

  .auth-form h1 {
    font-size: 25px;
  }

  .auth-copy {
    margin-bottom: 22px;
  }

  .auth-footer {
    bottom: 20px;
    left: 18px;
    right: 18px;
  }

  .app-container {
    padding: 0 14px 14px;
  }

  .app-header {
    height: 68px;
  }

  .header-status > :not(.system-state) {
    display: none;
  }

  .header-status .btn-logout {
    display: inline-flex;
  }

  .system-state {
    font-size: 9px;
  }

  .manifest {
    min-height: 440px;
    padding: 45px 2px 30px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  .manifest h1 {
    font-size: 40px;
    line-height: 1.05;
    margin-bottom: 24px;
  }

  .manifest-copy {
    font-size: 14px;
    line-height: 1.65;
  }

  .trust-metrics {
    margin-top: 38px;
  }

  .metric {
    min-height: 75px;
    padding: 14px 8px 12px 0;
  }

  .metric:nth-child(2),
  .metric-wide {
    padding-left: 12px;
  }

  .metric-value {
    font-size: 17px;
  }

  .metric-label {
    font-size: 9px;
  }

  .privacy-note {
    display: none;
  }

  .console-wrap {
    padding-top: 22px;
  }

  .main-panel {
    min-height: 620px;
    padding: 24px 18px;
  }

  .main-panel::before {
    left: 18px;
  }

  .state-view {
    min-height: 570px;
  }

  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .dashboard-header .btn-primary {
    align-self: stretch;
  }

  .dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions .btn-secondary,
  .dashboard-actions .btn-primary {
    align-self: stretch;
  }

  .create-inbox-form {
    grid-template-columns: 1fr;
  }

  .create-option {
    justify-content: flex-start;
    width: 100%;
  }

  .title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-title {
    font-size: 24px;
  }

  .api-key-value-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-empty {
    min-height: 350px;
  }

  .inbox-card {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 15px 12px;
  }

  .inbox-card-right {
    gap: 2px;
  }

  .inbox-card-delete {
    opacity: 1;
  }

  .badge {
    display: none;
  }

  .address-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mono-text {
    font-size: 18px;
  }

  .btn-copy {
    width: 100%;
  }

  .address-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .email-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .inbox-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .message-trigger {
    gap: 5px 10px;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    padding: 12px;
  }

  .msg-from {
    grid-column: 1;
  }

  .msg-subject {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .msg-time {
    grid-column: 2;
    grid-row: 1;
  }

  .msg-chevron {
    grid-column: 3;
    grid-row: 1;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .modal-content {
    max-height: calc(100vh - 20px);
    padding: 24px 18px 18px;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 4px;
  }

  .modal-actions .btn-primary {
    width: 100%;
  }

  .toast-container {
    bottom: 14px;
    left: 14px;
    right: 14px;
  }

  .toast {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

@media (max-height: 760px) and (min-width: 921px) {
  .manifest {
    padding-top: 42px;
  }

  .manifest h1 {
    font-size: 46px;
  }

  .trust-metrics {
    margin-top: 36px;
  }

  .main-panel {
    min-height: 620px;
  }

  .state-view {
    min-height: 534px;
  }
}

@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;
  }

  .app-header,
  .main-panel,
  .manifest-line,
  .inbox-card,
  .message-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .auth-gate {
    transition: none;
  }
}
