* { box-sizing: border-box; }
:root { font: 15px/1.55 system-ui, "Microsoft YaHei", sans-serif; color: #251e27; background: #f6f1ed; }
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(16px, 5vw, 72px); background: #292034; color: #fff; }
header span { font-size: 13px; color: #dfcfe3; }
h1, h2 { margin: 0; line-height: 1.25; }
h1 { font-size: clamp(22px, 4vw, 32px); }
h2 { font-size: 19px; }
main { max-width: 1240px; margin: auto; padding: 24px 16px; display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
aside, #editor, dialog { background: #fff; padding: 18px; border: 1px solid #e6dce5; border-radius: 14px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
label { display: block; font-weight: 600; margin: 8px 0; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; margin-top: 4px; border: 1px solid #cabdce; border-radius: 8px; padding: 9px; background: #fff; color: inherit; font: inherit; font-weight: 400; }
button { font: inherit; cursor: pointer; border: 1px solid #d7cadb; border-radius: 8px; padding: 7px 10px; background: #f8f2fa; color: #32223f; }
.primary { background: #633d72; border-color: #633d72; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.wide { grid-column: 1 / -1; }
fieldset { border: 1px solid #e6dce5; border-radius: 10px; margin: 16px 0 0; }
legend { font-weight: 700; }
#posts button { display: block; width: 100%; text-align: left; margin: 8px 0; overflow-wrap: anywhere; }
#posts small { display: block; color: #5d5263; }
#posts button[aria-current=true] { border-color: #633d72; }
output:not([hidden]) { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92vw; background: #292034; color: #fff; padding: 9px 14px; border-radius: 8px; }
dialog { width: min(420px, 92vw); } dialog::backdrop { background: #211629ad; }
#accessError { color: #912640; }
@media (max-width: 700px) { main, .grid { grid-template-columns: 1fr; } header { gap: 10px; } }
