:root {
  --bg: #0d0f14;
  --panel: #12151c;
  --line: #232936;
  --ink: #dfe4ee;
  --muted: #8b94a7;
  --accent: #2aa9ff;
  --warn: #ffb648;
  --bad: #ff6b6b;
  --ok: #46d39a;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
}

body {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 26rem);
  height: 100vh;
  overflow: hidden;
}

#stage {
  position: relative;
  min-width: 0;
}

#viewport {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 2rem;
  text-align: center;
  background: rgba(13, 15, 20, 0.92);
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.6;
}

#fault {
  color: var(--bad);
  gap: 0.9rem;
  /* The overlay owns pointer events while it is up, which is exactly why it
     must carry its own way out. `safe` matters: a long stack trace in a short
     window would otherwise centre the block and push the dismiss button off the
     top edge, where no amount of scrolling reaches it — which is the exact
     failure this whole surface exists to end. */
  align-content: safe center;
  overflow-y: auto;
}

#fault h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#fault p {
  margin: 0;
  max-width: 44rem;
  justify-self: center;
  /* `.overlay` keeps `pre-wrap` for the loading line; the prose here is written
     as source-formatted HTML, so honouring its newlines would break sentences
     mid-clause. The message keeps `pre-wrap` because it can be a stack trace. */
  white-space: normal;
}

#fault-message {
  color: var(--bad);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.overlay-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.overlay-actions button {
  width: auto;
  min-width: 12rem;
  margin-top: 0;
  /* `.overlay` sets `pre-wrap`, and a button label written across three source
     lines then renders its own indentation: measured 2026-08-06, `#fault-dismiss`
     came out 331 px wide and 66 px tall with the label pushed a dozen spaces to
     the right and a blank line under it, which also stretched `#fault-reload` to
     match. The way out of a fault must not look mangled. */
  white-space: normal;
}

#fault-dismiss {
  border-color: var(--accent);
  color: var(--accent);
}

.hidden {
  display: none;
}

#hint {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
}

#panel {
  border-left: 1px solid var(--line);
  background: var(--panel);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  padding: 1rem 1.1rem 3rem;
}

#panel header h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.02em;
}

#panel .sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 11px;
}

#panel section {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

#panel h2 {
  margin: 0 0 0.6rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.count {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.28rem 0.6rem;
}

dt {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

dd {
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.badge.current {
  color: var(--ok);
}

.badge.speculative {
  color: var(--warn);
}

.badge.stale {
  color: var(--bad);
}

#selection .id {
  font-size: 15px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

#selection .provisional {
  color: var(--warn);
}

#selection dl {
  margin-top: 0.5rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#entities li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.24rem 0.35rem;
  border-radius: 3px;
  cursor: pointer;
}

#entities li:hover {
  background: #1b2030;
}

#entities li.selected {
  background: #17324a;
  color: var(--accent);
}

#entities li.unrenderable {
  color: var(--muted);
  cursor: not-allowed;
}

#entities .tris {
  color: var(--muted);
  font-size: 11px;
}

#not-implemented li {
  padding: 0.15rem 0;
  font-size: 11px;
}

#not-implemented li::before {
  content: "— ";
}

.muted {
  color: var(--muted);
}

/* The capability ladder: one block per rung, granted or refused, with why.
   Stacked rather than two columns because the reasons are sentences and a
   narrow second column truncates the half of the sentence that carries the
   evidence. */
#capability .ladder li {
  display: block;
  padding: 0.25rem 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

#capability .ladder .rung {
  display: block;
  letter-spacing: 0.04em;
}

#capability .ladder li.granted .rung {
  color: var(--ok);
}

#capability .ladder li.refused .rung {
  color: var(--muted);
}

#capability .ladder .reason {
  color: var(--muted);
}

#capability dl {
  margin-top: 0.7rem;
}

#plane .tiers {
  margin-top: 0.7rem;
}

#plane .tiers li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.24rem 0.35rem;
  border-radius: 3px;
  cursor: pointer;
}

#plane .tiers li:hover {
  background: #1b2030;
}

#plane .tiers li.selected {
  background: #17324a;
  color: var(--accent);
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.5rem;
  align-items: center;
}

select,
input[type='range'] {
  width: 100%;
  min-width: 0;
  padding: 0.3rem;
  background: #1b2030;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  font-size: 11px;
}

button {
  margin-top: 0.6rem;
  width: 100%;
  padding: 0.42rem;
  background: #1b2030;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* The way out of a "stale" or "unknown" SpatialStateVector. Hidden while the
   view is current, so it never reads as a control the document needs. */
#currency-note {
  margin: 0 0 0.5rem;
  font-size: 11px;
  line-height: 1.5;
}

#currency-resync {
  margin-top: 0;
  margin-bottom: 0.8rem;
  border-color: var(--accent);
  color: var(--accent);
}

#currency-resync[hidden] {
  display: none;
}

/* A form that cannot submit here should look like a specimen, not a control
   one step from working. `disabled` alone reads as "not yet". */
#dimension-edit-section[data-edit-available='false'] #dimension-edit-form {
  opacity: 0.6;
  filter: saturate(0.4);
  border-left: 2px solid var(--line);
  padding-left: 0.7rem;
}

#dimension-edit-explanation {
  margin-bottom: 0.8rem;
}

#dimension-edit-explanation p {
  margin: 0 0 0.4rem;
  font-size: 11px;
  line-height: 1.5;
}

#dimension-edit-explanation .edit-unavailable {
  color: var(--warn);
}

#dimension-edit-explanation .edit-success {
  color: var(--ok);
}

.edit-command {
  margin: 0.2rem 0 0;
  padding: 0.45rem 0.55rem;
  background: #1b2030;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#dimension-edit-form {
  display: grid;
  gap: 0.55rem;
}

#dimension-edit-form input[type='text'] {
  width: 100%;
  min-width: 0;
  padding: 0.42rem;
  background: #1b2030;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  font-size: 11px;
}

.dimension-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem;
  gap: 0.5rem;
  align-items: end;
}

.dimension-value-row .field {
  grid-column: 1 / -1;
  margin-bottom: -0.25rem;
}

.dimension-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.dimension-actions button {
  margin-top: 0;
}

#dimension-edit-detail {
  margin-top: 0.7rem;
}

#dimension-edit-detail .edit-warning {
  color: var(--warn);
}

#dimension-edit-detail .edit-error {
  color: var(--bad);
}

#dimension-edit-detail .edit-success {
  color: var(--ok);
}

#dimension-edit-detail ul {
  margin-top: 0.45rem;
}

#dimension-edit-detail li {
  padding: 0.15rem 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

#dimension-edit-detail li::before {
  content: "— ";
}

/* Sentence first, machine code second and visibly secondary. */
#dimension-edit-detail .blockers li {
  padding: 0.3rem 0;
}

#dimension-edit-detail .blocker-reason {
  /* Inline, so the list's "— " marker sits on the sentence instead of alone on
     a line of its own above it. */
  display: inline;
  line-height: 1.5;
}

#dimension-edit-detail .blocker-code {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 45vh;
  }
  #panel {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

/* ==========================================================================
   WP22 — the responsive workbench shell
   ==========================================================================

   Everything below is scoped to `:root[data-mode="mobile"]`, `#mobile-shell`,
   `#light-root` or the new surface-disclosure classes, so the desktop layout
   above is byte-for-byte the layout WP20 was qualified on. `layout.js` sets
   `data-mode` on the root element; the specificity of `:root[data-mode=…]`
   beats the plain selectors above regardless of source order, so the phone
   rules cannot be defeated by the `max-width: 900px` block.
   ========================================================================== */

:root {
  /* Measured, not assumed. `mobile.js` writes the real task-bar height here
     after mount, and `layout.js` writes the four safe-area insets. The
     fallbacks are what a browser with neither gets. */
  --taskbar-height: 58px;
  --topbar-height: 64px;
  --safe-top: 0px;
  --safe-right: 0px;
  --safe-bottom: 0px;
  --safe-left: 0px;

  /* The height of the open portrait sheet, published by `mobile.js` once it has
     been measured, and 0 whenever nothing is open or the sheet is the landscape
     side panel. `#stage` subtracts it, so the canvas ends where the sheet
     begins instead of continuing underneath it. */
  --sheet-height: 0px;

  /* The canvas an open sheet must leave behind: the model strip.

     A bottom sheet that stops at 72% of the screen leaves 133 CSS px of canvas
     on a 390x844 phone, and that is not the same thing as leaving 133 px of
     MODEL — the part is drawn about its centre, which on that phone is 253 px
     down the canvas, so the strip was measured empty (0.0% lit pixels, 0/9
     picks) on all four sheets. Shrinking `#stage` is what puts the model back
     in the strip; this floor is what makes the strip worth looking at. */
  --model-strip: clamp(180px, 30dvh, 320px);
}

/* The probe `readSafeArea()` measures. Zero-sized and hidden, so it can sit in
   the document on every layout without affecting one. */
#safe-area-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* -- capability disclosure ------------------------------------------------ */

.surface-status,
.voice-status {
  margin: 0 0 0.7rem;
}

.refusal-code {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.surface-status.ok .refusal-code {
  color: var(--ok);
}

.surface-status.refused .refusal-code,
.voice-status .refusal-code {
  color: var(--warn);
}

.refusal-reason {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* -- offline drafts ------------------------------------------------------- */

.field {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 11px;
}

textarea {
  width: 100%;
  min-width: 0;
  padding: 0.45rem;
  background: #1b2030;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  font-size: 12px;
  resize: vertical;
}

#drafts .draft {
  margin-top: 0.55rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.draft-text {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.draft-state {
  margin: 0.3rem 0 0.1rem;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.draft-offline .draft-state,
.draft-refused .draft-state {
  color: var(--warn);
}

.draft-empty {
  padding: 0.3rem 0;
  font-size: 11px;
}

/* -- the light Grace routes ----------------------------------------------- */

:root:not([data-route='spatial']) body {
  display: block;
  height: auto;
  min-height: 100vh;
  overflow: auto;
}

#light-root {
  max-width: 44rem;
  padding: calc(2rem + var(--safe-top)) calc(1.2rem + var(--safe-right))
    calc(2rem + var(--safe-bottom)) calc(1.2rem + var(--safe-left));
}

#light-root h1 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.02em;
}

#light-root .sub {
  margin: 0.35rem 0 1.4rem;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  max-width: 34rem;
}

.route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.route-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}

.route-list a[aria-current='page'] {
  border-color: var(--accent);
  color: var(--accent);
}

#enter-spatial {
  width: auto;
  min-height: 48px;
  margin: 0 0 1.4rem;
  padding: 0.6rem 1.1rem;
  font-size: 12px;
}

.light-session {
  grid-template-columns: 10rem 1fr;
}

.light-session dt,
.light-session dd {
  font-size: 12px;
}

/* -- the phone shell ------------------------------------------------------ */

.hint-mobile {
  display: none;
}

:root[data-mode='mobile'] .hint-desktop {
  display: none;
}

:root[data-mode='mobile'] .hint-mobile {
  display: inline;
}

:root[data-mode='mobile'] body {
  display: block;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Viewport-first: the canvas is the page. It stops exactly at the app bar, the
   task bar and — while one is open — the sheet. All three are measured, not
   guessed, so that no control ever sits on top of the model.
   `test_mobile_shell.py` intersects the rectangles.

   The sheet term is the fix for a claim this shell used to make and break: with
   the canvas running the full height, an open sheet covered 82% of it and every
   pixel of the part with it. Ending the canvas at the sheet costs nothing in
   the projection — `fovY` is fixed, so a shorter canvas shows the same vertical
   slice of the world at fewer pixels and a *wider* horizontal one. Nothing that
   was visible can be hidden by this rule; the camera is not touched, and the
   orbit and zoom the user set up survive opening a sheet. */
:root[data-mode='mobile'][data-route='spatial'] #stage {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  bottom: calc(var(--taskbar-height) + var(--sheet-height));
}

:root[data-mode='mobile'] #hint {
  left: calc(0.9rem + var(--safe-left));
  bottom: 0.6rem;
}

#mobile-shell {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

#mobile-shell > * {
  pointer-events: auto;
}

#mobile-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(0.55rem + var(--safe-top)) calc(0.9rem + var(--safe-right)) 0.55rem
    calc(0.9rem + var(--safe-left));
  /* A solid bar, not a gradient scrim. A translucent bar over a canvas has no
     computable contrast ratio — whatever is behind it is whatever the model
     happens to be — and WP22 asks for contrast, so the bar owns its background
     and the canvas starts below it. */
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

#mobile-topbar h1 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

#mobile-topbar .sub {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 10px;
}

#degraded {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--warn);
  border-radius: 4px;
  background: rgba(13, 15, 20, 0.92);
  color: var(--warn);
  font-size: 12px;
  line-height: 1.5;
}

#taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.3rem;
  padding: 0.35rem calc(0.5rem + var(--safe-right)) calc(0.35rem + var(--safe-bottom))
    calc(0.5rem + var(--safe-left));
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.task-button {
  margin: 0;
  min-height: 48px;
  min-width: 48px;
  padding: 0.5rem 0.3rem;
  font-size: 12px;
  line-height: 1.25;
}

.task-button[aria-expanded='true'] {
  border-color: var(--accent);
  color: var(--accent);
}

#sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--taskbar-height);
  display: flex;
  flex-direction: column;
  /* Tall, but never taller than the model strip allows.

     The subtraction is the term that binds on a phone — 57.8dvh on 390x844,
     57.1dvh on 360x800 — and it is written as an explicit subtraction rather
     than a rounder percentage because the app bar and the task bar are measured
     at runtime and a percentage would silently disagree with them. The 72dvh
     is not dead: past about 1500 px of height the strip has stopped growing at
     its own 320 px cap, and without a proportional bound the sheet would keep
     growing with the viewport. */
  max-height: min(
    72dvh,
    calc(100dvh - var(--topbar-height) - var(--taskbar-height) - var(--model-strip))
  );
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.6);
  transform: translateY(110%);
  visibility: hidden;
  transition:
    transform 220ms ease,
    visibility 0s linear 220ms;
}

#sheet[data-open='true'] {
  transform: translateY(0);
  visibility: visible;
  transition:
    transform 220ms ease,
    visibility 0s linear 0s;
}

/* Landscape: a side panel, not a bottom sheet. A 390pt-tall screen has no room
   for a sheet that eats 72% of it, and the model must stay on screen. */
#mobile-shell[data-orientation='landscape'] #sheet {
  left: auto;
  top: 0;
  bottom: var(--taskbar-height);
  width: min(52%, 26rem);
  max-height: none;
  border-radius: 14px 0 0 0;
  transform: translateX(110%);
}

#mobile-shell[data-orientation='landscape'] #sheet[data-open='true'] {
  transform: translateX(0);
}

#mobile-shell[data-orientation='landscape'] .task-button {
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  #sheet,
  #sheet[data-open='true'],
  #mobile-shell[data-orientation='landscape'] #sheet,
  #mobile-shell[data-orientation='landscape'] #sheet[data-open='true'] {
    transition: none;
  }
}

#sheet-grip {
  display: grid;
  place-items: center;
  height: 24px;
  flex: 0 0 auto;
  touch-action: none;
  cursor: grab;
}

#sheet-grip::after {
  content: '';
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

#sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex: 0 0 auto;
  padding: 0 0.9rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

#sheet-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
}

#sheet-close {
  width: auto;
  min-width: 76px;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 12px;
}

#sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0.9rem calc(1rem + var(--safe-bottom));
}

#sheet-body > section:first-of-type {
  margin-top: 0.9rem;
  border-top: none;
  padding-top: 0;
}

.task-list {
  padding-top: 0.9rem;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  width: 100%;
  min-height: 56px;
  margin: 0 0 0.5rem;
  padding: 0.7rem 0.9rem;
  font-size: 13px;
  text-align: left;
}

.task-row-title {
  overflow-wrap: anywhere;
}

.task-row-status {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-row-status.ok {
  color: var(--ok);
}

.task-row-status.refused {
  color: var(--warn);
}

/* Touch targets. Every one of these is measured as a rendered rectangle by
   `test_mobile_shell.py`; the numbers here are the floor, not the intent. */
:root[data-mode='mobile'] #sheet-body button,
:root[data-mode='mobile'] #sheet-body select,
:root[data-mode='mobile'] #sheet-body textarea,
:root[data-mode='mobile'] #sheet-body input {
  min-height: 48px;
  font-size: 13px;
}

:root[data-mode='mobile'] #sheet-body li[data-tap] {
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 0.5rem;
  font-size: 13px;
}

:root[data-mode='mobile'] #sheet-body h2 {
  font-size: 12px;
}

:root[data-mode='mobile'] #sheet-body dt,
:root[data-mode='mobile'] #sheet-body dd,
:root[data-mode='mobile'] #sheet-body .refusal-reason,
:root[data-mode='mobile'] #sheet-body .draft-state,
:root[data-mode='mobile'] #sheet-body #not-implemented li,
:root[data-mode='mobile'] #sheet-body #capability .ladder li {
  font-size: 12px;
}

:root[data-mode='mobile'] #sheet-body dl {
  grid-template-columns: minmax(0, 9rem) 1fr;
}
