@layer reset, base, components, layout;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p { margin: 0; }
  button, input, select { font: inherit; }
  button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { color-scheme: light; --bg: #f6f7f3; --white: #fff; --ink: #21372e; --muted: #768078; --line: #e5e9e2; --green: #264f3f; --lime: #dbecb9; --danger: #a4493e; --radius: 19px; }
  body { background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
  button, select, summary { cursor: pointer; }
  button { color: inherit; }
  button:disabled, select:disabled { cursor: default; opacity: .45; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 3px solid #b3cc90; outline-offset: 4px; }
  h2 { font-size: 14px; font-weight: 650; letter-spacing: -.15px; }
  .wrap { width: min(920px, calc(100% - 40px)); margin-inline: auto; }
  .muted { color: var(--muted); }
  .small { font-size: 12px; }
  .tabular { font-variant-numeric: tabular-nums; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@layer components {
  .brand { display: inline-flex; align-items: center; font-size: 22px; font-weight: 750; letter-spacing: -1px; }
  .brand > span:not(.brand-icon):not(.brand-dot) { font-weight: 450; }
  .brand-icon { display: grid; place-items: center; width: 33px; height: 33px; background: var(--green); color: var(--lime); font-size: 27px; font-weight: 400; line-height: 1; border-radius: 10px; margin-right: 9px; }
  .brand-dot { color: #86a96c; }
  .header-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }
  .live-dot, .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7b9a69; flex-shrink: 0; }
  .status-dot { background: #a4aba3; margin-right: 6px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.7px; font-weight: 650; color: #72836a; }
  .tiny-mail { font-size: 14px; margin-right: 5px; }
  .pill { display: inline-flex; align-items: center; color: #526f43; background: #eff4e7; border: 1px solid #e5eddb; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 600; white-space: nowrap; }
  .card-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 17px; }
  .mailbox-card, .inbox-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
  .mailbox-card { padding: 24px; box-shadow: 0 8px 35px #293b2910; }
  .address-box { display: flex; align-items: center; gap: 13px; background: #f6f8f3; border: 1px solid #e7ece2; border-radius: 12px; padding: 15px; min-height: 77px; }
  .address-icon { font-size: 28px; color: #95ac83; font-weight: 350; line-height: 1; }
  .address-content { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }
  .address-value { font-size: clamp(13px, 2.7vw, 18px); font-weight: 620; letter-spacing: -.4px; overflow-wrap: anywhere; }
  .icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); border-radius: 9px; font-size: 22px; display: inline-grid; place-items: center; flex-shrink: 0; line-height: 1; }
  .icon-button:hover:not(:disabled) { background: #edf3e9; }
  .button { border: 1px solid transparent; min-height: 39px; padding: 9px 15px; border-radius: 9px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .15s; white-space: nowrap; }
  .primary { background: var(--green); color: #fff; }
  .primary:hover:not(:disabled) { background: #163d2e; }
  .primary > span[aria-hidden] { color: var(--lime); font-size: 17px; line-height: 1; }
  .ghost { border-color: var(--line); background: #fff; }
  .ghost:hover:not(:disabled) { background: #f5f7f2; }
  .danger { color: var(--danger); }
  .mailbox-controls { display: flex; gap: 9px; align-items: center; margin-top: 13px; }
  .domain-field { flex: 1; min-width: 0; }
  .domain-field select, .form-field input, .form-field select { width: 100%; min-height: 39px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: #fff; color: #526252; font-size: 12px; }
  .domain-field select:disabled { opacity: .8; }
  .privacy-note { display: flex; align-items: flex-start; gap: 6px; font-size: 10px; color: #859081; margin-top: 17px; line-height: 1.65; }
  .privacy-note > span { color: #839e6d; font-size: 15px; margin-top: -2px; }
  .lifetime { margin-top: 15px; }
  .lifetime-copy { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #74836d; margin-bottom: 6px; }
  .lifetime-copy .live-dot { margin-right: 5px; width: 5px; height: 5px; }
  progress { display: block; appearance: none; width: 100%; height: 3px; border: 0; border-radius: 6px; background: #edf1e9; }
  progress::-webkit-progress-bar { background: #edf1e9; border-radius: 6px; }
  progress::-webkit-progress-value { background: #a8c083; border-radius: 6px; }
  progress::-moz-progress-bar { background: #a8c083; border-radius: 6px; }
  .inbox-card { overflow: hidden; }
  .inbox-heading { padding: 19px 23px 16px; border-bottom: 1px solid #edf0e9; margin: 0; }
  .title-with-count { display: flex; gap: 9px; align-items: center; }
  .count-badge { display: grid; place-items: center; height: 20px; min-width: 22px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fafbf8; font-size: 10px; }
  .text-button { border: 0; background: transparent; color: #798573; padding: 5px; font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
  .text-button span { font-size: 17px; line-height: 1; }
  .inbox-status { text-align: center; padding: 33px 18px 35px; }
  .inbox-status h3 { font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
  .inbox-status p { color: #8a9286; font-size: 11px; line-height: 1.7; }
  .empty-art { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 54px; font-size: 39px; color: #adc09b; background: #f4f7ee; border-radius: 16px; transform: rotate(-5deg); }
  .empty-art > span { position: absolute; bottom: 0; right: -3px; font-size: 17px; color: #6b8b57; background: #e2edce; width: 23px; height: 23px; line-height: 23px; border-radius: 50%; }
  .inbox-footer { border-top: 1px solid #edf0e9; background: #fcfdfb; display: flex; justify-content: space-between; padding: 10px 23px; font-size: 9px; color: #96a08f; }
  .message-list { list-style: none; margin: 0; padding: 0; }
  .message-row { width: 100%; display: flex; gap: 13px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid #edf0e9; background: white; padding: 15px 23px; }
  .message-row:hover { background: #f8faf4; }
  .message-initial { width: 34px; height: 34px; border-radius: 11px; background: #edf3e6; display: grid; place-items: center; color: #73915c; flex-shrink: 0; }
  .message-summary { min-width: 0; flex: 1; }
  .message-summary strong { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .message-summary span { display: block; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .message-row time { font-size: 10px; color: var(--muted); white-space: nowrap; }
  .load-more { display: flex; margin: 14px auto; }
  .toast { position: fixed; z-index: 20; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: #234738; color: white; border: 1px solid #486650; border-radius: 11px; padding: 11px 18px; font-size: 12px; box-shadow: 0 8px 24px #1f3d2626; }
  .toast[data-error="true"] { background: #7c4038; border-color: #965c52; }
  .message-dialog { width: min(670px, calc(100% - 28px)); max-height: min(80vh, 800px); border: 1px solid var(--line); border-radius: 20px; padding: 24px; color: var(--ink); box-shadow: 0 20px 100px #14251b33; }
  .message-dialog::backdrop { background: #15271e66; backdrop-filter: blur(3px); }
  .dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
  .message-dialog h2 { font-size: 20px; overflow-wrap: anywhere; line-height: 1.4; }
  .message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; font-size: 11px; color: var(--muted); margin: 12px 0 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .message-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; line-height: 1.8; margin: 0; }
  .form-field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #687561; }
  .form-field input, .form-field select { font-size: 13px; color: var(--ink); min-height: 42px; }
}
@layer layout {
  .site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 25px; border-bottom: 1px solid var(--line); }
  .public-main { max-width: 650px; padding-top: 39px; }
  .intro { text-align: center; padding-bottom: 27px; }
  .intro h1 { font-size: clamp(34px, 6vw, 45px); line-height: 1.12; font-weight: 650; letter-spacing: -1.9px; margin: 13px 0 13px; }
  .intro h1 span { color: #81966e; }
  .intro > p { color: #8b9485; font-size: 12px; line-height: 1.8; }
  .inbox-card { margin-top: 15px; }
  .how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; padding: 27px 5px 22px; }
  .how-it-works > div { display: flex; gap: 10px; }
  .step { color: #a7b29e; font-size: 10px; font-variant-numeric: tabular-nums; padding-top: 2px; }
  .how-it-works strong { display: block; font-size: 11px; font-weight: 600; margin-bottom: 2px; }
  .how-it-works p span { display: block; font-size: 10px; color: #929a8c; }
  .about-note { padding: 12px 0 20px; border-top: 1px solid var(--line); color: #8b9584; font-size: 10px; }
  .about-note summary { width: fit-content; }
  .about-note p { max-width: 600px; padding-top: 8px; line-height: 1.8; }
  .site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 18px; color: #9da596; font-size: 10px; margin-top: 12px; }
  @media (max-width: 540px) {
    .wrap { width: calc(100% - 28px); }
    .site-header { padding-block: 19px; }
    .header-note { font-size: 9px; gap: 6px; }
    .brand { font-size: 20px; }
    .brand-icon { width: 29px; height: 29px; font-size: 23px; }
    .public-main { padding-top: 28px; }
    .intro { padding-bottom: 23px; }
    .intro .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
    .mailbox-card { padding: 18px; }
    .address-box { padding: 12px; gap: 9px; }
    .address-value { font-size: 14px; letter-spacing: -.3px; }
    .address-icon { font-size: 23px; }
    .address-content .small { font-size: 10px; }
    .mailbox-controls { flex-wrap: wrap; gap: 8px; }
    .domain-field { flex-basis: 100%; }
    .mailbox-controls > .primary { flex: 1; }
    .inbox-heading { padding: 16px 18px; }
    .inbox-footer { padding-inline: 18px; }
    .message-row { padding: 14px 18px; gap: 9px; }
    .message-row time { font-size: 9px; }
    .how-it-works { gap: 12px; padding-inline: 0; }
    .how-it-works > div { gap: 6px; }
    .how-it-works p span { font-size: 9px; }
    .site-footer { align-items: flex-start; font-size: 9px; }
    .site-footer > span:last-child { max-width: 160px; text-align: right; }
    .privacy-note { font-size: 9px; }
    .message-dialog { padding: 20px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
}
