:root {
  color: #18212b;
  background: #eef2f6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.card { width: min(100%, 60rem); padding: clamp(1.25rem, 4vw, 2.75rem); background: #fff; border: 1px solid #d8e0e8; border-radius: 1rem; box-shadow: 0 1rem 3rem #18212b12; }
.header, .editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.eyebrow { margin: 0; color: #526b85; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: .25rem 0 1.5rem; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; }
.stack { display: grid; gap: .65rem; max-width: 28rem; }
label { font-weight: 650; }
input, textarea { width: 100%; border: 1px solid #aebdca; border-radius: .55rem; background: #fbfdff; color: inherit; font: inherit; }
input { min-height: 2.75rem; padding: .55rem .7rem; }
textarea { min-height: min(65vh, 34rem); resize: vertical; padding: .85rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.5; }
input:focus, textarea:focus, button:focus-visible { outline: 3px solid #77aef5; outline-offset: 2px; }
.button { min-height: 2.65rem; border: 0; border-radius: .55rem; padding: .55rem 1rem; background: #145dcc; color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.button:hover { background: #0d4ba9; }
.button.secondary { background: #e8eff8; color: #1b4b7d; }
.button.secondary:hover { background: #d9e6f4; }
.notice, .save-status { min-height: 1.5rem; color: #526b85; }
.notice { margin: 0 0 1rem; }
.notice.error, .save-status.error { color: #a42d2d; }
.save-status.saved { color: #267447; }
.editor-panel { display: grid; gap: .5rem; }
.hidden { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root { color: #e6edf5; background: #101820; }
  .card { background: #18232e; border-color: #304252; }
  input, textarea { background: #111a22; border-color: #526b85; }
  .button.secondary { background: #263d52; color: #dbeafe; }
  .notice, .save-status { color: #b8d5ef; }
  .notice.error, .save-status.error { color: #ff9b9b; }
  .save-status.saved { color: #8fe3a8; }
}
