:root {
  --bg: #f5f7fa;
  --surface: #fff;
  --muted: #f7f9fc;
  --text: #182230;
  --soft: #5d6978;
  --border: #dfe5ec;
  --blue: #245fc7;
  --red: #c33b3b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
header, footer, main { width: min(calc(100% - 36px), 1080px); margin: auto; }
header { height: 66px; display: flex; align-items: center; justify-content: space-between; }
body::before { content: ""; position: absolute; left: 0; right: 0; top: 66px; border-top: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; text-decoration: none; }
.brand b { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--blue); color: #fff; }
.brand strong, .intro small { color: var(--blue); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--soft); font-size: 13px; text-decoration: none; }
nav a:hover { color: var(--blue); }
nav button { border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); padding: 8px; }
main { padding: 64px 0 55px; }
.intro { text-align: center; max-width: 750px; margin: auto; }
.intro small { font-weight: 750; letter-spacing: .09em; }
.intro h1 { margin: 12px 0 16px; font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.intro p { max-width: 650px; margin: 0 auto 34px; color: var(--soft); font-size: 17px; }
.card, .mailbox { max-width: 880px; margin: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 16px #1722300a; }
.card { padding: 26px; }
.top { display: flex; justify-content: space-between; gap: 15px; color: var(--soft); font-size: 12px; font-weight: 650; }
.top i { margin-left: 8px; padding: 3px 7px; border-radius: 30px; background: #eaf8f0; color: #17824d; font-style: normal; }
.address { display: grid; grid-template-columns: 1fr auto; margin-top: 17px; border: 1px solid #cbd4df; border-radius: 11px; overflow: hidden; background: var(--muted); }
.address code { padding: 16px 18px; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.address button { min-width: 115px; border: 0; border-left: 1px solid var(--border); background: var(--surface); color: var(--blue); font-weight: 700; }
.actions { display: flex; gap: 10px; margin-top: 15px; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .65; }
.actions button, .mailhead button, .danger { padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-weight: 700; }
.primary { border-color: var(--blue) !important; background: var(--blue) !important; color: #fff !important; }
.danger { color: var(--red); }
#error, .noscript { max-width: 880px; margin: 15px auto; padding: 12px; border-radius: 9px; background: #fff0f0; color: var(--red); }
.mailbox { margin-top: 22px; overflow: hidden; }
.mailhead { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.mailhead h2 { margin: 0; font-size: 18px; }
.mailhead em { padding: 3px 8px; border-radius: 20px; background: #edf4ff; color: var(--blue); font-size: 11px; font-style: normal; }
.mailhead p { margin: 3px 0 0; color: var(--soft); font-size: 13px; }
.empty { text-align: center; padding: 58px 20px; }
.empty > b { display: grid; place-items: center; width: 58px; height: 58px; margin: auto; border: 1px solid var(--border); border-radius: 17px; background: var(--muted); font-size: 25px; }
.empty h3 { margin: 14px 0 4px; }
.empty p { margin: 0 0 15px; color: var(--soft); }
.empty small { color: #8290a2; }
.mail { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: left; }
.mail:hover, .mail:focus-visible { background: var(--muted); }
.mail.unread strong::after { content: "Nouveau"; margin-left: 8px; padding: 2px 6px; border-radius: 10px; background: #edf4ff; color: var(--blue); font-size: 10px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #edf4ff; color: var(--blue); font-weight: 800; }
.mail span span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail .preview { color: var(--soft); font-size: 12px; }
.trust { max-width: 880px; margin: 27px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; color: var(--blue); }
.trust div { display: flex; gap: 10px; }
.trust span { display: grid; color: var(--text); }
.trust small { color: #8290a2; }
footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; color: #8290a2; font-size: 12px; }
dialog { width: min(800px, calc(100% - 24px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 14px; padding: 24px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: #091019a0; }
dialog iframe, dialog pre { width: 100%; min-height: 320px; border: 1px solid var(--border); background: #fff; }
dialog pre { padding: 15px; white-space: pre-wrap; overflow-wrap: anywhere; color: #182230; }
dialog #meta { color: var(--soft); overflow-wrap: anywhere; }
.close { float: right; border: 0; background: none; color: var(--text); font-size: 25px; }
@media (max-width: 700px) {
  nav a { display: none; }
  main { padding-top: 42px; }
  .card { padding: 19px; }
  .top { align-items: flex-start; }
  .address { grid-template-columns: 1fr; }
  .address button { height: 44px; border-left: 0; border-top: 1px solid var(--border); }
  .actions { display: grid; }
  .trust { grid-template-columns: 1fr; }
  .mailhead p { display: none; }
  footer { padding: 18px 0; align-items: flex-start; flex-direction: column; }
}


.clipboard-helper{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
