:root {
  color-scheme: light;
  --ink: #142a27;
  --muted: #47615b;
  --line: #d0ded6;
  --mint: #e7f2e9;
  --paper: #f6f8f2;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 72rem; margin: auto; padding: 1.5rem clamp(1rem, 4vw, 3rem); }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mark { background: var(--ink); color: white; padding: .45rem .7rem; font-weight: 800; letter-spacing: .08em; border-radius: .45rem; }
nav, .buttons, .examples { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
button, .button { min-height: 2.6rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: .55rem; background: white; color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; }
select { min-height: 2.6rem; max-width: 100%; padding: .45rem; border: 1px solid var(--line); border-radius: .55rem; background: white; color: var(--ink); font: inherit; }
button:hover, .button:hover { background: var(--mint); }
button:disabled { opacity: .65; cursor: default; }
button[aria-pressed="true"], .primary { background: var(--ink); border-color: var(--ink); color: white; }
.primary:hover, button[aria-pressed="true"]:hover { background: #285249; }
:focus-visible { outline: 3px solid #358571; outline-offset: 2px; }
.hero { padding: clamp(1.8rem, 5vw, 3.5rem) 0 1.5rem; }
.hero p { margin: .6rem 0 0; max-width: 41rem; color: var(--muted); }
.eyebrow { font-weight: 750; letter-spacing: .14em; font-size: .75rem; }
h1 { margin: .2rem 0; font: 500 clamp(2.3rem, 5vw, 4.1rem)/1.05 Georgia, serif; letter-spacing: -.04em; }
h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
h3 { margin: 0 0 .65rem; font-size: 1.05rem; }
.layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.panel { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 2.5vw, 1.6rem); }
label:not(.toggle) { display: grid; gap: .25rem; margin-bottom: .5rem; font-weight: 600; }
textarea, input:not([type="checkbox"]) { width: 100%; border: 1px solid #8da69c; border-radius: .5rem; background: white; color: var(--ink); padding: .55rem; font: inherit; }
textarea { resize: vertical; display: block; margin-bottom: .7rem; }
.note, footer { font-size: .88rem; color: var(--muted); }
.examples { padding: .3rem 0 .8rem; }
.examples button { font-size: .88rem; min-height: 2.3rem; }
.reply { background: var(--mint); padding: .9rem; border-radius: .65rem; overflow-wrap: anywhere; }
.reply p { margin: 0 0 .6rem; }
.toggle { font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.action { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; }
.agenda ul { list-style: none; margin: .8rem 0 0; padding: 0; }
.agenda li { border-top: 1px solid var(--line); padding: .65rem 0; overflow-wrap: anywhere; }
.agenda li p { margin: 0 0 .35rem; }
.agenda li button { font-size: .88rem; }
footer { padding: 1rem 0; }
[hidden] { display: none !important; }
.access-panel { max-width: 28rem; margin: 3rem auto; }
.access-panel h1 { font-size: 2.2rem; margin: 1rem 0; }
.access-panel .mark { display: inline-block; }
.admin-panel { margin-bottom: 1rem; }
#chat-history, #requests { padding-left: 1.5rem; overflow-wrap: anywhere; }
#chat-history li, #requests li { margin: .55rem 0; }
#chat-history li { white-space: pre-wrap; }
#requests button { margin-left: .4rem; }
@media (max-width: 740px) {
  .layout { grid-template-columns: 1fr; }
}
