:root {
  color-scheme: light;
  background: #f1f5f4;
  color: #172a31;
  font: 16px/1.45 "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #143239; color: white; }
nav, main { max-width: 1120px; margin: auto; padding: 1rem 1.4rem; }
nav, .nav-actions, .filters, .thread-actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
nav { justify-content: space-between; }
nav a { color: inherit; }
.brand { font-weight: 750; text-decoration: none; }
main { padding-top: 2rem; }
h1 { margin: 0 0 1.15rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.card { background: white; border: 1px solid #d4e2e0; border-radius: 12px; padding: 1.15rem; margin-bottom: 1rem; overflow-x: auto; }
.login { max-width: 420px; margin: 3rem auto; }
label { display: grid; gap: .25rem; }
input, select, textarea, button { font: inherit; border: 1px solid #8da6a6; padding: .4rem .65rem; border-radius: 6px; background: white; color: #172a31; }
textarea { min-height: 5rem; }
button { cursor: pointer; }
.primary { background: #08685e; color: white; border-color: #08685e; }
a { color: #075d54; }
:focus-visible { outline: 3px solid #d69023; outline-offset: 2px; }
.filters { align-items: end; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .6rem; }
.metrics div { display: grid; gap: .25rem; background: #edf7f4; padding: .65rem; border-radius: 6px; }
.metrics span { font-size: .8rem; }
.metrics strong { font-size: 1.45rem; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: .5rem; border-bottom: 1px solid #dce7e5; }
.messages { display: grid; list-style: none; padding: 0; gap: .55rem; }
.messages li { max-width: min(85%, 48rem); padding: .65rem; border-radius: 7px; overflow-wrap: anywhere; }
.messages .in { justify-self: end; background: #e6f3e9; }
.messages .out { justify-self: start; background: #edf1f4; }
.messages small { color: #49636a; }
