:root { color-scheme: light; font: 1rem/1.5 system-ui, sans-serif; background: #f5f5ef; color: #22253b; }
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { margin: 0 0 1.75rem; font-size: 2rem; }
a { color: #3e4288; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { border: 1px solid #414685; border-radius: .42rem; background: #414685; color: white; padding: .45rem .85rem; }
button:disabled { opacity: .54; cursor: default; }
button.quiet { background: white; color: #353969; border-color: #c5c5d0; }
:focus-visible { outline: 2px solid #575bb6; outline-offset: 3px; }
input, textarea { display: block; width: 100%; margin-top: .35rem; border: 1px solid #a7a7b7; border-radius: .4rem; padding: .45rem .6rem; background: #fff; }
textarea { resize: vertical; }
label { display: block; margin: 0 0 .8rem; }
.top { display: flex; align-items: center; justify-content: space-between; padding: .8rem max(1rem, calc((100% - 75rem) / 2)); border-bottom: 1px solid #dedee2; background: #fff; }
.top > a { font-weight: 750; color: inherit; text-decoration: none; }
.layout { margin: 2rem auto; width: min(100% - 2rem, 75rem); display: grid; gap: 1.5rem; grid-template-columns: minmax(15rem, 1fr) minmax(0, 3fr); }
.sidebar, .work, .login { background: #fff; border: 1px solid #dedee2; border-radius: .7rem; padding: clamp(1rem, 3vw, 2rem); }
.sidebar { align-self: start; }
.sidebar h2 { font-size: 1rem; }
.sidebar details { margin-top: 1rem; border-top: 1px solid #dedee2; padding-top: 1rem; }
.sidebar details form { margin-top: 1rem; }
.draft { display: block; text-align: left; width: 100%; margin-bottom: .35rem; border-color: transparent; background: #f5f5f9; color: #22253b; overflow-wrap: anywhere; }
.draft[aria-current] { border-color: #8e91bc; background: #ededf7; font-weight: 650; }
.work h2 { margin-top: 0; overflow-wrap: anywhere; }
.preview, .sharing { border-top: 1px solid #dedee2; margin-top: 1.5rem; }
.preview iframe { display: block; border: 1px solid #dedee2; border-radius: .5rem; width: 100%; }
#preview-again { margin-top: .65rem; }
#preview-status:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.notice { padding: .6rem .8rem; background: #f0eff9; border-radius: .35rem; }
.login { width: min(100% - 2rem, 29rem); margin: 10vh auto 2rem; }
[hidden] { display: none !important; }
@media (max-width: 740px) { .layout { grid-template-columns: 1fr; } }
