:root {
  color-scheme: light;
  --canvas: #f3f4ed;
  --paper: #fffef9;
  --ink: #203329;
  --muted: #50635a;
  --edge: #dbe1d8;
  --rail: #21372e;
  --rail-text: #edf4e7;
  --accent: #236754;
  --accent-soft: #e2f0e8;
  --warn: #805123;
  --warn-soft: #fbeddc;
  --error: #9d3d36;
  --error-soft: #fce9e6;
  --radius: 16px;
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.045em; }
h2 { font-size: 21px; letter-spacing: -.027em; }
h3 { font-size: 16px; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }
:focus-visible { outline: 3px solid #348465; outline-offset: 3px; }
.eyebrow { color: #467062; font-weight: 760; font-size: 11px; letter-spacing: .12em; }
.intro, .hint, .meta { color: var(--muted); }
.hint, .meta { font-size: 13px; }
.intro { margin-top: 8px; }
.auth-view, .boot-view { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-view { background: radial-gradient(ellipse at 16% 8%, #e2efe4, transparent 62%), var(--canvas); }
.auth-card { width: min(100%, 440px); padding: clamp(22px, 7vw, 38px); background: var(--paper); border: 1px solid var(--edge); border-radius: 24px; box-shadow: 0 18px 60px #23372913; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; background: #e3eeb5; color: #234233; }
.brand-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.auth-card .brand-mark { width: 50px; height: 50px; margin-bottom: 20px; }
.auth-card h1 { margin-top: 5px; font-size: clamp(27px, 8vw, 36px); }
.mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 24px 0 18px; padding: 4px; border-radius: 12px; background: #ecf0ea; }
.mode-tabs button { flex: 1; border: 0; border-radius: 9px; background: none; padding: 9px 8px; color: var(--muted); font-weight: 650; }
.mode-tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px #20332915; }
#enroll-tab { grid-column: 1 / -1; padding-block: 6px; font-size: 13px; }
#helper-code { font-size: 22px; letter-spacing: .24em; font-variant-numeric: tabular-nums; }
#helper-code-recipient { overflow-wrap: anywhere; }
.form-stack { display: grid; gap: 9px; }
.form-stack label, .field label { font-size: 13px; font-weight: 700; }
.form-stack .primary { margin-top: 4px; }
input, select, textarea { width: 100%; min-height: 43px; padding: 8px 11px; border: 1px solid #c8d3ca; border-radius: 9px; background: #fff; }
textarea { resize: vertical; min-height: 84px; }
.primary, .secondary, .text-button { min-height: 42px; padding: 8px 14px; font-weight: 650; border-radius: 9px; }
.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.primary:hover:not(:disabled) { background: #195342; }
.secondary { background: var(--paper); border: 1px solid #c8d3ca; }
.secondary:hover:not(:disabled) { background: #eef4ed; }
.text-button { border: 0; background: transparent; color: var(--accent); padding-inline: 4px; text-align: left; }
.message { padding: 10px 14px; border-radius: 9px; background: var(--accent-soft); color: #214c3e; margin-top: 12px; }
.message[data-tone="error"] { background: var(--error-soft); color: var(--error); }
.workspace { min-height: 100dvh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { background: var(--rail); color: var(--rail-text); padding: 22px 16px; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 3px 4px 18px; margin-bottom: 16px; border-bottom: 1px solid #ffffff23; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand span { color: #c0d2c5; font-size: 12px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: #dce9dc; border-radius: 9px; min-height: 43px; padding: 8px 10px; white-space: nowrap; text-decoration: none; }
.sidebar nav a:hover { background: #ffffff15; }
.sidebar nav a[aria-current="page"] { background: #dceebf; color: #263b2d; font-weight: 750; }
.sidebar nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.main { width: min(100%, 1420px); min-width: 0; margin: 0 auto; padding: clamp(20px, 4vw, 42px); }
.topbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.topbar h1 { margin-top: 5px; }
.account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-identity { display: grid; justify-items: end; gap: 3px; min-width: 0; }
#account-email { max-width: 240px; font-size: 13px; overflow-wrap: anywhere; color: var(--muted); }
#notice { margin: 0 0 14px; }
.flow { display: grid; gap: 16px; }
.security-count { margin-left: auto; min-width: 21px; padding: 1px 5px; border-radius: 8px; background: #f4c77d; color: #503b22; font-size: 11px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.security-workspace > .panel:first-child { background: linear-gradient(110deg, #e9f2e7, var(--paper) 75%); }
.security-workspace > .panel:first-child h2 { margin-top: 5px; }
.security-workspace > .panel:first-child .hint { margin-top: 10px; }
.security-events, .security-ban-history, .security-evidence { display: grid; gap: 12px; }
.security-event { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--edge); border-left: 4px solid #a5bcb1; border-radius: 12px; background: #fff; }
.security-event[data-severity="medium"] { border-left-color: #d1a266; }
.security-event[data-severity="high"] { border-left-color: #c47d72; }
.security-event h3 { max-width: 620px; }
.security-event-copy { font-size: 14px; }
.security-raw { font-size: 13px; color: var(--muted); }
.security-raw summary { cursor: pointer; padding: 8px 0; }
.security-raw pre { max-height: 280px; overflow: auto; padding: 12px; border: 1px solid var(--edge); border-radius: 10px; background: #f3f6f1; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.security-ban-form, .security-ban-history { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--edge); }
.security-ban { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: #f2f5ef; }
.security-ban .secondary { justify-self: start; }
.primary.danger { background: var(--error); border-color: var(--error); }
.primary.danger:hover:not(:disabled) { background: #81312c; }
.tag[data-tone="error"] { color: var(--error); background: var(--error-soft); }
.panel { min-width: 0; padding: clamp(15px, 3vw, 22px); border-radius: var(--radius); border: 1px solid var(--edge); background: var(--paper); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.metric { display: grid; gap: 5px; min-height: 104px; }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: clamp(24px, 4vw, 35px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.field { display: grid; gap: 5px; min-width: 0; }
.toolbar .field { flex: 1 1 180px; }
.toolbar .compact { flex: 0 1 190px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th, td { padding: 9px 10px; border-bottom: 1px solid #e5eae2; vertical-align: middle; }
th { white-space: nowrap; color: var(--muted); font-size: 12px; background: #f4f7f1; }
td { overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8faf5; }
td .text-button { min-height: 34px; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.empty { padding: 12px 0; color: var(--muted); }
.tag { display: inline-block; background: #edf1eb; color: #39564a; padding: 3px 8px; border-radius: 20px; font-size: 12px; font-weight: 660; white-space: nowrap; }
.tag[data-tone="warning"] { background: var(--warn-soft); color: var(--warn); }
.tag[data-tone="ok"] { background: var(--accent-soft); color: #225a47; }
.detail-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.currency-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-color: #e5d3a9;
  background: linear-gradient(112deg, #fff4d9, var(--paper) 68%);
}
.currency-main { display: flex; align-items: center; gap: clamp(12px, 2vw, 18px); min-width: 0; }
.currency-art {
  display: grid;
  place-items: center;
  width: clamp(65px, 7vw, 86px);
  aspect-ratio: 1;
  flex: none;
  border: 1px solid #f0d99e;
  border-radius: 22px;
  background: radial-gradient(circle at 36% 26%, #fffbea, #ffedbd);
}
.currency-coin { display: block; width: 86%; height: 86%; filter: drop-shadow(0 3px 2px #9a651f36); }
.currency-summary { min-width: 0; }
.currency-summary h2 { color: #704c23; font-size: 15px; letter-spacing: .01em; }
.currency-summary .meta { margin-top: 4px; color: #6e6046; }
.currency-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  margin-top: 2px;
  color: #573d20;
  line-height: 1.08;
}
.currency-balance strong {
  min-width: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.currency-balance span { font-size: 14px; font-weight: 650; }
.currency-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.currency-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-color: #d8c8a4;
  color: #654d2f;
}
.currency-action-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f4e8cf;
  font-size: 16px;
  line-height: 1;
}
.currency-action[data-direction="credit"] { border-color: #d9b76f; background: #f9e7b5; color: #573c1b; }
.currency-action[data-direction="credit"] .currency-action-mark { background: #e9c77b; }
.currency-action[data-direction="credit"]:hover:not(:disabled) { background: #f2d693; }
.currency-action[data-direction="debit"]:hover:not(:disabled) { background: #f6efdf; }
.currency-action:disabled { cursor: default; }
.currency-form { gap: 13px; }
.currency-form [aria-invalid="true"] { border-color: var(--error); }
.currency-form .message { margin-top: 0; }
.currency-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid #e8d8b2;
  border-radius: 11px;
  background: #fff6e1;
}
.currency-preview > div { min-width: 0; padding: 9px 11px; }
.currency-preview > div + div { border-inline-start: 1px solid #e8d8b2; }
.currency-preview dt { color: #6e6046; font-size: 12px; }
.currency-preview dd {
  margin: 2px 0 0;
  color: #543a1d;
  font-size: clamp(18px, 4vw, 23px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.currency-form[data-direction="debit"] > .primary { background: #76502c; border-color: #76502c; }
.currency-form[data-direction="debit"] > .primary:hover:not(:disabled) { background: #634121; }
.definition { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); gap: 7px 10px; margin: 0; font-size: 14px; }
.definition dt { color: var(--muted); }
.definition dd { margin: 0; overflow-wrap: anywhere; }
.entry-list { display: grid; gap: 0; }
.entry { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--edge); }
.entry:last-child { border-bottom: 0; }
.copy { white-space: pre-wrap; overflow-wrap: anywhere; margin: 9px 0 12px; }
.preview-figure { margin: 12px 0; }
.preview-figure svg { display: block; width: 100%; max-height: 400px; border: 1px solid var(--edge); border-radius: 12px; background: #edf2e9; }
.preview-figure figcaption { color: var(--muted); font-size: 12px; margin-top: 5px; }
dialog { color: var(--ink); width: min(510px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--edge); border-radius: 18px; padding: 20px; background: var(--paper); overflow: auto; }
dialog::backdrop { background: #14271d8f; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
#action-content { display: grid; gap: 10px; }
@media (max-width: 800px) {
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar { padding: 10px 12px 8px; }
  .sidebar-brand { padding: 0 3px 8px; margin-bottom: 6px; }
  .sidebar-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .sidebar-brand .brand-mark svg { width: 18px; height: 18px; }
  .sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 2px 3px 5px; gap: 3px; }
  .sidebar nav a { flex-direction: column; justify-content: center; min-height: 45px; gap: 3px; padding: 5px 1px; font-size: 11px; }
  .main { padding: 18px 12px 25px; }
}
@media (max-width: 590px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
  .currency-panel { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .currency-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .currency-action { padding-inline: 6px; }
  .topbar { align-items: flex-start; }
  .account { flex-direction: column-reverse; align-items: flex-end; gap: 3px; }
  #account-email { max-width: 112px; font-size: 11px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { justify-content: flex-start; }
  th, td { padding-inline: 7px; }
}
.diagnostic-text { overflow: auto; max-height: 440px; padding: 12px; border-radius: 10px; background: #edf2ed; color: #244436; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
#view summary { cursor: pointer; font-weight: 700; }
#view .form-stack { margin-top: 12px; }

/* Admin status 0.26.50. */
.tag[data-tone="error"] { background: var(--error-soft); color: var(--error); }
.message[data-tone="warning"] { background: var(--warn-soft); color: var(--warn); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.server-toolbar, .server-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.server-summary { justify-content: flex-start; }
.server-toolbar .secondary { flex: none; }
.server-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.server-metric { align-content: start; min-height: 126px; }
.server-metric[data-tone="warning"] { border-color: #e3c59c; }
.server-metric .meta { line-height: 1.45; }
.server-alerts { margin: 0; padding-left: 20px; color: var(--warn); }
.server-alerts li + li { margin-top: 5px; }
.server-footnote { margin-top: 12px; }
.server-history-summary { margin: 14px 0; max-width: 680px; }
.server-history-strip { display: flex; gap: 2px; list-style: none; padding: 0; margin: 16px 0 12px; min-height: 24px; overflow: hidden; border-radius: 4px; }
.server-history-strip li { flex: 1 1 0; min-width: 1px; background: #cbd4ce; }
.server-history-strip li[data-state="ok"] { background: #3d866d; }
.server-history-strip li[data-state="error"] { background: #bd564c; }
.server-history-strip li[data-state="stale"] { background: #cdbf9d; }
.server-limitations summary { color: var(--muted); }
.server-limitations ul { margin-bottom: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.server-limitations li + li { margin-top: 6px; }
.country-share { display: flex; gap: 10px; align-items: center; }
.country-share meter { width: clamp(70px, 17vw, 240px); height: 12px; accent-color: var(--accent); }
.country-share meter::-webkit-meter-bar { border: 0; background: #e6ece5; border-radius: 5px; }
.country-share meter::-webkit-meter-optimum-value { background: #3d866d; border-radius: 5px; }
.country-share meter::-moz-meter-bar { background: #3d866d; border-radius: 5px; }
.country-share span { min-width: 54px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.player-presence-hint { margin-bottom: 12px; }
.players-table table { min-width: 880px; }
.players-table th, .players-table td { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .server-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .server-summary { align-items: flex-start; gap: 8px; }
  .server-toolbar { align-items: flex-start; flex-wrap: nowrap; }
  .server-toolbar .meta { padding-top: 8px; }
  .server-metric { min-height: 120px; }
  .server-history-summary { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .country-share { gap: 6px; }
  .country-share meter { width: 60px; }
  .country-share span { min-width: 44px; }
  .sidebar nav a[data-view="servers"] { white-space: normal; text-align: center; line-height: 1.2; }
}

/* Team identity, maintenance and support. */
.staff-identity { padding: 14px; border: 1px solid var(--edge); border-radius: 12px; background: #f1f6ed; }
.maintenance-state { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.maintenance-form { max-width: 780px; }
.maintenance-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.maintenance-toggle input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; accent-color: var(--accent); }
.maintenance-form .primary { justify-self: start; }
.maintenance-preview { padding: 12px 14px; border: 1px solid #e3c59c; border-radius: 12px; background: var(--warn-soft); }
.maintenance-preview:empty { display: none; }
.maintenance-preview .copy { margin-bottom: 0; }
.support-ticket-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.support-queue-hint { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--edge); }
.support-thread-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.support-state { display: grid; gap: 4px; margin-bottom: 12px; padding: 12px 15px; border: 1px solid #c8dacd; border-radius: 12px; background: #edf5eb; }
.support-state > p { font-size: 13px; color: var(--muted); }
.support-state .copy { margin: 4px 0 0; color: var(--ink); }
.support-state[data-closed="true"] { background: #f4f4ed; border-color: #d7d9cb; }
.support-draft { padding: 14px; margin-top: 14px; border: 1px dashed #c7cfbf; border-radius: 12px; background: #f8f9f3; }
.support-draft > p { margin-top: 8px; }
.support-draft .copy { max-height: 240px; overflow: auto; margin-bottom: 0; }
.support-status-hint { padding: 12px; border: 1px solid var(--edge); border-radius: 10px; background: #f1f6ed; }
.support-messages { display: grid; gap: 14px; margin: 0; padding: 10px 0 18px; list-style: none; }
.support-message { width: min(90%, 820px); min-width: 0; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 14px 14px 14px 3px; background: #f4f6f0; }
.support-message[data-author="admin"] { justify-self: end; border-color: #c2d8c7; border-radius: 14px 14px 3px 14px; background: #e9f3e6; }
.support-message-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.support-message-head strong { overflow-wrap: anywhere; }
.support-message .copy { margin: 8px 0 0; }
.support-message .copy:empty { display: none; }
.support-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; margin-top: 12px; }
.support-image { min-width: 0; margin: 0; }
.support-image-open { display: block; width: 100%; min-height: 44px; padding: 0; border: 1px solid #cbd7cb; border-radius: 10px; background: #ffffffa8; overflow: hidden; cursor: zoom-in; }
.support-image-open:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.support-image img { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.support-image-open > span { display: block; padding: 14px; }
.support-image figcaption { margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.support-viewer { width: min(1120px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 14px; overflow: hidden; box-shadow: 0 24px 80px #0a21194d; }
.support-viewer[open] { display: flex; flex-direction: column; gap: 10px; }
.support-viewer::backdrop { background: #10231ee6; }
.support-viewer header { flex: none; min-width: 0; margin: 0; }
.support-viewer h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.support-viewer-close { flex: none; min-height: 44px; white-space: nowrap; background: #e8f1e5; border-color: #b8cdbd; }
.support-viewer-stage { position: relative; display: grid; place-items: center; min-height: 180px; min-width: 0; overflow: auto; border-radius: 10px; background: #142d24; }
.support-viewer-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; }
.support-viewer-feedback { position: absolute; padding: 20px; max-width: 520px; text-align: center; color: #e5efe3; }
.support-viewer > .meta { flex: none; }
.support-reply { padding-top: 16px; border-top: 1px solid var(--edge); }
.support-reply > .primary { justify-self: start; }
.support-selected { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; }
.support-selected:empty { display: none; }
.support-file { display: grid; gap: 6px; min-width: 0; padding: 9px; border: 1px solid var(--edge); border-radius: 11px; background: #f5f8f0; }
.support-file img { display: block; width: 100%; height: 100px; object-fit: contain; }
.support-file .meta { overflow-wrap: anywhere; }
.support-file .text-button { justify-self: start; min-height: 32px; padding-block: 2px; }
@media (max-width: 590px) {
  .staff-identity { grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr); }
  .maintenance-form .primary, .support-reply > .primary { width: 100%; }
  .support-message { width: 97%; padding: 12px; }
  .support-message-head { display: grid; gap: 2px; }
  .support-images { grid-template-columns: minmax(0, 1fr); }
  .support-selected { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-file { padding: 6px; }
  .support-file img { height: 80px; }
  .support-file .meta { font-size: 11px; }
  .support-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); padding: 10px; border-radius: 14px; }
  .support-viewer-stage img { max-height: calc(100dvh - 160px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .support-viewer h2 { font-size: 15px; }
  .support-viewer-close { padding-inline: 12px; }
}
