:root {
  color-scheme: light;
  --ink: #192f32;
  --muted: #526967;
  --accent: #17665f;
  --accent-dark: #104b46;
  --line: #d7e1dd;
  --paper: #fff;
  --canvas: #f4f6f3;
  --tint: #e8f2ed;
  --danger: #92392f;
  font: 100%/1.6 system-ui, -apple-system, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #a4641b; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: .5rem; top: -6rem; background: white; padding: .5rem; z-index: 1; }
.skip:focus { top: .5rem; }
header { color: white; background: #163c3a; }
.bar, .wide { width: min(72rem, calc(100% - 3rem)); margin: auto; }
.bar { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.25rem; letter-spacing: -.025em; }
.brand span:last-child { font-size: .94rem; letter-spacing: .035em; }
.bar a { color: white; text-decoration: none; }
.mark { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 2rem; height: 2rem; margin-right: .2rem; background: #cde9cd; border-radius: .5rem; }
.mark i { background: #184641; width: 3px; border-radius: 2px; height: .55rem; }
.mark i:nth-child(2) { height: 1.15rem; }
.mark i:last-child { height: .8rem; }
nav { display: flex; align-self: stretch; gap: 1.25rem; }
nav a { display: flex; align-items: center; padding: .55rem .15rem; border-bottom: 3px solid transparent; font-size: .9rem; }
nav a[aria-current], nav a:hover { border-color: #b7dcb7; }
main { overflow-wrap: anywhere; }
.wide { padding: 2.75rem 0 4rem; }
.narrow { max-width: 32rem; margin: 3rem auto; padding: 0 1rem; }
h1, h2, h3, p, ol, ul, dl { margin: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.28; margin-bottom: 1.75rem; letter-spacing: -.035em; }
h2, h3 { line-height: 1.45; }
h2 { font-size: 1.16rem; }
h3 { font-size: 1.05rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: .8rem; padding: 1.5rem; min-width: 0; }
.columns { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(17rem, 1fr); align-items: start; gap: 1.25rem; margin-bottom: 1.5rem; }
.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack, form { display: grid; gap: 1rem; }
form { align-items: start; }
h2 + form, details[open] > form, .members + form { margin-top: 1.25rem; }
label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 650; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #93a7a2; border-radius: .4rem; padding: .65rem .75rem; width: 100%; min-width: 0; }
input, select, textarea { font-weight: 400; font-size: 1rem; }
textarea { resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #647774; }
small, .muted, .intro, .meta { color: var(--muted); }
small { display: block; font-size: .81rem; font-weight: 400; }
button { font: inherit; font-size: .93rem; font-weight: 650; cursor: pointer; background: var(--accent); color: white; border: 1px solid transparent; border-radius: .45rem; padding: .58rem 1rem; min-height: 2.75rem; justify-self: start; }
button:hover { background: var(--accent-dark); }
button:disabled { opacity: .65; cursor: wait; }
button.secondary, button.danger { color: var(--accent); background: white; border-color: var(--line); }
button.danger { color: var(--danger); }
button.secondary:hover, button.danger:hover { background: var(--canvas); }
.auth { padding: clamp(1.25rem, 5vw, 2.25rem); }
.auth h1 { margin-bottom: .6rem; }
.auth button { width: 100%; }
.intro { margin: .5rem 0 1.5rem; }
.footlinks, .section-head, .compose-actions, .actions, .link-panel { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.footlinks, .section-head, .compose-actions, .link-panel { justify-content: space-between; }
.footlinks { padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1.5rem; font-size: .87rem; }
.count, .tag { display: inline-block; background: var(--tint); color: var(--accent-dark); border-radius: .35rem; padding: .1rem .45rem; font-size: .76rem; vertical-align: middle; }
.count { margin-left: .25rem; font-variant-numeric: tabular-nums; }
.empty { margin-top: 1.25rem; padding: 2rem 1rem; text-align: center; border-radius: .5rem; background: var(--canvas); }
.empty p, .composer p, .muted { font-size: .9rem; margin: .35rem 0; }
.empty p { color: var(--muted); }
.rows, .history { list-style: none; padding: 0; }
.rows { margin-top: .75rem; }
.rows > li, .history li, .agent-row { border-top: 1px solid var(--line); padding: 1rem 0; }
.room-link, .members li { display: flex; gap: .85rem; align-items: center; }
.room-link { color: var(--ink); text-decoration: none; }
.room-link:hover strong { text-decoration: underline; }
.room-icon, .avatar { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .55rem; color: var(--accent); background: var(--tint); }
.avatar { border-radius: 50%; }
.arrow { margin-left: auto; color: var(--accent); }
summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); }
.back { display: inline-block; font-size: .87rem; margin-bottom: .75rem; }
.section-head a { font-size: .85rem; }
.history { margin-top: 1rem; max-height: 60vh; overflow-y: auto; }
.meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .78rem; }
.meta strong { color: var(--ink); font-size: .95rem; }
.meta time { margin-left: auto; }
.body-text { white-space: pre-wrap; margin: .45rem 0 0; }
.composer { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.composer p + form { margin-top: .75rem; }
.link-panel { font-weight: 650; text-decoration: none; }
.agent-row { margin-top: 1rem; }
.agent-row .actions, .agent-row details { margin-top: 1rem; }
dl { margin-top: 1rem; } dt { color: var(--muted); font-size: .8rem; } dd { margin: .15rem 0 .6rem; }
.notice, .error { border-left: .22rem solid var(--accent); padding: .75rem 1rem; border-radius: .3rem; margin-bottom: 1rem; }
.notice { background: var(--tint); }
.error { background: #f9eeeb; color: var(--danger); border-color: var(--danger); }
dialog { width: min(34rem, calc(100% - 2rem)); max-height: 85vh; color: var(--ink); border: 1px solid var(--line); border-radius: .75rem; padding: 1.5rem; }
dialog::backdrop { background: rgb(17 42 40 / 55%); }
dialog textarea { min-height: 8rem; margin: .75rem 0; }
@media (max-width: 48rem) {
  .columns { grid-template-columns: minmax(0, 1fr); }
  .bar, .wide { width: calc(100% - 2rem); }
  .wide { padding-top: 1.75rem; }
}
@media (max-width: 36rem) {
  .bar { min-height: 3.75rem; padding-top: .75rem; padding-bottom: .75rem; flex-wrap: wrap; gap: .25rem; }
  nav { width: 100%; gap: 1.1rem; }
  .panel { padding: 1.1rem; }
  .narrow { margin-top: 1.5rem; }
}
