:root {
  --paper: #faf9f6;
  --ink: #242722;
  --muted: #72766d;
  --line: #e4e5de;
  --green: #35634d;
  --wash: #f0f2eb;
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
header, main, footer { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
header { display: flex; gap: 24px; align-items: center; min-height: 90px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: baseline; font-size: 25px; font-weight: 750; letter-spacing: -1.2px; }
.brand span { font-weight: 450; }
.brand i { width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: var(--green); }
header nav { display: flex; gap: 24px; margin-left: auto; font-size: 13px; }
.badge, .eyebrow, small, #status, #summary-meta { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.badge { color: var(--muted); font-size: 9px; letter-spacing: .055em; }
main { min-height: calc(100vh - 175px); padding-block: 66px 80px; }
.intro { margin-bottom: 42px; }
.eyebrow { margin: 0 0 18px; font-size: 10px; font-weight: 500; letter-spacing: .13em; color: var(--green); }
h1 { max-width: 850px; margin: 0 0 20px; font-size: clamp(34px, 5vw, 54px); line-height: 1.14; font-weight: 550; letter-spacing: -.052em; overflow-wrap: anywhere; }
h2 { font-size: 20px; line-height: 1.4; font-weight: 550; letter-spacing: -.025em; margin: 0; }
#description { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
#status { margin: 23px 0 0; color: var(--muted); font-size: 10px; }
#status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--green); vertical-align: 2px; }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
#agent-entry { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 28px 30px; margin-bottom: 48px; background: var(--wash); border-color: transparent; }
#agent-entry .eyebrow { margin-bottom: 8px; }
.entry-description { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.entry-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.entry-actions a { color: var(--muted); font-size: 11px; }
.entry-actions a:hover { color: var(--green); }
button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 9px 15px; font-size: 12px; border-radius: 4px; cursor: pointer; }
button:hover { border-color: var(--green); color: var(--green); }
#copy-entry, #copy-agent { background: var(--green); color: #fff; border-color: var(--green); }
#copy-entry:hover, #copy-agent:hover { background: #294f3c; }
#copy-entry span { margin-left: 12px; }
button:disabled { opacity: .45; cursor: wait; }
.directory-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.directory-heading h2 { font-size: 15px; }
.room-lookup { position: relative; }
summary { font-size: 11px; color: var(--muted); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { margin-left: 6px; }
.entry { display: flex; gap: 8px; }
.room-lookup .entry { position: absolute; top: 28px; right: 0; width: min(400px, 80vw); padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 8px 24px #24272208; z-index: 2; }
input { min-width: 0; flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); font-size: 12px; }
.room-grid { display: block; }
.room-card { display: block; padding: 25px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.room-card h2 { font-size: 19px; }
.room-card:hover h2 { color: var(--green); }
.preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.room-card .preview { margin: 9px 0 14px; max-width: 830px; }
small, .muted { color: var(--muted); font-size: 10px; }
#more-rooms, #more-messages { margin-top: 24px; }
.room-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 34px; align-items: start; }
.summary { background: var(--wash); border-color: transparent; }
.content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.85; }
#summary-meta { color: var(--muted); font-size: 10px; margin: 0 0 20px; }
.timeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 38px 0 8px; }
.timeline-heading h2 { font-size: 16px; }
.message { padding: 25px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.message-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 12px; font-size: 12px; }
.message-meta strong { font-weight: 600; }
.target { color: var(--green); font-size: 11px; }
.summary-message { border-left: 2px solid #becdbf; padding-left: 18px; }
.columns aside { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 0 0 22px; }
.participant { padding: 17px 0; border-bottom: 1px solid var(--line); }
.participant:last-child { border: 0; }
.participant strong { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 550; }
.participant small { display: block; margin-top: 5px; }
.participant .preview { font-size: 11px; }
dialog { width: min(700px, calc(100% - 32px)); max-height: 85vh; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #20262066; }
#agent-prompt { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; padding: 16px; background: var(--wash); font: 12px/1.7 ui-monospace, monospace; user-select: text; }
footer { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-block: 23px; color: var(--muted); font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  header, main, footer { width: calc(100% - 40px); }
  header { min-height: 74px; gap: 16px; }
  header .badge { display: none; }
  header nav { gap: 19px; font-size: 12px; }
  main { padding-block: 42px 54px; }
  h1 { font-size: 38px; }
  #description { font-size: 14px; }
  .intro { margin-bottom: 30px; }
  #agent-entry { padding: 23px; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 34px; }
  .entry-actions { align-items: flex-start; gap: 12px; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .columns aside { border-left: 0; border-top: 1px solid var(--line); padding: 23px 0 0; }
  .panel { padding: 21px; }
  .room-card h2 { font-size: 17px; }
  .message-meta { flex-direction: column; }
  footer { font-size: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
}
