/* The RetroQuest CS panel. RetroQuest's own colours (playretroquest.com):
   midnight blue and gold, an engraved serif for headings. Status colours
   always come with a dot and a word, never colour alone. */
:root {
  --bg: #0b0f1a;
  --surface: #131a2b;
  --raised: #1c2540;
  --border: #2a3552;
  --text: #ece6d8;
  --muted: #98a3bd;
  --gold: #d4a548;
  --gold-ink: #1a1206;
  --green: #4fb286;
  --red: #ff6b6b;
  --amber: #ffb020;
  --blue: #6fc3ff;
  --radius: 10px;
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); }
body { min-height: 100vh; background: radial-gradient(120% 70% at 50% -10%, rgba(212,165,72,.12), transparent 60%), var(--bg); }
a { color: var(--gold); }
a:hover { color: #f0c96a; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .01em; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; color: var(--gold); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; color: var(--gold); }
p { margin: .4em 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.hidden { display: none !important; }

/* Layout */
/* minmax(0, 1fr): a wide table scrolls inside its card instead of widening the page. */
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.side { background: rgba(19,26,43,.92); border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { font-family: var(--serif); color: var(--gold); font-size: 1.15rem; margin: 0 8px 4px; }
.brand-sub { color: var(--muted); font-size: .8rem; margin: 0 8px 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { all: unset; cursor: pointer; padding: 8px 12px; border-radius: 8px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.nav button:hover { background: var(--raised); }
.nav button.active { background: linear-gradient(180deg, rgba(212,165,72,.22), rgba(212,165,72,.08)); color: #f6e7c3; box-shadow: inset 3px 0 0 var(--gold); }
.nav button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.main { padding: 18px 26px 60px; max-width: 1280px; width: 100%; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.top .grow { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; }
a.who { color: inherit; text-decoration: none; border-radius: 8px; }
a.who:hover span:first-of-type { text-decoration: underline; }
.who img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); font-size: .85rem; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.up { background: #3ecf8e; } .dot.locked, .dot.full { background: var(--amber); } .dot.down { background: var(--red); }
.banner { background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.45); color: #ffd98a; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.banner.red { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.45); color: #ffc0c0; }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.card.narrow { max-width: 520px; margin: 12vh auto; text-align: center; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.row.end { justify-content: flex-end; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(212,165,72,.06); }

/* Controls */
a.btn { text-decoration: none; }
button, .btn { cursor: pointer; border-radius: 8px; border: 1px solid var(--border); background: var(--raised); color: var(--text); padding: 7px 14px; font: inherit; }
button:hover { border-color: #3d4a72; }
button.primary, .btn.primary { background: linear-gradient(180deg, #e7bd62, #b8872e); color: var(--gold-ink); border-color: #7d5a17; font-weight: 600; }
button.danger { background: #3a1d24; border-color: #7a2e3b; color: #ffc9cf; }
button.ghost { background: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { background: #0e1422; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font: inherit; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
input[type=color] { padding: 2px; width: 44px; height: 32px; }
textarea { width: 100%; min-height: 80px; resize: vertical; }
label { display: inline-flex; align-items: center; gap: 6px; }
label.block { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 8px 0; }
label.block > span { color: var(--muted); font-size: .85rem; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; margin: 8px 0; }
.perm-grid label { font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Dialogs and toasts */
.overlay { position: fixed; inset: 0; background: rgba(4,6,12,.7); display: grid; place-items: center; z-index: 50; padding: 16px; }
.dialog { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--raised); border: 1px solid var(--border); border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 8px; max-width: 380px; }
.toast.bad { border-left-color: var(--red); }

/* The widget preview, as the website draws it */
.preview { background: #0b0f1a; border: 1px dashed var(--border); border-radius: var(--radius); padding: 14px; }
.pill { display: inline-flex; gap: 10px; align-items: center; background: #131a2b; border: 1px solid #2a3552; border-radius: 999px; padding: 6px 14px; }
.notice { border-radius: 8px; padding: 10px 14px; margin: 6px 0; }
.notice.gold { background: rgba(212,165,72,.18); border: 1px solid rgba(212,165,72,.5); }
.notice.green { background: rgba(79,178,134,.16); border: 1px solid rgba(79,178,134,.5); }
.notice.red { background: rgba(255,107,107,.14); border: 1px solid rgba(255,107,107,.5); }
.notice.blue { background: rgba(111,195,255,.14); border: 1px solid rgba(111,195,255,.5); }

body.plain { display: block; }

/* Round two: the duty button, queues, approvals and the timeline */
button.duty { display: inline-flex; align-items: center; gap: 8px; }
button.duty.on { border-color: rgba(62,207,142,.6); background: rgba(62,207,142,.12); color: #bff3da; }
a.stat.link { text-decoration: none; color: inherit; display: block; }
a.stat.link:hover { border-color: #3d4a72; }
.card.inner { background: var(--raised); margin-bottom: 12px; }
.row.tight { margin: 0; gap: 6px; flex-wrap: nowrap; }
.row.step { align-items: flex-end; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.row.step label.block { margin: 4px 0; }
.row.step .grow, label.block.grow { flex: 1; min-width: 160px; }
.filters { margin: 4px 0 10px; }
.filters button { padding: 4px 12px; font-size: .85rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.timeline time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.timeline strong { font-weight: 600; }
.chip { display: inline-block; padding: 1px 8px; margin-right: 8px; border-radius: 999px; font-size: .75rem; border: 1px solid var(--border); background: var(--raised); color: var(--muted); vertical-align: 1px; }
.chip.bans, .chip.warnings { border-color: rgba(255,107,107,.45); color: #ffc0c0; }
.chip.logins { border-color: rgba(111,195,255,.45); color: #bfe4ff; }
.chip.characters, .chip.accounts { border-color: rgba(212,165,72,.5); color: #f6e7c3; }
.chip.petitions, .chip.notes { border-color: rgba(79,178,134,.5); color: #c4f0dc; }

/* Round two, later orders: a ticket's messages, and the schedule's countdown */
.thread { display: flex; flex-direction: column; gap: 10px; }
.thread .msg { border: 1px solid var(--border); border-left-width: 4px; border-radius: 8px; padding: 10px 12px; background: var(--raised); }
.thread .msg.player { border-left-color: var(--blue); }
.thread .msg.staff { border-left-color: var(--gold); }
.thread .msg.note { border-left-color: var(--muted); border-style: dashed; border-left-style: solid; }
.thread .text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
ul.moments { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
ul.moments li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
ul.moments .chip { margin-right: 0; }
ol.lines { list-style: none; margin: 0; padding: 0; }
ol.lines li { padding: 8px 0; border-bottom: 1px solid var(--border); }
ol.lines .said { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }

/* Round two, part three: each server's uptime and players (p2-11). The
   strip's state is in its height and a word as well as its colour. */
:root { --st-up: #3ecf8e; --st-locked: #ffb020; --st-down: #ff6b6b; --st-none: #5b6784; }
.st-up { fill: var(--st-up); background: var(--st-up); }
.st-locked { fill: var(--st-locked); background: var(--st-locked); }
.st-down { fill: var(--st-down); background: var(--st-down); }
.st-none { fill: var(--st-none); background: var(--st-none); }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0 0 10px; }
.segmented button { border: 0; border-radius: 0; background: transparent; padding: 8px 16px; }
.segmented button + button { border-left: 1px solid var(--border); }
.segmented button.on { background: rgba(212,165,72,.18); color: #f6e7c3; box-shadow: inset 0 -2px 0 var(--gold); }
.uptime-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.uptime-head h3 { margin: 0; }
.uptime-head + p { margin-top: 2px; }
.uptime-figure strong { font-size: 1.5rem; font-weight: 600; }
.uptime-chart { position: relative; margin: 8px 0 2px; border-radius: 6px; }
.uptime-chart:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.uptime-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.uptime-chart .grid { stroke: #27324e; stroke-width: 1; }
.uptime-chart .axis { stroke: #3a4666; stroke-width: 1; }
.uptime-chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.uptime-chart .label { fill: var(--text); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--raised); stroke-width: 4px; stroke-linejoin: round; }
.players-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.players-area { fill: var(--blue); opacity: .1; }
.players-dot { fill: var(--blue); stroke: var(--raised); stroke-width: 2; }
.crosshair { stroke: var(--muted); stroke-width: 1; }
.chart-tip { position: absolute; top: 34px; width: 180px; background: #0e1422; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.chart-tip.on { opacity: 1; }
.chart-tip strong { font-size: 1.05rem; }
.tip-key { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 2px 0 8px; padding: 0; font-size: .85rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 4px; }
ul.gaps { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
ul.gaps li { font-size: .92rem; }
button.small-btn { padding: 4px 10px; font-size: .85rem; }
details.table-view > summary { cursor: pointer; color: var(--gold); padding: 8px 0; width: max-content; }

/* Round two, part three: authenticator codes (p2-13) */
.card.narrow.step { text-align: left; }
.step h1 { margin-bottom: .3em; }
form.stack { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.code-input { font: 600 1.6rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .25em; text-align: center; padding: 10px 12px; width: 100%; max-width: 280px; }
form.stack .code-input { max-width: none; }
button.wide { width: 100%; }
button.linkish { all: unset; cursor: pointer; color: var(--gold); text-decoration: underline; padding: 10px 0; display: inline-block; }
button.linkish:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-error { color: #ffc0c0; min-height: 1.2em; margin: 4px 0; }
.form-error:empty { display: none; }
ol.steps { margin: 12px 0; padding-left: 1.3em; display: grid; gap: 16px; }
ol.steps > li::marker { color: var(--gold); font-weight: 700; }
.qr-box { margin: 10px 0; }
svg.qr { display: block; width: 220px; max-width: 100%; height: auto; border-radius: 8px; }
code.key { font: 600 1rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .08em; background: #0e1422; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
ol.codes { columns: 2; column-gap: 24px; margin: 10px 0; padding-left: 1.6em; font-size: 1.05rem; }
ol.codes li { padding: 3px 0; }
img.avatar { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); }

/* Round two, part three: the panel on a phone (p2-14). On a desktop, the
   side menu; on a phone, a tab bar at the bottom with More for the rest. */
.tabs { display: none; }
svg.icon { width: 22px; height: 22px; flex: none; }
.initial { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--raised); border: 1px solid var(--border); color: var(--gold); font-weight: 700; }
.banner.row { margin: 0 0 16px; }
/* Quick actions on a player's page */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin: -4px 0 16px; max-width: 620px; }
.quick button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; min-height: 64px; font-size: .9rem; }
.quick button svg.icon { color: var(--gold); }
/* The More sheet */
.overlay.sheet-overlay { place-items: end center; padding: 0; }
.sheet { background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 16px 16px 0 0; width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto; padding: 12px 14px calc(16px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 0; }
button.icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.more-grid button { display: flex; align-items: center; gap: 10px; min-height: 52px; text-align: left; min-width: 0; }
.more-grid button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-grid button svg.icon { color: var(--gold); }
.more-grid button.active { border-color: var(--gold); background: rgba(212,165,72,.12); }
a.btn.wide { display: flex; width: 100%; justify-content: center; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .side { display: none; }
  .main { min-width: 0; padding: 10px 14px calc(88px + env(safe-area-inset-bottom)); }
  /* The tab bar */
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 40; background: rgba(15,21,36,.97); border-top: 1px solid var(--border);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabs a, .tabs button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 58px; min-width: 0; padding: 6px 2px; border-radius: 10px; color: var(--muted); font-size: .74rem;
    text-align: center; cursor: pointer; }
  .tabs span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs .active { color: #f6e7c3; background: rgba(212,165,72,.14); }
  .tabs .active svg.icon { color: var(--gold); }
  .tabs a:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
  /* The top: the server, duty, and you (your page has the rest) */
  .top { gap: 8px; margin-bottom: 12px; }
  .top { flex-wrap: nowrap; }
  .top .grow, .top .wide-only, .who-name, a.who .badge { display: none; }
  .server-pick { flex: 1 1 auto; min-width: 0; }
  .server-pick > span { display: none; }
  .server-pick select { width: 100%; }
  button.duty { flex: none; white-space: nowrap; }
  a.who { flex: none; min-width: 44px; min-height: 44px; justify-content: center; }
  a.who img, a.who .initial { width: 36px; height: 36px; }
  /* Every tap target at least 44 px */
  button, .btn, select, input:not([type=checkbox]):not([type=radio]):not([type=color]) { min-height: 44px; }
  input, select, textarea { font-size: 16px; max-width: 100%; }
  .btn { display: inline-flex; align-items: center; justify-content: center; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  label:has(> input[type=checkbox]), label:has(> input[type=radio]) { min-height: 44px; }
  details > summary { min-height: 44px; display: flex; align-items: center; }
  /* A link standing on its own in a card or a detail (a name, an account, an address) gets a
     finger-sized hit area; the negative margin keeps the layout where it was. */
  td a:not(.btn), dd a:not(.btn), .muted a:not(.btn) { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
  button.linkish { min-height: 44px; display: inline-flex; align-items: center; }
  /* Room to breathe, and one column */
  h1 { font-size: 1.4rem; }
  .card { padding: 14px; margin-bottom: 14px; }
  .card.inner { padding: 12px; }
  .card.narrow { margin: 16px auto; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
  .kv dd { margin-bottom: 8px; overflow-wrap: anywhere; }
  .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .row.tight { flex-wrap: wrap; }
  .row > input[type=search], .row > input:not([type]) { flex: 1 1 100%; }
  .perm-grid { grid-template-columns: minmax(0, 1fr); }
  p, dd, td, li { overflow-wrap: anywhere; }
  .toasts { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
}

@media (max-width: 640px) {
  /* A table's rows become cards, each cell labelled with its column. */
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-wrap tr { border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px; margin: 0 0 10px; background: var(--raised); }
  .table-wrap tr.click { position: relative; padding-right: 34px; }
  .table-wrap tr.click::after { content: "›"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.5rem; }
  .table-wrap tr.click:hover td { background: none; }
  .table-wrap tr.click:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .table-wrap tr.empty { border: 0; background: none; padding: 0; }
  .table-wrap td { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); justify-items: start; gap: 10px; padding: 7px 0; border: 0; }
  .table-wrap td::before { content: attr(data-label); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
  .table-wrap td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .table-wrap td[data-label=""]::before, .table-wrap td[colspan]::before { display: none; }
  .table-wrap td.blank { display: none; }
  .table-wrap td[colspan] { display: block; }
  /* A dialog comes up from the bottom, its buttons full width. */
  .overlay { place-items: end stretch; padding: 0; }
  .dialog { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .dialog .row.end { flex-direction: column-reverse; align-items: stretch; }
  .dialog .row.end button { width: 100%; }
  .quick { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .quick button { font-size: .8rem; padding: 8px 2px; min-height: 62px; }
}
.card > label { display: flex; margin: 6px 0; }
pre.crash { white-space: pre; overflow-x: auto; max-width: 100%; background: rgba(0,0,0,.25); padding: 8px; border-radius: 6px; }
