/*
 * FabledOS mockups: the Product page (first drawn 2026-11-28, redrawn in Monolith on 2026-11-29).
 * The look is the repo's design system, Monolith: monochrome, Geist, hairlines, dark first with a complete light theme.
 * The tokens and sizes are copied from packages/ui/src/styles/globals.css and packages/ui/DESIGN.md.
 * Used by the screens whose files start with "Fr", and under site.css by the website screens ("Www").
 * The earlier screens keep fabledos.css. Each screen's Theme tweak sets data-theme on the root.
 */
.fr, .fr.lock, .fr.lock[data-theme="light"] {
  --bg: #0a0a0a; --ink: #ededed; --soft: #a1a1a1; --card: #111111; --tint: #171717; --second: #1f1f1f; --sel: #1f1f1f;
  --primary: #ededed; --on-primary: #0a0a0a;
  --line: #262626; --line-strong: #3a3a3a; --input: #636363; --ring: #4c8dff;
  --destructive: #ff7b7b; --success: #4ade80; --warning: #f5a524;
  /* Only a menu casts a shadow. */
  --lift-menu: 0 8px 24px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}
.fr {
  background: var(--bg); color: var(--ink);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased;
}
.fr[data-theme="light"] {
  --bg: #ffffff; --ink: #171717; --soft: #666666; --card: #ffffff; --tint: #f5f5f5; --second: #f2f2f2; --sel: #ededed;
  --primary: #171717; --on-primary: #ffffff;
  --line: #e8e8e8; --line-strong: #d4d4d4; --input: #8a8a8a; --ring: #0a5fd6;
  --destructive: #ad1a10; --success: #157a35; --warning: #8a5300;
  --lift-menu: 0 8px 24px rgb(0 0 0 / 0.08);
  color-scheme: light;
}
.fr, .fr * { box-sizing: border-box; }
.fr h1, .fr h2, .fr h3, .fr p, .fr ul, .fr ol { margin: 0; padding: 0; }
.fr h1, .fr h2, .fr h3 { font-size: inherit; line-height: inherit; font-weight: inherit; }
.fr ul, .fr ol { list-style: none; }
.fr button, .fr input { font: inherit; color: inherit; }
.fr a { color: inherit; text-decoration: none; }
.fr :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.fr p { text-wrap: pretty; }
.fr svg { stroke-width: 1.5; }

/* Type: one sans. Headings are heavier and tracked tighter; nothing else is tracked. */
.fr .hd { font-weight: 600; }
.fr .hello { font-size: 32px; line-height: 36px; letter-spacing: -0.045em; }
.fr .h2 { font-size: 18px; line-height: 24px; letter-spacing: -0.025em; }
.fr .h3 { font-size: 16px; line-height: 24px; letter-spacing: -0.01em; }
.fr .soft { color: var(--soft); }
.fr .small { font-size: 13px; line-height: 18px; }
.fr .nums { font-variant-numeric: tabular-nums; }
.fr .mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Status colors, the only color besides the focus ring (packages/ui/DESIGN.md, Color): red for danger and errors,
   green for a confirmed good state, amber for what needs attention but isn't an error. Always on the words that
   say it, never color alone. */
.fr .ok, .fr .fig .of.ok, .fr .entry .when.ok { color: var(--success); }
.fr .warn, .fr .fig .of.warn, .fr .entry .when.warn { color: var(--warning); }
.fr .danger { color: var(--destructive); }
.fr .badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.fr .badge-ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.fr .badge-warn { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); }
.fr .badge-danger { background: color-mix(in srgb, var(--destructive) 10%, transparent); color: var(--destructive); }

/* Links: always underlined, since the only colors here are the status colors. One inside a sentence, and one that stands alone. */
.fr a.in { text-decoration: underline; text-underline-offset: 4px; }
.fr a.in:hover { color: var(--soft); }
.fr a.go { display: inline-flex; align-self: flex-start; align-items: center; min-height: 24px; color: var(--soft); text-decoration: underline; text-underline-offset: 4px; }
.fr a.go:hover { color: var(--ink); }

/* Top bar */
.fr .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 56px; padding: 8px 24px; border-bottom: 1px solid var(--line); }
.fr .brand { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 16px; line-height: 24px; letter-spacing: -0.04em; }
.fr .tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.fr .tab { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 6px; color: var(--soft); }
.fr .tab:hover { color: var(--ink); }
.fr .tab[aria-current="page"] { background: var(--sel); color: var(--ink); font-weight: 500; }
.fr .avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--second); font-size: 13px; line-height: 18px; font-weight: 500; }

/* The page: one calm column */
.fr .page { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 640px; margin: 0 auto; padding: 48px 24px 80px; }
.fr .note { display: flex; flex-direction: column; gap: 12px; }
.fr .rule { height: 1px; border: 0; margin: 0; background: var(--line); }

/* The conversation */
.fr .thread { display: flex; flex-direction: column; gap: 16px; }
.fr .me { align-self: flex-end; max-width: 82%; padding: 8px 12px; border-radius: 8px; background: var(--tint); }
.fr .reply { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fr .mock { padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--soft); font-size: 13px; line-height: 18px; }

/* The ask box, and the suggestions under it */
.fr .ask { display: flex; align-items: center; gap: 8px; padding: 3px 3px 3px 12px; border: 1px solid var(--input); border-radius: 6px; background: var(--bg); }
.fr .ask:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
.fr .ask input { flex: 1; min-width: 0; height: 32px; border: 0; outline: none; background: transparent; }
.fr .ask input::placeholder { color: var(--soft); opacity: 1; }
.fr .send { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 4px; background: var(--tint); color: var(--ink); cursor: pointer; }
.fr .send:hover { background: var(--sel); }
.fr .send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.fr .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fr .chip { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; font-weight: 500; text-align: left; cursor: pointer; }
.fr .chip:hover { background: var(--tint); }

/* Buttons: only for a yes on something that leaves the business, for Stop, for connecting, and for deleting.
   The yes is the view's one primary button; everything else is outline, secondary or ghost. */
.fr .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-weight: 500; white-space: nowrap; cursor: pointer; }
.fr .btn-yes, .fr .btn-stop { background: var(--primary); color: var(--on-primary); }
.fr .btn-yes:hover, .fr .btn-stop:hover { opacity: 0.9; }
.fr .btn-quiet { border-color: var(--line-strong); }
.fr .btn-quiet:hover, .fr .btn-text:hover { background: var(--tint); }
.fr .btn-second { background: var(--second); }
.fr .btn-text { padding: 0 12px; }

/* A card: used once on a page, for the one thing that needs a yes */
.fr .card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.fr .letter { padding: 8px 12px; border: 1px solid var(--input); border-radius: 6px; background: var(--bg); white-space: pre-line; }

/* Where I got this: closed until tapped */
.fr details.src > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; list-style: none; color: var(--soft); font-size: 13px; line-height: 18px; cursor: pointer; }
.fr details.src > summary::-webkit-details-marker { display: none; }
.fr details.src > summary:hover { color: var(--ink); }
.fr details.src > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; transition: transform 120ms; }
.fr details.src[open] > summary svg { transform: rotate(90deg); }
.fr details.src > div { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px 20px; border-left: 0; color: var(--soft); }
.fr .quote { padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--ink); }

/* A diary day and its entries */
.fr .day { display: flex; flex-direction: column; gap: 12px; }
.fr .entry { display: flex; gap: 16px; align-items: baseline; }
.fr .entry .when { flex: none; width: 44px; color: var(--soft); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.fr .entry .what { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }

/* A source on Connections */
.fr .source { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.fr .source .about { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* Phone. Controls are 40px tall for a thumb. */
.fr.phone .hello { font-size: 24px; line-height: 30px; letter-spacing: -0.035em; }
.fr.phone .bar { min-height: 52px; padding: 6px 16px; gap: 8px; }
.fr.phone .brand { flex: 1; }
.fr.phone .scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.fr.phone .scroll.end { flex-direction: column-reverse; }
.fr.phone .inner { display: flex; flex-direction: column; gap: 20px; padding: 20px 16px 24px; }
.fr.phone .dock { padding: 8px 12px; }
.fr.phone .ask input, .fr.phone .send { height: 34px; }
.fr.phone .send { width: 34px; }
.fr.phone .btn, .fr.phone .chip { min-height: 40px; }
.fr.phone .tabbar { display: flex; border-top: 1px solid var(--line); padding: 4px 8px 8px; }
.fr.phone .tabbar .tab { flex: 1; justify-content: center; min-height: 40px; padding: 0 4px; font-size: 12px; line-height: 16px; font-weight: 500; }
.fr.phone .tabbar .tab[aria-current="page"] { background: transparent; }

/* ------------------------------------------------------------------ The business at work (second round) */
.fr h4, .fr figure { margin: 0; padding: 0; }
.fr h4 { font-size: inherit; line-height: inherit; font-weight: inherit; }

/* A page with pictures is wider. Its text keeps the width of one column. */
.fr .page.wide { max-width: 1024px; }
.fr .prose { max-width: 600px; }
.fr .talk { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 640px; }
.fr a.back { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; min-height: 24px; margin: -8px 0 -4px -4px; color: var(--soft); font-size: 13px; line-height: 18px; }
.fr a.back:hover { color: var(--ink); }
.fr a.back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.fr .group { display: flex; flex-direction: column; gap: 12px; }

/* A number, and the sentence that reads it */
.fr .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.fr .fig { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.fr a.fig:hover { border-color: var(--line-strong); }
.fr .fig .what { color: var(--soft); font-size: 13px; line-height: 18px; }
.fr .fig .n { font-size: 24px; line-height: 30px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.fr .fig .of { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; color: var(--soft); }
.fr .fig .say { font-size: 13px; line-height: 18px; color: var(--soft); }

/* A building block: what I read in it, the picture, and why it has this shape */
.fr .block { display: flex; flex-direction: column; gap: 12px; }
.fr .pic { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow-x: auto; }
.fr .why, .fr .how { color: var(--soft); font-size: 13px; line-height: 18px; }
.fr .chart { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 16px; }
.fr .chart .what { font-weight: 500; }

/* List */
.fr .lines { display: flex; flex-direction: column; }
.fr .lines > li { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 10px 0; border-top: 1px solid var(--line); }
.fr .lines > li:first-child { padding-top: 0; border-top: 0; }
.fr .lines > li:last-child { padding-bottom: 0; }
.fr .lines .who { flex: 0 0 180px; font-weight: 500; }
.fr .lines .say { flex: 1 1 280px; min-width: 0; }

/* Stages */
.fr .stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 8px; }
.fr .stage { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.fr .stage h3 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0; }
.fr .stage .count { color: var(--soft); font-variant-numeric: tabular-nums; }
.fr .stage ul { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 18px; }
.fr .stage .one { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.fr .stage .rest { padding: 4px 2px 0; color: var(--soft); }

/* Timeline. A span is filled quietly, a dated event is the ink, and one not yet certain is dashed. */
.fr .tl { display: grid; align-items: center; gap: 8px 0; min-width: 640px; font-size: 13px; line-height: 18px; }
.fr .tl .head { align-self: stretch; padding: 0 6px 6px; border-left: 1px solid var(--line); color: var(--soft); white-space: nowrap; }
.fr .tl .name { padding-right: 16px; font-size: 14px; line-height: 20px; font-weight: 500; }
.fr .tl .cell { align-self: stretch; min-height: 34px; border-left: 1px solid var(--line); }
.fr .tl .span { z-index: 1; margin: 0 4px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--second); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr .tl .span.light { border-style: dashed; border-color: var(--input); background: var(--card); color: var(--soft); }
.fr .tl .span.mark { border-color: var(--primary); background: var(--primary); color: var(--on-primary); font-weight: 500; }

/* Trend */
.fr .trend { display: flex; align-items: flex-end; gap: 12px; height: 200px; }
.fr .trend .col { flex: 1 1 0; min-width: 44px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.fr .trend .bar { width: 100%; max-width: 64px; min-height: 0; padding: 0; border: 0; border-radius: 4px 4px 0 0; background: var(--ink); }
.fr .trend .bar.est { background: var(--tint); box-shadow: inset 0 0 0 1px var(--input); }
.fr .trend .v { font-size: 13px; line-height: 18px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fr .trend .l { font-size: 13px; line-height: 18px; color: var(--soft); white-space: nowrap; }

/* Comparison */
.fr .bars { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.fr .bars .row { display: grid; grid-template-columns: minmax(84px, 160px) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.fr .bars .track { height: 8px; border-radius: 999px; background: var(--second); overflow: hidden; }
.fr .bars .fill { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.fr .bars .r { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Table */
.fr table.tbl { width: 100%; min-width: 520px; border-collapse: collapse; }
.fr .tbl th { padding: 0 16px 8px 0; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 13px; line-height: 18px; font-weight: 500; text-align: left; white-space: nowrap; }
.fr .tbl td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fr .tbl tbody tr:last-child td { border-bottom: 0; }
.fr .tbl .num { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fr .tbl tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 500; }

/* Links: one thing, and what it touches */
.fr .links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.fr .links .lk { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.fr .links a.lk:hover { border-color: var(--line-strong); }
.fr .links .rel { color: var(--soft); font-size: 13px; line-height: 18px; }
.fr .links .to { font-weight: 500; }

/* Facts about one thing, and the steps it has been through */
.fr .facts { display: flex; flex-direction: column; }
.fr .fact { display: grid; grid-template-columns: minmax(96px, 160px) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.fr .fact:first-child { padding-top: 0; border-top: 0; }
.fr .fact .k { color: var(--soft); }
.fr .fact .v { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
.fr .path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--soft); font-size: 13px; line-height: 18px; }
.fr .path .was { color: var(--ink); }
.fr .path .on { padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; line-height: 16px; font-weight: 500; }
.fr .path svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* Numbered steps: a plan, or the life of one action. A step whose result was seen has a green mark;
   one that is the person's to take is outlined in the ink. */
.fr .steps { display: flex; flex-direction: column; gap: 16px; }
.fr .steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 12px; }
.fr .steps .dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid transparent; border-radius: 999px; background: var(--tint); font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fr .steps .dot.ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.fr .steps .dot.you { border-color: var(--ink); background: transparent; }
.fr .steps .body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; padding-top: 4px; }
.fr .steps .body .letter { align-self: stretch; }
.fr .entry .when.wide { width: 112px; }

/* The seven blocks, drawn for two businesses side by side */
.fr .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 12px; }
.fr .pair .pic { display: flex; flex-direction: column; gap: 12px; }
.fr .pair .whose { color: var(--soft); font-size: 13px; line-height: 18px; font-weight: 500; }
.fr .pair .tl { min-width: 400px; }
.fr .pair table.tbl { min-width: 0; }
.fr .pair .trend { height: 160px; }

/* Lock screen: dark in both themes, so its root always carries the dark tokens (the first rule of this file). */
.fr.lock .clock { font-size: 72px; line-height: 76px; font-weight: 500; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.fr.lock .push { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.fr.lock .from { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: 13px; line-height: 18px; font-weight: 500; }

/* The week ahead: a timeline of seven days */
.fr .week { display: grid; grid-template-columns: repeat(7, minmax(84px, 1fr)); gap: 8px; overflow-x: auto; }
.fr .week .d { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: 13px; line-height: 18px; }
.fr .week .d.now { border-color: var(--ink); }
.fr .week .d .on { font-weight: 500; }
.fr .week .d .none { color: var(--soft); }

/* ------------------------------------------------------------------ Third round: fixes found on screen, and the changes for the person using it */
.fr textarea { font: inherit; color: inherit; }
.fr .bars .r { min-width: 7ch; text-align: right; }
.fr .fig .n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.fr .fig .of { white-space: nowrap; }
.fr .fact:last-child { padding-bottom: 0; }
.fr .figs.three { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }

/* The avatar opens the pages that are not places in the bar */
.fr .menu { position: relative; }
.fr .menu > summary { list-style: none; cursor: pointer; }
.fr .menu > summary::-webkit-details-marker { display: none; }
.fr .menu[open] > summary { background: var(--sel); }
.fr .menu .sheet { position: absolute; top: 40px; right: 0; z-index: 5; display: flex; flex-direction: column; min-width: 264px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: var(--lift-menu); }
.fr .menu .sheet > * { display: flex; align-items: center; min-height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; white-space: nowrap; }
.fr .menu .sheet > a:hover, .fr .menu .sheet > button:hover { background: var(--sel); }
.fr .menu .sheet > button { color: var(--soft); cursor: pointer; }
.fr .menu .sheet > span { color: var(--soft); }

/* The conversation: a mark for each day, the wait while an answer is written */
.fr .daymark { align-self: center; padding: 4px 0; color: var(--soft); font-size: 12px; line-height: 16px; font-weight: 500; }
.fr .wait { display: flex; align-items: center; gap: 8px; color: var(--soft); }
.fr .dots { display: inline-flex; gap: 4px; }
.fr .dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--soft); animation: fr-wait 1.2s infinite ease-in-out; }
.fr .dots span:nth-child(2) { animation-delay: 0.2s; }
.fr .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes fr-wait { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fr .dots span { animation: none; opacity: 0.6; } }

/* A draft the person can type in: it has a field's edge */
.fr .draft { display: flex; flex-direction: column; gap: 6px; }
.fr textarea.letter { display: block; width: 100%; resize: none; overflow: hidden; white-space: pre-wrap; }

/* One line that opens: the parts of Today that are there when she wants them */
.fr .folds { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.fr .fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); list-style: none; cursor: pointer; }
.fr .fold > summary::-webkit-details-marker { display: none; }
.fr .fold > summary .soft { flex: 1 1 240px; font-size: 13px; line-height: 18px; }
.fr .fold > summary svg { align-self: center; width: 16px; height: 16px; fill: none; stroke: var(--soft); stroke-linecap: round; stroke-linejoin: round; transition: transform 120ms; }
.fr .fold[open] > summary svg { transform: rotate(90deg); }
.fr .fold > div { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 16px; }

/* Something about to go out: its card has the ink's edge */
.fr .card.soon { border-color: var(--ink); }
.fr a.chip { color: inherit; }

/* Phone, month three */
.fr.phone .card { gap: 12px; padding: 16px; }
.fr.phone .pic { padding: 12px; }
.fr.phone .fig { padding: 12px; }
.fr.phone .trend { gap: 6px; height: 180px; }
.fr.phone .trend .col { min-width: 36px; }
.fr.phone .trend .v, .fr.phone .trend .l { font-size: 12px; line-height: 16px; }
.fr.phone .bars .row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; }
.fr.phone .entry { gap: 12px; }
.fr.phone .entry .when.wide { width: 80px; }
.fr.phone .lines .who { flex-basis: 100%; }
.fr.phone .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fr.phone .fold > summary .soft { flex-basis: 100%; }

/* The buttons under a draft. On a phone they stay at the bottom of the screen while the card is in view, so a long draft never pushes the yes out of reach. */
.fr .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.fr.phone .card .acts { position: sticky; bottom: 0; z-index: 1; flex-wrap: nowrap; margin: 0 -16px -16px; padding: 12px 16px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; background: var(--card); }
.fr.phone .card .acts .btn-yes { flex: 1; }

/* ------------------------------------------------------------------ Themes, and sign-in */

/* Appearance, in the avatar's menu: light, dark, or whatever the device uses. A segmented control, like the repo's ThemeToggle. */
.fr .menu .sheet > .look { flex-direction: column; align-items: stretch; gap: 6px; min-height: 0; padding: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; margin: 4px 0; white-space: normal; }
.fr .look .label { color: var(--soft); font-size: 12px; line-height: 16px; font-weight: 500; }
.fr .look .opts { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; }
.fr .look .opts button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--soft); font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.fr .look .opts button:hover { color: var(--ink); }
.fr .look .opts button[aria-pressed="true"] { background: var(--tint); color: var(--ink); }

/* Sign-in: the product's first screen (packages/ui/DESIGN.md, Sign-in page). One centered column, no card. */
.fr .signin { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.fr .signin .mark { display: inline-flex; border-radius: 6px; }
.fr .signin .mark svg { width: 40px; height: 40px; }
.fr .signin .say { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 400px; margin: 4px 0 12px; }
.fr .signin .say h1 { font-size: 24px; line-height: 30px; letter-spacing: -0.035em; }
.fr .signin .alert { color: var(--destructive); }
.fr .signin .btn { min-height: 40px; padding: 0 16px; }
