:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f8f5;
  color: #183129;
  --ink: #183129;
  --muted: #658078;
  --line: #d8e8df;
  --card: rgba(255, 255, 255, .9);
  --green: #238b5a;
  --green-dark: #176b44;
  --blue: #2b78a8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 8% 0%, #d9f3e5 0, transparent 34%), radial-gradient(circle at 100% 12%, #d9effa 0, transparent 30%), #f3f8f5;
}
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 42px; }
.hero { padding: 12px 4px 24px; }
.eyebrow, .label { color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 9px 0; color: var(--ink); font-size: clamp(38px, 7vw, 68px); letter-spacing: -.06em; line-height: .98; }
h2 { margin: 4px 0 0; color: var(--ink); font-size: 21px; }
.subtitle { max-width: 520px; color: var(--muted); margin: 0 0 21px; font-size: 16px; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 11px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
button:hover { transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .6; transform: none; }
.primary { padding: 12px 18px; color: #fff; background: linear-gradient(135deg, var(--green), #45b77c); font-weight: 800; box-shadow: 0 9px 20px #238b5a32; }
.primary:hover { box-shadow: 0 12px 25px #238b5a45; }
.secondary, .icon-button { padding: 9px 13px; color: var(--green-dark); background: #e6f4ec; font-weight: 700; }
.secondary:hover, .icon-button:hover { background: #d6eddf; }
.icon-button { width: 40px; height: 40px; padding: 0; color: var(--blue); font-size: 22px; line-height: 1; }
.domain-picker { display: grid; width: min(360px, 100%); gap: 7px; margin-bottom: 13px; }
select, input { width: 100%; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid #c8ddd2; border-radius: 10px; outline: 0; }
select:focus, input:focus { border-color: #52aa7d; box-shadow: 0 0 0 3px #52aa7d25; }
.card { margin-top: 16px; padding: 21px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); box-shadow: 0 17px 42px #2b5e4814, 0 3px 8px #2b5e4809; backdrop-filter: blur(12px); }
.hidden { display: none; }
.mail-row, .meta-row, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mail-row strong { display: block; margin-top: 7px; color: var(--green-dark); font-size: clamp(18px, 4vw, 28px); overflow-wrap: anywhere; }
.meta-row { margin-top: 18px; color: var(--muted); font-size: 13px; }
.helper { margin: 10px 0 16px; color: var(--muted); font-size: 13px; }
.restore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.restore-grid label { display: grid; gap: 7px; }
.restore-button { margin-top: 14px; }
.recent-mailboxes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.recent-mailboxes button { padding: 7px 10px; color: var(--blue); background: #edf6fb; font-size: 12px; }
.recent-mailboxes button:hover { background: #dceef8; }
.guide-card { border-color: #cce6d7; background: linear-gradient(145deg, #fbfffc, #effaf4); }
.guide-card summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.guide-card summary::-webkit-details-marker { display: none; }
.guide-card summary strong { display: block; margin-top: 5px; color: var(--ink); }
.summary-icon { display: grid; width: 30px; height: 30px; place-items: center; color: var(--green); border: 1px solid #b8ddc7; border-radius: 50%; font-size: 20px; }
.guide-card[open] .summary-icon { transform: rotate(45deg); }
.guide-content { margin-top: 19px; padding-top: 17px; border-top: 1px solid #d6eadc; color: var(--muted); font-size: 14px; line-height: 1.55; }
.guide-content p { margin: 0 0 13px; }
.guide-content ol { margin: 0 0 16px; padding-left: 21px; }
.guide-content li + li { margin-top: 8px; }
code { padding: 2px 5px; color: var(--green-dark); background: #e4f4ea; border-radius: 5px; font-size: .92em; }
.dns-example { overflow: hidden; border: 1px solid #d1e6d8; border-radius: 10px; background: #fff; }
.dns-example > div { display: grid; grid-template-columns: .65fr .75fr 2fr .75fr; gap: 10px; padding: 9px 11px; }
.dns-example > div + div { border-top: 1px solid #e6f0ea; }
.dns-example [role="columnheader"] { color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dns-example [role="row"] span { overflow-wrap: anywhere; }
.guide-note { margin-top: 14px !important; color: #7a5f30; }
.token-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e4eee9; }
.token-row code { overflow: hidden; color: var(--blue); text-overflow: ellipsis; white-space: nowrap; background: #edf6fb; }
.inbox-grid { display: grid; grid-template-columns: minmax(220px, 34%) 1fr; gap: 14px; margin-top: 18px; }
.message-list, .message-body { min-height: 250px; border: 1px solid #dce9e3; border-radius: 12px; background: #fbfefd; }
.message-list { padding: 8px; }
.message-item { width: 100%; padding: 13px; display: block; text-align: left; color: var(--ink); background: transparent; border-radius: 9px; }
.message-item:hover, .message-item.selected { background: #e7f5ed; }
.message-item strong, .message-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-item span { color: var(--muted); font-size: 12px; margin-top: 5px; }
.message-body { padding: 18px; overflow-wrap: anywhere; }
.message-body h3 { margin: 0 0 10px; color: var(--ink); font-size: 19px; }
.message-body .from { color: var(--muted); font-size: 13px; }
.message-body pre { margin: 18px 0 0; white-space: pre-wrap; font: inherit; color: #345149; line-height: 1.55; }
.empty { color: #89a198; padding: 14px; }
.error { min-height: 22px; margin: 16px 4px 0; color: #bd4949; }
.footnote { color: #789087; font-size: 12px; margin: 22px 4px 0; }
@media (max-width: 700px) { .shell { padding-top: 32px; } .inbox-grid, .restore-grid { grid-template-columns: 1fr; } .message-list { min-height: 120px; } .message-body { min-height: 200px; } .token-row { grid-template-columns: 1fr auto; } .token-row .label { grid-column: 1 / -1; } .dns-example > div { grid-template-columns: .6fr .7fr 1.8fr .7fr; gap: 6px; padding: 8px; font-size: 12px; } }
