/* Stonefold Labs. One stylesheet, no imports, no fonts from anywhere but the reader's own device.

   The shape is a sibling of longlinelabs.com, the owner's other company: a stripe along the top, the mark
   and a serif wordmark, a rail down the left, a headline beside a picture, hairlines between sections.
   Stonefold's own: the four sections of the one app each beside a drawing, and a band for
   encryption, privacy and security.
   The brand colours are Stonefold's own: evergreen #293b36, sage #a9b8a1, warm ivory #f2f0e8, amber #d5a96c.
   The page wears one of the app's eight themes. Until a reader picks one it follows the device's light or dark
   setting; the picker is theme.js, the site's one script, and it sets data-theme on <html>. */

:root {
  --rail: 3.5rem;
  --f-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --f-book: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* Every theme the app has. The colours are the app's own (LookThemes.swift) turned into the site's roles, and each theme's
   face is a font that comes with the reader's device: nothing is loaded. The display face is the rounded one in every
   theme: the owner's "Lowercase, rounded" (2026-11-18, about 11:35), on all eight themes as built (Picked; his to
   change to Sage and Linen only). The demo's window keeps the app's own faces, serif headings in Sage and Linen. Where nobody has chosen, the page follows the device:
   Sage when it is dark, Linen when it is light. */

:root {
  color-scheme: light;
  --page: #f2f0e8;
  --raised: #f9f7f1;
  --text: #293b36;
  --quiet: #4f6057;
  --link: #1f5143;
  --rule: #d8d5c9;
  --fill: #293b36;
  --on-fill: #f2f0e8;
  --stripe: #d5a96c;
  --amber-mark: #9c6b2b;
  --sage-mark: #5b7a57;
  --stone: #293b36;
  --band: #293b36;
  --band-card: #31463f;
  --band-rule: #40564e;
  --band-text: #f2f0e8;
  --band-quiet: #c5d0be;
  --band-amber: #d5a96c;
  --band-sage: #a9b8a1;
  --event: #1f5143;
  --mark: #1f5143;
  --sans: var(--f-system);
  --display: var(--f-rounded);
}

/* Dark, because the device is, where nobody has chosen a theme and the script has not run. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #1c2925;
    --raised: #24332e;
    --text: #f2f0e8;
    --quiet: #b2bfb6;
    --link: #a9b8a1;
    --rule: #33443e;
    --fill: #a9b8a1;
    --on-fill: #1c2925;
    --stripe: #d5a96c;
    --amber-mark: #d5a96c;
    --sage-mark: #a9b8a1;
    --stone: #a9b8a1;
    --band: #24332e;
    --band-card: #2c3d37;
    --band-rule: #3a4c45;
    --band-text: #f2f0e8;
    --band-quiet: #c5d0be;
    --band-amber: #d5a96c;
    --band-sage: #a9b8a1;
    --event: #a9b8a1;
    --mark: #a9b8a1;
    --sans: var(--f-system);
    --display: var(--f-rounded);
}
}

/* Sage */
:root[data-theme="sage"] {
  color-scheme: dark;
  --page: #1c2925;
  --raised: #24332e;
  --text: #f2f0e8;
  --quiet: #b2bfb6;
  --link: #a9b8a1;
  --rule: #33443e;
  --fill: #a9b8a1;
  --on-fill: #1c2925;
  --stripe: #d5a96c;
  --amber-mark: #d5a96c;
  --sage-mark: #a9b8a1;
  --stone: #a9b8a1;
  --band: #24332e;
  --band-card: #2c3d37;
  --band-rule: #3a4c45;
  --band-text: #f2f0e8;
  --band-quiet: #c5d0be;
  --band-amber: #d5a96c;
  --band-sage: #a9b8a1;
  --event: #a9b8a1;
  --mark: #a9b8a1;
  --sans: var(--f-system);
  --display: var(--f-rounded);
}

/* Linen */
:root[data-theme="linen"] {
  color-scheme: light;
  --page: #f2f0e8;
  --raised: #f9f7f1;
  --text: #293b36;
  --quiet: #4f6057;
  --link: #1f5143;
  --rule: #d8d5c9;
  --fill: #293b36;
  --on-fill: #f2f0e8;
  --stripe: #d5a96c;
  --amber-mark: #9c6b2b;
  --sage-mark: #5b7a57;
  --stone: #293b36;
  --band: #293b36;
  --band-card: #31463f;
  --band-rule: #40564e;
  --band-text: #f2f0e8;
  --band-quiet: #c5d0be;
  --band-amber: #d5a96c;
  --band-sage: #a9b8a1;
  --event: #1f5143;
  --mark: #1f5143;
  --sans: var(--f-system);
  --display: var(--f-rounded);
}

/* Night */
:root[data-theme="night"] {
  color-scheme: dark;
  --page: #141518;
  --raised: #1a1b1f;
  --text: #e9ebee;
  --quiet: #a4a9b3;
  --link: #6aa3ff;
  --rule: #2a2c33;
  --fill: #2f6fe0;
  --on-fill: #ffffff;
  --stripe: #3381fa;
  --amber-mark: #6aa3ff;
  --sage-mark: #7fb8c9;
  --stone: #6aa3ff;
  --band: #1a1b1f;
  --band-card: #22242a;
  --band-rule: #32353d;
  --band-text: #e9ebee;
  --band-quiet: #b4b9c2;
  --band-amber: #6aa3ff;
  --band-sage: #7fb8c9;
  --event: #6aa3ff;
  --mark: #3381fa;
  --sans: var(--f-system);
  --display: var(--f-rounded);
}

/* Ember */
:root[data-theme="ember"] {
  color-scheme: dark;
  --page: #17140f;
  --raised: #201c16;
  --text: #efe6d6;
  --quiet: #b3a58f;
  --link: #e0903a;
  --rule: #342d22;
  --fill: #cc7722;
  --on-fill: #17140f;
  --stripe: #cc7722;
  --amber-mark: #e0903a;
  --sage-mark: #b3a58f;
  --stone: #cc7722;
  --band: #201c16;
  --band-card: #29241c;
  --band-rule: #3b3428;
  --band-text: #efe6d6;
  --band-quiet: #bfb199;
  --band-amber: #e0903a;
  --band-sage: #c8b894;
  --event: #e0903a;
  --mark: #cc7722;
  --sans: var(--f-mono);
  --display: var(--f-rounded);
}

/* Paper */
:root[data-theme="paper"] {
  color-scheme: light;
  --page: #f6f3ec;
  --raised: #fbf9f4;
  --text: #1f2d2f;
  --quiet: #4e5f60;
  --link: #1f6f78;
  --rule: #d9d3c4;
  --fill: #1f6f78;
  --on-fill: #ffffff;
  --stripe: #1f6f78;
  --amber-mark: #9c6b2b;
  --sage-mark: #1f6f78;
  --stone: #1f6f78;
  --band: #1c4a50;
  --band-card: #255a61;
  --band-rule: #32707a;
  --band-text: #f6f3ec;
  --band-quiet: #c3d6d6;
  --band-amber: #e3bc7c;
  --band-sage: #9fd0d0;
  --event: #1f6f78;
  --mark: #1f6f78;
  --sans: var(--f-serif);
  --display: var(--f-rounded);
}

/* Dusk */
:root[data-theme="dusk"] {
  color-scheme: dark;
  --page: #1b1a26;
  --raised: #23212f;
  --text: #ece8f5;
  --quiet: #aaa6bd;
  --link: #c4a7f0;
  --rule: #34314a;
  --fill: #c4a7f0;
  --on-fill: #1b1a26;
  --stripe: #c4a7f0;
  --amber-mark: #e6b99a;
  --sage-mark: #c4a7f0;
  --stone: #c4a7f0;
  --band: #23212f;
  --band-card: #2c2a3c;
  --band-rule: #3b3850;
  --band-text: #ece8f5;
  --band-quiet: #bab6cd;
  --band-amber: #e6b99a;
  --band-sage: #c4a7f0;
  --event: #c4a7f0;
  --mark: #c4a7f0;
  --sans: var(--f-rounded);
  --display: var(--f-rounded);
}

/* Clay */
:root[data-theme="clay"] {
  color-scheme: light;
  --page: #f5eee6;
  --raised: #faf5ee;
  --text: #3a2a22;
  --quiet: #6a5548;
  --link: #9e4426;
  --rule: #ddd0c2;
  --fill: #9e4426;
  --on-fill: #ffffff;
  --stripe: #9e4426;
  --amber-mark: #9e4426;
  --sage-mark: #6b7a52;
  --stone: #9e4426;
  --band: #4a2a1e;
  --band-card: #5a3626;
  --band-rule: #70463a;
  --band-text: #f5eee6;
  --band-quiet: #dcc6b8;
  --band-amber: #e0a07a;
  --band-sage: #b5c29a;
  --event: #9e4426;
  --mark: #9e4426;
  --sans: var(--f-serif);
  --display: var(--f-rounded);
}

/* Plain: the system's own colours, light or dark as the device is set. */
:root[data-theme="plain"] {
  color-scheme: light;
  --page: #ffffff;
  --raised: #f5f5f7;
  --text: #1d1d1f;
  --quiet: #6e6e73;
  --link: #0066cc;
  --rule: #d2d2d7;
  --fill: #0066cc;
  --on-fill: #ffffff;
  --stripe: #0071e3;
  --amber-mark: #0071e3;
  --sage-mark: #6e6e73;
  --stone: #1d1d1f;
  --band: #1d1d1f;
  --band-card: #2c2c2e;
  --band-rule: #3a3a3c;
  --band-text: #f5f5f7;
  --band-quiet: #c7c7cc;
  --band-amber: #64d2ff;
  --band-sage: #8e8e93;
  --event: #0066cc;
  --mark: #0066cc;
  --sans: var(--f-system);
  --display: var(--f-rounded);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="plain"] {
    color-scheme: dark;
    --page: #1c1c1e;
    --raised: #2c2c2e;
    --text: #f5f5f7;
    --quiet: #a1a1a6;
    --link: #2997ff;
    --rule: #3a3a3c;
    --fill: #2997ff;
    --on-fill: #000000;
    --stripe: #2997ff;
    --amber-mark: #64d2ff;
    --sage-mark: #a1a1a6;
    --stone: #a1a1a6;
    --band: #2c2c2e;
    --band-card: #3a3a3c;
    --band-rule: #48484a;
    --band-text: #f5f5f7;
    --band-quiet: #c7c7cc;
    --band-amber: #64d2ff;
    --band-sage: #a1a1a6;
    --event: #2997ff;
    --mark: #2997ff;
    --sans: var(--f-system);
    --display: var(--f-rounded);
}
}

/* Each theme's swatch in the menu: its page and its accent. */
.theme-option[data-look="sage"] {
  --sw-page: #1c2925;
  --sw-accent: #a9b8a1;
}

.theme-option[data-look="linen"] {
  --sw-page: #f2f0e8;
  --sw-accent: #293b36;
}

.theme-option[data-look="night"] {
  --sw-page: #141518;
  --sw-accent: #2f6fe0;
}

.theme-option[data-look="ember"] {
  --sw-page: #17140f;
  --sw-accent: #cc7722;
}

.theme-option[data-look="paper"] {
  --sw-page: #f6f3ec;
  --sw-accent: #1f6f78;
}

.theme-option[data-look="dusk"] {
  --sw-page: #1b1a26;
  --sw-accent: #c4a7f0;
}

.theme-option[data-look="clay"] {
  --sw-page: #f5eee6;
  --sw-accent: #9e4426;
}

.theme-option[data-look="plain"] {
  --sw-page: #ffffff;
  --sw-accent: #0066cc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 1rem/1.6 var(--sans);
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img,
svg {
  display: block;
}

/* The company's mark, drawn inline so its stones can take the theme's own colour, as the app's icon does. */
.mark rect {
  fill: var(--mark);
}

/* Words for screen readers only. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}

.skip:focus {
  top: 1rem;
}

/* Links */

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The top of every page */

.top {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  background: var(--raised);
  border-top: 3px solid var(--stripe);
  border-bottom: 1px solid var(--rule);
}

/* The mark in its own corner, above the rail, as Longline's sits above its own. */

.corner {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--rule);
}

.corner svg {
  width: 2.25rem;
  height: 2.25rem;
}

.corner:focus-visible {
  outline-offset: -4px;
}

/* Beside the wordmark the mark shows only on phones, where there is no corner. */
.brand-marks {
  display: none;
}

.foot .brand-marks {
  display: inline-flex;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font: 500 1.375rem/1.75rem var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand .mark {
  width: 2.25rem;
  height: 2.25rem;
}

/* The name is drawn, not typed (the owner picked draft A on 2026-11-18): the mark's own parts, one stroke with round
   ends, square bowls and the gate at the bottom of each o. It takes the text colour, so every theme draws it the same
   shape in its own ink. The drawing is ../StonefoldApp/docs/drafts/wordmark. */
.brand .wordmark {
  display: block;
  width: auto;
  height: 1.625rem;
}

/* The theme picker: one button that opens a short list of the app's eight themes. Hidden until theme.js is
   running, so it is never a dead button. */

.top {
  position: relative;
  z-index: 3;
}

.themes {
  position: relative;
  margin: 0 0 0 auto;
}

.theme {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  color: var(--text);
  font: 500 0.9375rem/1.25 var(--sans);
  cursor: pointer;
}

.theme[hidden],
.theme-menu[hidden] {
  display: none;
}

.theme:hover,
.theme[aria-expanded="true"] {
  border-color: var(--quiet);
}

.theme:focus-visible,
.theme-option:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.swatch {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background: linear-gradient(135deg, var(--sw-page, var(--page)) 50%, var(--sw-accent, var(--fill)) 50%);
  border: 1px solid var(--quiet);
  border-radius: 50%;
}

.chevron {
  flex: none;
  color: var(--quiet);
}

.theme[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  display: grid;
  gap: 0.125rem;
  width: 17.5rem;
  max-width: calc(100vw - 2.5rem);
  padding: 0.375rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(20, 30, 27, 0.2);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.625rem;
  background: none;
  border: 0;
  border-radius: 0.5rem;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.theme-option:hover {
  background: var(--page);
}

.theme-option[aria-pressed="true"] {
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--link);
}

.theme-option strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.theme-option .theme-note {
  display: block;
  color: var(--quiet);
  font-size: 0.8125rem;
  line-height: 1.3;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-block;
  padding: 0.375rem 0;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* Under the header: a rail down the left for the app's four sections and its lock, the page beside it. */

.frame {
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

.column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rail {
  position: relative;
  z-index: 2;
  background: var(--raised);
  border-right: 1px solid var(--rule);
}

/* Narrow, the rail shows each section's sign. Pointed at or tabbed into, it opens over the page to show the names. */
.rail ul {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: var(--rail);
  height: 100vh;
  max-height: 100%;
  margin: 0;
  padding: 0.75rem 0.375rem;
  overflow: hidden;
  background: var(--raised);
  list-style: none;
}

.rail:hover ul,
.rail:focus-within ul {
  width: 15.5rem;
  border-right: 1px solid var(--rule);
  box-shadow: 0.5rem 0 1.5rem rgba(20, 30, 27, 0.12);
}

.rail a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  color: var(--text);
  font: 500 1.0625rem/1.25 var(--display);
  text-decoration: none;
  white-space: nowrap;
}

.rail a:hover,
.rail a[aria-current="page"] {
  background: var(--page);
  font-weight: 500;
  text-decoration: none;
}

.rail a:focus-visible {
  outline-offset: -2px;
}

.rail .glyph {
  flex: none;
}

/* The signs: line drawings made for the site, in the text's colour, with one part in amber or sage. */

.glyph {
  color: var(--text);
}

.glyph .accent {
  stroke: var(--accent);
}

.glyph .accent-fill {
  fill: var(--accent);
}

.glyph-amber {
  --accent: var(--amber-mark);
}

.glyph-sage {
  --accent: var(--sage-mark);
}

/* Headings and text */

/* "Lowercase, rounded": display text is set in lowercase by the stylesheet alone, so the words underneath keep their
   capitals for screen readers, search and copying. A name that must keep its own case goes in <span class="as-is">. */
h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: lowercase;
  text-wrap: balance;
}

.as-is {
  text-transform: none;
}

h1 {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h3,
h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

p,
ul {
  margin: 0 0 1rem;
}

.quiet {
  color: var(--quiet);
}

.label {
  margin: 0;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Home: the headline beside the mark */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--link);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: lowercase;
}

.lede {
  max-width: 34em;
  margin: 1rem 0 0;
  color: var(--quiet);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 2rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  background: var(--fill);
  border-radius: 0.5rem;
  color: var(--on-fill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

.hero-art svg {
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin: 0 auto;
}

.hero-art .stones {
  fill: var(--stone);
}

/* Sections, parted by a hairline */

.section {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--rule);
}

.intro {
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* The reasons: each a belief, in the display face, with one plain sentence about what the app does. */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.reasons li {
  padding: 1.25rem 1.375rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--stripe);
  border-radius: 0.5rem;
}

.reasons .price {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}

.reasons .price h3 {
  flex: 1 1 18rem;
}

.reasons .price p:last-child {
  flex-basis: 100%;
}

.reasons .figure {
  margin: 0;
  color: var(--link);
  font: 500 2.25rem/1.1 var(--display);
  letter-spacing: -0.01em;
}

.reasons h3 {
  font: 500 1.375rem/1.3 var(--display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.reasons p {
  margin: 0.5rem 0 0;
  color: var(--quiet);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* One section of the app: its words beside a drawing. Every other one is turned round. */

.part {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}

.part:nth-of-type(even) .part-words {
  order: 2;
}

.part-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font: 500 1.75rem/1.2 var(--display);
  letter-spacing: -0.005em;
}

.part-lede {
  color: var(--quiet);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.points p {
  margin: 0.125rem 0 0;
  color: var(--quiet);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Where a picture of the app goes. Until the app's own pictures are made, a drawing stands there:
   shapes only, no words. A picture is an <img> in the same figure, and keeps the caption. */

.slot {
  margin: 0;
}

.slot .drawing,
.slot img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(20, 30, 27, 0.08);
}

.slot img {
  background: var(--raised);
  border: 1px solid var(--rule);
}

.slot figcaption,
.vault figcaption {
  margin-top: 0.75rem;
  color: var(--quiet);
  font-size: 0.875rem;
  line-height: 1.45;
}

.d-panel {
  fill: var(--raised);
  stroke: var(--rule);
}

.d-rule,
.d-rule2 {
  fill: none;
  stroke: var(--rule);
}

.d-rule2 {
  stroke: var(--quiet);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.d-ink {
  fill: var(--text);
}

.d-soft {
  fill: var(--quiet);
  opacity: 0.45;
}

.d-faint {
  fill: var(--quiet);
  opacity: 0.25;
}

.d-quietfill {
  fill: var(--quiet);
  opacity: 0.7;
}

.d-linkfill {
  fill: var(--link);
  opacity: 0.6;
}

.d-pill,
.d-tile {
  fill: var(--page);
  stroke: var(--rule);
}

.d-sel {
  fill: var(--page);
}

.d-today {
  fill: none;
  stroke: var(--amber-mark);
  stroke-width: 1.5;
}

.d-event {
  fill: var(--event);
}

.d-ring {
  fill: none;
  stroke: var(--quiet);
  stroke-width: 1.5;
}

.d-bill {
  fill: none;
  stroke: var(--amber-mark);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.d-done,
.d-sagefill {
  fill: var(--sage-mark);
}

.d-amberfill {
  fill: var(--amber-mark);
}

.d-tick {
  fill: none;
  stroke: var(--raised);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aside {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font: italic 1.0625rem/1.5 var(--display);
  text-align: center;
}

/* How the sections work together: three cards, each headed by the two signs it joins. */

.flows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.flows li {
  padding: 1.125rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}

.flow-signs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.arrow {
  color: var(--quiet);
}

.flows h3 {
  font: 500 1.25rem/1.75rem var(--display);
}

.flows li > p:last-child {
  margin: 0.375rem 0 0;
  color: var(--quiet);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Encryption, privacy and security: an evergreen band from edge to edge. Inside it the page's
   colours are set again, so text, signs, links and outlines all read on the dark ground. */

.band {
  --text: var(--band-text);
  --quiet: var(--band-quiet);
  --link: var(--band-text);
  --rule: var(--band-rule);
  --raised: var(--band-card);
  --amber-mark: var(--band-amber);
  --sage-mark: var(--band-sage);
  padding: 3.5rem 0 4rem;
  background: var(--band);
  border-top: 3px solid var(--stripe);
  color: var(--text);
  scroll-margin-top: 0;
}

.band .intro {
  color: var(--quiet);
}

.vault {
  max-width: 46rem;
  margin: 2.5rem auto;
  text-align: center;
}

.vault-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  background: var(--raised);
  border: 1px solid var(--stripe);
  border-radius: 2rem;
  text-align: left;
}

.vault-lock strong {
  display: block;
  font: 500 1.125rem/1.3 var(--display);
}

.vault-lock span {
  color: var(--quiet);
  font-size: 0.875rem;
}

.vault-lock strong {
  color: var(--text);
}

/* The lines from the lock down to the three files. */
.vault-files {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 2.5rem 0 0;
  list-style: none;
}

.vault-files::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 1.25rem;
  border-left: 1px solid var(--stripe);
}

.vault-files::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: calc((100% - 2rem) / 6);
  right: calc((100% - 2rem) / 6);
  border-top: 1px solid var(--stripe);
}

.vault-files li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.375rem;
  padding: 1.125rem 0.75rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}

.vault-files li::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  left: 50%;
  height: 1.25rem;
  border-left: 1px solid var(--stripe);
}

.vault-files strong {
  font: 500 1.125rem/1.3 var(--display);
}

.vault-key {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--quiet);
  font-size: 0.875rem;
}

.keeps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keeps li {
  padding: 1.125rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}

.keeps h3 {
  font: 500 1.25rem/1.75rem var(--display);
}

.keeps p {
  margin: 0.375rem 0 0;
  color: var(--quiet);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.minor {
  margin-top: 1.75rem;
  font: 500 1.25rem/1.75rem var(--display);
}

.minor + p {
  margin-top: 0.375rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.prose {
  max-width: 40rem;
}

/* Privacy, Support and the "not here" page */

.page {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.page h1 {
  margin-bottom: 1rem;
}

.page h2 {
  margin-top: 2.75rem;
  font-size: 1.5rem;
}

.page p {
  font-size: 1.0625rem;
}

/* The foot of every page */

footer {
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 0.875rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.foot .brand {
  display: inline-flex;
  padding: 0;
  font-size: 1.0625rem;
}

.foot .brand .mark {
  width: 1.5rem;
  height: 1.5rem;
}

.foot .brand .wordmark {
  height: 1.25rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a {
  display: inline-block;
  padding: 0.375rem 0;
}

.foot ul a {
  color: var(--quiet);
  text-decoration: none;
}

.foot ul a:hover {
  text-decoration: underline;
}

/* Narrower screens */

@media (max-width: 62rem) {
  .keeps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 56rem) {
  .reasons {
    grid-template-columns: minmax(0, 1fr);
  }

  .split,
  .part {
    grid-template-columns: minmax(0, 1fr);
  }

  .part:nth-of-type(even) .part-words {
    order: 0;
  }

  .slot {
    max-width: 30rem;
  }

  .flows {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phones: no corner and no rail. The mark sits beside the wordmark, and the page is read from the top. */
@media (max-width: 44rem) {
  .top,
  .frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .corner,
  .rail {
    display: none;
  }

  .brand-marks {
    display: inline-flex;
  }

  .wrap {
    padding: 0 1.25rem;
  }

  .themes {
    order: 2;
  }

  .bar nav {
    order: 3;
    flex-basis: 100%;
  }

  h1 {
    font-size: 2.125rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-art {
    display: none;
  }

  .section {
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }

  .part {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
  }

  .part-name {
    font-size: 1.5rem;
  }

  .points,
  .keeps {
    grid-template-columns: minmax(0, 1fr);
  }

  .band {
    padding: 2.5rem 0 3rem;
  }

  /* The three files stand in a column, joined down the left. */
  .vault-files {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding-top: 1.25rem;
    text-align: left;
  }

  .vault-files::after,
  .vault-files li::before {
    display: none;
  }

  .vault-files li {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .page {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 26rem) {
  .vault-files li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vault-key {
    grid-column: 2;
  }
}

/* ===== The demo: a working copy of the app's window (docs/demo.js) =====

   Everything below is drawn only once demo.js has built the window; without it, the section shows one line.
   The window wears one of the app's eight themes on its own, so the demo's theme menu never touches the page:
   the colours are LookThemes.swift's (background, pane, accent, on-accent), the words' colours are the page's
   measured ones, and each theme's face, headings, figures and density are its draft's. Nothing moves by itself. */

.demo .intro {
  margin-bottom: 1.25rem;
}

.demo-mount {
  min-height: 3rem;
}

/* Without the script the section is only its heading and one line saying so. */
.demo:not(.is-live) .intro,
.demo:not(.is-live) .demo-about {
  display: none;
}

.demo-off {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  color: var(--quiet);
}

.demo-about {
  display: grid;
  gap: 0.25rem;
  margin: 1.25rem 0 0;
  padding: 0 0 0 1.125rem;
  color: var(--quiet);
  font-size: 0.9375rem;
}

.sfd[data-look="sage"] { color-scheme: dark; --w-bg: #1c2925; --w-pane: #24332e; --w-text: #f2f0e8; --w-quiet: #b2bfb6; --w-rule: #33443e; --w-accent: #a9b8a1; --w-on-accent: #1c2925; --w-link: #a9b8a1; --w-warn: #f0a39b; --w-face: var(--f-system); --w-head: var(--f-book); --w-fig: var(--f-mono); --w-d: 0.75; --w-shadow: rgba(0, 0, 0, 0.5); }
.sfd[data-look="linen"] { color-scheme: light; --w-bg: #f2f0e8; --w-pane: #e8e5da; --w-text: #293b36; --w-quiet: #4f6057; --w-rule: #d8d5c9; --w-accent: #1f5143; --w-on-accent: #f2f0e8; --w-link: #1f5143; --w-warn: #a8321f; --w-face: var(--f-system); --w-head: var(--f-book); --w-fig: var(--f-mono); --w-d: 0.75; --w-shadow: rgba(30, 40, 35, 0.22); }
.sfd[data-look="night"] { color-scheme: dark; --w-bg: #141518; --w-pane: #1a1b1f; --w-text: #e9ebee; --w-quiet: #a4a9b3; --w-rule: #2a2c33; --w-accent: #3381fa; --w-fill: #2f6fe0; --w-on-accent: #ffffff; --w-link: #6aa3ff; --w-warn: #f0a39b; --w-face: var(--f-system); --w-head: var(--f-system); --w-fig: var(--f-mono); --w-d: 0.75; --w-shadow: rgba(0, 0, 0, 0.6); }
.sfd[data-look="ember"] { color-scheme: dark; --w-bg: #17140f; --w-pane: #201c16; --w-text: #efe6d6; --w-quiet: #b3a58f; --w-rule: #342d22; --w-accent: #cc7722; --w-on-accent: #17140f; --w-link: #e0903a; --w-warn: #f0a39b; --w-face: var(--f-mono); --w-head: var(--f-mono); --w-fig: var(--f-mono); --w-d: 0.75; --w-shadow: rgba(0, 0, 0, 0.6); }
.sfd[data-look="paper"] { color-scheme: light; --w-bg: #f6f3ec; --w-pane: #ede8dd; --w-text: #1f2d2f; --w-quiet: #4e5f60; --w-rule: #d9d3c4; --w-accent: #1f6f78; --w-on-accent: #ffffff; --w-link: #1f6f78; --w-warn: #a8321f; --w-face: var(--f-serif); --w-head: var(--f-serif); --w-fig: var(--f-mono); --w-d: 1; --w-shadow: rgba(30, 40, 40, 0.2); }
.sfd[data-look="dusk"] { color-scheme: dark; --w-bg: #1b1a26; --w-pane: #23212f; --w-text: #ece8f5; --w-quiet: #aaa6bd; --w-rule: #34314a; --w-accent: #c4a7f0; --w-on-accent: #1b1a26; --w-link: #c4a7f0; --w-warn: #f0a39b; --w-face: var(--f-rounded); --w-head: var(--f-rounded); --w-fig: var(--f-mono); --w-d: 0.75; --w-shadow: rgba(0, 0, 0, 0.6); }
.sfd[data-look="clay"] { color-scheme: light; --w-bg: #f5eee6; --w-pane: #ece2d6; --w-text: #3a2a22; --w-quiet: #6a5548; --w-rule: #ddd0c2; --w-accent: #9e4426; --w-on-accent: #ffffff; --w-link: #9e4426; --w-warn: #a8321f; --w-face: var(--f-serif); --w-head: var(--f-serif); --w-fig: var(--f-serif); --w-d: 1; --w-shadow: rgba(60, 35, 20, 0.2); }
.sfd[data-look="plain"] { color-scheme: light; --w-bg: #ffffff; --w-pane: #f5f5f7; --w-text: #1d1d1f; --w-quiet: #6e6e73; --w-rule: #d2d2d7; --w-accent: #0066cc; --w-on-accent: #ffffff; --w-link: #0066cc; --w-warn: #b3261e; --w-face: var(--f-system); --w-head: var(--f-system); --w-fig: var(--f-system); --w-d: 1; --w-shadow: rgba(0, 0, 0, 0.18); }

@media (prefers-color-scheme: dark) {
  .sfd[data-look="plain"] { color-scheme: dark; --w-bg: #1c1c1e; --w-pane: #2c2c2e; --w-text: #f5f5f7; --w-quiet: #a1a1a6; --w-rule: #3a3a3c; --w-accent: #2997ff; --w-on-accent: #000000; --w-link: #2997ff; --w-warn: #f0a39b; --w-shadow: rgba(0, 0, 0, 0.6); }
}

/* Each theme's swatch in the window's menu: its background and its accent. */
.sfd-sw[data-look="sage"] { --sw-a: #1c2925; --sw-b: #a9b8a1; }
.sfd-sw[data-look="linen"] { --sw-a: #f2f0e8; --sw-b: #1f5143; }
.sfd-sw[data-look="night"] { --sw-a: #141518; --sw-b: #3381fa; }
.sfd-sw[data-look="ember"] { --sw-a: #17140f; --sw-b: #cc7722; }
.sfd-sw[data-look="paper"] { --sw-a: #f6f3ec; --sw-b: #1f6f78; }
.sfd-sw[data-look="dusk"] { --sw-a: #1b1a26; --sw-b: #c4a7f0; }
.sfd-sw[data-look="clay"] { --sw-a: #f5eee6; --sw-b: #9e4426; }
.sfd-sw[data-look="plain"] { --sw-a: #ffffff; --sw-b: #0066cc; }

/* Words on the accent use the fill: the accent itself, except in Night, whose accent is too light for white words
   (3.7 to 1), so its fill is the page's measured one (4.7 to 1), as the site's buttons are. */
.sfd {
  --w-fill: var(--w-accent);
  --w-sel: color-mix(in srgb, var(--w-accent) 16%, transparent);
  --w-sel2: color-mix(in srgb, var(--w-accent) 30%, transparent);
  --w-gap: calc(0.5rem * var(--w-d) + 0.125rem);
  color: var(--w-text);
  font-family: var(--w-face);
}

.sfd *,
.sfd *::before,
.sfd *::after {
  box-sizing: border-box;
}

.sfd button {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.sfd button:disabled {
  cursor: default;
  opacity: 0.45;
}

.sfd input {
  font: inherit;
  color: inherit;
}

.sfd :focus-visible {
  outline: 2px solid var(--w-link);
  outline-offset: 1px;
  border-radius: 4px;
}

.sfd ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfd h3,
.sfd h4,
.sfd p {
  margin: 0;
}

.sfd [hidden] {
  display: none !important;
}

.sfd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sfd-fig {
  font-family: var(--w-fig);
  font-variant-numeric: tabular-nums;
}

.sfd-ic {
  display: inline-block;
  flex: none;
}

.sfd-win {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 40rem;
  overflow: hidden;
  background: var(--w-bg);
  border: 1px solid var(--w-rule);
  border-radius: 0.75rem;
  box-shadow: 0 1.75rem 3.75rem -1.75rem var(--w-shadow), 0 0.125rem 0.375rem -0.125rem var(--w-shadow);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* The title bar and its tools */

.sfd-titlebar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.625rem;
  height: 2.75rem;
  padding: 0 0.5rem 0 0.875rem;
  background: var(--w-pane);
  border-bottom: 1px solid var(--w-rule);
}

.sfd-lights {
  display: flex;
  gap: 0.5rem;
}

.sfd-lights i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #ff5f57;
}

.sfd-lights i + i {
  background: #febc2e;
}

.sfd-lights i + i + i {
  background: #28c840;
}

.sfd-wtitle {
  margin-left: 0.375rem;
  font-weight: 600;
  white-space: nowrap;
}

.sfd-badge {
  padding: 0 0.5rem;
  border: 1px solid var(--w-rule);
  border-radius: 999px;
  color: var(--w-quiet);
  font-size: 0.6875rem;
  font-weight: 600;
}

.sfd-tools {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
}

.sfd-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0 0.625rem !important;
  border-radius: 0.4375rem;
  white-space: nowrap;
}

.sfd-tool:hover,
.sfd-tool[aria-expanded="true"],
.sfd-tool[aria-pressed="true"] {
  background: var(--w-sel);
}

.sfd-tool .sfd-ic {
  color: var(--w-quiet);
}

/* The body: rail, sidebar, docks round the centre, strips at the edges */

.sfd-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sfd-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 3.25rem;
  padding: 0.5rem 0;
  background: var(--w-pane);
  border-right: 1px solid var(--w-rule);
}

.sfd-rail button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  color: var(--w-quiet);
}

.sfd-rail button:hover {
  background: var(--w-sel);
  color: var(--w-text);
}

.sfd-rail button[aria-current="page"] {
  background: var(--w-sel2);
  color: var(--w-link);
}

.sfd-side {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.125rem;
  width: 10rem;
  padding: 0.625rem 0.5rem;
  overflow: auto;
  background: var(--w-pane);
  border-right: 1px solid var(--w-rule);
}

.sfd-side-h {
  margin: 0.5rem 0.5rem 0.125rem !important;
  color: var(--w-quiet);
  font-size: 0.6875rem;
  font-weight: 700;
}

.sfd-side-i {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem;
  padding: 0 0.5rem !important;
  border-radius: 0.375rem;
}

.sfd-side-i:hover {
  background: var(--w-sel);
}

.sfd-side-i[aria-pressed="true"] {
  background: var(--w-sel2);
}

.sfd-side-i .sfd-ic {
  color: var(--w-link);
}

.sfd-count-n {
  margin-left: auto;
  color: var(--w-quiet);
  font-size: 0.75rem;
}

.sfd-mid {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.sfd-centre {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  container-type: inline-size;
}

.sfd-dock {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  min-height: 0;
  padding: 0.375rem;
  background: var(--w-bg);
}

.sfd-dock[data-dock="bottom"] {
  flex-direction: row;
  padding-top: 0;
}

.sfd-divider {
  position: relative;
  flex: none;
  width: 0.375rem;
  cursor: col-resize;
  touch-action: none;
}

.sfd-divider[data-dock="bottom"] {
  width: auto;
  height: 0.375rem;
  cursor: row-resize;
}

.sfd-divider::after {
  content: "";
  position: absolute;
  inset: 0.5rem 0.125rem;
  border-radius: 2px;
  background: var(--w-rule);
}

.sfd-divider[data-dock="bottom"]::after {
  inset: 0.125rem 0.5rem;
}

.sfd-divider:hover::after,
.sfd-divider.is-on::after,
.sfd-divider:focus-visible::after {
  background: var(--w-accent);
}

.sfd-group {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--w-bg);
  border: 1px solid var(--w-rule);
  border-radius: 0.5rem;
}

.sfd-ghead {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.125rem;
  height: 2rem;
  padding: 0 0.1875rem;
  background: var(--w-pane);
  border-bottom: 1px solid var(--w-rule);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.sfd-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  height: 1.625rem;
  padding: 0 0.625rem !important;
  border-radius: 0.375rem;
  color: var(--w-quiet);
  font-size: 0.78125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: grab !important;
}

.sfd-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sfd-tab:hover {
  color: var(--w-text);
}

.sfd-tab.is-front {
  background: var(--w-bg);
  box-shadow: inset 0 0 0 1px var(--w-rule);
  color: var(--w-text);
}

.sfd-tab.is-single.is-front {
  background: none;
  box-shadow: none;
}

.sfd-ghead-gap {
  flex: 1;
  align-self: stretch;
  cursor: grab;
}

.sfd-gbtn {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.375rem;
  color: var(--w-quiet);
}

.sfd-gbtn:hover,
.sfd-gbtn.is-on {
  background: var(--w-sel);
  color: var(--w-text);
}

.sfd-gbody {
  flex: 1;
  min-height: 0;
  padding: calc(var(--w-gap) + 0.125rem) 0.75rem;
  overflow: auto;
}

.sfd-strip {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  width: 2rem;
  padding: 0.5rem 0;
  background: var(--w-pane);
}

.sfd-strip[data-dock="left"] {
  border-right: 1px solid var(--w-rule);
}

.sfd-strip[data-dock="right"] {
  border-left: 1px solid var(--w-rule);
}

.sfd-strip[data-dock="bottom"] {
  flex-direction: row;
  width: auto;
  height: 2rem;
  padding: 0 0.5rem;
  border-top: 1px solid var(--w-rule);
}

.sfd-strip-i {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.25rem !important;
  background: var(--w-bg) !important;
  border: 1px solid var(--w-rule) !important;
  border-radius: 0.375rem;
  color: var(--w-quiet) !important;
  font-size: 0.75rem;
  font-weight: 600;
  writing-mode: vertical-rl;
}

.sfd-strip[data-dock="bottom"] .sfd-strip-i {
  padding: 0.125rem 0.625rem !important;
  writing-mode: horizontal-tb;
}

.sfd-strip-i .sfd-ic {
  transform: rotate(90deg);
}

.sfd-strip[data-dock="bottom"] .sfd-strip-i .sfd-ic {
  transform: none;
}

.sfd-strip-i:hover,
.sfd-strip-i[aria-expanded="true"] {
  border-color: var(--w-accent) !important;
  color: var(--w-text) !important;
}

/* A pinned group slid out over the centre, at its dock's size */
.sfd-slide {
  position: absolute;
  z-index: 4;
  top: 0.375rem;
  bottom: 0.375rem;
  display: flex;
  max-width: calc(100% - 0.75rem);
  box-shadow: 0 1rem 2.5rem -1rem var(--w-shadow);
  border-radius: 0.5rem;
}

.sfd-slide[data-dock="left"] {
  left: 0.375rem;
}

.sfd-slide[data-dock="right"] {
  right: 0.375rem;
}

.sfd-slide[data-dock="bottom"] {
  top: auto;
  right: 0.375rem;
  left: 0.375rem;
  max-height: calc(100% - 0.75rem);
}

.sfd-group.is-slid {
  border-color: var(--w-accent);
}

.sfd-ghost {
  position: fixed;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.625rem;
  background: var(--w-fill);
  border-radius: 0.4375rem;
  color: var(--w-on-accent);
  font: 600 0.78125rem/1.3 var(--w-face);
  pointer-events: none;
  transform: translate(0.75rem, 0.5rem);
}

.sfd-hint {
  position: fixed;
  z-index: 55;
  background: var(--w-sel2);
  border: 2px solid var(--w-accent);
  border-radius: 0.5rem;
  pointer-events: none;
}

.sfd.is-dragging,
.sfd.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
  -webkit-user-select: none;
}

.sfd.is-sizing,
.sfd.is-sizing * {
  user-select: none;
  -webkit-user-select: none;
}

/* The status line */

.sfd-status {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.75rem;
  height: 1.75rem;
  padding: 0 0.75rem;
  overflow: hidden;
  background: var(--w-pane);
  border-top: 1px solid var(--w-rule);
  color: var(--w-quiet);
  font-size: 0.71875rem;
  white-space: nowrap;
}

.sfd-status button:hover {
  color: var(--w-text);
  text-decoration: underline;
}

.sfd-st-left,
.sfd-st-right {
  display: flex;
  flex: none;
  gap: 0.375rem;
}

.sfd-st-mid {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--w-text);
  text-align: center;
  text-overflow: ellipsis;
}

.sfd-prog {
  color: var(--w-link);
  font-weight: 600;
}

.sfd kbd {
  padding: 0 0.25rem;
  background: var(--w-bg);
  border: 1px solid var(--w-rule);
  border-bottom-width: 2px;
  border-radius: 0.25rem;
  color: var(--w-text);
  font: 0.65625rem var(--f-mono);
}

/* Menus: the theme, View ▸ Panels, and a title bar's Control-click */

.sfd-pop {
  position: absolute;
  z-index: 30;
  width: 16rem;
  max-height: calc(100% - 3.5rem);
  padding: 0.375rem;
  overflow: auto;
  background: var(--w-bg);
  border: 1px solid var(--w-rule);
  border-radius: 0.625rem;
  box-shadow: 0 1.125rem 2.5rem -1rem var(--w-shadow);
}

.sfd-pop.is-ctx {
  width: 13rem;
}

.sfd-pop hr {
  margin: 0.25rem 0.375rem;
  border: 0;
  border-top: 1px solid var(--w-rule);
}

.sfd-pop-h {
  margin: 0.375rem 0.5rem 0.125rem !important;
  color: var(--w-quiet);
  font-size: 0.6875rem;
  font-weight: 700;
}

.sfd-pop-note {
  margin: 0.25rem 0.5rem 0.125rem !important;
  color: var(--w-quiet);
  font-size: 0.6875rem;
}

.sfd-mi {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  min-height: 1.75rem;
  padding: 0.125rem 0.5rem !important;
  border-radius: 0.375rem;
}

.sfd-mi:hover:not(:disabled) {
  background: var(--w-sel);
}

.sfd-mi-tick {
  color: var(--w-link);
  font-weight: 700;
}

.sfd-mi-l .sfd-s {
  color: var(--w-quiet);
  font-size: 0.6875rem;
}

.sfd-look {
  grid-template-columns: 1.5rem minmax(0, 1fr) 1rem;
  gap: 0.625rem;
  padding: 0.25rem 0.5rem !important;
}

.sfd-look strong,
.sfd-look .sfd-s {
  display: block;
}

.sfd-look[aria-pressed="true"] {
  background: var(--w-sel2);
}

.sfd-sw {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%);
  border: 1px solid var(--w-rule);
  border-radius: 0.4375rem;
}

.sfd-mi-k {
  font-size: 0.625rem !important;
}

.sfd-mi-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.75rem;
  padding: 0 0.5rem 0 1.875rem;
}

.sfd-mi-row span {
  flex: 1;
}

.sfd-mini {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--w-rule) !important;
  border-radius: 0.375rem;
  font-family: var(--w-fig) !important;
}

.sfd-mini:hover:not(:disabled) {
  background: var(--w-sel) !important;
}

/* The lock */

.sfd-lock {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--w-bg);
  text-align: center;
}

.sfd-lock-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 22rem;
  padding: 1rem;
}

.sfd-lock-in p {
  color: var(--w-quiet);
}

.sfd-lock-h {
  font: 600 1.25rem/1.25 var(--w-head);
}

.sfd-mark rect {
  fill: var(--w-accent);
}

/* The sections and the panels */

.sfd-view {
  display: flex;
  flex-direction: column;
  gap: calc(var(--w-gap) + 0.375rem);
  height: 100%;
  padding: 0.875rem 1rem;
  overflow: auto;
}

.sfd-vhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.75rem;
}

.sfd-vtitle {
  font: 600 1.1875rem/1.2 var(--w-head);
}

.sfd-vsub {
  flex-basis: 100%;
  color: var(--w-quiet);
  font-size: 0.75rem;
}

.sfd-label {
  margin: 0.375rem 0 0.125rem !important;
  font: 600 0.9375rem/1.3 var(--w-head);
}

.sfd-sub {
  margin-top: 0.375rem !important;
  color: var(--w-quiet);
  font-size: 0.6875rem;
  font-weight: 700;
}

.sfd-s {
  color: var(--w-quiet);
  font-size: 0.71875rem;
}

.sfd-t {
  display: block;
}

.sfd-quietline {
  color: var(--w-quiet);
  font-style: italic;
}

.sfd-link {
  color: var(--w-link) !important;
  font-weight: 600 !important;
}

.sfd-rows {
  display: flex;
  flex-direction: column;
}

.sfd-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: var(--w-gap) 0.125rem;
  border-bottom: 1px solid var(--w-rule);
}

.sfd-row:last-child {
  border-bottom: 0;
}

.sfd-row.is-done .sfd-t {
  color: var(--w-quiet);
  text-decoration: line-through;
}

.sfd-open {
  flex: 1;
  min-width: 0;
  border-radius: 0.25rem;
}

.sfd-open .sfd-s {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sfd-open:hover .sfd-t {
  text-decoration: underline;
}

.sfd-trail {
  flex: none;
  color: var(--w-quiet);
  font-size: 0.71875rem;
}

.is-late {
  color: var(--w-warn) !important;
}

.sfd-txt {
  flex: 1;
  min-width: 0;
}

.sfd-tag {
  display: inline-block;
  margin-top: 0.125rem;
  padding: 0 0.375rem;
  border: 1px solid var(--w-rule);
  border-radius: 999px;
  color: var(--w-quiet);
  font-size: 0.6875rem;
}

.sfd-ring {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.0625rem;
  height: 1.0625rem;
  margin-top: 0.0625rem;
  border: 1.5px solid var(--w-quiet) !important;
  border-radius: 50% !important;
}

.sfd-ring.is-on {
  background: var(--w-fill) !important;
  border-color: var(--w-fill) !important;
}

.sfd-ring.is-on::after {
  content: "";
  width: 0.4375rem;
  height: 0.25rem;
  border-bottom: 2px solid var(--w-on-accent);
  border-left: 2px solid var(--w-on-accent);
  transform: rotate(-45deg) translate(1px, -1px);
}

.sfd-bar {
  flex: none;
  align-self: stretch;
  width: 3px;
  border-radius: 2px;
  background: var(--w-accent);
}

.sfd-dot,
.sfd-note-ic {
  flex: none;
  padding-top: 0.0625rem;
  color: var(--w-link);
}

.sfd-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 1.875rem;
  padding: 0 0.875rem !important;
  background: var(--w-fill) !important;
  border-radius: 0.4375rem;
  color: var(--w-on-accent) !important;
  font-weight: 600 !important;
}

.sfd-btn.sfd-small {
  height: 1.5rem;
  padding: 0 0.625rem !important;
  font-size: 0.75rem;
}

.sfd-finale {
  margin-top: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--w-sel);
  border: 1px solid var(--w-accent);
  border-radius: 0.5rem;
}

.sfd-safe {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.sfd-seg {
  display: flex;
  padding: 0.125rem;
  background: var(--w-pane);
  border: 1px solid var(--w-rule);
  border-radius: 0.5rem;
}

.sfd-seg button {
  flex: 1;
  min-height: 2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center !important;
}

.sfd-seg button[aria-pressed="true"] {
  background: var(--w-bg);
  box-shadow: 0 0 0 1px var(--w-rule);
}

/* Today */
.sfd-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
}

@container (min-width: 34rem) {
  .sfd-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Notes */
.sfd-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.5rem;
  overflow: hidden;
}

.sfd-search {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.875rem;
  padding: 0 0.5rem;
  background: var(--w-pane);
  border: 1px solid var(--w-rule);
  border-radius: 0.4375rem;
  color: var(--w-quiet);
}

.sfd-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--w-text);
}

.sfd-search:focus-within {
  border-color: var(--w-accent);
}

.sfd-notes-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  min-height: 0;
}

.sfd-notes:not(.is-phone) .sfd-notes-results {
  grid-template-rows: minmax(0, 11rem) minmax(0, 1fr);
}

@container (min-width: 30rem) {
  .sfd-notes:not(.is-phone) .sfd-notes-results {
    grid-template-columns: minmax(11rem, 36%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
}

.sfd-nlist-wrap,
.sfd-note-wrap {
  min-height: 0;
  overflow: auto;
}

.sfd-note-wrap {
  padding: 0.25rem 0.5rem;
}

.sfd-nlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.125rem;
}

.sfd-nlist li,
.sfd-nitem {
  min-width: 0;
}

.sfd-nitem {
  display: block;
  width: 100%;
  padding: 0.375rem 0.5rem !important;
  border-radius: 0.4375rem;
}

.sfd-nitem:hover {
  background: var(--w-sel);
}

.sfd-nitem[aria-pressed="true"] {
  background: var(--w-sel2);
}

.sfd-nitem .sfd-t {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  font-weight: 700;
}

.sfd-nitem .sfd-s {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sfd-note {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sfd-md-h {
  margin-bottom: 0.375rem !important;
  font: 700 1.25rem/1.2 var(--w-head);
}

.sfd-mk {
  color: var(--w-quiet);
  font-family: var(--w-face);
  font-weight: 400;
  opacity: 0.75;
}

.sfd-md-p {
  margin-bottom: 0.25rem !important;
}

.sfd-md-li {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.sfd-md-box {
  color: var(--w-link) !important;
  font: 700 0.78125rem var(--f-mono) !important;
}

.sfd-md-li.is-done .sfd-md-text {
  color: var(--w-quiet);
  text-decoration: line-through;
}

.sfd-gap {
  height: 0.375rem;
}

.sfd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  color: var(--w-link) !important;
  font-weight: 600 !important;
}

/* Calendar */
.sfd-cal-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@container (min-width: 36rem) {
  .sfd-cal-in {
    grid-template-columns: minmax(0, 1fr) 12rem;
    align-items: start;
  }
}

.sfd-grid {
  border-top: 1px solid var(--w-rule);
  border-left: 1px solid var(--w-rule);
}

.sfd-wds,
.sfd-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.sfd-wd {
  padding: 0.1875rem 0;
  border-right: 1px solid var(--w-rule);
  border-bottom: 1px solid var(--w-rule);
  color: var(--w-quiet);
  font-size: 0.6875rem;
  text-align: center;
}

.sfd-cell {
  display: flex !important;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.1875rem 0.25rem !important;
  border-right: 1px solid var(--w-rule) !important;
  border-bottom: 1px solid var(--w-rule) !important;
  border-radius: 0 !important;
}

.sfd-cell:hover {
  background: var(--w-sel);
}

.sfd-cell.is-out .sfd-num {
  opacity: 0.5;
}

.sfd-cell.is-sel {
  background: var(--w-sel);
  box-shadow: inset 0 0 0 2px var(--w-accent);
}

.sfd-num {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  font-size: 0.71875rem;
}

.sfd-cell.is-today .sfd-num {
  background: var(--w-fill);
  color: var(--w-on-accent);
  font-weight: 700;
}

.sfd-chip {
  display: flex;
  align-items: center;
  gap: 0.1875rem;
  min-width: 0;
  overflow: hidden;
  font-size: 0.65625rem;
  white-space: nowrap;
}

.sfd-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sfd-chip .sfd-bar {
  align-self: center;
  height: 0.625rem;
}

.sfd-chip.is-done span:last-child {
  color: var(--w-quiet);
  text-decoration: line-through;
}

.sfd-more {
  color: var(--w-quiet);
}

.sfd-mini-ring {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border: 1.2px solid var(--w-quiet);
  border-radius: 50%;
}

.sfd-mini-dia {
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  margin: 0 0.0625rem;
  border: 1.2px solid var(--w-link);
  transform: rotate(45deg);
}

.sfd-day {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.625rem;
  background: var(--w-pane);
  border-radius: 0.5rem;
}

.sfd-day-h {
  font: 600 0.9375rem/1.25 var(--w-head);
}

.sfd-ev {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.sfd-ev.is-done .sfd-t {
  color: var(--w-quiet);
  text-decoration: line-through;
}

.sfd-ev .sfd-s {
  display: block;
}

/* Budget */
.sfd-headline {
  display: flex;
  flex-direction: column;
}

.sfd-big {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
}

.sfd-answers {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

@container (min-width: 32rem) {
  .sfd-answers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sfd-answers li {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  background: var(--w-pane);
  border-radius: 0.5rem;
}

.sfd-answers strong {
  font-size: 1rem;
}

.sfd-afford {
  display: grid;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--w-rule);
  border-radius: 0.5rem;
}

.sfd-afford-l {
  font-weight: 700;
}

.sfd-afford-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sfd-afford input {
  width: 8rem;
  height: 1.875rem;
  padding: 0 0.5rem;
  background: var(--w-pane);
  border: 1px solid var(--w-rule);
  border-radius: 0.4375rem;
  font-family: var(--w-fig);
}

.sfd-afford input:focus {
  border-color: var(--w-accent);
  outline: none;
}

.sfd-ans {
  font-weight: 600;
}

.sfd-chipbox {
  padding: 0.0625rem 0.625rem;
  background: var(--w-sel);
  border: 1px solid var(--w-accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sfd-chipbox.is-late {
  background: none;
  border-color: var(--w-warn);
}

.sfd-tablewrap {
  overflow-x: auto;
}

.sfd-plan {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78125rem;
}

.sfd-plan th,
.sfd-plan td {
  padding: calc(var(--w-gap) * 0.6) 0.375rem;
  border-bottom: 1px solid var(--w-rule);
  text-align: right;
  white-space: nowrap;
}

.sfd-plan td {
  font-family: var(--w-fig);
  font-variant-numeric: tabular-nums;
}

.sfd-plan th {
  font-weight: 500;
}

.sfd-plan thead th {
  color: var(--w-quiet);
  font-size: 0.6875rem;
  font-weight: 600;
}

.sfd-plan th:first-child {
  text-align: left;
  white-space: normal;
}

.sfd-plan .sfd-grp th,
.sfd-plan .sfd-grp td {
  background: var(--w-pane);
  font-weight: 700;
}

.sfd-plan input {
  width: 5.25rem;
  padding: 0.125rem 0.3125rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.3125rem;
  font-family: var(--w-fig);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sfd-plan input:hover {
  border-color: var(--w-rule);
}

.sfd-plan input:focus {
  background: var(--w-bg);
  border-color: var(--w-accent);
  outline: none;
}

@container (max-width: 25rem) {
  .sfd-spent {
    display: none;
  }

  .sfd-plan input {
    width: 4.5rem;
  }
}

/* The picture panel */
.sfd-picture {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.sfd-art {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.sfd-art .a-sky {
  fill: var(--w-pane);
}

.sfd-art .a-sun {
  fill: var(--w-accent);
}

.sfd-art .a-far {
  fill: color-mix(in srgb, var(--w-accent) 35%, var(--w-bg));
}

.sfd-art .a-near {
  fill: color-mix(in srgb, var(--w-accent) 60%, var(--w-bg));
}

.sfd-art .a-wall rect {
  fill: var(--w-text);
  opacity: 0.7;
}

.sfd-picture figcaption {
  color: var(--w-quiet);
  font-size: 0.71875rem;
}

/* The iPhone's shape: one section at a time, with a tab bar */
.sfd-win:focus {
  outline: none;
}

.sfd.is-phone .sfd-win {
  height: 37.5rem;
}

.sfd.is-phone .sfd-lights {
  display: none;
}

.sfd.is-phone .sfd-wtitle {
  margin-left: 0.25rem;
}

.sfd-phone {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.sfd-phone-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  container-type: inline-size;
}

.sfd-phone-body .sfd-view {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

.sfd-phone .sfd-notes {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.sfd-phone .sfd-notes-results {
  min-width: 0;
}

.sfd-tabbar {
  display: grid;
  flex: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.25rem 0.125rem;
  background: var(--w-pane);
  border-top: 1px solid var(--w-rule);
}

.sfd-tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  min-height: 2.75rem;
  padding: 0.25rem 0;
  border-radius: 0.4375rem;
  color: var(--w-quiet);
  font-size: 0.65625rem;
  text-align: center;
}

.sfd-tabbar button[aria-current="page"] {
  color: var(--w-link);
  font-weight: 600;
}

.sfd.is-phone .sfd-tool {
  padding: 0 0.5rem !important;
}

@media (max-width: 26rem) {
  .sfd.is-phone .sfd-tool .sfd-lbl {
    display: none;
  }
}
