:root { font: 16px/1.5 system-ui, sans-serif; color: #18312a; background: #f3f6f2; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: 1rem max(1.25rem, calc((100% - 70rem) / 2)); background: #124332; color: white; }
header > span { font-size: .85rem; color: #d0e8da; }
nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
nav button { background: #1c5944; }
#noticeQueueBadge { display: inline-block; min-width: 1.4em; margin-left: .25em; border-radius: 1em; padding-inline: .35em; background: #a62922; font-weight: 700; }
main { margin: 0 auto; max-width: 72rem; padding: 0 1.25rem 2rem; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: .8rem 0; }
h2 { font-size: 1.2rem; margin-top: 0; }
#notice { color: #2f5a4b; min-height: 1.5rem; margin: .75rem 0; }
.credential { max-width: 28rem; margin: 2.5rem auto; }
form { display: grid; gap: .85rem; }
.columns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; margin: 1rem 0; }
label { display: grid; gap: .3rem; font-weight: 600; }
input, select, textarea, button { font: inherit; border-radius: .45rem; padding: .55rem .7rem; }
input, select, textarea { border: 1px solid #8ca69a; background: #fff; min-width: 0; }
button { cursor: pointer; border: 1px solid transparent; background: #1a634a; color: white; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: .18rem solid #cb751a; outline-offset: .15rem; }
.inbox { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(16rem, 2fr); gap: .9rem; }
aside, article { padding: 1rem; border: 1px solid #dae3da; border-radius: .65rem; background: #fff; }
#backToConversations { display: none; }
.inbox-unread-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .6rem; }
.inbox-unread-label { display: inline-block; margin-top: .25rem; border-radius: 1em; padding-inline: .55em; color: #892821; background: #fcebe7; font-weight: 700; }
.filters { display: grid; gap: .6rem; }
ul, ol { list-style: none; padding: 0; }
li { margin: .25rem 0; padding: .45rem 0; border-bottom: 1px solid #e7eee8; }
#conversations button { width: 100%; text-align: left; color: #19382c; background: #eaf2e9; }
#conversations button[aria-current] { border-color: #237a55; background: #d9eee1; }
.assistance-alert {
  border-inline-start: 3px solid #aa3825;
  padding: 0.5rem 0.75rem;
  background: #fff0df;
  color: #681f12;
}
.assistance-alert p { margin: .25rem 0; }
.reply-quote, #timeline blockquote {
  margin: 0.45rem 0;
  padding: 0.4rem 0.65rem;
  border-inline-start: 2px solid currentColor;
  overflow-wrap: anywhere;
}
.reply-quote p { margin: 0 0 0.4rem; }
#timeline li span { display: block; font-size: .82rem; color: #455a50; }
#timeline li p { margin: .25rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.media-composer { margin: .75rem 0; }
.media-composer div > button { margin-top: .35rem; }
.media-composer audio, #timeline audio, #timeline video { display: block; max-width: 100%; margin: .5rem 0; }
#managementTotals { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .65rem; }
#managementTotals > div { background: #fff; border: 1px solid #dae3da; border-radius: .65rem; padding: .75rem; }
#managementTotals dt { font-size: .9rem; }
#managementTotals dd { margin: .2rem 0 0; font-size: 1.35rem; font-weight: 650; }
.management-table { overflow-x: auto; }
.management-table table { width: 100%; border-collapse: collapse; background: #fff; }
.management-table caption { text-align: left; font-weight: 650; margin-block: .55rem; }
.management-table th, .management-table td { border-bottom: 1px solid #dae3da; padding: .65rem; text-align: left; }
.management-table tbody th, .management-table button { white-space: nowrap; }
@media (max-width: 38rem) {
  nav { margin-left: 0; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox:has(#selected:not([hidden])) > aside,
  .inbox > article:has(#selected[hidden]) { display: none; }
  #backToConversations { display: inline-block; margin-block-end: .75rem; }
  .inbox input[type="file"] { max-width: 100%; }
  .columns > label { flex: 1 1 100%; }
}
