/* The operator's Errors view (js/ui/errors-admin.js). It borrows the feedback inbox's layout (the
 * .fbx rules in css/feedback.css); this file only adds what an error needs that a message does not:
 * a monospace stack and a heading that can hold a long, unbroken browser message.
 * Tokens only, never raw colours (test/contrast.mjs checks the tokens).
 */
.errx-message { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; flex: 1 1 100%; }
.errx-stack {
  margin: var(--space-4) 0 var(--space-16); padding: var(--space-16) var(--space-16); overflow-x: auto; max-width: 100%;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font: 13px/1.6 var(--font-mono, ui-monospace, monospace); white-space: pre;
}
.errx .fbx-title .btn { margin-left: auto; }
@media (max-width: 600px) {
  .errx .fbx-title .btn { margin-left: 0; }
}

/* The outage and offline banner on a phone. The sync words sit in a strip pinned under the header there
 * (css/shell.css, .sync, 44px tall and a 1px edge), and the strip covered the top line of the banner
 * below it, which is saying nearly the same thing. Pushing the banner down by the strip's height (45px, on
 * top of its own 10px) keeps both readable. The banner is only ever drawn while the strip is showing
 * (offline or cannot reach Maple), so the space is never left empty. */
@media (max-width: 640px) {
  #offline-banner:not(:empty) { padding-top: var(--space-48); }
}

/* Limits Maple has reached (server/capacity.js), above the errors on the operator's Errors page. */
.errx-limits { margin: 0 0 var(--space-24); padding: var(--space-16) var(--space-16); border-radius: var(--radius-card); background: var(--warning-soft); color: var(--warning); }
.errx-limits h2 { margin: 0 0 var(--space-8); font-size: 17px; }
.errx-limits ul { margin: 0 0 var(--space-8); padding-left: var(--space-24); display: grid; gap: var(--space-8); line-height: 1.45; }
.errx-limits .fbx-note { margin: 0; font-size: 13.5px; }
