:root {
  color-scheme: light dark;
  --bg: #f6f5f0;
  --surface: #fffefa;
  --ink: #202e2a;
  --muted: #58675e;
  --line: #dce2d9;
  --input-border: #7b897e;
  --accent: #195c49;
  --accent-hover: #124637;
  --on-accent: #fff;
  --danger: #a63535;
  --field: #fbfbf6;
  --focus: #35795e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; font-size: 16px; line-height: 1.6; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 4px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { max-width: 1080px; margin: auto; padding: 28px; display: flex; align-items: center; gap: 12px; }
.app-icon { display: grid; place-items: center; padding: 0; border: 0; background: none; border-radius: 12px; min-width: 44px; min-height: 44px; }
.wordmark { text-decoration: none; color: var(--ink); font-weight: 750; font-size: 24px; letter-spacing: -.7px; line-height: 1.2; padding-block: 3px; }
.wordmark span { display: block; font-size: 13px; letter-spacing: 0; font-weight: 400; margin-top: 3px; color: var(--muted); }
main { max-width: 656px; margin: 24px auto 0; padding: 0 24px 24px; }
.intro { margin-bottom: 26px; }
h1 { font-size: clamp(28px, 4.8vw, 38px); line-height: 1.2; letter-spacing: -.9px; font-weight: 650; margin: 0 0 12px; overflow-wrap: anywhere; }
h1[tabindex="-1"]:focus { outline: none; }
h2 { font-size: 20px; line-height: 1.4; margin: 0 0 16px; }
.lead { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
label { display: block; font-size: 15px; font-weight: 650; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.counter { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
textarea, input { background: var(--field); color: var(--ink); border: 1px solid var(--input-border); border-radius: 8px; padding: 12px 14px; width: 100%; min-width: 0; font-size: 16px; }
textarea { display: block; min-height: 178px; resize: vertical; line-height: 1.65; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
textarea:disabled, input:disabled { opacity: .8; cursor: wait; }
.label-spaced { margin: 22px 0 9px; }
.optional { color: var(--muted); font-size: 14px; font-weight: 400; }
.field-note, .muted { color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.field-note { margin: 10px 0 0; }
.field-note:empty { display: none; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 8px; min-height: 46px; padding: 11px 16px; font-size: 15px; font-weight: 650; line-height: 1.5; border: 1px solid transparent; text-decoration: none; overflow-wrap: anywhere; }
.primary { background: var(--accent); color: var(--on-accent); }
.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--field); border-color: var(--input-border); color: var(--ink); }
.secondary:hover { background: var(--bg); }
.full { width: 100%; }
.form-note { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 15px 0 0; }
.error { font-size: 14px; color: var(--danger); margin: 16px 0; overflow-wrap: anywhere; }
.error:empty { margin: 18px 0 0; }
footer { text-align: center; font-size: 14px; color: var(--muted); padding: 24px 16px 30px; }
.copy-row { display: flex; gap: 10px; margin-top: 8px; }
.copy-row input { flex: 1; }
.copy-row button { flex-shrink: 0; }
.sender-section { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; text-underline-offset: 3px; }
.new-message { margin-top: 24px; }
.receiver-landing { margin-top: 40px; text-align: center; padding: 40px 32px; }
.receiver-landing .lead { margin-bottom: 28px; }
.is-private { overflow: hidden; }
.is-private main { padding: 0; margin: 0; max-width: none; }
.secret-view { position: fixed; inset: 0; overflow: auto; background: var(--surface); padding: calc(90px + env(safe-area-inset-top, 0px)) max(24px, calc((100vw - 680px) / 2), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.secret-content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: clamp(17px, 2.3vw, 22px); line-height: 1.8; }
.close-button { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border: 1px solid var(--input-border); border-radius: 50%; font-size: 27px; color: var(--ink); background: var(--surface); z-index: 20; }
.privacy-cover { position: fixed; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--surface); z-index: 10; }
.terminal { text-align: center; margin-top: 40px; padding: 40px 24px; }
.terminal h1 { font-size: 28px; margin: 0; }
.status-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.status-value { flex: 1; min-width: 0; font-size: 24px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: var(--danger); background: transparent; }
.icon-button:hover { background: var(--bg); }
dl { margin: 0 0 24px; }
dt { font-size: 14px; color: var(--muted); margin-top: 14px; }
dd { margin: 1px 0; overflow-wrap: anywhere; }
.message-list { list-style: none; margin: 0; padding: 0; }
.message-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.message-item:first-child { border-top: 1px solid var(--line); }
.message-item a { min-width: 0; flex: 1; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; padding-block: 4px; }
.message-item a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.message-item strong { display: block; font-size: 16px; }
.message-item small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.message-meta { display: flex; flex-wrap: wrap; gap: 0 14px; }
.noscript { text-align: center; padding: 20px; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #151d19; --surface: #1d2721; --ink: #e8eee8; --muted: #a6b3a8; --line: #35443a; --input-border: #788d7d; --accent: #9cd4b6; --accent-hover: #b6e2ca; --on-accent: #152d22; --danger: #f2a09d; --field: #19231d; --focus: #9cd4b6; }
}
@media (max-width: 480px) {
  .site-header { padding: 20px 16px; }
  main { margin-top: 16px; padding: 0 16px 16px; }
  .intro { margin-bottom: 22px; }
  .card { padding: 22px 18px; border-radius: 12px; }
  .copy-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .copy-row button { width: 100%; }
  .receiver-landing { margin-top: 24px; padding: 30px 20px; }
}
@media (forced-colors: active) {
  .primary, .secondary, .icon-button, .close-button { border-color: ButtonText; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
