:root {
  color-scheme: light;
  --ink: #172a2b; --muted: #5c706f; --green: #10745e; --green-hover: #0b5c4a;
  --line: #dce6e2; --paper: #fff; --bg: #f5f8f6; --soft: #f4f8f6;
  --tint: #eaf5ef; --wash: #e0eee7; --error: #a42f34; --focus: #168c71;
  --on-green: #fff; --shadow: 0 8px 32px #173a2b06;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9f1ed; --muted: #a0b3aa; --green: #6cd7b3; --green-hover: #8ce5c6;
  --line: #2b3c34; --paper: #17231e; --bg: #101a16; --soft: #1d2b24;
  --tint: #203c30; --wash: #1b3025; --error: #ff9e9e; --focus: #6cd7b3;
  --on-green: #10281d; --shadow: 0 8px 32px #00000015;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 0, var(--wash), transparent 55%) var(--bg); color: var(--ink); line-height: 1.6; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shell { max-width: 900px; margin: auto; padding: 0 28px; }
.topbar { height: 88px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { font-weight: 750; font-size: 29px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 2px; letter-spacing: -1.3px; }
.brand-icon { width: 36px; height: 36px; margin-right: 9px; display: grid; place-items: center; background: var(--green); color: var(--on-green); border-radius: 11px; font-size: 25px; }
.brand-dot { color: var(--green); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.pill { font-size: 12px; display: flex; gap: 7px; align-items: center; color: var(--muted); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; }
.theme-toggle:hover { background: var(--soft); border-color: var(--muted); }
.theme-sun, :root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
.intro { text-align: center; padding: 48px 0 33px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin: 0 0 15px; }
h1 { font-size: clamp(36px, 5.5vw, 50px); letter-spacing: -1.9px; line-height: 1.17; margin: 0; font-weight: 750; }
h1 span { color: var(--green); }
.lead { font-size: 14px; color: var(--muted); margin: 18px 0 0; line-height: 1.7; }
.address-card, .inbox-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 25px 28px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-heading h2 { font-size: 15px; margin: 0; font-weight: 650; letter-spacing: -.2px; }
.small-badge, .count { font-size: 11px; padding: 3px 10px; background: var(--tint); border-radius: 20px; color: var(--green); font-weight: 550; white-space: nowrap; }
.address-row { display: flex; align-items: center; background: var(--soft); border: 1px solid var(--line); padding: 16px; gap: 14px; border-radius: 12px; }
#address { flex: 1; min-width: 0; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(14px, 2.1vw, 19px); font-weight: 500; overflow-wrap: anywhere; letter-spacing: -.45px; }
.icon-button { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; color: var(--ink); font-size: 12px; white-space: nowrap; min-height: 40px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); border-color: transparent; color: var(--on-green); font-weight: 650; }
.copy-button svg { width: 16px; height: 16px; }
.copy-button:hover:enabled { background: var(--green-hover); }
.actions { display: flex; gap: 10px; margin: 15px 0 0; }
.button { border-radius: 9px; padding: 10px 16px; border: 1px solid var(--line); font-weight: 550; font-size: 12px; min-height: 42px; }
.button span { font-size: 16px; padding-right: 5px; line-height: 1; }
.secondary { color: var(--ink); background: var(--paper); }
.secondary:hover:enabled, .icon-button:not(.copy-button):hover:enabled { background: var(--soft); border-color: var(--muted); }
.status { font-size: 12px; color: var(--green); min-height: 20px; margin: 17px 0 0; }
.status.error { color: var(--error); }
.lease-note, .inbox-note { color: var(--muted); font-size: 11px; margin: 8px 0 0; line-height: 1.65; }
.lease-note { padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); }
.inbox-card { min-height: 265px; }
.inbox-card .card-heading { margin-bottom: 7px; }
.inbox-note { display: flex; align-items: center; gap: 7px; }
.refresh-cycle { margin-top: 15px; }
.refresh-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
#refresh-countdown { font-variant-numeric: tabular-nums; white-space: nowrap; }
.refresh-progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 4px; border: 0; border-radius: 4px; overflow: hidden; background: var(--soft); color: var(--green); accent-color: var(--green); }
.refresh-progress::-webkit-progress-bar { background: var(--soft); border-radius: 4px; }
.refresh-progress::-webkit-progress-value { background: var(--green); border-radius: 4px; }
.refresh-progress::-moz-progress-bar { background: var(--green); border-radius: 4px; }
.empty-state { text-align: center; padding: 29px 0 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h3 { font-size: 14px; font-weight: 550; margin: 13px 0 6px; }
.empty-state p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.7; }
.message-list { list-style: none; padding: 0; margin: 14px 0 0; }
.message-list:empty { margin: 0; }
.message-list li + li { border-top: 1px solid var(--line); }
.message-button { border: 0; border-radius: 8px; background: none; display: grid; width: 100%; grid-template-columns: 1fr auto; gap: 4px 15px; padding: 14px 10px; text-align: start; color: var(--ink); }
.message-button:hover { background: var(--soft); }
.message-button strong { font-size: 14px; overflow-wrap: anywhere; grid-column: 1 / -1; font-weight: 600; }
.message-button span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.message-button time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); padding: 1px 8px 12px; }
.privacy-note > span { font-size: 17px; line-height: 1.4; }
.privacy-note p { font-size: 11px; margin: 0; line-height: 1.7; }
footer { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); padding: 20px 0 24px; margin-top: 16px; }
dialog { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; max-width: 720px; width: calc(100% - 32px); max-height: 85vh; padding: 25px; color: var(--ink); box-shadow: 0 30px 100px #0003; }
dialog::backdrop { background: #091d1ab3; backdrop-filter: blur(4px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
dialog h2 { font-size: 21px; overflow-wrap: anywhere; margin: 22px 0 10px; letter-spacing: -.4px; }
.sender, .message-time { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; margin: 5px 0; }
#message-body { font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; line-height: 1.85; }
.truncation { background: var(--tint); color: var(--ink); padding: 8px 12px; font-size: 12px; border-radius: 8px; }
.noscript { padding: 20px; text-align: center; color: var(--error); }
@media (max-width: 600px) {
  .shell { padding: 0 18px; }
  .topbar { height: 76px; gap: 12px; }
  .brand { font-size: 25px; }
  .brand-icon { width: 32px; height: 32px; font-size: 22px; margin-right: 6px; border-radius: 10px; }
  .header-tools { gap: 8px; }
  .pill { display: none; }
  .intro { padding: 35px 0 27px; }
  h1 { letter-spacing: -1.3px; }
  .lead { font-size: 13px; }
  .address-card, .inbox-card { padding: 20px; border-radius: 15px; }
  .address-row { flex-wrap: wrap; padding: 14px; gap: 14px; }
  #address { flex-basis: 100%; font-size: clamp(12px, 3.8vw, 18px); text-align: center; }
  .copy-button { width: 100%; }
  .actions .button { flex: 1; padding: 10px; }
  .message-button { grid-template-columns: 1fr; }
  .message-button time { grid-column: 1; }
  .inbox-note { align-items: baseline; font-size: 11px; }
  footer { font-size: 10px; }
  dialog { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background .15s, border-color .15s; }
}
