
:root { color-scheme: light dark; --bg: #f4f6fa; --card: #fff; --fg: #141a29; --sub: #526079; --line: #dce2ed; --accent: #264ec9; --soft: #eaf0ff; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111624; --card: #191f30; --fg: #f0f3ff; --sub: #a9b5cf; --line: #333d55; --accent: #a9baff; --soft: #242f50; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; background: var(--bg); color: var(--fg); }
main { width: min(100% - 2rem, 690px); margin: 0 auto; padding: clamp(2.25rem, 7vw, 5rem) 0; }
.masthead { display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.35rem; }
h1 { font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.05em; margin: 0; line-height: 1.16; }
.panel, article { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: clamp(1rem, 4vw, 1.5rem); }
.panel { max-width: 430px; }
button, input { font: inherit; color: inherit; }
button { border: 1px solid var(--line); background: var(--card); padding: .52rem .85rem; border-radius: 10px; min-height: 44px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiet { background: transparent; }
.primary { background: #284fc8; color: white; border-color: transparent; font-weight: 650; }
.wide { width: 100%; }
.divider { display: flex; gap: .75rem; align-items: center; margin: 1rem 0; color: var(--sub); font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
form { display: grid; gap: .52rem; }
label { font-weight: 600; }
input { width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--bg); padding: .6rem .7rem; border-radius: 9px; }
form button { margin-top: .3rem; }
.toolbar, nav, .meta, .code-row { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.toolbar { justify-content: space-between; }
nav button { min-width: 43px; padding-inline: .58rem; }
[aria-pressed="true"] { background: var(--soft); color: var(--accent); border-color: var(--accent); font-weight: 650; }
.status { color: var(--sub); margin: .8rem 0; }
.status:empty { display: none; }
#messages { display: grid; gap: .65rem; }
#older { margin-top: .8rem; }
article h2 { font-size: 1rem; margin: .55rem 0 .18rem; overflow-wrap: anywhere; }
.meta { justify-content: space-between; color: var(--sub); font-size: .9rem; gap: .15rem .65rem; }
.meta span { font-weight: 650; }
.sender { color: var(--sub); font-size: .9rem; overflow-wrap: anywhere; }
.code-row { margin-top: .8rem; justify-content: space-between; }
code { color: var(--accent); font: 700 clamp(1.35rem, 6vw, 1.9rem)/1.25 ui-monospace, Menlo, monospace; letter-spacing: .1em; overflow-wrap: anywhere; }
details { margin-top: .65rem; }
summary { cursor: pointer; color: var(--sub); }
.excerpt { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: 8px; padding: .65rem; margin-bottom: 0; }
