/*
    The in-app guide (/guide, /guide/{id}) and What's new (/whats-new).

    Written for people with ADHD and other neurodivergent readers first, which is what most of
    the choices below come from:
      - One column, left-aligned, never justified. Body text at 1rem with a 1.6 line height and
        lines capped near 38rem, so the eye can find the next line.
      - Every article has the same parts in the same order. The short answer, the picture and the
        steps are open; the reasons and edge cases are folded away (<details>) until asked for.
      - Nothing moves unless the reader moves it. No autoplay, no looping animation; the one
        transition here is switched off under prefers-reduced-motion.
      - Colour is never the only signal: "New" is a word as well as a dot.
      - Informational text uses --ink-muted or darker. --ink-faint is under 4.5:1 on the cream
        page and is not used for anything a reader needs.

    Tokens (--stone-*, --ink-*, --amber-*, --surface-*) come from timeline.css :root, which both
    host documents link ahead of this file. The page shell reuses .acct-page / .acct-header /
    .acct-planstrip from account.css, as the other account-area pages do.

    Every card, panel and menu here, on the page or drawn in a picture, takes --surface-card,
    never --surface-elev. That one is white in the light theme, and the brand has no white
    surfaces: a card on the cream page is cream, drawn by its border, as in Settings.

    Structure:
      1.  Page shell, header, back link
      2.  Inline text: screen names, tap / click, drawn controls, keys
      3.  Front page: search, start-here cards, groups and rows
      4.  Article: in short, steps, button, folded sections, settings, related, next, footer
      5.  Figures: the frame and the shared drawing parts (gf-*)
      6.  What's new (wn-*)
      7.  The quiet "something new" dot in the menus (hf-help-*)
      8.  Responsive and motion
*/

/* ═══ 1. Page shell ═══════════════════════════════════════════════ */

.gd-page {
    --acct-stack-gap: 1.5rem;
    --gd-measure: 38rem;
    max-width: 46rem;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

/* The shared eyebrow is --ink-faint, which is too light to carry meaning. Here it names the
   section of the guide, so it steps up to the muted ink. */
.gd-page .acct-eyebrow {
    color: var(--ink-muted, #6B6449);
}

.gd-page .acct-subtitle {
    max-width: var(--gd-measure);
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--ink-muted, #6B6449);
}

.gd-back {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    align-self: flex-start;
    min-height: 44px;
    margin: -0.5rem 0 -0.75rem -0.5rem;
    padding: 0 0.75rem 0 0.25rem;
    border-radius: 22px;
    color: var(--ink-muted, #6B6449);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.gd-back svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.gd-back:hover {
    color: var(--ink-primary, #2C2C2A);
    background: var(--stone-100, #EDE5D6);
}

.gd-back:focus-visible,
.gd-btn:focus-visible,
.gd-row:focus-visible,
.gd-start-card:focus-visible,
.gd-chip:focus-visible,
.gd-next:focus-visible,
.gd-more > summary:focus-visible {
    outline: 2px solid var(--stone-600, #6B5A42);
    outline-offset: 2px;
}

.gd-h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--ink-primary, #2C2C2A);
}

.gd-p {
    margin: 0;
    max-width: var(--gd-measure);
    color: var(--ink-primary, #2C2C2A);
}

.gd-p.is-muted {
    color: var(--ink-muted, #6B6449);
    font-size: 0.92rem;
}

.gd-sec {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ═══ 2. Inline text ══════════════════════════════════════════════ */

/* A name exactly as the screen shows it. */
.gd-label {
    font-weight: 700;
    color: var(--ink-primary, #2C2C2A);
}

/* "Tap" for a finger, "Click" for a mouse. Touch is the default because most readers are on a
   phone; a pointer that can hover and is precise switches the pair over. display: none hides the
   other wording from screen readers as well. */
.gd-mouse {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .gd-touch {
        display: none;
    }

    .gd-mouse {
        display: inline;
    }
}

/* Small drawings of the controls the text names, so "tap ○" cannot be misread. */
.gd-glyph {
    display: inline-grid;
    place-items: center;
    min-width: 1.5em;
    height: 1.5em;
    margin: 0 0.1em;
    padding: 0 0.25em;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 0.4em;
    background: var(--surface-card, #F5F2E8);
    color: var(--stone-700, #4A3E2E);
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    vertical-align: -0.25em;
}

.gd-glyph svg {
    width: 1.05em;
    height: 1.05em;
    fill: currentColor;
}

/* The circle is drawn bare, as it is on a task card: a ring, with no box around it. */
.gd-glyph-circle {
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
}

.gd-glyph-circle::before {
    content: '';
    width: 1.05em;
    height: 1.05em;
    border: 2px solid var(--stone-600, #6B5A42);
    border-radius: 50%;
}

.gd-glyph-plus,
.gd-glyph-account {
    border-radius: 50%;
    padding: 0;
}

.gd-kbd {
    display: inline-block;
    min-width: 1.7em;
    padding: 0.05em 0.45em;
    border: 1px solid var(--stone-300, #C4B296);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--surface-card, #F5F2E8);
    color: var(--ink-primary, #2C2C2A);
    font-family: inherit;
    font-size: 0.82em;
    font-weight: 600;
    text-align: center;
}

/* ═══ 3. Front page ═══════════════════════════════════════════════ */

.gd-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 0.9rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 12px;
    background: var(--surface-card, #F5F2E8);
}

.gd-search:focus-within {
    border-color: var(--stone-600, #6B5A42);
    box-shadow: 0 0 0 3px rgba(138, 118, 89, 0.2);
}

.gd-search svg {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--ink-muted, #6B6449);
}

.gd-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: none;
    color: var(--ink-primary, #2C2C2A);
    font: inherit;
    /* A search field keeps its platform look otherwise: a rounded grey capsule on iOS. */
    -webkit-appearance: none;
    appearance: none;
}

.gd-search input::placeholder {
    color: var(--ink-muted, #6B6449);
    opacity: 1;
}

/* The platform's own "clear" button, kept (one tap empties the field) but drawn in the app's
   ink. Left alone it is bright blue on Android and a grey disc on iOS, and neither belongs to
   this page. Browsers that draw no such button simply ignore the rule. */
.gd-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 -0.3rem 0 0.4rem;
    background-color: var(--ink-muted, #6B6449);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
    cursor: pointer;
}

.gd-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Start here: three numbered cards. The numbers say how many there are and which comes first,
   so nobody has to decide where to begin. */
.gd-start-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    counter-reset: gd-start;
}

.gd-start-list > li {
    counter-increment: gd-start;
    display: flex;
}

.gd-start-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    padding: 0.9rem 0.95rem 1rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--surface-card, #F5F2E8);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(60, 40, 30, 0.04);
}

.gd-start-card::before {
    content: counter(gd-start);
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.25rem;
    border-radius: 50%;
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
    font-size: 0.85rem;
    font-weight: 700;
}

.gd-start-card:hover {
    border-color: var(--stone-400, #A89478);
    background: var(--surface-card-sunk, #EDE5D6);
}

.gd-start-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink-primary, #2C2C2A);
}

.gd-start-line {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-muted, #6B6449);
}

.gd-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--surface-card, #F5F2E8);
    overflow: hidden;
}

.gd-list > li + li {
    border-top: 1px solid var(--stone-100, #EDE5D6);
}

.gd-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 56px;
    padding: 0.65rem 0.9rem;
    color: inherit;
    text-decoration: none;
}

.gd-row:hover {
    background: var(--surface-card-sunk, #EDE5D6);
}

.gd-row:focus-visible {
    outline-offset: -2px;
}

.gd-row-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: var(--stone-100, #EDE5D6);
    color: var(--stone-700, #4A3E2E);
}

.gd-row-icon .mud-icon-root {
    font-size: 1.25rem;
}

.gd-row-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink-primary, #2C2C2A);
}

.gd-row-line {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--ink-muted, #6B6449);
}

.gd-row-chevron {
    width: 1.2rem;
    height: 1.2rem;
    fill: var(--ink-muted, #6B6449);
}

.gd-nomatch {
    margin: 0;
    padding: 1rem;
    border: 1px dashed var(--stone-300, #C4B296);
    border-radius: 14px;
    color: var(--ink-muted, #6B6449);
}

.gd-help-foot {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-muted, #6B6449);
}

.gd-help-foot a {
    color: var(--stone-700, #4A3E2E);
    font-weight: 600;
    text-underline-offset: 3px;
}

/* ═══ 4. Article ══════════════════════════════════════════════════ */

.gd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.gd-article .acct-title {
    font-size: 1.9rem;
}

/* The heading takes focus when "Next" brings another article onto the same page, so a screen
   reader announces it. That is a place to read from, not a control, so it shows no ring. */
.gd-article .acct-title:focus {
    outline: none;
}

/* "In short": the whole article in a sentence or two, for the reader who stops here. */
.gd-short {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.95rem 1.1rem 1.05rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-left: 4px solid var(--stone-500, #8A7659);
    border-radius: 12px;
    background: var(--stone-100, #EDE5D6);
}

.gd-short-label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stone-700, #4A3E2E);
}

.gd-short-text {
    margin: 0;
    max-width: var(--gd-measure);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-primary, #2C2C2A);
}

.gd-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    counter-reset: gd-step;
}

.gd-steps > li {
    counter-increment: gd-step;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    max-width: var(--gd-measure);
}

.gd-steps > li::before {
    content: counter(gd-step);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
    font-size: 0.9rem;
    font-weight: 700;
}

.gd-step-lead {
    display: block;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-primary, #2C2C2A);
}

.gd-step-text {
    display: block;
    margin-top: 0.15rem;
    color: var(--ink-primary, #2C2C2A);
}

/* A step for one kind of pointer. display: none also keeps it out of the numbering, because a
   counter does not count an element that generates no box. */
.gd-steps > li.is-mouse {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .gd-steps > li.is-touch {
        display: none;
    }

    .gd-steps > li.is-mouse {
        display: grid;
    }
}

.gd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.gd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.5rem 1.15rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-primary, #2C2C2A);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.gd-btn:hover {
    border-color: var(--stone-500, #8A7659);
    background: var(--stone-100, #EDE5D6);
}

.gd-btn.is-primary {
    border-color: var(--stone-600, #6B5A42);
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
}

.gd-btn.is-primary:hover {
    border-color: var(--stone-700, #4A3E2E);
    background: var(--stone-700, #4A3E2E);
}

.gd-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

/* Folded sections. A native <details>, so it opens before the page is interactive, works with a
   keyboard, and a search in the page still finds what is inside. */
.gd-more-group {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--surface-card, #F5F2E8);
    overflow: hidden;
}

.gd-more + .gd-more {
    border-top: 1px solid var(--stone-100, #EDE5D6);
}

.gd-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.6rem 1rem;
    font-weight: 700;
    color: var(--ink-primary, #2C2C2A);
    cursor: pointer;
    list-style: none;
}

.gd-more > summary::-webkit-details-marker {
    display: none;
}

.gd-more > summary::after {
    content: '';
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.25rem;
    border-right: 2px solid var(--stone-600, #6B5A42);
    border-bottom: 2px solid var(--stone-600, #6B5A42);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}

.gd-more[open] > summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.gd-more > summary:hover {
    background: var(--surface-card-sunk, #EDE5D6);
}

.gd-more > summary:focus-visible {
    outline-offset: -2px;
}

.gd-more-body {
    padding: 0.25rem 1rem 1.1rem;
}

.gd-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gd-points > li {
    position: relative;
    max-width: var(--gd-measure);
    padding-left: 1.1rem;
    color: var(--ink-primary, #2C2C2A);
}

.gd-points > li::before {
    content: '';
    position: absolute;
    left: 0.1rem;
    top: 0.68em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stone-500, #8A7659);
}

.gd-point-lead {
    font-weight: 700;
}

.gd-more-body .gd-steps > li::before {
    background: var(--stone-100, #EDE5D6);
    border: 1px solid var(--stone-300, #C4B296);
    color: var(--stone-700, #4A3E2E);
}

.gd-strips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* On the guide's pages a strip reads top to bottom: where, what, then one line about it. The
   shared label colour (--ink-faint) is too light for something a reader needs. */
.gd-page .acct-planstrip-label {
    color: var(--ink-muted, #6B6449);
}

.gd-page .acct-planstrip-detail {
    flex: 0 0 100%;
}

/* A setting with no page of its own: the strip's look, without being a link. */
.gd-strips .acct-planstrip.is-static {
    cursor: default;
}

.gd-related {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.gd-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 999px;
    background: var(--surface-card, #F5F2E8);
    color: var(--ink-primary, #2C2C2A);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.gd-chip:hover {
    border-color: var(--stone-500, #8A7659);
    background: var(--surface-card-sunk, #EDE5D6);
}

.gd-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--surface-card, #F5F2E8);
    color: inherit;
    text-decoration: none;
}

.gd-next:hover {
    border-color: var(--stone-400, #A89478);
    background: var(--surface-card-sunk, #EDE5D6);
}

.gd-next-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted, #6B6449);
}

.gd-next-title {
    display: block;
    font-weight: 700;
    color: var(--ink-primary, #2C2C2A);
}

.gd-next svg {
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    fill: var(--ink-muted, #6B6449);
}

.gd-foot {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--stone-200, #DDD0B8);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink-muted, #6B6449);
}

.gd-foot svg {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    fill: var(--stone-500, #8A7659);
}

/* ═══ 5. Figures ══════════════════════════════════════════════════ */

.gd-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.gd-figure-stage {
    display: flex;
    justify-content: center;
    padding: 1.1rem 1rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 16px;
    background: var(--guide-stage, #F5F2E8);
}

.gd-figure-caption {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-muted, #6B6449);
}

/* Everything a figure draws sits in one narrow column, the width of a phone, so it reads the
   same on every screen. */
.gf {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    max-width: 21rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--ink-primary, #2C2C2A);
}

.gf-wide {
    max-width: 26rem;
}

.gf-zone {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gf-zone-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted, #6B6449);
}

.gf-zone-meta {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* A button drawn in a zone's heading keeps its own wording: "Done looking", not "DONE LOOKING". */
.gf-zone-head .gf-btn {
    min-height: 1.6rem;
    padding: 0.15rem 0.6rem;
    color: var(--ink-primary, #2C2C2A);
    font-size: 0.74rem;
    letter-spacing: 0;
    text-transform: none;
}

/* The same fade the real zones use (timeline.css): Soon a little, Later more. */
.gf-zone.is-soon .gf-task {
    opacity: 0.72;
    filter: blur(1px);
}

.gf-zone.is-later .gf-task {
    opacity: 0.45;
    filter: blur(1.8px);
    font-size: 0.8rem;
}

.gf-zone.is-later.is-looking .gf-task {
    opacity: 1;
    filter: none;
    font-size: 0.86rem;
}

.gf-task {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-left: 3px solid var(--stone-300, #C4B296);
    border-radius: 10px;
    background: var(--stone-100, #EDE5D6);
    font-weight: 600;
}

.gf-task.is-quick {
    border-left-width: 1px;
    background: transparent;
    color: var(--ink-muted, #6B6449);
}

.gf-task.is-solid {
    border-color: var(--stone-300, #C4B296);
    border-left: 4px solid var(--stone-500, #8A7659);
    background: var(--stone-200, #DDD0B8);
}

.gf-task.is-deep {
    border-color: var(--stone-500, #8A7659);
    border-left: 6px solid var(--stone-700, #4A3E2E);
    background: var(--stone-400, #A89478);
    color: var(--surface-base, #F5F2E8);
}

.gf-task.is-top {
    min-height: 3.2rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.gf-ring {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.7;
}

.gf-ring.is-done {
    display: grid;
    place-items: center;
    border-color: var(--stone-600, #6B5A42);
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
    font-size: 0.6rem;
    font-weight: 700;
    opacity: 1;
}

.gf-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.gf-pill {
    flex: 0 0 auto;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 999px;
    background: var(--stone-50, #F5F0E8);
    color: var(--ink-muted, #6B6449);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.gf-task.is-deep .gf-pill {
    border-color: rgba(var(--on-fill-rgb, 255, 255, 255), 0.4);
    background: rgba(var(--on-fill-rgb, 255, 255, 255), 0.18);
    color: var(--on-fill, #fff);
}

.gf-time {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 4px;
    background: var(--stone-50, #F5F0E8);
    color: var(--ink-muted, #6B6449);
    font-size: 0.66rem;
    font-weight: 600;
    white-space: nowrap;
}

.gf-time::before {
    content: '●';
    font-size: 0.5rem;
}

.gf-dots {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    color: var(--ink-muted, #6B6449);
}

.gf-dots svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

/* Marks the one part of a picture the text is about. A ring, never colour alone. */
.gf-hl {
    outline: 2px solid var(--amber-600, #926A22);
    outline-offset: 2px;
}

.gf-arrow {
    align-self: center;
    width: 1.4rem;
    height: 1.4rem;
    fill: var(--stone-500, #8A7659);
}

.gf-note {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--ink-muted, #6B6449);
}

.gf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 999px;
    background: var(--surface-card, #F5F2E8);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.gf-btn.is-solid {
    border-color: var(--stone-600, #6B5A42);
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
}

.gf-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.gf-row.is-end {
    justify-content: flex-end;
}

.gf-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--surface-card, #F5F2E8);
    box-shadow: 0 6px 18px rgba(74, 62, 46, 0.1);
}

.gf-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.gf-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gf-field-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-muted, #6B6449);
}

.gf-input {
    min-height: 2.1rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 8px;
    background: var(--surface-raised, #FDFBF6);
    font-weight: 500;
}

.gf-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-muted, #6B6449);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
}

.gf-chip.is-on {
    border-color: var(--stone-600, #6B5A42);
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
}

button.gf-chip {
    cursor: pointer;
}

button.gf-chip:focus-visible {
    outline: 2px solid var(--stone-600, #6B5A42);
    outline-offset: 2px;
}

.gf-menu {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    min-width: 11.5rem;
    margin: -0.2rem 0.4rem 0 0;
    padding: 0.3rem 0;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 10px;
    background: var(--surface-card, #F5F2E8);
    box-shadow: 0 8px 22px rgba(40, 25, 18, 0.16);
}

.gf-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.gf-menu-item svg {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    fill: var(--stone-600, #6B5A42);
}

.gf-menu-item.is-danger,
.gf-menu-item.is-danger svg {
    color: var(--rust-500, #A0544A);
    fill: var(--rust-500, #A0544A);
}

.gf-menu-rule {
    height: 1px;
    margin: 0.25rem 0;
    background: var(--stone-100, #EDE5D6);
}

/* Search and commands: the box, then its first rows (CommandPaletteFigure). A row wraps, so a
   long label or large text pushes the key caps to a line of their own and cuts nothing off. */
.gf-cmd-box {
    color: var(--ink-muted, #6B6449);
}

.gf-cmd-head {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-muted, #6B6449);
}

.gf-cmd-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gf-cmd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.5rem;
    min-height: 1.9rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
}

.gf-cmd-detail {
    color: var(--ink-muted, #6B6449);
    font-size: 0.75rem;
}

.gf-cmd-keys {
    display: inline-flex;
    gap: 0.2rem;
    margin-left: auto;
}

/* The Settings list: one group, each row with what it is set to (SettingsFigure). A row wraps,
   so a long value or large text drops under the title and cuts nothing off. */
.gf-set-head {
    margin-top: 0.1rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-muted, #6B6449);
}

.gf-set-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gf-set-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.1rem 0.75rem;
    min-height: 1.9rem;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.gf-set-value {
    color: var(--ink-muted, #6B6449);
    font-size: 0.75rem;
    font-weight: 500;
}

.gf-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    background: var(--stone-700, #4A3E2E);
    color: var(--on-fill, #fff);
    font-size: 0.8rem;
    font-weight: 500;
}

.gf-toast-action {
    flex: 0 0 auto;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    background: rgba(var(--on-fill-rgb, 255, 255, 255), 0.18);
    font-weight: 700;
}

.gf-done-pill {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 999px;
    background: var(--surface-base, #F5F2E8);
    box-shadow: 0 4px 14px rgba(74, 62, 46, 0.1);
    font-size: 0.78rem;
    font-weight: 500;
}

.gf-done-pill b {
    font-weight: 700;
}

/* The spotlight card. */
.gf-spot {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.9rem 0.95rem 1rem 1.15rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--stone-100, #EDE5D6);
    box-shadow: 0 6px 20px rgba(74, 62, 46, 0.08);
    overflow: hidden;
}

.gf-spot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--amber-400, #C89848);
}

.gf-spot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted, #6B6449);
}

.gf-spot-x {
    font-size: 0.8rem;
    letter-spacing: 0;
}

.gf-spot-body {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.02rem;
    font-weight: 600;
}

.gf-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(115, 106, 99, 0.18);
    overflow: hidden;
}

.gf-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-300, #D9B06A) 0%, var(--amber-400, #C89848) 100%);
}

.gf-spot.is-warning .gf-bar-fill {
    background: linear-gradient(90deg, var(--amber-300, #D9B06A) 0%, var(--amber-500, #B8873A) 100%);
}

.gf-spot.is-overflow .gf-bar-fill {
    background: linear-gradient(90deg, var(--amber-400, #C89848) 0%, var(--amber-500, #B8873A) 60%, var(--amber-600, #926A22) 100%);
}

.gf-bar-over {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: repeating-linear-gradient(45deg, rgba(184, 135, 58, 0.72) 0, rgba(184, 135, 58, 0.72) 6px, rgba(200, 152, 72, 0.72) 6px, rgba(200, 152, 72, 0.72) 12px);
}

.gf-spot-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    color: var(--ink-muted, #6B6449);
}

.gf-spot-meta::before {
    content: '';
    flex: 0 0 auto;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--amber-400, #C89848);
}

.gf-spot.is-overflow .gf-spot-meta {
    color: var(--amber-600, #926A22);
    font-weight: 600;
}

.gf-controls {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--stone-300, #C4B296);
}

/* The label sits above its control, so four size chips fit on one line on a phone. */
.gf-control {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gf-control-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink-muted, #6B6449);
}

.gf-slider-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gf-slider {
    flex: 1 1 auto;
    min-width: 0;
    height: 28px;
    accent-color: var(--stone-600, #6B5A42);
}

.gf-slider-value {
    flex: 0 0 auto;
    min-width: 3.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Task sizes: a pill, what it means, and how long the spotlight's bar takes. */
.gf-sizes {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gf-size-row {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
}

.gf-size-row .gf-pill {
    justify-self: start;
}

.gf-size-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(138, 118, 89, 0.16);
    overflow: hidden;
}

.gf-size-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--amber-300, #D9B06A) 0%, var(--amber-400, #C89848) 100%);
}

.gf-size-min {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Energy and the day's load. */
.gf-load {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gf-load-bar {
    flex: 1 1 auto;
    display: flex;
    height: 10px;
    border-radius: 999px;
    background: var(--stone-100, #EDE5D6);
    overflow: hidden;
}

.gf-load-seg {
    height: 100%;
}

.gf-load-seg.is-deep { background: var(--stone-500, #8A7659); }
.gf-load-seg.is-solid { background: var(--stone-400, #A89478); }
.gf-load-seg.is-short { background: var(--stone-300, #C4B296); }
.gf-load-seg.is-quick { background: var(--stone-200, #DDD0B8); }

.gf-load-label {
    flex: 0 0 auto;
    min-width: 4.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
}

/* Someday card. */
.gf-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--surface-card, #F5F2E8);
    box-shadow: 0 6px 18px rgba(74, 62, 46, 0.1);
}

.gf-card-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted, #6B6449);
}

.gf-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.gf-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.gf-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.45rem 0.3rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 10px;
    background: var(--surface-card, #F5F2E8);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.gf-choice small {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--ink-muted, #6B6449);
}

/* Plan: a week of days. */
.gf-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.gf-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-height: 4.6rem;
    padding: 0.4rem 0.15rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 8px;
    background: var(--surface-card, #F5F2E8);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--ink-muted, #6B6449);
}

.gf-day.is-today {
    border-color: var(--stone-600, #6B5A42);
    color: var(--ink-primary, #2C2C2A);
}

.gf-day.is-past {
    opacity: 0.45;
}

.gf-day-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    min-height: 0.9rem;
}

.gf-day-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--stone-400, #A89478);
}

.gf-day-dot.is-fixed {
    background: var(--stone-700, #4A3E2E);
}

.gf-day-bar {
    width: 80%;
    height: 4px;
    margin-top: auto;
    border-radius: 999px;
    background: var(--stone-100, #EDE5D6);
    overflow: hidden;
}

.gf-day-bar > span {
    display: block;
    height: 100%;
    background: var(--stone-500, #8A7659);
}

/* Time picker styles: the Profile page's own thumbnails. */
.gf-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.gf-tile {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.55rem 0.6rem 0.6rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 12px;
    background: var(--surface-card, #F5F2E8);
    font-size: 0.8rem;
    font-weight: 700;
}

.gf-tile.is-on {
    border-color: var(--stone-600, #6B5A42);
    box-shadow: 0 0 0 1px var(--stone-600, #6B5A42);
}

.gf-tile svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: var(--stone-100, #EDE5D6);
}

/* Light or dark: the three choices on the Appearance card, each beside a small picture of that
   look. Rows, not tiles side by side: "Match this device" needs the width when the reader's
   text is large. The pictures' own colours are attributes in AppearanceFigure, not rules here. */
.gf-looks {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.gf-look {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.2rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 12px;
    background: var(--surface-card, #F5F2E8);
    font-size: 0.85rem;
    font-weight: 700;
}

.gf-look.is-on {
    border-color: var(--stone-600, #6B5A42);
    box-shadow: 0 0 0 1px var(--stone-600, #6B5A42);
}

.gf-look svg {
    flex: 0 0 auto;
    width: 4.6rem;
    height: auto;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 8px;
}

/* Empty my head: the box, then the picks. */
.gf-box {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 12px;
    background: var(--surface-raised, #FDFBF6);
}

.gf-box-line {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-weight: 500;
}

.gf-box-line::before {
    content: '';
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--stone-500, #8A7659);
    transform: translateY(-2px);
}

.gf-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 10px;
    background: var(--surface-card, #F5F2E8);
    font-weight: 500;
}

.gf-pick.is-on {
    border-color: var(--stone-600, #6B5A42);
    background: var(--stone-100, #EDE5D6);
    font-weight: 700;
}

.gf-pick-mark {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--stone-700, #4A3E2E);
}

/* A calendar event becoming a task. */
.gf-cal {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 12px;
    background: var(--surface-card, #F5F2E8);
}

.gf-cal-date {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* A smallest width: at a large text size the weekday is wider than this, and a fixed
       width cut it off (the corners clip, for the rounded strip). */
    min-width: 2.6rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 8px;
    overflow: hidden;
    font-weight: 700;
}

.gf-cal-date small {
    box-sizing: border-box;
    width: 100%;
    padding: 0.1rem 0.3rem;
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.gf-cal-date span {
    padding: 0.1rem 0 0.2rem;
    font-size: 1rem;
}

.gf-cal-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.gf-cal-text small {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--ink-muted, #6B6449);
}

.gf-badge {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.3rem;
    height: 1.3rem;
    color: var(--ink-muted, #6B6449);
}

.gf-badge svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* A notification. */
.gf-notice {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--surface-card, #F5F2E8);
    box-shadow: 0 8px 22px rgba(40, 25, 18, 0.14);
}

.gf-notice-app {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-muted, #6B6449);
}

.gf-notice-title {
    font-weight: 700;
}

.gf-notice-body {
    font-size: 0.82rem;
    color: var(--ink-muted, #6B6449);
}

.gf-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 10px;
    background: var(--surface-card, #F5F2E8);
    font-weight: 600;
}

.gf-switch {
    flex: 0 0 auto;
    position: relative;
    width: 2.1rem;
    height: 1.2rem;
    border-radius: 999px;
    background: var(--stone-300, #C4B296);
}

.gf-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.2rem - 4px);
    height: calc(1.2rem - 4px);
    border-radius: 50%;
    background: var(--on-fill, #fff);
}

.gf-switch.is-on {
    background: var(--stone-600, #6B5A42);
}

.gf-switch.is-on::after {
    left: auto;
    right: 2px;
}

/* Linking a watch: the code on the watch, then the same code typed into the app. */
/* A watch showing a code, and the panel the code is typed into. Side by side while both fit.
   When they do not (a phone at a large text size), the panel drops underneath at full width
   rather than being squeezed until its button spills out of it. */
.gf-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.gf-link .gf-panel {
    flex: 1 1 9.5rem;
    /* Never narrower than its widest single thing: the code and the button do not wrap. */
    min-width: min-content;
}

.gf-link .gf-input {
    white-space: nowrap;
}

.gf-watch {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    /* A smallest size, never a fixed one. Android enlarges the text to the reader's own text
       size but leaves boxes alone, so a fixed face let the code spill over its frame. As wide
       as the code needs (it does not wrap), and square. */
    box-sizing: border-box;
    width: min-content;
    min-width: 5.6rem;
    min-height: 5.6rem;
    aspect-ratio: 1;
    padding: 0.3rem;
    border: 3px solid var(--stone-700, #4A3E2E);
    border-radius: 1.5rem;
    background: var(--stone-800, #241F1B);
    color: var(--surface-base, #F5F2E8);
    font-size: 0.6rem;
    text-align: center;
}

.gf-watch b {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.gf-link .gf-arrow {
    flex: 0 0 auto;
    transform: rotate(-90deg);
}

/* The calm screen for a heavy day. */
.gf-calm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 1rem 1rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 16px;
    background: var(--surface-base, #F5F2E8);
    text-align: center;
}

.gf-calm-line {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.3;
}

.gf-calm-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 12px;
    background: var(--surface-card, #F5F2E8);
}

.gf-calm-links {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink-muted, #6B6449);
}

/* The account menu, where Help lives. */
.gf-account {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.gf-account-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: var(--stone-600, #6B5A42);
}

.gf-account-icon svg {
    width: 1.7rem;
    height: 1.7rem;
    fill: currentColor;
}

.gf-account .gf-menu {
    margin: 0;
}

.gf-new {
    margin-left: auto;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--amber-600, #926A22);
    color: var(--on-fill, #fff);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.gf-dot {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 9px;
    height: 9px;
    border: 2px solid var(--guide-stage, #FBF9F4);
    border-radius: 50%;
    background: var(--amber-600, #926A22);
}

/* Earlier: something whose time has passed. */
.gf-earlier {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    border: 1px dashed var(--stone-300, #C4B296);
    border-radius: 10px;
    background: var(--surface-soft, #E8E3D2);
    font-weight: 600;
}

/* The glow of the next-task highlight, still. */
.gf-task.is-next {
    position: relative;
    box-shadow: 0 0 0 2px #C2477F, 0 0 14px rgba(194, 71, 127, 0.45);
}

.gf-next-tab {
    position: absolute;
    top: -0.6rem;
    left: 0.6rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #C2477F;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
}

/* Offline mode: the quiet line the app shows with no connection (.hf-offline-banner, app.css). */
.gf-offline {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 10px;
    background: var(--stone-100, #EDE5D6);
}

.gf-offline svg {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.05rem;
    fill: none;
    stroke: var(--stone-600, #6B5A42);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gf-offline-waiting {
    display: block;
    color: var(--ink-muted, #6B6449);
}

/* The apps on a wide screen: the menu down the side, then the page. */
.gf-app {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 12px;
    background: var(--surface-base, #F5F2E8);
}

/* Rounded on its own, not clipped by the window, so the highlight ring stays whole. */
.gf-app-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.4rem;
    border-right: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 11px 0 0 11px;
    background: var(--nav-bg, #EAE6DB);
}

.gf-app-nav-item {
    display: flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    color: var(--nav-ink, #6B5E50);
    font-size: 0.8rem;
    font-weight: 600;
}

.gf-app-nav-item.is-on {
    background: var(--nav-active, #DCD8CD);
    color: var(--nav-ink-strong, #352B21);
}

.gf-app-main {
    min-width: 0;
    padding: 0.6rem;
}

/* A whole phone, for a change that moved the whole screen. */
.gf-phone {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    max-width: 16.5rem;
    margin: 0 auto;
    padding: 0.55rem 0.55rem 0.7rem;
    border: 2px solid var(--stone-300, #C4B296);
    border-radius: 22px;
    background: var(--surface-base, #F5F2E8);
}

.gf-phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.1rem 0.3rem;
}

.gf-phone-title {
    font-size: 0.9rem;
    font-weight: 700;
}

.gf-phone-icon {
    width: 1.3rem;
    height: 1.3rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 50%;
    background: var(--stone-200, #DDD0B8);
}

/* The keyboard: three rows of keys and a space bar. The keys hold no words. */
.gf-keys {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.4rem 0.3rem;
    border-radius: 10px;
    background: var(--stone-100, #EDE5D6);
}

.gf-keys > span {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.gf-keys i {
    flex: 1 1 0;
    max-width: 1.3rem;
    height: 1rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 3px;
    background: var(--surface-card, #F5F2E8);
}

.gf-keys i.is-space {
    flex: 5 1 0;
    max-width: none;
}

/* Break it into steps, once Suggest steps has filled the steps in. */
.gf-suggested {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.6rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    background: var(--surface-card-sunk, #EDE5D6);
    color: var(--ink-muted, #6B6449);
    font-size: 0.78rem;
}

.gf-text-btn {
    color: var(--stone-700, #4A3E2E);
    font-size: 0.76rem;
    font-weight: 700;
}

/* A field's own error line, under it (a time that has passed). */
.gf-error {
    padding: 0.15rem 0.3rem;
    border-radius: 6px;
    color: var(--rust-600, #8A3E34);
    font-size: 0.76rem;
    line-height: 1.35;
}

/* ═══ 6. What's new ═══════════════════════════════════════════════ */

.wn-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 14px;
    background: var(--stone-100, #EDE5D6);
}

.wn-banner-text {
    margin: 0;
    font-weight: 600;
}

.wn-banner-note {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink-muted, #6B6449);
}

.wn-release {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wn-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.15rem 1.15rem 1.25rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 16px;
    background: var(--surface-card, #F5F2E8);
    box-shadow: 0 1px 2px rgba(60, 40, 30, 0.04);
}

.wn-card.is-fresh,
.wn-line.is-fresh {
    border-color: var(--amber-600, #926A22);
}

.wn-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.wn-tag {
    padding: 0.12rem 0.6rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--stone-700, #4A3E2E);
}

.wn-tag.is-new {
    border-color: var(--stone-600, #6B5A42);
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
}

.wn-tag.is-fresh {
    border-color: var(--amber-600, #926A22);
    background: var(--amber-600, #926A22);
    color: var(--on-fill, #fff);
}

.wn-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--ink-primary, #2C2C2A);
}

.wn-same {
    margin: 0;
    max-width: var(--gd-measure);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: var(--surface-card-sunk, #EDE5D6);
    font-size: 0.92rem;
    color: var(--ink-primary, #2C2C2A);
}

.wn-same b {
    font-weight: 700;
}

.wn-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wn-line {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 14px;
    background: var(--surface-card, #F5F2E8);
}

.wn-line-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

/* A line's picture: the same frame as a card's, with a little air above and below. */
.wn-line > .gd-figure {
    margin: 0.4rem 0 0.2rem;
}

.wn-link {
    align-self: flex-start;
    color: var(--stone-700, #4A3E2E);
    font-size: 0.9rem;
    font-weight: 600;
    text-underline-offset: 3px;
}

.wn-earlier > summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.25rem;
    color: var(--stone-700, #4A3E2E);
    font-weight: 700;
    cursor: pointer;
}

.wn-earlier[open] > summary {
    margin-bottom: 0.75rem;
}

.wn-earlier-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ═══ 7. The quiet dot ════════════════════════════════════════════ */

/* On the account icon: one small dot when the guide has never been opened here, or What's new
   has something unseen. It never blinks, never counts, and goes when the person has looked. The
   icon's accessible name says the same thing in words. */
.hf-has-help-dot {
    position: relative;
}

.hf-has-help-dot::after {
    content: '';
    position: absolute;
    top: 7px;
    right: 7px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--surface-base, #F5F2E8);
    border-radius: 50%;
    background: var(--amber-600, #926A22);
    pointer-events: none;
}

/* In a menu row or a sidebar link: the word, so colour is never the only signal. */
.hf-help-pill {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: var(--amber-600, #926A22);
    color: var(--on-fill, #fff);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    vertical-align: 0.08em;
}

/* ═══ 8. Responsive and motion ════════════════════════════════════ */

@media (max-width: 640px) {
    .gd-start-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .gd-start-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 0.75rem;
        align-items: start;
    }

    .gd-start-card::before {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .gd-start-title,
    .gd-start-line {
        grid-column: 2;
    }

    .gd-article .acct-title {
        font-size: 1.65rem;
    }

    .gd-figure-stage {
        padding: 0.9rem 0.7rem;
    }

    .wn-card {
        padding: 1rem 0.9rem 1.1rem;
    }

    .gd-actions .gd-btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gd-more > summary::after {
        transition: none;
    }
}

/* Home-screen widgets (the Android app). Two cards as they sit on a home screen: "Now" with its
   ring, and the "Add a task" bar. Boxes have a smallest size, never a fixed one, so enlarged
   text is not cut off. */
.gf-widgets {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 22rem;
    margin-inline: auto;
}

.gf-widget-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    font-size: 0.72rem;
    color: var(--ink-muted, #6B6449);
}

.gf-widget-body {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
}

.gf-wring {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    min-height: 3.2rem;
    padding: 0.2rem;
    border: 4px solid var(--amber-500, #B8873A);
    border-radius: 50%;
    line-height: 1.05;
}

.gf-wring b {
    font-size: 1rem;
}

.gf-wring span {
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--ink-muted, #6B6449);
}

.gf-widget-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--stone-200, #DDD0B8);
    border-radius: 999px;
    background: var(--surface-card, #F5F2E8);
    color: var(--ink-muted, #6B6449);
}

.gf-widget-plus {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 50%;
    background: var(--stone-600, #6B5A42);
    color: var(--on-fill, #fff);
    font-weight: 600;
}

/* A guest pass: the giver's pass, or the guest's code field (GuestPassFigure). */
.gf-pass-panel {
    width: 100%;
    max-width: 17rem;
    margin-inline: auto;
    /* Never narrower than its widest single thing: the code does not wrap. */
    min-width: min-content;
}

.gf-pass {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.7rem 0.6rem;
    border: 1px solid rgba(var(--amber-400-rgb, 200, 152, 72), 0.45);
    border-radius: 10px;
    background: rgba(var(--amber-400-rgb, 200, 152, 72), 0.11);
    text-align: center;
}

.gf-pass b,
.gf-pass-input {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.gf-pass b {
    font-size: 1.05rem;
}

.gf-pass span {
    font-size: 0.72rem;
    color: var(--ink-muted, #6B6449);
}

/* Pass it over (PassItOverFigure): the line on Today, then the ask with its three choices. The
   line is drawn as Today draws it (timeline.css, .passed-asks-line); the panel is the dialog. */
.gf-ask-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--stone-300, #C4B296);
    border-radius: 10px;
    background: var(--surface-base, #F5F2E8);
    font-size: 0.82rem;
    line-height: 1.35;
}

.gf-ask-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--amber-400, #C89848);
    flex-shrink: 0;
}

.gf-ask-text {
    flex: 1 1 auto;
    min-width: 0;
}

.gf-ask-go {
    font-weight: 600;
    color: var(--ink-muted, #6B6449);
}

.gf-ask-panel {
    margin-top: 0.6rem;
}

.gf-ask-words {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.gf-ask-from {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted, #6B6449);
}

/* AssistantsFigure: the address in its box. It wraps anywhere rather than
   running out of the panel on a narrow phone or at a large text size. */
.gf-assistant-address {
    flex: 1 1 10rem;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.78rem;
}

/* The page's numbered steps, smaller: the number in a dark circle, then the
   step's words, with what belongs to the step indented under the words. */
.gf-assistant-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.gf-assistant-num {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--fill-primary, #6B5A42);
    color: var(--on-fill, #fff);
    font-size: 0.7rem;
}

.gf-assistant-indent {
    margin-inline-start: 1.8rem;
}

.gf-assistant-app {
    align-items: center;
    border: 1px solid var(--stone-200, #DDD0B8);
}
