:root{font-family:system-ui,sans-serif;color:#182239;background:#f5f7fa;line-height:1.55;--ink:#182239;--muted:#526079;--border:#dbe1e9;--blue:#253d78}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
header{min-height:72px;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px max(20px,calc((100% - 1060px)/2));background:#111d35;color:#fff}
.brand,#account{display:flex;align-items:center;gap:12px}
.brand{font-weight:700;white-space:nowrap}
.mark{display:grid;place-items:center;width:34px;height:34px;background:#e7edff;color:#21376b;border-radius:8px;font:700 22px Georgia,serif}
#identity{font-size:.86rem;color:#e1e8f8}
header .quiet{background:#26334c;color:#fff;border-color:#536078}
main{max-width:1100px;margin:auto;padding:54px 20px}
h1,h2,p{margin:0}
h1{font:600 clamp(2.4rem,6vw,3.65rem)/1.1 Georgia,serif;letter-spacing:-.035em}
h2{font-size:1.16rem;line-height:1.3}
.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;color:var(--blue);font-weight:750;margin-bottom:9px}
.intro{color:var(--muted);margin-top:12px}
.heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}
.panel,dialog{background:white;border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 28px #18223909}
.login{max-width:440px;margin:12px auto;padding:32px}
.login form{margin-top:22px}
button,.sign-in{font:inherit;font-size:.9rem;line-height:1.25;font-weight:650;border:1px solid transparent;border-radius:8px;padding:10px 14px;cursor:pointer;white-space:nowrap}
button:disabled{opacity:.65;cursor:wait}
.primary{background:var(--blue);color:white}
.primary:hover{background:#182d60}
.quiet{background:white;color:var(--ink);border-color:var(--border)}
.quiet:hover{filter:brightness(.94)}
.danger{color:#a22c35}
.sign-in{display:inline-block;margin-top:20px;text-decoration:none}
.toolbar,.record{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px}
.toolbar{border-bottom:1px solid var(--border);min-height:58px}
.toolbar label{width:min(460px,100%);margin:0}
#count{font-size:.9rem;color:var(--muted);white-space:nowrap}
.record{align-items:start;overflow-wrap:anywhere}
.record+.record{border-top:1px solid var(--border)}
.record p{color:var(--muted);margin:4px 0}
.email{color:var(--blue)}
.tags{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:10px 0 0}
.tags li{background:#eaf0fc;color:#273e70;border-radius:16px;padding:3px 10px;font-size:.8rem}
.empty{text-align:center;padding:54px 20px}
.empty p{margin-top:6px;color:var(--muted)}
dialog{width:min(520px,calc(100% - 28px));padding:24px;color:var(--ink)}
dialog::backdrop{background:#111d3580}
dialog h2{font:600 1.8rem Georgia,serif;margin-bottom:18px}
label{display:grid;gap:5px;margin-bottom:12px;font-size:.9rem;font-weight:650}
input,textarea{font:inherit;font-weight:400;color:var(--ink);width:100%;border:1px solid #b9c4d5;border-radius:7px;padding:8px 10px;background:white}
textarea{resize:vertical;min-height:72px}
:focus-visible{outline:3px solid #6380cf;outline-offset:2px}
.actions{display:flex;gap:8px;justify-content:end}
.error{color:#a22c35;font-size:.9rem;margin-bottom:12px}
.error:empty{display:none}
#notice{margin-top:14px;color:var(--muted)}
@media(max-width:620px){main{padding-top:32px}.heading,.toolbar,.record{align-items:start;flex-direction:column}.toolbar,.record{padding:16px}.actions{flex-wrap:wrap}header{flex-wrap:wrap}.login{padding:22px}}
