/* BlurFolder — every screen, scoped under .fo-app (docs/SITE.md). The
   explorer itself is BlurPager's `.docs-*` rules in its public/styles.css,
   which every site's page links; only its width and colours are set here. */

.fo-app {
  --fo-teal: #00c6cf;
  --fo-teal-dark: #00a3ab;
  --fo-ink: #2f3440;
  --fo-muted: #6b7280;
  --fo-line: #e3e6ec;
  --fo-bg: #f6f8fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fo-bg);
  color: var(--fo-ink);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.fo-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; background: #fff; border-bottom: 1px solid var(--fo-line); }
.fo-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--fo-teal); font-size: 1.35rem; text-decoration: none; }
.fo-brand b { font-weight: 700; }
/* A phone: the explorer's toolbar is one row that scrolls, not a stack. */
@media (max-width: 700px) {
  .fo-explorer .docs-toolrow { overflow-x: auto; }
  .fo-explorer .docs-tools { flex-wrap: nowrap; }
  .fo-explorer .docs-tools button { white-space: nowrap; }
}
.fo-logo { display: block; width: 28px; height: 28px; border-radius: 4px; }
.fo-nav { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.fo-who { color: var(--fo-muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.fo-inline { display: inline; margin: 0; }
.fo-main { flex: 1 1 auto; width: 100%; max-width: 60rem; margin: 0 auto; padding: 1.5rem 1rem; box-sizing: border-box; }
.fo-wide-main { max-width: 84rem; }
.fo-foot { padding: 1rem; text-align: center; color: var(--fo-muted); font-size: 0.85rem; }

/* Buttons: background, colour, border and radius together — BlurPager's
   baseline `button` rule paints white text and its own corners (its D143). */
.fo-app .fo-button, .fo-app button.fo-button {
  display: inline-block; padding: 0.6rem 1.2rem; border: 1px solid var(--fo-teal); border-radius: 6px;
  background: var(--fo-teal); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.fo-app .fo-button:hover { background: var(--fo-teal-dark); border-color: var(--fo-teal-dark); }
.fo-app .fo-small { padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.fo-app .fo-wide { display: block; width: 100%; text-align: center; }
.fo-app button.fo-quiet, .fo-app button.fo-link {
  padding: 0.3rem 0.6rem; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--fo-muted); font: inherit; cursor: pointer;
}
.fo-app button.fo-link { color: var(--fo-teal-dark); text-decoration: underline; }
.fo-app button.fo-quiet:hover { background: rgba(0, 0, 0, 0.05); color: var(--fo-ink); }
.fo-app button:disabled { opacity: 0.6; cursor: default; }

.fo-card { background: #fff; border: 1px solid var(--fo-line); border-radius: 10px; padding: 1.5rem; }
.fo-narrow { max-width: 26rem; margin: 2rem auto; }
.fo-card h1 { margin: 0 0 1rem; font-size: 1.4rem; }
.fo-or { text-align: center; margin: 1rem 0 0; }
.fo-error { color: #c0392b; }
.fo-muted { color: var(--fo-muted); }

.fo-hero { padding: 2rem 0; }
.fo-hero h1 { font-size: 2rem; margin: 0 0 1rem; }
.fo-lead { font-size: 1.1rem; line-height: 1.55; max-width: 40rem; }
.fo-points { padding-left: 1.2rem; line-height: 1.8; }

/* The meter: how much of the 1 GB is taken. */
.fo-usage { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.75rem; }
.fo-usage p { margin: 0; font-size: 0.88rem; white-space: nowrap; }
.fo-usage-bar { flex: 0 1 16rem; height: 0.5rem; border-radius: 999px; background: var(--fo-line); overflow: hidden; }
.fo-usage-bar span { display: block; height: 100%; width: 0; background: var(--fo-teal); transition: width 0.3s; }
.fo-usage.is-full .fo-usage-bar span { background: #e8483c; }
.fo-hint { margin-top: 0.6rem; font-size: 0.82rem; }
/* No limit (the site's admin, F10): the words without a bar. */
.fo-usage.is-unlimited .fo-usage-bar { display: none; }

/* «Ключове» (docs/KEYS.md) and its link in the bar. */
.fo-app a.fo-quiet { padding: 0.3rem 0.6rem; border-radius: 6px; color: var(--fo-muted); text-decoration: none; }
.fo-app a.fo-quiet:hover { background: rgba(0, 0, 0, 0.05); color: var(--fo-ink); }
.fo-app a.fo-link { color: var(--fo-teal-dark); }
.fo-keys { max-width: 52rem; margin: 0 auto; }
.fo-keys h2 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }
.fo-key-new { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin: 1.25rem 0; }
.fo-field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 16rem; font-size: 0.9rem; }
.fo-field input { padding: 0.55rem 0.7rem; border: 1px solid var(--fo-line); border-radius: 6px; font: inherit; }
.fo-key-made { padding: 1rem; border: 1px solid var(--fo-teal); border-radius: 8px; background: rgba(0, 198, 207, 0.06); }
.fo-key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0; }
.fo-key-row code { flex: 1 1 20rem; padding: 0.5rem; background: #fff; border: 1px solid var(--fo-line); border-radius: 6px; overflow-wrap: anywhere; user-select: all; }
.fo-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.fo-table th, .fo-table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--fo-line); text-align: left; }
.fo-table th { color: var(--fo-muted); font-weight: 600; }

/* The explorer: full width here, and taller than on BlurPaper's profile. */
.fo-explorer .docs-body { min-height: 30rem; }
.fo-explorer .docs-main, .fo-explorer .docs-tree { max-height: calc(100vh - 16rem); }
.fo-explorer .docs-main.is-drop { background: rgba(0, 198, 207, 0.08); outline: 2px dashed var(--fo-teal-dark); outline-offset: -6px; }

@media (max-width: 700px) {
  .fo-main { padding: 1rem 0.75rem; }
  .fo-who { display: none; }
  .fo-table th:nth-child(3), .fo-table td:nth-child(3) { display: none; }
  .fo-hero h1 { font-size: 1.5rem; }
  .fo-usage-bar { flex: 1 1 auto; }
  .fo-explorer .docs-main, .fo-explorer .docs-tree { max-height: none; }
}
