@layer views {
  #view-page { --page-top: calc(var(--controls-h) + 8px); --page-x: 16px; --column: 100%; height: 100%; min-height: 0; overflow: hidden; padding-top: var(--page-top); }
  #view-page:not([hidden]) { display: flex; flex-direction: column; }
  #view-page .view-head { flex: none; }
  #page-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #page-body { display: flex; flex: 1; min-height: 0; }
  .page-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: var(--bg); }
  #page-notice, .page-confirm { margin: 0 24px 16px; }
  #page-notice[hidden] { display: none; }
  .page-failure { margin: 16px 24px; align-self: flex-start; }
  .page-failure .status-line { margin-top: 0; }
  #page-body > .status-line { margin: 16px 24px; }
  .artifact-page-body { display: flex; min-height: 420px; flex: 1; }
  .artifact-page-body .page-frame { min-height: 420px; }
  @media (min-width: 720px) {
    :is(.page-settings-sheet, .page-share-sheet, .new-view-sheet) { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
  }
  .page-settings { z-index: 26; }
  .page-share, .new-view { z-index: 27; }
  .page-shared-with { flex: none; margin: -8px 24px 16px; color: var(--muted); font-size: 13px; }
  .sharing-form { margin: 16px var(--row-inset); }
  .sharing-form .form-switch { margin-top: 4px; }
  /* Sharing's list shape: chat, then when they last opened it. */
  #page-share-body .settings-list-after { display: inline-block; }
  #page-share-body .settings-list-after::before { content: "· "; }
  .sharing-setup { margin: 0 var(--row-inset); }
  .sharing-setup .sharing-status { margin: 12px 0; }
  .sharing-status, .sharing-copy { margin: 12px var(--row-inset); }
  [data-send-step] > .button { margin: 4px var(--row-inset) 16px; }
  :is(.page-share, .page-settings) .connection-confirm { margin-top: 0; }
  .new-view-icon { flex: none; width: 24px; height: 24px; background-color: transparent; }
  .new-view-icon[style*="mask-image"] { background-color: currentColor; }
  .new-view .button { min-height: 44px; }
  .new-view-status { margin-top: 0; }
  /* Under the state line, in the text's column past the 24px icon and its 12px gap. */
  .new-view-routine { margin: -6px 0 0 36px; }
  .new-view .settings-list-state { text-wrap: pretty; }
  .page-settings-status { margin: 8px var(--row-inset); }
  .page-version-time { font-weight: 600; }
  @media (max-width: 719.98px) {
    :is(.page-settings-page, .page-share-page, .new-view-page) .settings-page-head { padding-left: var(--sheet-side); }
    #page-notice, .page-confirm, .page-shared-with { margin-right: 16px; margin-left: 16px; }
    #page-share-body .settings-list-after { display: block; }
    #page-share-body .settings-list-after::before { content: none; }
    .artifact-page-body, .artifact-page-body .page-frame { min-height: 55dvh; }
  }
}
