/* Temporary Email — mobile layout (≤767px). Loaded via media="(max-width: 767px)". */

.temail {
  padding-bottom: 28px;
}

.temail-hero {
  gap: 16px;
  margin-bottom: 18px;
}

.temail-hero__art {
  display: none;
}

.temail-hero__badge {
  margin-bottom: 10px;
  padding: 5px 10px;
  font-size: 0.68rem;
  gap: 4px;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.temail-dot {
  margin: 0 6px;
  width: 3px;
  height: 3px;
}

.temail-hero__title {
  font-size: clamp(1.45rem, 6.5vw, 1.75rem);
  margin-bottom: 8px;
}

.temail-hero__lead {
  font-size: 0.86rem;
  margin-bottom: 14px;
  line-height: 1.55;
}

.temail-hero__features {
  display: none;
}

.temail-hero__lead {
  margin-bottom: 0;
}

/* Workspace — no outer card on mobile */
.temail-workspace {
  margin-bottom: 24px;
}

.temail-workspace__head {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.temail-workspace__title {
  font-size: 0.88rem;
}

.temail-workspace__title-row {
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.temail-workspace__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.temail-workspace__meta {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.72rem;
  gap: 6px;
}

.temail-pill {
  padding: 3px 8px;
  font-size: 0.68rem;
}

.temail-expiry {
  font-size: 0.68rem;
}

.temail-workspace__head {
  margin-bottom: 12px;
}

.temail-address-showcase {
  margin-bottom: 10px;
}

.temail-address-showcase .temail-address-field-wrap {
  width: 100%;
}

.temail-address-field--desktop {
  display: none !important;
}

.temail-address-field--mobile {
  display: block !important;
  min-height: 38px;
  padding: 7px 40px 7px 10px;
  font-size: 0.58rem;
  line-height: 1.35;
  border-radius: 8px;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-all;
  field-sizing: content;
}

.temail-address-field--mobile::placeholder {
  font-size: 0.6rem;
}

.temail-address-copy {
  width: 32px;
  height: 32px;
  right: 4px;
}

.temail-address-copy__icon {
  width: 16px;
  height: 16px;
}

.temail-address-showcase .temail-inline-status {
  font-size: 0.78rem;
}

.temail-toolbar {
  flex-wrap: nowrap;
  justify-content: stretch;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.temail-toolbar .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px !important;
  padding: 0 8px !important;
  font-size: 0.72rem !important;
}

.temail-toolbar #temail-generate {
  flex: 1.15 1 0;
}

.temail-subcard {
  padding: 12px;
  border-radius: 12px;
}

/* Compact action grids — single row where shown */
.temail-action-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.temail-action-grid--3,
.temail-action-grid--2 {
  grid-template-columns: unset;
}

.temail-action-grid--2 > .temail-action-grid__full {
  grid-column: unset;
  flex: 1.15 1 0;
}

.temail-action-grid .btn,
.temail-action-grid .temail-btn-load {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  min-height: 34px;
  padding: 0 6px;
  font-size: 0.68rem;
  border-radius: 8px;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.temail-action-grid .temail-btn__spin {
  width: 12px;
  height: 12px;
}

.temail-btn__label--desktop {
  display: none;
}

.temail-btn__label--mobile {
  display: inline;
}

/* Inbox */
.temail-split {
  gap: 10px;
}

.temail-inbox-head {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}

.temail-inbox-title {
  font-size: 0.9rem;
}

.temail-inbox-head__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  align-items: center !important;
  width: 100%;
  grid-template-columns: unset !important;
}

.temail-inbox-head__actions .btn--sm {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.temail-toggle {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.72rem;
  gap: 6px;
}

.temail-toggle span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.temail-toggle__text--desktop {
  display: none;
}

.temail-toggle__text--mobile {
  display: inline;
}

.temail-inbox-head__actions .btn--sm {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.temail-list {
  max-height: min(50vh, 320px);
  border-radius: 8px;
}

.temail-row-btn {
  position: relative;
  grid-template-columns: 6px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 8px;
  padding: 10px 10px;
  align-items: start;
}

.temail-row__dot {
  grid-row: 1 / span 2;
  align-self: center;
  width: 6px;
  height: 6px;
}

.temail-row__main {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 2px;
  padding-right: 4px;
}

.temail-row__from {
  font-size: 0.8rem;
  padding-right: 52px;
}

.temail-row__addr {
  display: none;
}

.temail-row__subject {
  margin-top: 0;
  font-size: 0.76rem;
}

.temail-row__time {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 0.65rem;
}

.temail-empty {
  padding: 20px 12px;
  border-radius: 8px;
}

.temail-empty__ico {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.temail-empty__title {
  font-size: 0.9rem;
}

.temail-empty__text {
  font-size: 0.8rem;
}

.temail-empty__hint {
  font-size: 0.72rem;
}

/* Details panel hidden on mobile — status line + expiry pill are enough */
.temail-split__aside {
  display: none !important;
}

.temail-split__inbox {
  order: 1;
}

/* Toasts */
.temail-toast-stack {
  top: auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  align-items: stretch;
  max-width: none;
}

.temail-toast {
  padding: 10px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Email modal — full screen compact chrome */
.temail-mail-modal {
  padding: 0;
  align-items: stretch;
}

.temail-mail-modal__dialog {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border: none;
}

.temail-mail-modal__head {
  padding: 8px 10px;
  row-gap: 6px;
  border-radius: 0;
}

.temail-mail-modal__head-ico {
  width: 28px;
  height: 28px;
}

.temail-mail-modal__head-ico svg {
  width: 16px;
  height: 16px;
}

.temail-mail-modal__title {
  font-size: 0.82rem;
}

.temail-mail-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.temail-mail-modal__actions {
  gap: 6px;
  justify-content: stretch;
  display: flex !important;
  flex-wrap: nowrap !important;
}

.temail-mail-action#temail-mail-reply,
.temail-mail-action#temail-mail-download {
  display: none !important;
}

.temail-mail-action {
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  font-size: 0.72rem !important;
  gap: 4px;
  border-radius: 8px;
}

.temail-mail-action svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.temail-mail-modal__content {
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}

.temail-mail-body-scroll {
  border-radius: 8px;
}

.temail-mail-frame {
  min-height: 120px;
}

/* Marketing sections */
.temail-section {
  margin-bottom: 24px;
}

.temail-section__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.temail-section__sub {
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.temail-steps li {
  flex: 1 1 100%;
  min-width: 0;
  padding: 12px;
}

.temail-step-arrow {
  display: none;
}

.temail-why__cards article,
.temail-use-grid article,
.temail-privacy__grid article {
  padding: 10px 12px;
}

.temail-features-bar__list {
  padding: 12px;
  gap: 10px;
}

.temail-faq-item summary {
  padding: 12px 14px;
  font-size: 0.84rem;
}

.temail-faq-item p {
  padding: 0 14px 12px;
  font-size: 0.82rem;
}

.temail-about p,
.temail-why__copy p {
  font-size: 0.86rem;
}

.temail-note {
  padding: 10px 12px;
  font-size: 0.8rem;
}

.temail-cta {
  flex-direction: column;
  align-items: stretch;
  padding: 14px 14px;
  gap: 12px;
  text-align: center;
}

.temail-cta h2 {
  font-size: 1rem;
}

.temail-cta p {
  font-size: 0.82rem;
}

.temail-cta .btn {
  width: 100%;
  min-height: 40px;
}

@media (min-width: 768px) {
  .temail-address-actions__extra {
    display: inline-flex !important;
  }
}

@media (max-width: 380px) {
  .temail-mail-modal__actions {
    flex-wrap: nowrap !important;
  }
}
