@charset "UTF-8";
:root {
  font-family:
    Segoe UI,
    system-ui,
    -apple-system,
    sans-serif;
  color: #182b43;
  background: #f1f5fa;
  font-size: 16px;
  line-height: 1.6;
  --blue: #1758cf;
  --navy: #112b50;
  --muted: #52647b;
  --line: #cfdae8;
  --focus: #a44000;
}
.preview-banner {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid #1358bd;
  border-radius: 10px;
  background: #eaf2ff;
}
.preview-banner p {
  margin-top: 0;
}
.today-presence {
  margin-top: 1.5rem;
}
.today-newcomers h2 {
  margin-top: 0;
}
.newcomer-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.newcomer-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.newcomer-list li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.newcomer-list a {
  font-weight: 650;
}
.color-option span {
  font-weight: 700;
}
.profile-dialog {
  width: min(600px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 1.25rem;
  border: 1px solid #8598b1;
  border-radius: 14px;
  background: white;
  color: #182b43;
  overflow: auto;
}
.profile-dialog::backdrop {
  background: rgb(17 43 80 / 65%);
}
.profile-dialog > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.profile-dialog > header h2 {
  margin: 0;
}
.profile-dialog .profile-card {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.profile-dialog .profile-card h2 {
  margin-top: 1rem;
}
@media (max-width: 760px) {
  .profile-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 1rem;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #144fa5;
  text-underline-offset: 0.2em;
}
a:hover {
  color: #093374;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.65rem 1.1rem;
  background: var(--blue);
  color: white;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
button:hover,
.button:hover {
  background: #0d438f;
  color: #fff;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.secondary {
  background: #fff;
  border-color: #a4b8d1;
  color: #174b8a;
}
.secondary:hover {
  background: #e8f0fd;
  color: #123f78;
}
.quiet {
  background: transparent;
  color: var(--blue);
  padding: 0.5rem 0.65rem;
}
.quiet:hover {
  background: #e7effb;
  color: #0b3774;
}
.danger {
  background: #fff0f0;
  color: #90232a;
  border-color: #dbb1b4;
}
.danger:hover {
  background: #ffe1e1;
  color: #691820;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #8598b1;
  border-radius: 7px;
  background: #fff;
  color: #182b43;
  min-height: 44px;
}
input[readonly] {
  background: #edf2f8;
}
textarea {
  resize: vertical;
  min-height: 76px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}
input[type="range"] {
  width: min(100%, 360px);
  min-height: 44px;
  accent-color: var(--blue);
}
label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}
form > button {
  margin-top: 1rem;
}
fieldset {
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
legend {
  font-weight: 650;
  padding: 0 0.4rem;
}
.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0.8rem 0;
}
.check input {
  margin-top: 0.2rem;
}
.hint,
.meta {
  font-size: 0.875rem;
  color: var(--muted);
}
.hint {
  margin: 0.4rem 0 1rem;
}
.muted {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  scroll-margin: 6rem;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--navy);
}
h1 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  margin: 0.35rem 0 1rem;
}
h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0.6rem 0 1rem;
}
.topbar {
  min-height: 88px;
  padding: 1rem 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 750;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.15;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 0.3rem;
}
.brand-number {
  color: var(--blue);
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  width: 47px;
  height: 47px;
  border-radius: 14px 14px 14px 4px;
  font-size: 1.1rem;
}
.topbar nav,
.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.header-actions {
  font-size: 0.9rem;
}
.header-actions form button {
  margin: 0;
}
.account {
  font-weight: 700;
}
.small {
  min-height: 42px;
  padding: 0.5rem 1rem;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1600px;
  min-height: calc(100vh - 155px);
  margin: auto;
}
.sidebar {
  background: var(--navy);
  color: #fff;
  padding: 1.6rem 1rem;
}
.sidebar a {
  display: block;
  color: #dbe9ff;
  padding: 0.8rem 1rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 550;
  margin: 0.25rem 0;
}
.sidebar a:hover {
  background: #23436a;
  color: #fff;
}
.sidebar a[aria-current] {
  background: #fff;
  color: #133a72;
  border-left: 4px solid #76b0ff;
}
.nav-caption {
  color: #b6cae7;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  font-weight: 700;
  padding: 0 1rem;
  margin: 1.2rem 0 0.6rem;
}
.sidebar .nav-footer {
  font-size: 0.875rem;
  margin-top: 2rem;
  font-weight: 400;
}
#nav-toggle {
  display: none;
}
main {
  padding: 2.5rem;
  min-width: 0;
  outline: none;
}
.public {
  display: block;
  max-width: 1200px;
}
.public main {
  padding: 3rem 2.5rem;
}
.page-heading {
  margin-bottom: 2rem;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: #225ba2;
  margin: 0 0 0.6rem;
}
.lead {
  font-size: 1.2rem;
  max-width: 650px;
}
.welcome {
  padding: 2rem 0 3rem;
  max-width: 850px;
}
.welcome h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 1.15;
  margin: 1.2rem 0 1.5rem;
  letter-spacing: -0.05em;
}
.welcome h1 span {
  color: var(--blue);
}
.welcome .lead {
  font-size: 1.3rem;
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}
.public-note {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  max-width: 720px;
}
.card,
.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.65rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px #17345204;
}
.auth-card {
  max-width: 570px;
  margin: 0 auto;
}
.auth-card h1 {
  font-size: 2rem;
}
.narrow,
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 2.3rem;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 1rem 0 1.5rem;
}
.summary-card {
  background: white;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: var(--navy);
}
.summary-card strong {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.text-link {
  font-size: 0.875rem;
  margin-top: 1.5rem;
  color: var(--blue);
  font-weight: 650;
}
.two-column {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}
.question-card {
  background: #f3fffc;
  border-color: #008577;
  border-top: 5px solid #008577;
}
.question-card h2 {
  font-size: 1.65rem;
  margin: 1rem 0;
}
.music-card {
  background: #fffaf3;
  border-color: #b6560a;
  border-top: 5px solid #b6560a;
}
.summary-card:nth-child(2) {
  border-top-color: #008577;
}
.summary-card:nth-child(3) {
  border-top-color: #b6560a;
}
.sidebar a[aria-current="page"] {
  background: #1758cf;
  color: #fff;
  box-shadow: inset 4px 0 #66e4cf;
}
.member-list {
  list-style: none;
  padding: 0;
}
.member-list li {
  padding: 0.8rem 0;
  border-top: 1px solid #e0e7f0;
  display: flex;
  flex-direction: column;
}
.member-list span {
  font-size: 0.8rem;
  color: var(--muted);
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 1.5rem;
}
.chat-column {
  min-width: 0;
}
.compact {
  margin-bottom: 1rem;
}
.presence {
  align-self: start;
  margin-top: 0.5rem;
  padding: 1.25rem;
}
.chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  padding: 0.8rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
#chat-log {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 1rem;
  padding: 0.5rem 1.4rem;
  max-height: 58vh;
  min-height: 220px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}
.message {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #e0e7f0;
  scroll-margin: 1rem;
}
.message:last-child {
  border-bottom: none;
}
.message-main {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  column-gap: 1rem;
}
.message-main > * {
  grid-column: 1;
  min-width: 0;
}
.message-main > .message-actions {
  grid-column: 2;
  grid-row: 1 / span 4;
}
.message-main > .message-options {
  grid-column: 1 / -1;
}
.message-own {
  background: #f0f6ff;
  border-radius: 9px;
  padding: 1rem 0.6rem;
}
.message-actions {
  align-self: start;
  font-size: 0.875rem;
}
.reply-button {
  width: 100%;
  margin-bottom: 0.4rem;
}
.quick-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.quick-reactions form {
  margin: 0;
}
.quick-reactions .chip {
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem;
}
.quick-reactions .chip[aria-pressed="true"] {
  background: #dbeafe;
  color: #123f78;
  box-shadow: inset 0 -3px var(--blue);
}
.more-reactions summary {
  color: #174b8a;
}
.comment-form {
  margin: 1rem 0;
}
.answer-status:empty {
  display: none;
}
.comment-form .answer-status {
  font-weight: 600;
}
.comments:focus-visible {
  outline-offset: 4px;
}
button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.7;
}
@media (max-width: 1000px) {
  .message-main {
    display: block;
  }
  .message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: start;
    margin-top: 0.6rem;
  }
  .reply-button {
    width: auto;
    margin: 0;
  }
  .more-reactions {
    flex-basis: 100%;
  }
}
.message header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.author {
  font-weight: 700;
  text-decoration: none;
}
.message time {
  color: var(--muted);
  font-size: 0.8rem;
}
.body-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0.45rem 0 0.65rem;
}
.avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}
.initial {
  display: inline-grid;
  place-items: center;
  background: #dfeaff;
  color: #174780;
  font-weight: 750;
  font-size: 1.15rem;
}
.tag {
  display: inline-block;
  background: #eaf0f9;
  border-radius: 5px;
  color: #355277;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-weight: 600;
}
.message-options {
  font-size: 0.875rem;
}
.message-options > summary {
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 0.5rem 0;
  font-weight: 600;
  line-height: 1.5;
}
details[open] > summary {
  margin-bottom: 0.7rem;
}
.option-content {
  display: grid;
  gap: 0.8rem;
  background: #f3f6fa;
  padding: 1rem;
  border-radius: 8px;
}
.option-content form {
  margin: 0;
}
blockquote {
  margin: 0.7rem 0;
  padding: 0.6rem 1rem;
  border-left: 3px solid #8cb2e6;
  background: #f0f5fc;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
blockquote p {
  margin: 0.2rem 0;
}
.reactions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.chip {
  font-size: 0.875rem;
  min-height: 38px;
  padding: 0.3rem 0.65rem;
  background: #edf3fc;
  color: #214576;
  border-color: #cedcf0;
  margin: 0;
}
.chip[aria-pressed="true"] {
  border: 2px solid var(--blue);
}
.composer {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem;
}
.composer label {
  margin: 0 0 0.5rem;
}
.composer-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
}
.composer-footer .hint {
  margin: 0;
}
.new-messages {
  margin-top: 0.8rem;
}
.inline {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}
.inline input {
  flex: 1;
  min-width: 140px;
}
.inline select {
  width: auto;
}
.inline label,
.inline button {
  margin: 0;
}
.link-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.8rem 0;
  max-width: 500px;
}
.link-preview .tag {
  align-self: start;
}
.link-preview small {
  font-size: 0.8rem;
  color: var(--muted);
}
.feed {
  max-width: 850px;
}
.new-post {
  max-width: 850px;
}
.new-post > summary {
  font-size: 1.15rem;
  color: var(--blue);
}
.post-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.post-header .tag {
  margin-left: auto;
}
.post-header p {
  margin: 0.25rem 0;
}
.post-body {
  font-size: 1.15rem;
  margin: 1.3rem 0;
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
}
.photos figure {
  margin: 0;
}
.photos img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.photos figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0;
}
.comments {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.comments article {
  background: #f3f6fb;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.75rem;
}
.comments article p {
  margin: 0.3rem 0;
}
.settings-form {
  max-width: 850px;
}
.sound-row {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sound-row button {
  font-size: 0.875rem;
}
.settings-form > button {
  margin: 0 0 2rem;
}
.settings-form ~ .card {
  max-width: 850px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
}
.member-card {
  margin: 0;
}
.member-card h2 {
  margin: 0.8rem 0;
}
.search-form {
  margin-bottom: 1.5rem;
  max-width: 600px;
}
.profile-card {
  max-width: 700px;
}
.profile-card .avatar {
  width: 72px;
  height: 72px;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.profile-card form {
  margin: 0.8rem 0;
}
.conversation-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.notification,
.list-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.notification:last-child,
.list-row:last-child {
  border-bottom: none;
}
.notification.unread {
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
}
.notification form {
  display: inline-block;
  margin-left: 0.5rem;
}
.empty {
  color: var(--muted);
  padding: 1.5rem 0;
}
.notice,
.success {
  padding: 1rem;
  background: #edf3ff;
  border-left: 4px solid var(--blue);
  border-radius: 5px;
}
.email-transition {
  border-left: 5px solid var(--amber-name);
  background: var(--soft);
  color: var(--text);
}
.email-transition h2 { margin-top: 0; }
.email-transition .button { margin-top: 0.25rem; }
.success {
  background: #e9f7ef;
  border-color: #22643c;
  color: #1e5230;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: 1rem;
}
th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #edf2f9;
}
.site-footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  background: white;
  z-index: 100;
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff0f0;
  color: #842129;
  border: 2px solid #842129;
  padding: 1rem;
  border-radius: 9px;
  max-width: 90vw;
  z-index: 20;
}
[hidden] {
  display: none !important;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
output {
  display: block;
}
.expired {
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 1150px) {
  main {
    padding: 1.8rem;
  }
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .presence {
    margin: 0;
  }
  .presence .member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .presence .member-list li {
    border: 0;
  }
  .topbar {
    padding: 1rem 1.5rem;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .summary-grid {
    gap: 0.7rem;
  }
  .summary-card {
    padding: 1.2rem;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 1.4rem;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
    font-size: 0.85rem;
  }
  .shell {
    display: block;
  }
  .sidebar {
    padding: 0.65rem 1rem;
  }
  #nav-toggle {
    display: block;
    background: transparent;
    color: #fff;
    border-color: #6282ab;
    width: 100%;
    justify-content: space-between;
  }
  #nav-toggle::after {
    content: "▾";
    margin-left: auto;
  }
  #nav-links {
    padding-top: 0.5rem;
  }
  .sidebar .nav-caption {
    margin: 0.7rem 0 0.2rem;
  }
  .sidebar a {
    padding: 0.65rem 0.85rem;
  }
  .sidebar .nav-footer {
    margin-top: 0.8rem;
  }
  main,
  .public main {
    padding: 1.25rem 1rem;
  }
  .page-heading {
    margin-bottom: 1.4rem;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 0.2rem 0.6rem;
  }
  .summary-card strong {
    grid-row: span 2;
    font-size: 2rem;
    margin: 0;
  }
  .text-link {
    margin: 0;
  }
  .two-column {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 1.2rem;
  }
  .welcome {
    padding: 1rem 0 2rem;
  }
  .welcome .lead {
    font-size: 1.1rem;
  }
  .auth-card {
    padding: 1.3rem;
  }
  .chat-toolbar {
    font-size: 0.8rem;
  }
  #chat-log {
    padding: 0.3rem 0.8rem;
    max-height: 55vh;
  }
  .message {
    gap: 0.6rem;
  }
  .message .avatar {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .composer {
    padding: 1rem;
  }
  .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .sound-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.2rem;
  }
  .conversation-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .public-note {
    padding-top: 1.5rem;
  }
  .post-header .tag {
    margin-left: 0;
  }
  .actions .button {
    width: 100%;
  }
  .inline {
    align-items: stretch;
  }
  .inline button {
    width: 100%;
  }
  .site-footer {
    font-size: 0.75rem;
  }
  .topbar nav {
    gap: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Optional photo editing: the same controls work with touch, pointer and keyboard. */
.photo-editor {
  width: min(1000px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  background: white;
}
.photo-editor::backdrop {
  background: rgba(10, 25, 45, 0.65);
}
.crop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 1.5rem;
}
.crop-preview {
  min-width: 0;
}
.crop-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  border-radius: 8px;
}
.crop-controls label {
  display: block;
  margin-top: 0.7rem;
}
.crop-controls fieldset {
  margin-top: 0.8rem;
}
.crop-buttons,
.crop-directions,
.crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.crop-directions button {
  flex: 1 1 40%;
}
.crop-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.photo-edit-list > div {
  margin: 0.6rem 0;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.photo-edit-list p {
  overflow-wrap: anywhere;
}
#send-status:empty {
  display: none;
}
.sound-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  padding: 0.8rem 0;
}
.sound-row input[type="range"] {
  width: 100%;
}
@media (max-width: 760px) {
  .crop-layout {
    grid-template-columns: 1fr;
  }
  .photo-editor {
    padding: 1rem;
  }
  .sound-row {
    grid-template-columns: 1fr;
  }
  .crop-actions button {
    flex: 1;
  }
}
:where(.feed-filters) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.feed-filters a {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1px solid #8faad1;
  border-radius: 0.55rem;
  text-decoration: none;
  background: white;
  color: #173e6c;
}
.feed-filters a[aria-current] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  color: white;
  background: #1758ab;
  border-color: #1758ab;
}
.mention-tools {
  margin: 0.4rem 0 0.8rem;
}
.mention-tools > p {
  margin: 0.4rem 0;
}
.mention-tools > p:empty {
  display: none;
}
.mention-suggestions {
  background: #f1f6fe;
  border: 1px solid #8faad1;
  border-radius: 0.5rem;
  padding: 0.5rem;
  max-width: 32rem;
}
.mention-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mention-suggestions li {
  margin: 0;
}
.mention-option {
  background: transparent;
  color: #143d73;
  text-align: left;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0.3rem;
}
.mention-option:hover,
.mention-option:focus-visible {
  background: #dce9fb;
  color: #122c4f;
}

/* Keep author colours after the base link, heading and badge styles. */
.name-blue {
  --name-color: #1d4ed8;
  color: var(--name-color);
}
.name-green {
  --name-color: #166534;
  color: var(--name-color);
}
.name-teal {
  --name-color: #0f635f;
  color: var(--name-color);
}
.name-ocean {
  --name-color: #075985;
  color: var(--name-color);
}
.name-brown {
  --name-color: #75451d;
  color: var(--name-color);
}
.name-slate {
  --name-color: #374151;
  color: var(--name-color);
}
.name-admin {
  --name-color: #8b1e3f;
  color: var(--name-color);
}
.name-moderator {
  --name-color: #663399;
  color: var(--name-color);
}
a[class*="name-"]:hover {
  color: var(--name-color);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}
.role-badge {
  background: #fff;
  border: 1px solid currentColor;
}
