* { box-sizing: border-box; }
:root { font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif; color: #203d37; background: #f4f7f5; line-height: 1.55; }
body { margin: 0; }
header { background: #183e36; color: white; }
.bar, main { max-width: 58rem; margin: auto; padding: 1.1rem clamp(1rem, 4vw, 2.25rem); }
.bar, .workspace-bar, .heading, .actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.bar span, .hint { color: #577166; font-size: .91rem; }
.bar span { color: #c6dcd3; }
.bar button { margin-left: auto; color: white; }
main { padding-top: clamp(1.2rem, 4vw, 3rem); padding-bottom: 4rem; }
section#login-view, article, #editor, #storage { margin-top: 1rem; border: 1px solid #cddbd3; border-radius: .9rem; background: #fff; padding: clamp(1rem, 4vw, 2rem); }
#login-view { max-width: 30rem; }
.workspace-bar, .heading { justify-content: space-between; }
.workspace-bar { border-bottom: 1px solid #cddbd3; padding-bottom: .65rem; }
h1, h2 { line-height: 1.25; }
h1 { margin: .7rem 0; font-size: clamp(1.45rem, 4vw, 2rem); }
h2 { font-size: 1.1rem; margin: .3rem 0 .6rem; }
label { display: grid; gap: .35rem; margin: 1rem 0; font-weight: 600; }
input, textarea, select, button { font: inherit; color: inherit; max-width: 100%; }
input, textarea, select { width: 100%; min-width: 0; padding: .6rem; border: 1px solid #9cafa5; border-radius: .4rem; background: white; }
textarea { resize: vertical; }
button { appearance: none; background: #fff; border: 1px solid #a9bdb1; border-radius: .45rem; padding: .48rem .95rem; cursor: pointer; }
button:hover { filter: brightness(.95); }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: #245a49; border-color: #245a49; color: white; font-weight: 600; }
button.quiet { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #2671a1; outline-offset: 2px; }
[hidden], [role=status]:empty { display: none !important; }
.prose, li, dd, #latest, a { white-space: pre-wrap; overflow-wrap: anywhere; }
details, .storage-block { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #d8e1db; }
summary { cursor: pointer; font-weight: 600; }
a { color: #205e50; }
dl { display: grid; grid-template-columns: minmax(6rem, max-content) 1fr; gap: .4rem .8rem; }
dd { margin: 0; min-width: 0; }
#conflict { padding: .75rem; background: #fff2d8; border-radius: .5rem; }
blockquote { margin: .3rem 0 .8rem; }
.error { color: #96422a; }
@media (max-width: 32rem) { .bar, main { padding-right: .85rem; padding-left: .85rem; } .bar { gap: .35rem; } button { min-height: 2.75rem; } }
