:root{--suite-fallback-1:#071122;--suite-fallback-2:#c7cde2;--suite-fallback-3:#ffffff;--suite-fallback-4:#17203d;--suite-fallback-5:#020c1f;--suite-fallback-6:#dce2e9;}
/* Shared account header. Same three controls, same size, on every app.
   Corner radius 999 is the existing shared-control radius. corner-shape is the G2 curve. */
html, body {
  background-color: var(--bg-canvas, var(--ui-bg, var(--paper, var(--navy, var(--palette-bg, var(--suite-fallback-1))))));
  overscroll-behavior-y: none;
}
html body header.family-topbar {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 0 16px 0 8px;
  width: 100%;
  max-width: 100%;
  z-index: 80;
}
html body .suite-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  max-width: 100%;
}
/* The three controls use the physical screen edge. The bar itself stays the page width,
   so a reserved scrollbar does not stretch the band or slide Your apps. */
html body header.family-topbar .suite-header,
html body header.site-header .suite-header {
  position: fixed;
  top: 6px;
  left: auto;
  right: calc(100% - 100vw);
  width: auto;
  max-width: none;
  height: 44px;
  margin: 0;
  padding: 0 16px 0 8px;
  box-sizing: border-box;
  z-index: 90;
  flex-wrap: nowrap;
  gap: 8px;
}
html body header.family-topbar button.suite-theme,
html body header.site-header button.suite-theme {
  position: fixed;
  top: 6px;
  left: auto;
  right: calc(100% - 100vw + 400px);
  z-index: 91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ui-control-line, var(--ui-line, var(--suite-fallback-2)));
  border-radius: 999px;
  corner-shape: squircle;
  background: var(--ui-panel, var(--suite-fallback-3));
  color: var(--ui-text, var(--suite-fallback-4));
  cursor: pointer;
  flex: none;
  box-shadow: none;
}
html body header.family-topbar button.suite-theme:hover,
html body header.family-topbar button.suite-theme:focus-visible,
html body header.site-header button.suite-theme:hover,
html body header.site-header button.suite-theme:focus-visible {
  background: var(--ui-panel, var(--suite-fallback-3));
  border-color: var(--ui-control-line, var(--ui-line, var(--suite-fallback-2)));
  color: var(--ui-text, var(--suite-fallback-4));
}
html body header.family-topbar button.suite-theme svg,
html body header.site-header button.suite-theme svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html body header.family-topbar button.suite-theme .theme-moon,
html body header.site-header button.suite-theme .theme-moon {
  display: none;
}
html[data-theme="light"] body header.family-topbar button.suite-theme .theme-sun,
html[data-theme="light"] body header.site-header button.suite-theme .theme-sun {
  display: none;
}
html[data-theme="light"] body header.family-topbar button.suite-theme .theme-moon,
html[data-theme="light"] body header.site-header button.suite-theme .theme-moon {
  display: block;
}
html body header.site-header:has(#board-signin-link) .header-inner {
  padding-top: 62px;
}
html body .suite-header :is(a.suite-control, button.suite-control) {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--ui-control-line, var(--ui-line, var(--suite-fallback-2)));
  border-radius: 999px;
  corner-shape: squircle;
  background: var(--ui-panel, var(--suite-fallback-3));
  color: var(--ui-text, var(--suite-fallback-4));
  font: 600 14px/1.2 system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  box-shadow: none;
}
html body .suite-header :is(a.suite-control, button.suite-control):hover,
html body .suite-header :is(a.suite-control, button.suite-control):focus-visible {
  background: var(--ui-panel, var(--suite-fallback-3));
  border-color: var(--ui-control-line, var(--ui-line, var(--suite-fallback-2)));
  color: var(--ui-text, var(--suite-fallback-4));
}
html body .suite-header svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
html[data-palette="load-board"] body header.family-topbar {
  background: var(--palette-white, var(--suite-fallback-3));
  color: var(--palette-navy, var(--suite-fallback-5));
  border-bottom-color: var(--palette-line, var(--suite-fallback-6));
}
html[data-palette="load-board"] body .suite-header :is(a.suite-control, button.suite-control),
html[data-palette="load-board"] body .suite-header :is(a.suite-control, button.suite-control):hover,
html[data-palette="load-board"] body header.family-topbar button.suite-theme,
html[data-palette="load-board"] body header.family-topbar button.suite-theme:hover,
html[data-palette="load-board"] body header.site-header button.suite-theme,
html[data-palette="load-board"] body header.site-header button.suite-theme:hover {
  background: var(--palette-white, var(--suite-fallback-3));
  color: var(--palette-navy, var(--suite-fallback-5));
  border-color: var(--palette-navy, var(--suite-fallback-5));
}
/* The copied board Sign out and any leftover Your apps stay out of the site header.
   Sign in remains, and shows only while the visitor is signed out. */
.header-actions > :is(button.signout-button, a.family-apps-control) {
  display: none !important;
}
#board-sign-in .login-brand {
  display: inline-block;
  background: var(--palette-navy, var(--suite-fallback-5));
  padding: 10px 14px;
  border-radius: 12px;
}
@media (max-width: 420px) {
  html body header.family-topbar { padding-right: 16px; }
  html body header.family-topbar .suite-header,
  html body header.site-header .suite-header {
    gap: 4px;
    padding-right: 16px;
  }
  html body header.family-topbar button.suite-theme,
  html body header.site-header button.suite-theme {
    left: 16px;
    right: auto;
  }
  /* Owner, 29 Nov 2026: on a phone the sun button sat on top of Your apps. Three 120px buttons do not fit
     beside it under 420px. A phone keeps the 16px side gutter on both edges: the sun starts at 16px and
     ends at 60px, Your apps starts 8px after it at 68px and keeps its 120px with the grid icon (the
     launcher, c88c4bd5), and Settings and Sign out share what is left:
     (100vw - 16 - 44 - 8 - 120 - two 4px gaps - 16) / 2 = (100vw - 212px) / 2, never under their words
     with 8px either side. Same spot on every family page; a computer does not change. */
  html body .suite-header :is(a.suite-control, button.suite-control) {
    width: calc((100vw - 212px) / 2);
    min-width: 0;
    max-width: 120px;
    padding: 0 4px;
    gap: 4px;
    font-size: 13px;
  }
  html body .suite-header a.suite-control.suite-apps { width: 120px; }
}
@media (max-width: 360px) {
  /* 12px words: Settings and Sign out need 68px; Your apps gives up what they need under 348px. */
  html body .suite-header :is(a.suite-control, button.suite-control) {
    width: max(68px, calc((100vw - 212px) / 2));
    min-width: 0;
    max-width: 120px;
    padding: 0 4px;
    font-size: 12px;
    gap: 4px;
  }
  html body .suite-header a.suite-control.suite-apps { width: min(120px, calc(100vw - 228px)); }
}
@media (max-width: 328px) {
  /* Under 329px a third button cannot hold the grid icon and the words with 8px either side; the words carry it. */
  html body .suite-header a.suite-control.suite-apps svg { display: none; }
}
/* Full wordmarks. One picture carries the words, so the dark picture has an empty alt. */
.brand-lockup .brand-logo,
a.brand-logo-wrap .brand-logo {
  height: 48px;
  width: auto;
  max-width: min(280px, 46vw);
}
.brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-dark { display: block; }
/* Owner's rule: no underlined links (29-30 Nov 2026). A link is a button or a plain text link in the family style. A page may
   still underline a link inside running text with its own rule (the no-underline gate holds that to real prose). */
html body a { text-decoration: none; }
