/* =====================================================================
   NotBroken — shared app shell
   ---------------------------------------------------------------------
   Loaded by EVERY page, after the page's own stylesheet(s).

   1. Self-hosted fonts (Inter + Playfair Display) — no Google Fonts
      request, so the app renders identically offline / inside Cordova.
   2. The unified navigation (left rail on desktop & landscape, tab bar
      on portrait phones). One markup, one look, on every page.
   3. Tool-page theme: the MetaKit tools (html.app pages) adopt the
      NotBroken palette — ink navy, sage, terracotta — and typography.
   4. Print: the nav is never printed.
   ===================================================================== */

/* ---------- 1. FONTS ---------- */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src:url(fonts/inter-latin-300-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url(fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url(fonts/inter-latin-500-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url(fonts/inter-latin-600-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url(fonts/inter-latin-700-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Latin-extended glyphs (ł, ő, ș …) are fetched only if a page uses them. */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src:url(fonts/inter-latin-ext-300-normal.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url(fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url(fonts/inter-latin-ext-500-normal.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url(fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url(fonts/inter-latin-ext-700-normal.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:400; font-display:swap;
  src:url(fonts/playfair-display-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:600; font-display:swap;
  src:url(fonts/playfair-display-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:700; font-display:swap;
  src:url(fonts/playfair-display-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:800; font-display:swap;
  src:url(fonts/playfair-display-latin-800-normal.woff2) format('woff2'); }

/* ---------- 2. THE APP NAVIGATION ---------- */
/* Tokens for the nav only. The nav is always dark (ink navy → deep sage),
   so it reads the same on the light directory, the dark directory and the
   immersive tool canvases. */
.app-footer-menu {
  --nav-w: 84px;              /* desktop rail */
  --nav-w-compact: 68px;      /* landscape phone rail */
  --nav-h: 64px;              /* portrait tab bar */
  --nav-bg-1: #161B2C;
  --nav-bg-2: #1B2A25;
  --nav-fg: rgba(242, 239, 234, 0.72);
  --nav-fg-hover: #F2EFEA;
  --nav-fg-active: #A6D2BC;
  --nav-accent: #84C0A0;
  --nav-active-bg: rgba(132, 192, 160, 0.14);
  --nav-border: rgba(255, 255, 255, 0.08);

  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, var(--nav-bg-1) 0%, var(--nav-bg-2) 100%) !important;
  color: var(--nav-fg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0 !important;
  box-shadow: 4px 0 24px -12px rgba(0, 0, 0, 0.6) !important;
  contain: layout style;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.app-footer-menu * { box-sizing: border-box; }

.app-footer-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  text-decoration: none !important;
  color: var(--nav-fg);
  font-weight: 500;
  letter-spacing: .2px;
  line-height: 1;
  border-radius: 10px;
  transition: color .18s ease, background-color .18s ease;
  margin: 0;
  padding: 0;
  outline: none;
}
.app-footer-menu a::before { content: none !important; }   /* legacy hover overlay */
.app-footer-menu a:hover { color: var(--nav-fg-hover); background: rgba(255,255,255,.06); transform: none !important; }
.app-footer-menu a:focus-visible { box-shadow: 0 0 0 2px var(--nav-accent) inset; }
.app-footer-menu a.active,
.app-footer-menu a[aria-current="page"] {
  color: var(--nav-fg-active);
  background: var(--nav-active-bg);
  font-weight: 600;
}
.app-footer-menu a svg {
  display: block;
  width: 24px; height: 24px;
  min-width: 24px; min-height: 24px; max-width: 24px; max-height: 24px;
  flex: 0 0 auto;
  margin: 0;
  filter: none;
  transition: transform .18s ease;
  transform: none;
}
.app-footer-menu a:hover svg, .app-footer-menu a.active svg, .app-footer-menu a[aria-current="page"] svg { transform: scale(1.06); }
.app-footer-menu a span { font-size: 10.5px; font-weight: inherit; letter-spacing: inherit; white-space: nowrap; }
/* active indicator: a short sage bar (left edge on the rail, top edge on the tab bar) */
.app-footer-menu a.active::after,
.app-footer-menu a[aria-current="page"]::after {
  content: '';
  position: absolute;
  background: var(--nav-accent);
  border-radius: 3px;
}

/* brand mark — only shown on the desktop rail */
.app-footer-menu .app-nav-brand {
  display: none;
  gap: 8px;
  color: var(--nav-fg-active);
  background: none !important;
  border-radius: 0;
}
.app-footer-menu .app-nav-brand:hover { color: var(--nav-fg-hover); }
.app-footer-menu .app-nav-brand .brand-accent { display: block; width: 28px; height: 3px; background: var(--nav-accent); }
.app-footer-menu .app-nav-brand .brand-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.5px;
  line-height: 1;
}
.app-footer-menu .app-nav-brand::after { content: none !important; }

/* ----- Portrait phones / small tablets: bottom tab bar ----- */
@media (max-width: 999.5px) and (orientation: portrait) {
  .app-footer-menu {
    position: fixed !important;
    left: 0; right: 0; bottom: 0; top: auto;
    width: auto !important; min-width: 0 !important; max-width: none !important;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important; max-height: none !important;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 2px;
    border-top: 1px solid var(--nav-border) !important;
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,.6) !important;
    z-index: 1000;
  }
  .app-footer-menu a {
    flex: 1 1 0 !important;
    width: auto !important; min-width: 0 !important;
    height: auto !important; min-height: 0 !important;
    padding: 6px 2px !important;
    margin: 0 !important;
    gap: 4px;
  }
  .app-footer-menu a span { font-size: 10px; }
  .app-footer-menu a svg { width: 23px; height: 23px; min-width: 23px; min-height: 23px; max-width: 23px; max-height: 23px; }
  .app-footer-menu a.active::after, .app-footer-menu a[aria-current="page"]::after {
    top: -4px; left: 22%; right: 22%; height: 3px;
  }
}

/* ----- Landscape phones (short viewports): compact left rail ----- */
@media (max-width: 999.5px) and (orientation: landscape) {
  .app-footer-menu {
    position: fixed !important;
    left: 0; top: 0; bottom: 0; right: auto;
    width: calc(var(--nav-w-compact) + env(safe-area-inset-left, 0px)) !important;
    min-width: 0 !important; max-width: none !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 4px calc(6px + env(safe-area-inset-bottom, 0px)) calc(4px + env(safe-area-inset-left, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-evenly !important;
    gap: 2px;
    border-right: 1px solid var(--nav-border) !important;
    z-index: 1000;
  }
  .app-footer-menu a {
    width: auto !important; min-width: 0 !important;
    height: auto !important; min-height: 0 !important;
    padding: 5px 2px !important;
    margin: 0 !important;
    gap: 3px;
  }
  .app-footer-menu a span { font-size: 9.5px; }
  .app-footer-menu a svg { width: 19px; height: 19px; min-width: 19px; min-height: 19px; max-width: 19px; max-height: 19px; }
  .app-footer-menu a.active::after, .app-footer-menu a[aria-current="page"]::after {
    left: -4px; top: 18%; bottom: 18%; width: 3px;
  }
}

/* ----- Desktop & large tablets: full left rail ----- */
@media (min-width: 1000px) {
  .app-footer-menu {
    position: fixed !important;
    left: 0; top: 0; bottom: 0; right: auto;
    width: var(--nav-w) !important; min-width: var(--nav-w) !important; max-width: var(--nav-w) !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 8px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px;
    border-right: 1px solid var(--nav-border) !important;
    z-index: 1000;
    order: 0;
  }
  .app-footer-menu .app-nav-brand { display: flex; padding: 6px 0 18px !important; margin-bottom: 6px; border-bottom: 1px solid var(--nav-border); }
  .app-footer-menu a {
    width: auto !important; min-width: 0 !important;
    height: auto !important; min-height: 0 !important;
    padding: 11px 4px !important;
    margin: 0 !important;
    gap: 6px;
  }
  .app-footer-menu a span { font-size: 11px; }
  .app-footer-menu a svg { width: 26px; height: 26px; min-width: 26px; min-height: 26px; max-width: 26px; max-height: 26px; }
  .app-footer-menu a.active::after, .app-footer-menu a[aria-current="page"]::after {
    left: -8px; top: 22%; bottom: 22%; width: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-footer-menu a, .app-footer-menu a svg { transition: none !important; }
}

/* ---------- 3. DIRECTORY PAGE (html.nb-site): make room for the nav ---------- */
@media screen and (min-width: 1000px) {
  html.nb-site body { padding-left: 84px; }
  html.nb-site .web-progress { left: 84px; }
  html.nb-site .skip-links { left: 84px; }
}
@media screen and (max-width: 999.5px) and (orientation: landscape) {
  html.nb-site body { padding-left: calc(68px + env(safe-area-inset-left, 0px)); }
  html.nb-site .web-progress { left: calc(68px + env(safe-area-inset-left, 0px)); }
  html.nb-site .skip-links { left: calc(68px + env(safe-area-inset-left, 0px)); }
}
@media screen and (max-width: 999.5px) and (orientation: portrait) {
  html.nb-site body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  html.nb-site .web-backtotop { bottom: calc(64px + 14px + env(safe-area-inset-bottom, 0px)); }
}
/* The directory's contents/filter drawer and its scrim live inside the sticky
   top bar (.web-side, z-index 200), so the nav must sit below that stacking
   context for the drawer and scrim to cover it. */
html.nb-site .app-footer-menu { z-index: 150 !important; }
@media screen and (max-width: 999.5px) {
  /* keep the sticky top bar clear of a notch in standalone / Cordova mode */
  html.nb-site .web-side { padding-top: calc(11px + env(safe-area-inset-top, 0px)); }
}

/* ---------- 4. TOOL PAGES (html.app): NotBroken palette + type ---------- */
html.app {
  /* the tools are dark canvases, so they use the directory's dark-mode tokens */
  --nb-sage: #84C0A0;
  --nb-sage-light: #A6D2BC;
  --nb-sage-deep: #4A7560;
  --nb-sage-tint: #22302A;
  --nb-ink: #F2EFEA;
  --nb-text: #DAE0E6;
  --nb-muted: #A5AFBC;
  --nb-terra: #E8A375;
  --nb-page: #15181D;
  --nb-surface: #1F242B;
  --nb-surface-2: #242A32;
  --nb-border: #3A424E;
  --nb-on-accent: #13171D;
  --nb-gradient: linear-gradient(-45deg, #151A2B, #1E3A2E, #1A1F36, #2A4A3A);
  background: var(--nb-page);
}
html.app body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background-color: var(--nb-page) !important;
  -webkit-font-smoothing: antialiased;
}
html.app .page-container,
html.app .gradient-bg,
html.app .nav-buttons {
  background: var(--nb-gradient) !important;
  background-size: 400% 400% !important;
  animation: gradient-animation 30s ease infinite;
}
@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* editorial display face for each tool's title (never for timers / numbers) */
html.app .header-text h1,
html.app #breathing-app-container h1,
html.app #current-mode,
html.app .summary-title,
html.app .modal-content h3,
html.app .modal-title,
html.app .export-modal-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  font-weight: 700;
  letter-spacing: 0;
}
html.app #countdown-timer, html.app #stopwatch, html.app #timer-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
html.app #current-mode { text-transform: none !important; letter-spacing: 0 !important; }
/* keyboard focus rings in the brand accent, matching the directory
   (form fields keep their own sage focus treatment) */
html.app a:focus-visible, html.app button:focus-visible, html.app [tabindex]:focus-visible {
  outline: 3px solid var(--nb-terra);
  outline-offset: 2px;
}
html.app ::selection { background: rgba(132, 192, 160, .35); }

/* ---------- 5. PRINT ---------- */
@media print {
  .app-footer-menu { display: none !important; }
  html.nb-site body { padding: 0 !important; }

  /* The cover and the section-divider pages used a min-height worked out from
     A4 at 96 dpi (297mm - margins). WebKit (Safari on iPhone / iPad / Mac) lays
     print out at a different scale, so that height no longer fits on one sheet
     and every divider spilled over on to extra, blank pages. Each of these still
     gets a page of its own, but its content is anchored near the top so it can
     never overflow, whatever the paper size or browser. */
  /* The old full-bleed cover (width: 100% + 110px) also made every browser
     shrink the whole document to fit the sheet (x0.86). That is the scale the
     PDF has always had, so keep it explicitly now that nothing overflows. */
  html.nb-site body { zoom: 0.8615; }
  html.nb-site .cover-page,
  html.nb-site .section-divider {
    display: block !important; position: static !important;
    width: auto !important; min-height: 0 !important; height: auto !important;
    margin: 0 !important; overflow: visible !important;
    break-inside: auto !important; page-break-inside: auto !important;
  }
  html.nb-site .cover-page {
    padding: 30mm 24px 10mm !important; text-align: center;
    break-after: page !important; page-break-after: always !important;
  }
  html.nb-site .cover-page > * { margin-left: auto !important; margin-right: auto !important; }
  html.nb-site .cover-stats { display: flex; justify-content: center; }
  html.nb-site .cover-bottom-line,
  html.nb-site .cover-footer { position: static !important; }
  html.nb-site .cover-bottom-line { margin: 20mm auto 12px !important; }
  html.nb-site .section-divider {
    padding: 44mm 24px 10mm !important;
    break-before: page !important; page-break-before: always !important;
    break-after: page !important; page-break-after: always !important;
  }
  html.nb-site .section-divider > * { break-inside: avoid; page-break-inside: avoid; }
}

/* ---------- 6. SHARED UI: consent bar, file-ready dialog, first-run notice, credit line ---------- */
.nb-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #161B2C; color: #DAE0E6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13.5px; line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -8px 30px -12px rgba(0,0,0,.6);
  transform: translateY(110%); visibility: hidden; pointer-events: none;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.nb-consent.is-open { transform: none; visibility: visible; pointer-events: auto; transition: transform .28s ease, visibility 0s; }
.nb-consent strong { color: #F2EFEA; }
.nb-consent a { color: #A6D2BC; text-decoration: underline; }
.nb-consent__text { flex: 1 1 320px; }
.nb-consent__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.nb-consent__btn {
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
  padding: 10px 16px; min-height: 40px; border-radius: 6px;
  background: #84C0A0; color: #13171D; border: 1px solid #84C0A0;
}
.nb-consent__btn:hover { background: #A6D2BC; border-color: #A6D2BC; }
.nb-consent__btn--quiet { background: transparent; color: #DAE0E6; border-color: rgba(255,255,255,.28); }
.nb-consent__btn--quiet:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.nb-consent__btn:focus-visible { outline: 3px solid #E8A375; outline-offset: 2px; }
@media (min-width: 1000px) { .nb-consent { left: 84px; } }
@media (max-width: 999.5px) and (orientation: landscape) { .nb-consent { left: calc(68px + env(safe-area-inset-left, 0px)); } }
@media (max-width: 999.5px) and (orientation: portrait) { .nb-consent { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: 14px; } }

.nb-export, .nb-notice {
  position: fixed; inset: 0; z-index: 3200;
  display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(10, 13, 20, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nb-export.is-open, .nb-notice.is-open { display: flex; }
.nb-export__card, .nb-notice__card {
  margin: auto; width: 100%; max-width: 440px;
  background: #FFFFFF; color: #2D3748; border-radius: 12px;
  border: 1px solid #DCE3E9; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  padding: 26px 26px 22px; text-align: left;
}
.nb-notice__card { max-width: 520px; }
.nb-export__eyebrow, .nb-notice__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #5B8A72; margin-bottom: 8px; }
.nb-export__title, .nb-notice__title { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 700; color: #1A1F36; margin: 0 0 10px; line-height: 1.2; }
.nb-export__name { font-size: 13.5px; font-weight: 600; color: #1A1F36; margin: 0 0 6px; word-break: break-word; }
.nb-export__hint, .nb-notice__body { font-size: 14px; line-height: 1.6; color: #2D3748; margin: 0 0 18px; }
.nb-notice__body p { margin: 0 0 10px; }
.nb-notice__body ul { margin: 0 0 10px; padding-left: 20px; list-style: disc; }
.nb-notice__body li { margin-bottom: 6px; }
.nb-notice__body a { color: #4A7560; font-weight: 600; }
.nb-export__actions, .nb-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-export__btn, .nb-notice__btn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 11px 16px; min-height: 44px; border-radius: 6px; flex: 1 1 auto;
  background: #FFFFFF; color: #4A7560; border: 1px solid #DCE3E9;
}
.nb-export__btn:hover, .nb-notice__btn:hover { border-color: #5B8A72; }
.nb-export__btn--primary, .nb-notice__btn--primary { background: #5B8A72; border-color: #5B8A72; color: #FFFFFF; }
.nb-export__btn--primary:hover, .nb-notice__btn--primary:hover { background: #4A7560; border-color: #4A7560; }
.nb-export__btn--quiet { flex: 0 0 auto; border-color: transparent; color: #6B7B8F; }
.nb-export__btn:focus-visible, .nb-notice__btn:focus-visible { outline: 3px solid #C17B4A; outline-offset: 2px; }

/* footer credit / legal line on the tool pages */
.nb-credit {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11.5px; line-height: 1.6; text-align: center;
  color: rgba(242, 239, 234, .62);
  padding: 18px 16px 10px; margin: 0 auto; max-width: 640px;
}
.nb-credit a { color: rgba(242, 239, 234, .85); text-decoration: underline; text-underline-offset: 2px; }
.nb-credit a:hover { color: #A6D2BC; }
.nb-credit span { white-space: nowrap; }
html.app .nb-credit, html.app .page-container > .nb-credit { padding: 18px 16px 28px !important; margin: 0 auto !important; }
html.app[data-page="track"] .nb-credit { padding-bottom: 110px !important; }       /* clears Track's fixed Back / Next bar */
@media (max-width: 999.5px) and (orientation: portrait) {
  html.app .nb-credit, html.app .page-container > .nb-credit, html.app[data-page="track"] .nb-credit { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* Breathe sizes its canvas to the viewport; let the footer add height instead of overflowing */
html.app[data-page="breathe"] .page-container { height: auto !important; min-height: 100%; }
html.app[data-page="breathe"] #breathing-app-container { height: auto !important; flex: 1 1 auto; min-height: 0; }
@media print { .nb-consent, .nb-export, .nb-notice { display: none !important; } }

/* ---------- 7. DIRECTORY SIDEBAR: credit + legal links ---------- */
html.nb-site .side-credit { font-size: 12.5px; line-height: 1.6; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--border); }
html.nb-site .side-credit .side-nav-label { display: block; margin-bottom: 10px; }
html.nb-site .side-credit p { margin: 0 0 8px; }
html.nb-site .side-credit a { color: var(--sage-dark); font-weight: 600; text-decoration: none; }
html.nb-site .side-credit a:hover { text-decoration: underline; }
html.nb-site .side-credit-links { font-size: 12px; }
@media screen and (max-width: 999.5px) { html.nb-site .side-credit .side-nav-label { display: block; } }
@media print { .side-credit { display: none !important; } }

/* ---------- 8. QUIET TOOL FOOTER, SHARE SHEET, INSTALL NUDGE ---------- */
.nb-foot {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center; margin: 0 auto; max-width: 560px;
  padding: 22px 16px 28px;
}
.nb-foot__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.nb-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: .1px;
  color: rgba(242, 239, 234, .82); background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  padding: 8px 14px; min-height: 36px; cursor: pointer; text-decoration: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.nb-chip:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #F2EFEA; }
.nb-chip:focus-visible { outline: 3px solid #E8A375; outline-offset: 2px; }
.nb-chip svg { width: 15px; height: 15px; }
.nb-chip[hidden] { display: none; }
.nb-foot__links { margin: 0; font-size: 11px; letter-spacing: .3px; color: rgba(242, 239, 234, .38); line-height: 1.9; }
.nb-foot__links a { color: inherit; text-decoration: none; }
.nb-foot__links a:hover { color: rgba(242, 239, 234, .8); }
.nb-foot__links span { white-space: nowrap; }
html.app .page-container > .nb-foot, html.app .nb-foot { padding: 22px 16px 30px !important; margin: 0 auto !important; }
html.app[data-page="track"] .nb-foot { padding-bottom: 110px !important; }
@media (max-width: 999.5px) and (orientation: portrait) {
  html.app .nb-foot, html.app .page-container > .nb-foot, html.app[data-page="track"] .nb-foot { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* bottom sheet (share / install) */
.nb-sheet {
  position: fixed; inset: 0; z-index: 3100; display: none; align-items: flex-end; justify-content: center;
  background: rgba(10, 13, 20, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nb-sheet.is-open { display: flex; }
.nb-sheet__card {
  position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #FFFFFF; color: #2D3748; border-radius: 18px 18px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.6);
  animation: nbSheetUp .26s ease;
}
@keyframes nbSheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .nb-sheet { align-items: center; padding: 20px; } .nb-sheet__card { border-radius: 14px; } }
.nb-sheet__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F5F0EB; color: #6B7B8F; font-size: 22px; line-height: 1; cursor: pointer; }
.nb-sheet__close:hover { background: #E8ECF0; color: #1A1F36; }
.nb-sheet__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #5B8A72; margin: 0 0 6px; }
.nb-sheet__title { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; font-weight: 700; color: #1A1F36; margin: 0 0 8px; line-height: 1.2; padding-right: 36px; }
.nb-sheet__hint { font-size: 13.5px; color: #6B7B8F; margin: 0 0 14px; line-height: 1.5; }
.nb-sheet__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nb-sheet__row {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  font: inherit; font-size: 14px; font-weight: 600; color: #1A1F36; text-decoration: none; text-align: left;
  background: #FFFFFF; border: 1px solid #DCE3E9; border-radius: 10px; padding: 11px 12px; min-height: 46px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.nb-sheet__row:hover { border-color: #5B8A72; background: #F7FAF8; }
.nb-sheet__row:focus-visible { outline: 3px solid #C17B4A; outline-offset: 2px; }
.nb-sheet__row svg { width: 20px; height: 20px; flex: 0 0 auto; color: #4A7560; }
.nb-sheet__row--primary { grid-column: 1 / -1; background: #5B8A72; border-color: #5B8A72; color: #FFFFFF; justify-content: center; }
.nb-sheet__row--primary svg { color: #FFFFFF; }
.nb-sheet__row--primary:hover { background: #4A7560; border-color: #4A7560; }
.nb-sheet__row--soft { width: 100%; background: #F5F0EB; border-color: #F5F0EB; }
.nb-sheet__divider { height: 1px; background: #E8ECF0; margin: 16px 0 12px; }
.nb-sheet__steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; line-height: 1.55; color: #2D3748; }
.nb-sheet__steps li { margin-bottom: 8px; }
.nb-sheet__steps strong { color: #1A1F36; }
@media (max-width: 420px) { .nb-sheet__rows { grid-template-columns: 1fr; } }

/* directory sidebar: share button sits with print + theme */
html.nb-site .side-share {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-height: 44px; color: var(--sage-dark); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 3px; cursor: pointer; transition: all .16s;
}
html.nb-site .side-share:hover { background: var(--sage); border-color: var(--sage); color: var(--on-accent); }
html.nb-site .side-share svg { width: 17px; height: 17px; }
@media print { .nb-foot, .nb-sheet, .side-share { display: none !important; } }
