#empty { margin: .5em 0; color: var(--muted); font-style: italic; }
#nick-list { list-style: none; margin: 0; padding: 0; }
#nick-list li { display: flex; align-items: baseline; gap: .6em; padding: 4px 0; font: 13px/1.5 var(--mono); overflow-wrap: anywhere; }
#nick-list .nick-kind { flex: none; }
#notice, #outbox { color: #ffce90; margin: 0 0 6px; font: 12px/1.35 var(--mono); overflow-wrap: anywhere; }
#outbox { padding: 5px 7px; border-left: 2px solid #d5a856; background: #352916; }
#outbox button { margin-left: .4em; text-decoration: underline; padding: 3px; }
button:disabled { opacity: .6; }
.desk-footer { justify-content: flex-start; }
.connection { font: inherit; }
.connection::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #66644e; background: #b69b50; }
.connection[data-state="connected"]::before { background: #778b46; box-shadow: inset 0 1px 2px #cbd392; }
.connection[data-state="offline"]::before { background: #94644b; }
#retry-link { color: inherit; font: inherit; text-decoration: underline; }
.privacy-link { margin-inline-start: auto; padding: 4px; color: inherit; font: inherit; text-decoration: underline; }
.privacy-info { display: grid; gap: 12px; margin: 0; font: 13px/1.5 var(--mono); }
.privacy-info dt { color: var(--amber); font-weight: bold; }
.privacy-info dd { margin: 2px 0 0; }
.irc-line { white-space: normal; }
.irc-line .body { white-space: pre-wrap; }
.emoji-options button { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.dialog-section .dialog-list button { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width:640px) {
  #app { min-height: min(390px,calc(100dvh - 13px)); }
  .desk-footer { white-space: normal; }
  .room-head { padding: 10px 0; }
}
.reaction-quote { max-height: 7em; overflow: auto; overflow-wrap: anywhere; margin: 0 0 12px; color: var(--muted); font: 13px/1.5 var(--mono); }
#modal-content > .dialog-section + .dialog-form { margin-top: 15px; }

.screen-panel { --glass-gutter: clamp(18px, 3vw, 42px); }
.room-intro { max-width: calc(100% - 85px); }
.perch { right: 2px; }
.work-area {
  display: grid;
  grid-template: "people" auto "log" minmax(0, 1fr) / minmax(0, 1fr);
  margin: 0 var(--glass-gutter);
}
.conversation { grid-area: log; }
.participants {
  grid-area: people;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  justify-self: end;
}
.participants h2 { margin: 0; font: inherit; }
.people-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 4px;
  color: var(--muted);
  font: 650 11px/1.35 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.people-disclosure:hover { color: #ffe2aa; }
.people-disclosure:focus-visible { outline-offset: -2px; }
.people-disclosure .chevron { margin-inline: 1px 2px; }
#nick-count { color: var(--amber); font-variant-numeric: tabular-nums; }
#roster-pane { display: none; min-height: 0; overflow: auto; scrollbar-color: var(--rule) transparent; scrollbar-width: thin; }
.show-roster #roster-pane { display: block; }
.entry { margin: 0 var(--glass-gutter) 16px; padding: 0; }
.composer {
  display: grid;
  min-height: 0;
  padding: 0;
  gap: 3px;
  background: none;
  border: 0;
}
.composer-caption { display: flex; align-items: center; gap: 8px; min-width: 0; }
#target { flex: 1; min-width: 0; margin: 0; }
#self-nick { border: 0; padding: 3px 2px; text-align: end; }
.composer .send-button {
  width: auto;
  height: auto;
  min-height: 26px;
  padding: 3px 7px;
  font: 650 11px/1.25 var(--mono);
}
.composer #input {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 1px;
  background: #1c180f;
  font-family: var(--mono);
}
.composer #input:focus { border-color: #e4b46a; box-shadow: inset 0 0 0 1px #b08a51; }

@media (min-width: 641px) {
  .show-roster .work-area {
    grid-template: "log people" minmax(0, 1fr) / minmax(0, 1fr) var(--rail);
  }
  .show-roster .participants {
    justify-self: stretch;
    margin: 12px 0 8px;
    padding-left: 12px;
    border-left: 1px solid var(--rule);
  }
}
@media (min-width: 641px) and (max-width: 850px) {
  .screen-panel { --glass-gutter: 18px; }
}
@media (max-width: 640px) {
  .screen-panel { --glass-gutter: 10px; }
  .perch { right: 4px; }
  .room-head #topic { grid-column: 1 / -1; }
  .participants { position: relative; justify-self: stretch; }
  .people-disclosure { min-height: 36px; }
  .show-roster #roster-pane { max-height: min(17dvh, 108px); border-bottom: 1px solid var(--rule); }
  .participants #manage-thread { position: absolute; top: 4px; right: 0; margin: 0; }
  #nick-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 0 12px; }
  .entry { margin-bottom: 10px; }
  .composer #input { font-size: 16px; }
}
@media (max-width: 420px) {
  .model { display: none; }
  .masthead { padding-inline: 0; }
  .mast-inner { padding-inline: 2px; gap: 5px; }
  .identity { font-size: clamp(18px, 5.3vw, 22px); }
  .main-actions { flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
  .nav-action { padding-inline: 5px; }
}
