/* The deployment footer occupies its own row, never overlays a file action. */
body[data-site-disclosure] {
  --site-disclosure-height: calc(44px + env(safe-area-inset-bottom, 0px));
}

.site-disclosure {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  order: 2;
  min-height: var(--site-disclosure-height, 44px);
  width: 100%;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e1e8df;
  color: #52665c;
  background: #fbfcf8;
  text-align: center;
  font: 12px/24px system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-disclosure a {
  color: inherit;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.site-disclosure a:hover { color: #075f53; }
.site-disclosure a:focus-visible { outline: 3px solid #087f73; outline-offset: 3px; }

body[data-site-disclosure="workspace"] { display: flex; flex-direction: column; }
body[data-site-disclosure="workspace"] > .auth-view {
  min-height: calc(100dvh - var(--site-disclosure-height));
}
body[data-site-disclosure="workspace"] > .workspace,
body[data-site-disclosure="workspace"] > #public-workbench {
  height: calc(100dvh - var(--site-disclosure-height));
  min-height: 160px;
  flex-shrink: 0;
}

body[data-site-disclosure="page"].share-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
body[data-site-disclosure="page"].share-page > .site-disclosure {
  width: min(100%, 900px);
  background: transparent;
}
body[data-site-disclosure="page"].pwa-shell > .site-disclosure {
  max-width: 900px;
  margin: 24px auto 0;
}
