/* The bundle — "The Letter" components (Oct 2026). THE app standard.

   Lifted verbatim from the hub at /app/ (templates/web/app_home.html), which
   is the north star: warm paper, one burgundy accent, Fraunces for voice,
   mono eyebrows, hairline rules instead of boxes. Tokens live in
   twb-tokens.css (--lt-*); the living styleguide is /app/design-system/;
   the rules are DESIGN_SYSTEM.md → "The Letter".

   Everything is scoped under `.lt` — wrap a page's content in
   <div class="lt"> and these apply; nothing leaks onto pages that don't.
   Linked globally from web/base.html.

   Sections marked (hub) are on /app/ today. Sections marked (extension) are
   derived from the same grammar for inner pages — keep them in that grammar. */

/* ---- scope + local aliases (hub) -------------------------------------- */
.lt {
  --paper: var(--lt-paper); --ink: var(--lt-ink); --muted: var(--lt-muted);
  --accent: var(--lt-accent); --accent-soft: var(--lt-accent-soft);
  --line: var(--lt-line); --card: var(--lt-card); --serif: var(--lt-serif);
  color: var(--ink); font-size: 15px;
}
.lt :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--lt-accent); outline-offset: 2px;
}

/* ---- atoms (hub) ------------------------------------------------------- */
.lt .eyebrow { font-family: var(--lt-mono); font-size: .6rem; letter-spacing: .16em;
               text-transform: uppercase; color: var(--muted); }
.lt .primary { display: inline-flex; align-items: center; gap: .8rem; background: var(--accent);
               color: var(--lt-paper); border: none; border-radius: var(--lt-r-control); min-height: 43px;
               padding: .6rem 1.1rem; font-size: .8rem; text-decoration: none; cursor: pointer;
               transition: background .15s; }
.lt .primary:hover { background: var(--lt-accent-hover); }
.lt .text-button { background: none; border: none; padding: 0; cursor: pointer; color: var(--accent);
                   font-size: .78rem; text-decoration: none; }
.lt .text-button:hover { text-decoration: underline; }
.lt .icon { width: 19px; height: 19px; }

/* (extension) the one secondary button: same shape, outlined. Never put two
   primaries side by side — a primary + a secondary, or a primary + a text-button. */
.lt .secondary { display: inline-flex; align-items: center; gap: .8rem; background: transparent;
                 color: var(--ink); border: 1px solid var(--lt-line-strong); border-radius: var(--lt-r-control);
                 min-height: 43px; padding: .6rem 1.1rem; font-size: .8rem; text-decoration: none;
                 cursor: pointer; transition: border-color .15s, color .15s; }
.lt .secondary:hover { border-color: var(--accent); color: var(--accent); }
.lt :is(.primary, .secondary):disabled,
.lt :is(.primary, .secondary)[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.lt .primary--sm, .lt .secondary--sm { min-height: 34px; padding: .35rem .85rem; font-size: .75rem; gap: .5rem; }

/* ---- layout (hub) ------------------------------------------------------ */
.lt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 10rem; gap: 2.8rem;
             max-width: 72rem; margin: 0 auto; padding-top: .6rem; }
@media (max-width: 900px) { .lt-layout { display: block; } .lt-memento { display: none; } }
/* (extension) single-column pages: the same measure, no memento rail. */
.lt-page { max-width: 52rem; padding-top: .6rem; }
.lt-page--wide { max-width: 72rem; }

/* ---- page head (hub) --------------------------------------------------- */
.lt-greeting { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 .7rem; }
.lt h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.1rem);
         line-height: 1.06; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.lt h1 em { font-style: italic; color: var(--accent); }
.lt-subtitle { font-size: .78rem; color: var(--muted); margin: 1.05rem 0 0; }
.lt-track { font-size: .78rem; color: var(--muted); margin: .75rem 0 1.8rem; }
.lt-track a { color: inherit; text-decoration: none; }
.lt-track a:hover { color: var(--accent); }
.lt-track i { display: inline-block; width: 6px; height: 6px; border-radius: 50%;
              background: var(--lt-ok); margin-right: .45rem; font-style: normal; vertical-align: 1px; }
.lt-track i.warn { background: var(--accent); }
/* (extension) inner-page head: eyebrow kicker → a smaller display line →
   subtitle. The hub alone gets the full-size h1. */
.lt-head { margin-bottom: 1.8rem; }
.lt-head .eyebrow { margin: 0 0 .6rem; }
.lt-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.1; }
.lt-head .lt-subtitle { margin-top: .7rem; max-width: 36rem; line-height: 1.7; }
.lt-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---- the next little step — the one callout (hub) ----------------------- */
.lt-next { border: 1px solid var(--lt-accent-edge); padding: 1.55rem 1.7rem 1.6rem; background: var(--card);
           border-radius: var(--lt-r-control); }
.lt-next .eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--accent); }
.lt-next .eyebrow svg { width: 15px; height: 15px; }
.lt-next h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.7rem);
              letter-spacing: -.035em; margin: .8rem 0 .55rem; line-height: 1.15; }
.lt-next p { font-size: .8rem; line-height: 1.8; max-width: 30rem; margin: 0; color: var(--muted); }
.lt-next .primary { margin-top: 1.15rem; }

/* ---- section grammar (hub) --------------------------------------------- */
.lt-cap { display: flex; align-items: center; justify-content: space-between; gap: .8rem;
          border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.lt-cap h2 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem;
             letter-spacing: -.02em; margin: 0; }
.lt-cap > span { font-size: .68rem; color: var(--muted); }
.lt-sec { margin-top: 1.9rem; }

/* ---- task rows + ticks + choice pills (hub) ---------------------------- */
.lt-tasks { list-style: none; margin: 0; padding: 0; }
.lt-task { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; min-height: 4.1rem;
           border-bottom: 1px solid var(--line); }
.lt-tick { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--lt-tick); flex: none;
           background: transparent; padding: 0; position: relative; transition: border-color .15s; }
.lt button.lt-tick { cursor: pointer; }
.lt button.lt-tick:hover { border-color: var(--accent); }
.lt-tick.is-done, li.is-done .lt-tick { background: var(--accent); border-color: var(--accent); }
.lt-tick.is-done::after, li.is-done .lt-tick::after { content: ""; position: absolute;
           inset: 5px 4px 6px 6px; border-left: 1.5px solid var(--lt-paper); border-bottom: 1.5px solid var(--lt-paper);
           transform: rotate(-48deg); }
.lt-task > div { flex: 1; min-width: 0; font-size: .8rem; }
.lt-task > div a { color: var(--ink); text-decoration: none; }
.lt-task > div a:hover { color: var(--accent); }
.lt-task small { display: block; color: var(--muted); font-size: .68rem; margin-top: .15rem; }
.lt li.is-done > div > a, .lt li.is-done > div > span { text-decoration: line-through; color: var(--muted); }
.lt-task .due { font-size: .64rem; color: var(--muted); white-space: nowrap; }
.lt-empty { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; }
.lt-empty a { color: var(--accent); text-decoration: none; }
.lt-skip { flex: none; background: none; border: none; cursor: pointer; padding: .2rem .35rem;
           color: var(--muted); font-size: .8rem; line-height: 1; opacity: 0; transition: opacity .12s; }
.lt-task:hover .lt-skip, .lt-skip:focus-visible { opacity: 1; }
.lt-skip:hover { color: var(--accent); }
@media (hover: none) { .lt-skip { opacity: .5; } }
.lt-pills { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.lt-pills button { font-size: .72rem; color: var(--muted); background: var(--card);
                   border: 1px solid var(--line); border-radius: var(--lt-r-pill); padding: .22rem .6rem;
                   cursor: pointer; line-height: 1.2; }
.lt-pills button:hover { border-color: var(--accent); color: var(--ink); }
.lt-pills button.is-picked { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.lt-setupnote { font-size: .72rem; color: var(--muted); margin: .7rem 0 0; }

/* ---- pace numbers — serif numbers on rules (hub) ----------------------- */
.lt-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line);
            margin: 2rem 0 0; padding: 1.1rem 0; gap: .95rem; }
.lt-stats > div { min-height: 3.6rem; }
.lt-stats strong { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; display: block;
                   line-height: 1.2; color: var(--ink); letter-spacing: -.02em;
                   font-variant-numeric: tabular-nums; }
.lt-stats strong small { font-size: 1.05rem; color: var(--muted); font-weight: 400; }
.lt-stats span { font-size: .62rem; color: var(--muted); }
@media (max-width: 560px) { .lt-stats { grid-template-columns: 1fr 1fr; } }

/* ---- index rows — the kit list (hub) ----------------------------------- */
.lt-kit button, .lt-kit a.row { display: flex; align-items: center; text-align: left; gap: .85rem;
          width: 100%; border-bottom: 1px solid var(--line); padding: .95rem .1rem; min-height: 4rem;
          text-decoration: none; color: var(--ink); background: none; border-top: 0; border-inline: 0; }
.lt-kit a.row:hover b { color: var(--accent); }
.lt-kit .icon { color: var(--accent); flex: none; }
.lt-kit .mid { flex: 1; min-width: 0; }
.lt-kit b { display: block; font-weight: 500; font-size: .8rem; }
.lt-kit small { font-size: .68rem; color: var(--muted); display: block; margin-top: .2rem; }
.lt-kit .go { color: var(--muted); font-size: .8rem; }
.lt .tag { font-family: var(--lt-mono); font-size: .56rem; letter-spacing: .1em;
           text-transform: uppercase; color: var(--accent); border: 1px solid var(--line);
           border-radius: var(--lt-r-pill); padding: .16rem .55rem; background: var(--accent-soft); }
.lt-kit li { list-style: none; }
.lt-kit ul { margin: 0; padding: 0; }
.lt-kit li.is-soon { opacity: .55; }
.lt-kit .extras { display: flex; gap: 1rem; padding: 0 0 .8rem 2.35rem; margin-top: -.35rem; flex-wrap: wrap; }
.lt-kit .extras a, .lt-kit .extras button { font-family: var(--lt-mono); font-size: .6rem;
               letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: none;
               border: none; padding: 0; cursor: pointer; text-decoration: none; }
.lt-kit .extras a:hover, .lt-kit .extras button:hover { text-decoration: underline; }

/* ---- the shared-plan note (hub) ---------------------------------------- */
.lt-shared { display: flex; align-items: center; gap: .8rem; margin-top: 1.9rem; padding-top: .6rem;
             flex-wrap: wrap; }
.lt-shared .avatars, .lt .avatars { display: inline-flex; flex: none; }
.lt .avatars span { width: 28px; height: 28px; border-radius: 50%; background: var(--lt-blush);
             border: 2px solid var(--paper); display: grid; place-items: center;
             font-family: var(--serif); font-size: .72rem; color: var(--lt-cocoa); }
.lt .avatars span + span { margin-left: -8px; background: var(--lt-sage-soft); }
.lt-shared p { font-size: .78rem; color: var(--ink); flex: 1; min-width: 14rem; margin: 0; }
.lt-shared small { font-size: .7rem; color: var(--muted); display: block; margin-top: .1rem; }

/* ---- the memento rail (hub) -------------------------------------------- */
.lt-memento { padding-top: .6rem; }
.lt-photo { transform: rotate(5deg); background: #fff; padding: 7px 7px 12px;
            box-shadow: 0 3px 8px #0001; border: 1px solid var(--lt-line); }
/* The polaroid is a link to the photo picker: a pen on the corner says "yours to change",
   hover/focus lifts it and names the action over the picture. */
a.lt-photo { display: block; position: relative; color: inherit; text-decoration: none;
             transition: transform .25s ease, box-shadow .25s ease; }
a.lt-photo:hover, a.lt-photo:focus-visible { transform: rotate(2deg) translateY(-2px); box-shadow: 0 8px 18px #0002; }
.lt-photo__pen { position: absolute; top: -9px; right: -9px; z-index: 1; width: 28px; height: 28px;
                 border-radius: var(--lt-r-pill); display: grid; place-items: center;
                 background: var(--lt-card); border: 1px solid var(--lt-line-strong); color: var(--accent);
                 box-shadow: 0 2px 5px #0001; }
.lt-photo__pen svg { width: 13px; height: 13px; }
.lt-photo__hint { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
                  transition: opacity .2s; background: color-mix(in srgb, var(--lt-ink) 55%, transparent);
                  color: var(--lt-paper); font-family: var(--lt-mono); font-size: .6rem;
                  letter-spacing: .14em; text-transform: uppercase; }
a.lt-photo:hover .lt-photo__hint, a.lt-photo:focus-visible .lt-photo__hint { opacity: 1; }
@media (prefers-reduced-motion: reduce) { a.lt-photo, .lt-photo__hint { transition: none; } }
.lt-photo .ph { position: relative; overflow: hidden; height: 10rem; display: grid; place-content: center; text-align: center;
                background: linear-gradient(165deg, var(--lt-accent-soft), var(--lt-blush) 55%, var(--lt-sage-soft)); }
.lt-photo .ph i { font-style: normal; font-size: 2rem; color: var(--accent); }
.lt-photo .ph b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1rem;
                  color: var(--lt-cocoa); letter-spacing: -.02em; }
.lt-photo .ph--img { display: block; }
.lt-photo .ph--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-photo > span:not(.lt-photo__pen) { font-family: var(--serif); font-style: italic; font-size: .82rem; display: block;
                   text-align: center; padding-top: .55rem; }
.lt-date { text-align: center; margin-top: 2.3rem; padding: 1.4rem .5rem; border-block: 1px solid var(--line); }
.lt-date b { display: block; font-family: var(--serif); font-weight: 400; font-size: 3.4rem;
             color: var(--accent); line-height: 1.25; letter-spacing: -.03em; }
.lt-date b.sm { font-size: 2rem; line-height: 1.6; }
.lt-date > span:not(.eyebrow) { font-size: .66rem; color: var(--muted); }
.lt-date i { display: block; color: var(--accent); font-size: 1.4rem; margin-top: .9rem; font-style: normal; }

/* ---- celebration — one warm line + confetti (hub) ---------------------- */
.lt-cheer { display: flex; align-items: center; gap: .9rem; background: var(--accent-soft);
            border: 1px solid #E5D5CC; color: var(--lt-cocoa); border-radius: var(--lt-r-band);
            padding: .85rem 1.15rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.lt-cheer p { margin: 0; flex: 1; min-width: 12rem; font-family: var(--serif); font-size: .95rem; }
.lt-cheer button { background: var(--accent); color: var(--lt-paper); border: none; border-radius: var(--lt-r-pill);
                   padding: .4rem 1rem; cursor: pointer; font-size: .78rem; }
.lt-cheer button:hover { background: var(--lt-accent-hover); }
.lt-confetti { position: fixed; inset: 0; z-index: 180; pointer-events: none; overflow: hidden; }
.lt-confetti > span { position: absolute; left: var(--x); top: -60px; font: 24px Georgia, serif;
                      color: var(--colour); animation: lt-fall 1.8s var(--delay) both cubic-bezier(.17,.67,.69,.96); }
@keyframes lt-fall { 0% { transform: translateY(-40px) rotate(0); opacity: 0; }
                     12% { opacity: 1; }
                     100% { transform: translateY(105vh) rotate(var(--turn)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .lt-confetti { display: none; } }

/* ==== extensions — for inner pages, in the hub's grammar ================ */

/* back link — the one way out of a tool. Always "← Back to your kit", always
   the top-right of the page head, always /app/ (docs/MINI_APPS.md → back
   means the hub). Bigger than a .text-button and a real tap target. Unscoped
   on purpose so pages still on the reskin queue share the same spot. */
.lt-back { display: inline-flex; align-items: center; gap: .4rem; min-height: 43px; padding: .4rem .2rem;
           margin-left: auto; font-size: .85rem; color: var(--lt-accent); text-decoration: none;
           white-space: nowrap; border-radius: var(--lt-r-control); }
.lt-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.lt-back:focus-visible { outline: 2px solid var(--lt-accent); outline-offset: 2px; }
/* pages still in the marketing register (`.twb a { color: inherit }`) keep the burgundy. */
.twb .lt-back { color: var(--lt-accent); }

/* card — only when content truly needs a container; prefer rules + rows. */
.lt-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--lt-r-panel);
           padding: 1.3rem 1.4rem; }
.lt-card > .lt-cap:first-child { margin-top: -.2rem; }
.lt-panel { background: var(--lt-panel); border: 1px solid var(--line); border-radius: var(--lt-r-panel);
            padding: 1.1rem 1.2rem; }

/* status chips — the only place green/ochre/red appear. */
.lt-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; line-height: 1.2;
           border-radius: var(--lt-r-pill); padding: .2rem .6rem; white-space: nowrap;
           background: var(--lt-panel); color: var(--muted); }
.lt-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lt-chip--ok    { background: var(--lt-ok-soft);    color: var(--lt-ok); }
.lt-chip--wait  { background: var(--lt-warn-soft);  color: var(--lt-warn); }
.lt-chip--no    { background: var(--lt-error-soft); color: var(--lt-error); }
.lt-chip--brand { background: var(--accent-soft);   color: var(--accent); }

/* notice band — inline system messages (saved / heads-up / couldn't). */
.lt-notice { display: flex; gap: .7rem; align-items: flex-start; border-radius: var(--lt-r-band);
             padding: .8rem 1.05rem; font-size: .8rem; line-height: 1.6;
             background: var(--lt-panel); color: var(--ink); border: 1px solid var(--line); }
.lt-notice--ok    { background: var(--lt-ok-soft);    border-color: transparent; color: var(--lt-ok); }
.lt-notice--warn  { background: var(--lt-warn-soft);  border-color: transparent; color: var(--lt-warn); }
.lt-notice--error { background: var(--lt-error-soft); border-color: transparent; color: var(--lt-error); }

/* fields — mono eyebrow label, warm card input, burgundy focus. */
.lt-field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.lt-field > label, .lt-label { font-family: var(--lt-mono); font-size: .6rem; letter-spacing: .14em;
               text-transform: uppercase; color: var(--muted); }
.lt :is(.lt-input, .lt-select, .lt-textarea) {
  width: 100%; font: inherit; font-size: .85rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--lt-line-strong); border-radius: var(--lt-r-control);
  min-height: 43px; padding: .55rem .8rem; transition: border-color .15s, box-shadow .15s; }
.lt .lt-textarea { min-height: 6rem; line-height: 1.6; resize: vertical; }
.lt :is(.lt-input, .lt-select, .lt-textarea):focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); }
.lt :is(.lt-input, .lt-select, .lt-textarea)::placeholder { color: var(--muted); opacity: .7; }
.lt-help { font-size: .7rem; color: var(--muted); margin: 0; }
.lt-error { font-size: .7rem; color: var(--lt-error); margin: 0; }
.lt-field.has-error :is(.lt-input, .lt-select, .lt-textarea) { border-color: var(--lt-error); }

/* table — rows on hairlines, mono column heads, no zebra, no boxes. */
.lt-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.lt-table th { font-family: var(--lt-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
               color: var(--muted); font-weight: 400; text-align: left; padding: 0 .6rem .6rem 0;
               border-bottom: 1px solid var(--line); }
.lt-table td { padding: .8rem .6rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lt-table tr:hover td { background: color-mix(in srgb, var(--lt-hover) 35%, transparent); }
.lt-table .num { font-variant-numeric: tabular-nums; text-align: right; }

/* tabs — text with a burgundy underline for "you are here". */
.lt-tabs { display: flex; gap: 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem;
           overflow-x: auto; scrollbar-width: none; }
.lt-tabs a, .lt-tabs button { font-size: .8rem; color: var(--muted); text-decoration: none; background: none;
           border: none; padding: 0 0 .7rem; margin-bottom: -1px; border-bottom: 2px solid transparent;
           cursor: pointer; white-space: nowrap; }
.lt-tabs a:hover, .lt-tabs button:hover { color: var(--ink); }
.lt-tabs [aria-current="page"], .lt-tabs [aria-selected="true"], .lt-tabs .is-active {
           color: var(--accent); border-bottom-color: var(--accent); }

/* toggle — a small switch for settings rows. */
.lt .lt-switch { appearance: none; width: 34px; height: 20px; border-radius: var(--lt-r-pill); flex: none;
           background: var(--lt-line-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.lt .lt-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px;
           border-radius: 50%; background: var(--lt-card); transition: transform .15s; }
.lt .lt-switch:checked { background: var(--accent); }
.lt .lt-switch:checked::after { transform: translateX(14px); }

/* empty state — one serif line, one muted line, one action. */
.lt-blank { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--lt-line-strong);
            border-radius: var(--lt-r-panel); }
.lt-blank h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 .4rem; }
.lt-blank p { font-size: .8rem; color: var(--muted); margin: 0 auto 1.1rem; max-width: 26rem; line-height: 1.7; }

/* format card — a way to start, shown as the real object it sends: a stage
   with the specimen, a serif name, one muted line, facts, one .secondary.
   A card, because each format is a truly separate object. Pair two in
   .lt-formats; never give one the .primary (the couple is choosing). */
.lt-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem; }
@media (max-width: 640px) { .lt-formats { grid-template-columns: 1fr; } }
.lt-format { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
             border-radius: var(--lt-r-panel); overflow: hidden; min-width: 0; transition: border-color .15s; }
.lt-format:hover { border-color: var(--lt-accent-edge); }
.lt-format__stage { background: var(--lt-panel); border-bottom: 1px solid var(--line); height: 12rem;
                    display: grid; place-items: center; padding: .9rem; overflow: hidden; }
.lt-format__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.lt-format h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -.02em; margin: 0; }
.lt-format p { font-size: .8rem; line-height: 1.7; color: var(--muted); margin: 0; }
.lt-format ul { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .35rem; }
.lt-format li { font-size: .76rem; display: flex; gap: .55rem; align-items: baseline; }
.lt-format li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
                        flex: none; transform: translateY(-1px); }
.lt-format .secondary { margin-top: auto; align-self: flex-start; }
.lt-format__body > :last-child { margin-top: .6rem; }

/* format glyph — leads a row in place of a content icon: a tiny sealed
   envelope (card) or a ruled sheet (letter). Decorative: aria-hidden. */
.lt-fmt { flex: none; width: 28px; height: 20px; border-radius: 3px; display: grid; place-items: center; position: relative; }
.lt-fmt--card { background: var(--lt-blush); }
.lt-fmt--card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; clip-path: polygon(0 0, 100% 0, 50% 100%);
                        background: color-mix(in srgb, var(--lt-blush) 70%, var(--lt-cocoa)); opacity: .35; }
.lt-fmt--card::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; top: 1px; }
.lt-fmt--letter { background: var(--card); border: 1px solid var(--lt-line-strong); }
.lt-fmt--letter::after { content: ""; width: 13px; height: 1.5px; background: var(--lt-line-strong);
                         box-shadow: 0 4px 0 var(--lt-line-strong), 0 -4px 0 var(--lt-line-strong); }

/* menu — a short list of choices that drops from a button (the "menu items"
   --lt-r-row names). Border, no shadow. Toggle with the `hidden` attribute. */
.lt-menuwrap { position: relative; }
.lt-menu { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 20; width: min(20rem, calc(100vw - 2rem));
           background: var(--card); border: 1px solid var(--lt-line-strong); border-radius: var(--lt-r-panel);
           padding: .45rem; display: grid; gap: .05rem; }
.lt-menu[hidden] { display: none; }
.lt-menu .eyebrow { padding: .55rem .6rem .3rem; margin: 0; }
.lt-menu a { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: var(--lt-r-row);
             color: var(--ink); text-decoration: none; }
.lt-menu a:hover, .lt-menu a:focus-visible { background: var(--lt-hover); }
.lt-menu b { display: block; font-weight: 500; font-size: .8rem; }
.lt-menu small { display: block; font-size: .66rem; color: var(--muted); }
.lt-menu hr { border: 0; border-top: 1px solid var(--line); margin: .35rem .3rem; }

/* format specimens — the guest-facing objects drawn from tokens, for a
   .lt-format__stage: a sealed envelope (.lt-env) and an email (.lt-mail). */
.lt-env { width: min(15rem, 100%); aspect-ratio: 1.55; background: var(--lt-blush); border-radius: 6px; position: relative; overflow: hidden; }
.lt-env::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 58%; clip-path: polygon(0 0, 100% 0, 50% 100%);
                  background: color-mix(in srgb, var(--lt-blush) 72%, var(--lt-cocoa)); opacity: .32; transform-origin: top;
                  transition: transform .35s ease; }
.lt-format:hover .lt-env::before { transform: scaleY(.86); }
@media (prefers-reduced-motion: reduce) { .lt-env::before { transition: none; } }
.lt-env__seal { position: absolute; left: 50%; top: 56%; width: 2.3rem; height: 2.3rem; border-radius: 50%; transform: translate(-50%, -50%);
                background: radial-gradient(circle at 36% 34%, color-mix(in srgb, var(--lt-accent) 70%, var(--lt-paper)), var(--lt-accent) 58%, var(--lt-accent-hover));
                display: grid; place-items: center; color: var(--lt-accent-soft); font-family: var(--serif); font-style: italic; font-size: .78rem; }
.lt-env__to { position: absolute; left: 0; right: 0; bottom: 11%; text-align: center; font-family: var(--serif); font-style: italic;
              font-size: .9rem; color: var(--lt-cocoa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 .6rem; }
.lt-mail { width: min(15rem, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--lt-r-control);
           overflow: hidden; text-align: center; }
.lt-mail__hd { display: flex; gap: .5rem; align-items: center; padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.lt-mail__hd > span:last-child { min-width: 0; }
.lt-mail__av { width: 20px; height: 20px; border-radius: 50%; background: var(--lt-blush); display: grid; place-items: center;
               font-family: var(--serif); font-size: .5rem; color: var(--lt-cocoa); flex: none; }
.lt-mail__hd b { display: block; font-size: .62rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-mail__hd small { display: block; font-size: .56rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-mail__bd { padding: .7rem .7rem .8rem; display: grid; gap: .35rem; justify-items: center; }
.lt-mail__ph { width: 100%; aspect-ratio: 5; background: linear-gradient(165deg, var(--lt-accent-soft), var(--lt-blush) 55%, var(--lt-sage-soft)); }
.lt-mail__h { font-family: var(--serif); font-size: 1rem; letter-spacing: -.02em; line-height: 1.1; }
.lt-mail__p { font-size: .56rem; color: var(--muted); line-height: 1.55; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- (extension) app chrome — the workshop bar + the account menu ----------
   Navigation Option D (Oct 2026). Unscoped (prefixed .lt-) because chrome sits
   outside a page's <div class="lt">. Desk pages: top bar + rail. Workshops
   (full-screen tools): .lt-wbar, whose top-left "‹ Dashboard" is the one way
   out. Partials: web/components/workshop_bar.html, account_menu.html. */
.lt-wbar { position: sticky; top: 0; z-index: 50; box-sizing: border-box; display: flex; align-items: center;
           gap: .9rem; min-height: 56px; padding: 0 1.25rem; background: var(--lt-paper);
           border-bottom: 1px solid var(--lt-line); color: var(--lt-ink); font-size: .85rem; line-height: 1.3;
           font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; }
.lt-wbar *, .lt-wbar *::before, .lt-wbar *::after { box-sizing: border-box; }
.lt-wbar :where(a, button, summary, input, select):focus-visible { outline: 2px solid var(--lt-accent); outline-offset: 2px; }
.lt-wbar__home { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px;
                 padding: .35rem .75rem .35rem .45rem; border-radius: var(--lt-r-row); color: var(--lt-ink);
                 text-decoration: none; white-space: nowrap; transition: background .15s; }
.lt-wbar__home:hover { background: var(--lt-hover); }
.lt-wbar__home img { display: block; flex: none; }
.lt-wbar__chev { color: var(--lt-accent); font-size: 1.15rem; line-height: 1; }
.lt-wbar__rule { flex: none; width: 1px; height: 22px; background: var(--lt-line); }
.lt-wbar__tool { min-width: 0; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lt-wbar__center { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.lt-wbar__end { flex: none; display: flex; align-items: center; gap: .75rem; }
.lt-wbar__end:empty { display: none; }
@media (max-width: 640px) {
  .lt-wbar { gap: .5rem; padding: 0 .75rem; }
  .lt-wbar__home img, .lt-wbar__rule { display: none; }
  .lt-wbar__home { padding-left: .35rem; }
  .lt-wbar__tool { max-width: 9rem; }
  /* A tool with controls in its slots gives up its label before the way out or the avatar move. */
  .lt-wbar:has(.lt-wbar__center:not(:empty), .lt-wbar__end:not(:empty)) .lt-wbar__tool { display: none; }
  .lt-wbar__center, .lt-wbar__end { white-space: nowrap; }
  .lt-wbar__end { flex: 0 1 auto; min-width: 0; gap: .5rem; overflow: hidden; }
  .lt-wbar__center > * { flex-wrap: nowrap; }
  /* Tools own their phone set: put only what fits (save state + one action) in the slots. */
}

.lt-acct { position: relative; flex: none; font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; }
.lt-acct > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px;
                     border-radius: var(--lt-r-pill); overflow: hidden; background: var(--lt-blush);
                     border: 1px solid var(--lt-line); transition: border-color .15s; }
.lt-acct > summary::-webkit-details-marker { display: none; }
.lt-acct > summary:hover { border-color: var(--lt-line-strong); }
.lt-acct > summary:focus-visible { outline: 2px solid var(--lt-accent); outline-offset: 2px; }
.lt-acct__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lt-acct__mono { font-family: var(--lt-serif); font-size: .95rem; line-height: 1; color: var(--lt-cocoa); }
.lt-acct__menu { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; width: min(15rem, calc(100vw - 2rem));
                 display: grid; gap: .05rem; padding: .45rem; background: var(--lt-card);
                 border: 1px solid var(--lt-line-strong); border-radius: var(--lt-r-panel); font-size: .85rem; }
.lt-acct__head { display: grid; gap: .1rem; padding: .45rem .6rem .6rem; margin-bottom: .2rem; border-bottom: 1px solid var(--lt-line); }
.lt-acct__head b { font-weight: 600; color: var(--lt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-acct__head small { font-size: .72rem; color: var(--lt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-acct__menu a { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: var(--lt-r-row);
                   color: var(--lt-ink); text-decoration: none; }
.lt-acct__menu a:hover, .lt-acct__menu a:focus-visible { background: var(--lt-hover); }
.lt-acct__menu hr { border: 0; border-top: 1px solid var(--lt-line); margin: .3rem .3rem; }
