@font-face {
  font-family: Golos;
  src: url("/static/fonts/GolosText.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #173b50;
  --muted: #697c86;
  --accent: #176880;
  --line: #dce3e5;
  --paper: #f6f7f5;
  --white: #fff;
  --soft: #e9eff0;
  --lime: #dced98;
  --link: var(--accent);
  --button-text: #fff;
  font-family: Golos, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  padding: 11px 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}
button:hover {
  background: var(--soft);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--ink);
  color: var(--button-text);
  border-color: var(--ink);
}
.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 5px 0;
  font-size: 12px;
  text-align: left;
}
.text-button:hover {
  background: none;
  text-decoration: underline;
}
.button-link {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13px;
}
input,
select,
textarea {
  border: 1px solid #cbd6db;
  border-radius: 5px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
  font-size: 14px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
label.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #82b4cb;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}
h1 {
  font-size: 44px;
  font-weight: 550;
  letter-spacing: -1.8px;
  margin: 8px 0 16px;
  line-height: 1.12;
}
h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 0 0 12px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.accent-dot {
  color: var(--accent);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.signal-line {
  width: 25px;
  height: 2px;
  background: var(--accent);
}
.section-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
  margin: 0 0 4px;
  font-weight: 550;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.pill:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #8a9a55;
  border-radius: 50%;
}
.badge {
  display: inline-flex;
  padding: 5px 8px;
  color: var(--accent);
  background: var(--soft);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.caption {
  font-size: 11px;
  color: var(--muted);
}
.error {
  color: #a13e28;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 14px;
  background: var(--white);
}
.skip-link:focus {
  top: 12px;
}
.flash {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  width: max-content;
  margin: 0;
  padding: 14px 20px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  box-shadow: 0 8px 28px #173b5020;
  z-index: 30;
  font-size: 13px;
}
.preview-banner,
.connection-notice {
  padding: 12px 16px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  font-size: 12px;
  margin: 0 0 20px;
}
#connection-state > button,
#connection-state > a {
  margin-bottom: 20px;
}
/* One conversation surface, a quiet reading area and a persistent composer. */
.conversation {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  box-shadow: 0 8px 26px #173b5005;
  overflow: hidden;
}
.conversation-heading {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
}
.conversation-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.assistant-symbol {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: #173b50;
  border-radius: 50%;
  font-size: 25px;
  letter-spacing: -2px;
  padding: 0 3px 3px 0;
  font-weight: 550;
}
.conversation-heading h2 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 0;
  font-weight: 600;
}
.conversation-heading h2 span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
}
.conversation-note {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}
#dialogue {
  padding: 0 22px 12px;
}
.messages {
  min-height: 240px;
  max-height: min(440px, 49vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: #c7d3d8 transparent;
}
.welcome {
  padding: 18px 4px 20px;
  margin: auto 0;
  max-width: 460px;
}
.welcome-label {
  font-size: 10px;
  color: var(--muted);
}
.welcome h3 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 12px 0;
  font-weight: 500;
}
.welcome > p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  max-width: 385px;
}
.starter-questions {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}
.starter-questions button {
  background: transparent;
  text-align: left;
  font-size: 11px;
  border-color: var(--line);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 13px;
  max-width: 340px;
}
.starter-questions button:hover {
  background: var(--soft);
}
.bubble {
  max-width: 94%;
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bubble.user {
  white-space: pre-wrap;
  align-self: flex-end;
  background: var(--soft);
  padding: 14px 17px;
  border-radius: 10px 10px 2px 10px;
  max-width: 88%;
}
.bubble:not(.user) {
  padding: 4px 2px 16px;
}
.bubble .who {
  display: block;
  font-size: 10px;
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 6px;
}
.bubble .sources {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
  font-size: 11px;
  white-space: normal;
}
.sources a,
.sources span {
  display: block;
  margin-top: 6px;
}
.bubble.specialist {
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--paper);
}
.answer-body { min-width: 0; }
.answer-body > :first-child { margin-top: 0; }
.answer-body > :last-child { margin-bottom: 0; }
.answer-body p { margin: 0 0 12px; }
.answer-body h1,
.answer-body h2,
.answer-body h3,
.answer-body h4,
.answer-body h5,
.answer-body h6 {
  margin: 18px 0 8px;
  font-size: 1.08em;
  line-height: 1.5;
  letter-spacing: normal;
}
.answer-body strong { font-weight: 650; }
.answer-body ul,
.answer-body ol { padding-left: 1.5em; margin: 8px 0 14px; }
.answer-body li { padding-left: 3px; margin: 6px 0; }
.answer-body li > ul,
.answer-body li > ol { margin: 6px 0; }
.answer-body li > p { margin: 0 0 6px; }
.answer-body a { text-decoration: underline; text-underline-offset: 3px; }
.answer-body blockquote {
  margin: 12px 0;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}
.answer-body blockquote > :last-child { margin-bottom: 0; }
.answer-body code { font-size: .9em; background: var(--soft); border-radius: 4px; padding: 2px 4px; }
.answer-body pre { max-width: 100%; overflow-x: auto; background: var(--soft); border-radius: 6px; padding: 12px; }
.answer-body pre code { padding: 0; white-space: pre; overflow-wrap: normal; }
.answer-table { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.answer-table table { width: 100%; font-size: inherit; }
.answer-table th,
.answer-table td { white-space: normal; min-width: 100px; padding: 8px 10px; }
.answer-table .align-left { text-align: left; }
.answer-table .align-center { text-align: center; }
.answer-table .align-right { text-align: right; }
.message-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 9px;
  background: var(--soft);
  font-size: 10px;
  color: var(--accent);
  border-radius: 3px;
}
.message-state.resolved {
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
}
.waiting-answer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  background: var(--soft);
  border-radius: 3px 12px 12px 12px;
  white-space: normal;
}
.waiting-answer strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.waiting-answer div > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  flex-shrink: 0;
}
.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: thinking-dot 1.3s ease-in-out infinite;
}
.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.assistant-symbol.is-thinking {
  animation: thinking-halo 2s ease-in-out infinite;
}
.message-arrive {
  animation: message-arrive 0.28s ease-out both;
}
.answer-actions { display: flex; margin-top: 10px; }
.copy-answer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  min-width: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
}
.copy-answer svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-answer:hover,
.copy-answer.copied {
  color: var(--accent);
  background: var(--soft);
}
.copy-answer:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (pointer: coarse) { .copy-answer { min-height: 44px; } }
.new-messages {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 12px;
  font-size: 11px;
  padding: 9px 15px;
  border-color: var(--line);
  background: var(--soft);
  animation: message-arrive 0.2s ease-out;
}
.chat-sync {
  font-size: 11px;
  line-height: 1.6;
  padding: 10px 13px;
  background: var(--soft);
  border-left: 2px solid var(--accent);
}
.button-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 4px;
  animation: button-spin 0.75s linear infinite;
}
.participation-saved {
  animation: saved-highlight 0.8s ease-out;
}
.participation-saved .result::before {
  content: "";
  display: inline-block;
  margin: 0 10px 2px 2px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
@keyframes thinking-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@keyframes thinking-halo {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 15%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 6%, transparent);
  }
}
@keyframes message-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes saved-highlight {
  from {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  }
  to {
    border-color: var(--line);
    box-shadow: 0 0 0 0 transparent;
  }
}
.composer {
  border: 1px solid #bdcdd4;
  background: var(--white);
  border-radius: 7px;
  padding: 14px;
  transition: border-color 0.15s;
}
.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.composer textarea {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 2px;
  min-height: 64px;
  max-height: 180px;
  font-size: 13px;
  resize: vertical;
}
.composer textarea:focus {
  outline: none;
}
.composer textarea::placeholder {
  color: #88979e;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.composer-bottom .check {
  font-size: 12px;
}
.send-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 15px;
  font-size: 11px;
}
.send-button span {
  font-size: 17px;
}
.consent-inline {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.consent-inline .check {
  font-size: 12px;
  align-items: flex-start;
  line-height: 1.6;
}
.consent-inline details {
  margin-top: 9px;
  padding-left: 25px;
  font-size: 10px;
  color: var(--muted);
}
.consent-inline summary {
  font-size: 10px;
  font-weight: 400;
}
.consent-inline .text-button {
  margin: 5px 0 0 25px;
  font-size: 10px;
}
.conversation-footnote {
  margin: 12px 0 0;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
}
#load-older {
  margin-top: 15px;
  font-size: 11px;
}
/* Activities are readable listings with explicit state and participation feedback. */
.filter-bar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.filter-bar button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 15px;
}
.filter-bar button.active {
  color: var(--ink);
  background: var(--lime);
}
.list-summary {
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0;
}
.event-list {
  display: grid;
  gap: 16px;
}
.event {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 26px;
  background: var(--white);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.event-type {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 50%;
  font-size: 30px;
  font-weight: 450;
  color: var(--accent);
}
.event-type.quiz {
  background: var(--lime);
}
.event-type.contest {
  border-radius: 8px;
  background: #edf0f5;
}
.event h2 {
  margin: 14px 0 12px;
  font-size: 23px;
  max-width: 520px;
}
.event-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--muted);
}
.event-kind {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.event-state {
  margin-left: 12px;
  font-size: 10px;
  color: var(--accent);
}
.event-date {
  margin: 20px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.event-date strong {
  color: var(--ink);
  font-weight: 500;
}
.event-action {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
fieldset.options {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.options label {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink);
}
.options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}
.event .result {
  font-size: 12px;
  line-height: 1.65;
  color: var(--accent);
  font-weight: 500;
  margin: 8px 0 16px;
}
.event .result:empty {
  display: none;
}
.event .withdraw {
  padding: 10px;
  margin-top: 8px;
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
}
.event .channels-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}
.notification-preference {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  margin-bottom: 30px;
}
.notification-preference h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.notification-preference p {
  font-size: 12px;
  margin: 0;
  max-width: 560px;
}
.notification-preference .actions {
  margin: 0;
  flex-shrink: 0;
}
.notice-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.notice-list article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  max-width: 800px;
}
.notice-list article .caption {
  font-size: 11px;
  margin-top: 0;
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  background: var(--soft);
  border-radius: 6px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
/* Shared controls for staff forms and reports. */
.panel,
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  margin-top: 18px;
}
.card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.card h2 {
  margin-top: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.actions a.primary {
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 12px;
}
.cards {
  display: grid;
  gap: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wide {
  grid-column: 1 / -1;
}
.stack {
  display: grid;
  gap: 18px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
}
.metric {
  padding: 22px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric strong {
  display: block;
  font-size: 30px;
  margin-top: 12px;
  font-weight: 500;
}
.metric span {
  font-size: 11px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  margin-top: 20px;
  background: var(--white);
  border-radius: 5px;
}
#report-result .table-wrap {
  max-height: 65vh;
}
#report-result th {
  position: sticky;
  top: 0;
  z-index: 1;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
td,
th {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 100px;
  max-width: 450px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  background: var(--paper);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  font-size: 13px;
}
details[open] > summary {
  margin-bottom: 20px;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.ticket-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.report-meta {
  font-size: 11px;
  color: var(--muted);
}
.support-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.support-toolbar .filter-bar {
  padding: 0;
  border: 0;
  flex-shrink: 0;
}
.support-toolbar input {
  max-width: 340px;
  margin-left: auto;
  font-size: 12px;
}
.support-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.3fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--white);
  min-height: 450px;
}
.ticket-list {
  border-right: 1px solid var(--line);
  max-height: 70vh;
  overflow: auto;
}
.ticket-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 19px 20px;
  background: var(--white);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.ticket-row.active {
  background: var(--soft);
  box-shadow: inset 3px 0 var(--accent);
}
.ticket-row p {
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ticket-row small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.ticket-detail {
  padding: 26px;
  min-width: 0;
}
.ticket-detail > h2 {
  font-size: 20px;
  margin: 22px 0 12px;
}
.ticket-question {
  background: var(--paper);
  padding: 16px;
  border-radius: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.ticket-detail .reply {
  margin-top: 28px;
}
.assignment-form {
  margin-top: 20px;
}
.assignment-form label {
  margin-bottom: 10px;
}
.ticket-open {
  color: #8e6125;
  background: #f8f0dd;
  padding: 4px 7px;
  border-radius: 3px;
  font-size: 10px;
}
.ticket-resolved {
  color: var(--accent);
}
.staff-page #content > .muted {
  font-size: 13px;
  max-width: 800px;
}
@media (max-width: 1100px) {
  .event {
    grid-template-columns: 55px minmax(0, 1fr) minmax(200px, 0.8fr);
    gap: 20px;
    padding: 24px;
  }
  .event-type {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }
  .event-action {
    padding-left: 20px;
  }
  .conversation-heading {
    padding: 18px;
  }
  #dialogue {
    padding: 0 16px 12px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .support-layout {
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.2fr);
  }
}
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .conversation {
    border-radius: 9px;
  }
  .conversation-heading {
    padding: 16px;
  }
  .conversation-note {
    display: none;
  }
  .messages {
    min-height: 225px;
    max-height: 50dvh;
    padding-top: 20px;
  }
  .welcome {
    padding: 5px 0 18px;
  }
  .welcome h3 {
    font-size: 23px;
  }
  .welcome > p {
    font-size: 12px;
  }
  .composer {
    padding: 12px;
  }
  .composer textarea {
    font-size: 16px;
    min-height: 68px;
  }
  .composer-bottom .check {
    font-size: 12px;
  }
  .send-button {
    gap: 10px;
    padding: 10px 12px;
  }
  .conversation-footnote {
    font-size: 9px;
    line-height: 1.6;
  }
  .consent-inline .check {
    font-size: 12px;
  }
  .consent-inline details,
  .consent-inline summary,
  .consent-inline .text-button {
    font-size: 11px;
  }
  .event {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 20px;
    gap: 15px;
  }
  .event-type {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .event h2 {
    font-size: 20px;
    margin-top: 12px;
  }
  .event-action {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .event-date {
    margin-top: 14px;
  }
  .filter-bar {
    gap: 4px;
  }
  .filter-bar button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .notification-preference {
    display: block;
    padding: 20px;
  }
  .notification-preference .actions {
    margin-top: 20px;
  }
  .notification-preference p {
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .panel,
  .card {
    padding: 20px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .metric:nth-child(even) {
    border-right: 0;
  }
  .support-toolbar {
    flex-wrap: wrap;
  }
  .support-toolbar input {
    margin: 0;
    max-width: none;
    width: 100%;
  }
  .support-layout {
    grid-template-columns: 1fr;
  }
  .ticket-list {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ticket-detail {
    padding: 20px;
  }
  .flash {
    font-size: 12px;
    padding: 12px 16px;
  }
  .badge {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#mobile-logout {
  display: none;
}
@media (max-width: 760px) {
  #mobile-logout {
    display: inline-flex;
  }
}

.bubble.ticket-highlight { outline: 2px solid var(--accent); outline-offset: 3px; }
