#title-slots :is(.slot-data > div, .slot-file strong, .slot-file small) {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-mobile-viewport] #title-slot-list {
  height: clamp(112px, calc(var(--play-view-height) * .34), 265px);
}
html[data-mobile-viewport] #title-slots .slot-data { flex-wrap: wrap; }
html[data-mobile-viewport] #title-slots .slot-data > div { flex: 1 1 11em; }
html[data-mobile-viewport] #title-slots .slot-data button { max-width: 100%; }
html[data-mobile-viewport] #slot-archive :is(input, button) { max-width: 100%; }
html[data-mobile-viewport] .slot-archive-nav { flex-wrap: wrap; }

html[data-short-view] #main-title #cover-heading { top: 6%; left: 4%; width: min(36%, calc(var(--play-view-height) * .51)); }
html[data-short-view] #main-title .cover-menu {
  top: max(50px, calc(44px + var(--play-safe-top)));
  right: max(4%, var(--play-safe-right));
  bottom: max(32px, calc(26px + var(--play-safe-bottom)));
  width: clamp(158px, 44%, 238px);
  gap: 0;
  justify-content: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
}
html[data-short-view] #main-title .cover-menu button { flex: none; min-height: 30px; padding: 1px 6px; font-size: 16.5px; line-height: 1.25; }
html[data-short-view] .cover-screen-tools .screen-notice:not([hidden]) { top: 50%; right: calc(100% + 8px); margin: 0; transform: translateY(-50%); }
html[data-short-view] #main-title .cover-marks { bottom: max(3px, var(--play-safe-bottom)); }

html[data-mobile-viewport] #threshold:is([data-phase=details], [data-phase=review]) #gate-details {
  top: max(53px, calc(48px + var(--play-safe-top)));
  bottom: max(12px, var(--play-safe-bottom));
  height: fit-content;
  max-height: calc(100% - max(53px, 48px + var(--play-safe-top)) - max(12px, var(--play-safe-bottom)));
  margin-block: auto;
  transform: none;
  overscroll-behavior: contain;
}
html[data-narrow-view] #threshold .gate-head {
  top: max(12px, var(--play-safe-top)); left: max(12px, var(--play-safe-left)); right: auto;
}
html[data-narrow-view] #threshold .gate-head .gate-rule { display: none; }
html[data-narrow-view] #threshold .gate-head h1 { font-size: 22px; }
html[data-narrow-view] #threshold #gate-details { width: min(78%, 355px); right: max(10px, var(--play-safe-right)); }
html[data-short-view] #threshold .gate-foot { bottom: max(4px, var(--play-safe-bottom)); }
html[data-short-view] #threshold .gate-wing > span { bottom: max(52px, 21%); }
html[data-short-view] #threshold .journey-stage:not([hidden]) { align-items: safe center; }
html[data-short-view] #threshold #build-radar { position: static; }

html[data-mobile-viewport] #awakening[data-view=form] {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: clip;
  padding: max(12px, var(--play-safe-top)) max(14px, var(--play-safe-right)) max(12px, var(--play-safe-bottom)) max(14px, var(--play-safe-left));
}
html[data-mobile-viewport] #wake-form { min-height: 0; max-height: 100%; overflow: auto; overscroll-behavior: contain; }

html[data-mobile-viewport] #model-ui :is(.work-main, .system-fields, label, input, select) { min-width: 0; max-width: 100%; }
html[data-narrow-view] #model-ui .work-grid { display: block; overflow-y: auto; overscroll-behavior: contain; }
html[data-narrow-view] #model-ui .work-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5em, 1fr));
  gap: 3px;
  padding: 6px 10px;
  overflow: visible;
}
html[data-narrow-view] #model-ui .work-nav button { min-height: 40px; padding: 4px; text-align: center; white-space: normal; }
html[data-narrow-view] #model-ui .work-nav small { display: none; }
html[data-narrow-view] #model-ui .work-main { overflow: visible; }

html[data-mobile-viewport] #folio.actor-screen[open] { grid-template-rows: minmax(0, 1fr); }
html[data-mobile-viewport] #folio.actor-screen #actor-nav { overflow-y: auto; }
@media (max-width: 760px) {
  html[data-mobile-viewport] #folio.actor-screen[open] { grid-template-rows: minmax(0, 1fr) auto; }
}
