:root { color-scheme: light; color:#1b1d3a; background:#f4f5fb; font:16px/1.5 system-ui,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; }
header { background:#10142d; color:#fff; padding:14px 0; }
header a { color:#edf0ff; }
.frame { max-width:1120px; margin:auto; padding-inline:20px; }
.bar,.toolbar,.dialog-header { display:flex; align-items:center; gap:14px; justify-content:space-between; flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; text-decoration:none; }
.brand img { object-fit:contain; }
main { padding-block:clamp(30px,5vw,66px); }
h1 { font-size:clamp(36px,5vw,60px); letter-spacing:-.045em; margin:0; }
.eyebrow { font-size:.75rem; font-weight:750; letter-spacing:.15em; color:#474bbf; }
.intro { color:#475569; margin:6px 0 30px; }
#inbox { padding:clamp(16px,3vw,30px); background:white; border:1px solid #dde1f2; border-radius:18px; }
label { display:inline-flex; align-items:center; gap:10px; font-weight:650; }
select,button,textarea { font:inherit; color:inherit; background:white; border:1px solid #aeb7d9; border-radius:8px; min-height:44px; padding:8px 12px; }
button { cursor:pointer; font-weight:650; }
button:hover { background:#edf0ff; }
button:disabled { opacity:.5; cursor:default; }
:focus-visible { outline:3px solid #4b4fd1; outline-offset:3px; }
.entry { display:grid; grid-template-columns:1.4fr 1fr 1fr auto; width:100%; text-align:left; align-items:center; gap:8px 14px; margin:8px 0; overflow-wrap:anywhere; }
.entry span:not(:first-child) { font-weight:450; color:#475569; }
.pager { justify-content:end; margin-top:20px; }
dialog { width:min(680px,calc(100% - 24px)); max-height:calc(100dvh - 30px); background:#fff; border:1px solid #c4cbed; border-radius:18px; padding:clamp(16px,4vw,30px); color:inherit; overflow:auto; }
dialog::backdrop { background:#10142dd0; }
.dialog-header { align-items:start; }
h2 { margin:0; overflow-wrap:anywhere; }
h3 { margin:18px 0 8px; }
dl { display:grid; grid-template-columns:max-content 1fr; gap:5px 14px; }
dt { font-weight:650; }
dd { margin:0; overflow-wrap:anywhere; }
.message { white-space:pre-wrap; overflow-wrap:anywhere; background:#f4f5fb; padding:14px; border-radius:8px; }
#history { padding-left:20px; }
#history .message { margin-top:4px; }
#reply-form textarea { display:block; width:100%; margin:6px 0 10px; resize:vertical; }
.primary { color:white; background:#4549bd; border-color:#4549bd; }
.primary:hover { background:#363ba7; }
@media(max-width:650px){ .entry{grid-template-columns:1fr auto;} .entry span:first-child{grid-column:1/-1;} }
