/*
 * GENERATED FILE. Do not edit by hand.
 *
 * The kit's font faces, made by `npm run shared:fonts`
 * (scripts/shared-fonts.ts) from @fontsource-variable/bricolage-grotesque@5.3.0 (OFL-1.1) and @fontsource-variable/hanken-grotesk@5.3.0 (OFL-1.1).
 *
 * `font-display: swap` shows the words at once in the fallback font and
 * swaps in the real one when it arrives, so a slow connection never shows a
 * blank page. `unicode-range` lets a browser fetch Latin Extended only when
 * a page uses one of its letters.
 */

/* Bricolage Grotesque, Latin */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-wght.a97804dc.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Bricolage Grotesque, Latin Extended */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-ext-wght.e808f16b.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Hanken Grotesk, Latin */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/hanken-grotesk-latin-wght.e9201edd.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Hanken Grotesk, Latin Extended */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/hanken-grotesk-latin-ext-wght.768af292.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/*
 * GENERATED FILE. Do not edit by hand.
 *
 * Made from workers/shared/styles/tokens.json by `npm run tokens`
 * (scripts/shared-tokens.ts, using workers/shared/styles/build.ts). To change
 * a token, edit tokens.json and run the command again. A test fails if this
 * file does not match what the command would write.
 *
 * One custom property per token, named by the token's path. The comment
 * above each is the token's $description. Then the dark look (brief 161):
 * the same properties again, with their dark values, for a page whose
 * <html> says data-look="auto" (on a device set to dark) or "dark".
 */

:root {
  /* Light only, unless the page says data-look (below). */
  color-scheme: light;
  /* Main text, outlined button text, the selected tab and the selected date chip. */
  --color-ink: #0e1116;
  /* Secondary text, such as the sentence under a page title. Meets 4.5:1 on white. */
  --color-ink-soft: #3b414b;
  /* Labels, captions and quiet statuses ('Waiting for you', 'Scheduled'). Meets 4.5:1 on white. */
  --color-ink-muted: #535a66;
  /* Page background, and the inside of cards and inputs. */
  --color-paper: #ffffff;
  /* Quiet panels, unselected date chips, stat tiles, and an outlined button while pressed. */
  --color-wash: #f2f3f6;
  /* The strip across the top of a post card. */
  --color-wash-strong: #f7f8fa;
  /* Card borders. */
  --color-line: #e3e6ec;
  /* Dividers, and the edges of the header and the tab bar. */
  --color-line-soft: #eceef2;
  /* Borders of outlined buttons and inputs. */
  --color-control-line: #d5d9e0;
  /* The brand colour: the primary button, the active tab, the 'Live on <channel>' status, links and the focus ring. Comes from the brand's data, checked by checkedPrimaryColor before it reaches CSS; this value is the default, used when a brand sets none or sets something that is not a colour. (A brand may override this.) */
  --color-brand: #2a3bd1;
  /* Words written on the brand colour: black or white, whichever reads better, picked by textColorFor. This value is the pick for the default brand colour; its dark value is the pick for the default dark brand colour (#8c98ff), black. (A brand may override this.) */
  --color-on-brand: #ffffff;
  /* The brand colour when it is used for words on white: links, the active tab, the 'Live on <channel>' status, the focus ring. The page's layout sets it to color.ink when the brand colour is too light to read on white (readsOnWhite). Worked out from color.brand by our code; never set by a brand. In dark the same rule runs against the dark paper (readsOnDarkPaper). */
  --color-brand-text: var(--color-brand);
  /* Background of the 'Live on <channel>' tile: the brand colour at 8% on white. Worked out from the live brand colour by the stylesheet; this value is the tint of the default brand colour. It follows the look on its own, because it mixes into paper. */
  --color-brand-tint: color-mix(in srgb, var(--color-brand) 8%, var(--color-paper));
  /* The primary button while it is pressed: the brand colour darkened by 6%. Worked out from the live brand colour by the stylesheet; this value is the default brand colour, darkened. In dark it mixes towards paper instead of ink, so a pressed button still darkens on a dark page (brief 161). */
  --color-brand-pressed: color-mix(in srgb, var(--color-brand) 94%, var(--color-ink));
  /* Words of a problem that needs the client, and the 'Didn't go out' status. Kept from today's pages. */
  --color-notice: #92400e;
  /* Background of a problem notice. Kept from today's pages. */
  --color-notice-wash: #fef3c7;
  /* 'Done' confirmations. */
  --color-success: #0e7c66;
  /* The background of a surface that sits above the page: a sheet, a dialog, an open menu (each also casts shadow.sheet). The page's own paper in light. In dark it is a step lighter than the page, because a shadow barely shows on dark (Branden, 2026-10-23, brief 161, decision 6). */
  --color-raised: var(--color-paper);
  /* The background behind a brand's logo in the header. White in both looks, on purpose (brief 161): logos are drawn for white, so it has no dark value. */
  --color-logo-tile: #ffffff;
  /* Recording a voice note (brief 163): the red dot, the word Recording and the Stop button. From the v6 mockup's --rec. */
  --color-record: #c8322b;
  /* The soft ring round the Stop button while recording (brief 163). From the v6 mockup's --rec-tint. */
  --color-record-tint: #fbedec;
  /* The dimming behind a sheet (brief 163, the first-time Talk sheet). Ink at 38% in light, black at 60% in dark, as the v6 mockup's --scrim. */
  --color-scrim: rgb(14 17 22 / 0.38);
  /* The square on the Stop button while recording (brief 163): white on the record red, in light and dark alike, as the v6 mockup draws it. */
  --color-on-record: #ffffff;
  /* Headings, page titles, month names, date numbers and stat numbers. Self-hosted (src/fonts/). A brand may later pick another heading font, from a short list we host. (A brand may override this.) */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  /* Everything else: body text, post text, labels, buttons. Self-hosted (src/fonts/). */
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  /* Body text and post text. */
  --weight-regular: 400;
  /* Labels and quieter emphasis; also the display font's lighter weight. */
  --weight-medium: 500;
  /* Buttons, the active tab and statuses. */
  --weight-semibold: 600;
  /* The display font's headings, titles and numbers. */
  --weight-bold: 700;
  /* No change to the spacing between letters. */
  --letter-spacing-none: 0px;
  /* Page titles, drawn slightly tighter: -0.03em at 32px. Written in pixels because the format allows only px or rem. */
  --letter-spacing-title: -0.96px;
  /* Labels and captions: 13px, line height 1.4. */
  --text-xs: var(--weight-regular) 13px/1.4 var(--font-text);
  /* List text and secondary text: 15px, line height 1.5. */
  --text-sm: var(--weight-regular) 15px/1.5 var(--font-text);
  /* Body text and post text: 16px, line height 1.6. Post text is never smaller. */
  --text-md: var(--weight-regular) 16px/1.6 var(--font-text);
  /* Section heads and month names: 18px display, bold, line height 1.3. */
  --text-lg: var(--weight-bold) 18px/1.3 var(--font-display);
  /* Date numbers and stat numbers: 22px display, bold, line height 1.2. */
  --text-xl: var(--weight-bold) 22px/1.2 var(--font-display);
  /* Page titles: 32px display, bold, line height 1.05, set slightly tight (letter-spacing.title). */
  --text-2xl: var(--weight-bold) 32px/1.05 var(--font-display);
  /* The recording timer (brief 163, v6 screen 3): 64px display, bold, set tight, line height 1. */
  --text-timer: var(--weight-bold) 64px/1 var(--font-display);
  /* The smallest gap: inside a badge, between a status's words and its mark. */
  --space-1: 4px;
  /* Between a label and its input; between chips. */
  --space-2: 8px;
  /* Inside chips and small panels. */
  --space-3: 12px;
  /* Inside cards; between a card's parts. */
  --space-4: 16px;
  /* Page side padding on phones; between cards. */
  --space-5: 20px;
  /* Between sections inside a page. */
  --space-6: 24px;
  /* Above a page title; between groups. */
  --space-7: 32px;
  /* The largest gap: above an empty state, below the last section. */
  --space-8: 48px;
  /* The logo tile. */
  --radius-sm: 8px;
  /* Date chips and badges. */
  --radius-md: 10px;
  /* Buttons, inputs, stat tiles and notices. */
  --radius-lg: 12px;
  /* Cards. */
  --radius-xl: 14px;
  /* A pill: the ends fully round. The quick questions' choices (brief 150). */
  --radius-full: 999px;
  /* The smallest touch target: anything that can be tapped is at least this tall. */
  --size-touch: 44px;
  /* Height of a primary (filled) button. */
  --size-button-primary: 50px;
  /* Height of a secondary (outlined) button. */
  --size-button-secondary: 46px;
  /* Height of a one-line input. */
  --size-input: 50px;
  /* Width and height of the logo tile in the header. */
  --size-logo-tile: 28px;
  /* Height of the count badge on a tab. */
  --size-badge: 20px;
  /* Width of the date block at the start of a row on 'Your posts'. */
  --size-date-block: 44px;
  /* Width and height of the circle the account button draws at the top right of the header (brief 113). The link around it is the touch size. */
  --size-account-circle: 32px;
  /* Width and height of an icon drawn inside a control: the person in the account button (brief 113). */
  --size-icon: 20px;
  /* Width and height of a photo's thumbnail in a photo row, Drop's list of photos about to be sent (brief 131). */
  --size-photo-thumb: 56px;
  /* Height of a progress bar: a photo's upload in a photo row (brief 131), and the review page's ProgressBar (brief 129). */
  --size-progress: 6px;
  /* The tallest the photo inside PostPreview's frame grows (brief 129). Below that it is 16 by 10 of the frame's width, an upright photo letterboxed in it rather than cropped. */
  --size-preview-photo: 305px;
  /* Width and height of the round profile picture at the top of PostPreview's frame (brief 129). */
  --size-preview-avatar: 36px;
  /* Width and height of the green circle with a tick in ApprovedBanner (brief 129). The all-caught-up state draws its tick at twice this. */
  --size-approved-mark: 28px;
  /* Width of the quiet tinted pill behind the current tab's icon on a phone (brief 162, the v6 mockup). */
  --size-tab-pill-width: 56px;
  /* Height of that pill. Its ends are fully round. */
  --size-tab-pill-height: 30px;
  /* Width and height of a tab's icon on a phone (brief 162). */
  --size-tab-icon: 22px;
  /* The round icon on each of Send's two front doors, Photos and Talk (brief 163, v6 screen 1). */
  --size-door-ring: 64px;
  /* The icon inside a door's ring (brief 163). */
  --size-door-icon: 28px;
  /* The round Stop button while recording a voice note (brief 163, v6 screen 3). */
  --size-record-stop: 96px;
  /* The square inside the Stop button (brief 163). */
  --size-record-stop-mark: 30px;
  /* How tall the sound bars can grow while recording (brief 163). */
  --size-record-bars: 64px;
  /* One sound bar's width while recording (brief 163). */
  --size-record-bar: 5px;
  /* The red dot beside the word Recording (brief 163). */
  --size-record-dot: 9px;
  /* The play button on a voice note's card in the tray (brief 163, v6 screen 7). */
  --size-voice-play: 36px;
  /* The triangle inside the play button, and the X inside the remove button (brief 163). */
  --size-voice-play-icon: 14px;
  /* The round X that takes a voice note out of the tray before sending (brief 163). */
  --size-remove-button: 32px;
  /* How tall a voice note card's simple wave is (brief 163). */
  --size-wave: 18px;
  /* One bar of a voice note card's wave (brief 163). */
  --size-wave-bar: 3px;
  /* A dot on the HeardCard: the listening dots and each line's brand dot (brief 164, v6 screens 8 and 9). */
  --size-heard-dot: 6px;
  /* How far a "What we heard" line rises as it fades in (brief 164). */
  --size-heard-rise: 4px;
  /* Side padding of every page on a phone. */
  --layout-page-padding: var(--space-5);
  /* The widest a reading column grows; it is centred beyond that. */
  --layout-reading-width: 640px;
  /* From this width up, the tab bar moves from the bottom to a row at the top. CSS cannot read a custom property inside a media query, so components.css writes this number in its @media lines; a test checks the two agree. */
  --breakpoint-wide: 640px;
  /* Every border and divider. Borders do the work; there are no drop shadows except shadow.sheet. */
  --border-width: 1px;
  /* Thickness of the focus ring: the outline a keyboard user sees on the thing they are on. */
  --focus-ring-width: 2px;
  /* Gap between the focus ring and the thing it surrounds. */
  --focus-ring-offset: 2px;
  /* The one soft shadow, for sheets and dialogs only. Nothing else casts a shadow. In dark it is deeper, but it barely shows, so a raised surface also takes color.raised (brief 161). */
  --shadow-sheet: 0px 8px 24px 0px rgb(14 17 22 / 0.12);
  /* The app shell's top bar once the page has scrolled under it (brief 162, the v6 mockup's bar shadow): a soft shadow under the hairline, faded in by the scroll. At the top of the page there is none, only the hairline. In dark it is deeper, as shadow.sheet is. */
  --shadow-bar: 0px 6px 16px -10px rgb(14 17 22 / 0.22);
  /* The same for the tab bar at the bottom of a phone (brief 162): the shadow falls upward, over the page running under it. */
  --shadow-bar-up: 0px -6px 16px -10px rgb(14 17 22 / 0.22);
  /* The one easing curve: quick to start, gentle to settle. */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Press and hover. */
  --dur-fast: 120ms;
  /* Expanding, and a status changing. */
  --dur-med: 220ms;
  /* A post folding away on the review page after it is approved (brief 129): slow enough to see the next post take its place. */
  --dur-fold: 500ms;
  /* One slow breath of the Talk door's ring (brief 163). Still under reduce motion. */
  --dur-breath: 3200ms;
  /* The red recording dot's slow blink (brief 163). Still under reduce motion. */
  --dur-blink: 1200ms;
  /* How far behind the one before each listening dot blinks (brief 164). */
  --dur-dot-step: 150ms;
  /* A "What we heard" line fading in (brief 164). None under reduce motion. */
  --dur-rise: 360ms;
  /* How far behind the one before each "What we heard" line fades in (brief 164). */
  --dur-rise-step: 120ms;
  /* One tab's highlight fading in and out, once, on the page right after "Got it" on the welcome card. None under reduce motion. */
  --dur-hello: 700ms;
  /* How far behind the tab before it each tab lights: three tabs light in under a second. */
  --dur-hello-step: 140ms;
  /* A button that cannot be pressed right now (disabled, or busy saving). */
  --opacity-disabled: 0.55;
  /* A listening dot at the low point of its blink (brief 164). */
  --opacity-faint: 0.25;
  /* A removed send's picture on Everything you've sent: faded, still readable */
  --opacity-removed: 0.42;
  /* A removed send's icon, when it has no picture */
  --opacity-removed-icon: 0.6;
  /* How far a removed send's picture is drained of colour, as a greyscale amount from 0 to 1 */
  --opacity-removed-grey: 0.7;
  /* The words inside the Google frame, in Google's own font stack. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. */
  --preview-google-font: "Roboto", "Arial", sans-serif;
  /* The Google frame's background: white, as Google draws a post. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. No dark value, on purpose (brief 161): the frame shows how a post looks on Google, in Google's own white look, so it stays white on a dark device. */
  --preview-google-paper: #ffffff;
  /* The post's text inside the Google frame, Google's near-black. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. No dark value, on purpose (brief 161): the frame shows how a post looks on Google, in Google's own white look, so it stays white on a dark device. */
  --preview-google-ink: #202124;
  /* The date under the business name inside the Google frame, Google's grey. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. No dark value, on purpose (brief 161): the frame shows how a post looks on Google, in Google's own white look, so it stays white on a dark device. */
  --preview-google-ink-muted: #70757a;
  /* The Google frame's thin border, and an offer code's dashed box, in Google's grey. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. No dark value, on purpose (brief 161): the frame shows how a post looks on Google, in Google's own white look, so it stays white on a dark device. */
  --preview-google-line: #dadce0;
  /* A post's button and an offer's redeem link inside the Google frame, in Google's link blue. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. No dark value, on purpose (brief 161): the frame shows how a post looks on Google, in Google's own white look, so it stays white on a dark device. */
  --preview-google-link: #1a0dab;
  /* The grey circle of the profile picture inside the Google frame. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. No dark value, on purpose (brief 161): the frame shows how a post looks on Google, in Google's own white look, so it stays white on a dark device. */
  --preview-google-avatar: #e8eaed;
  /* The shop outline drawn in the grey profile circle inside the Google frame. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. No dark value, on purpose (brief 161): the frame shows how a post looks on Google, in Google's own white look, so it stays white on a dark device. */
  --preview-google-avatar-icon: #5f6368;
  /* The black bars beside an upright photo inside the Google frame, as Google letterboxes it. Google's own look, used only inside PostPreview's frame (brief 129) so a client reads the frame as 'this is how it looks on Google', not as our brand. The one named exception to 'every colour is ours': a test fails if any component other than PostPreview uses a preview.google token. No dark value, on purpose (brief 161): the frame shows how a post looks on Google, in Google's own white look, so it stays white on a dark device. */
  --preview-google-letterbox: #000000;
}

/* The dark look (brief 161). A page whose <html> says data-look="auto" supports both looks and follows the device; data-look="dark" is always dark. */
:root[data-look="auto"] {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-look="auto"] {
    /* Main text, outlined button text, the selected tab and the selected date chip. */
    --color-ink: #e9ebef;
    /* Secondary text, such as the sentence under a page title. Meets 4.5:1 on white. */
    --color-ink-soft: #bac0ca;
    /* Labels, captions and quiet statuses ('Waiting for you', 'Scheduled'). Meets 4.5:1 on white. */
    --color-ink-muted: #8f96a3;
    /* Page background, and the inside of cards and inputs. */
    --color-paper: #14171c;
    /* Quiet panels, unselected date chips, stat tiles, and an outlined button while pressed. */
    --color-wash: #1f232a;
    /* The strip across the top of a post card. */
    --color-wash-strong: #1a1d23;
    /* Card borders. */
    --color-line: #2c313a;
    /* Dividers, and the edges of the header and the tab bar. */
    --color-line-soft: #242830;
    /* Borders of outlined buttons and inputs. */
    --color-control-line: #3a404b;
    /* The brand colour: the primary button, the active tab, the 'Live on <channel>' status, links and the focus ring. Comes from the brand's data, checked by checkedPrimaryColor before it reaches CSS; this value is the default, used when a brand sets none or sets something that is not a colour. */
    --color-brand: #8c98ff;
    /* Words written on the brand colour: black or white, whichever reads better, picked by textColorFor. This value is the pick for the default brand colour; its dark value is the pick for the default dark brand colour (#8c98ff), black. */
    --color-on-brand: #000000;
    /* The brand colour when it is used for words on white: links, the active tab, the 'Live on <channel>' status, the focus ring. The page's layout sets it to color.ink when the brand colour is too light to read on white (readsOnWhite). Worked out from color.brand by our code; never set by a brand. In dark the same rule runs against the dark paper (readsOnDarkPaper). */
    --color-brand-text: var(--color-brand);
    /* Background of the 'Live on <channel>' tile: the brand colour at 8% on white. Worked out from the live brand colour by the stylesheet; this value is the tint of the default brand colour. It follows the look on its own, because it mixes into paper. */
    --color-brand-tint: color-mix(in srgb, var(--color-brand) 8%, var(--color-paper));
    /* The primary button while it is pressed: the brand colour darkened by 6%. Worked out from the live brand colour by the stylesheet; this value is the default brand colour, darkened. In dark it mixes towards paper instead of ink, so a pressed button still darkens on a dark page (brief 161). */
    --color-brand-pressed: color-mix(in srgb, var(--color-brand) 94%, var(--color-paper));
    /* Words of a problem that needs the client, and the 'Didn't go out' status. Kept from today's pages. */
    --color-notice: #f3c46e;
    /* Background of a problem notice. Kept from today's pages. */
    --color-notice-wash: #3a2d12;
    /* 'Done' confirmations. */
    --color-success: #5ccfb0;
    /* The background of a surface that sits above the page: a sheet, a dialog, an open menu (each also casts shadow.sheet). The page's own paper in light. In dark it is a step lighter than the page, because a shadow barely shows on dark (Branden, 2026-10-23, brief 161, decision 6). */
    --color-raised: var(--color-wash-strong);
    /* Recording a voice note (brief 163): the red dot, the word Recording and the Stop button. From the v6 mockup's --rec. */
    --color-record: #ff6d61;
    /* The soft ring round the Stop button while recording (brief 163). From the v6 mockup's --rec-tint. */
    --color-record-tint: #3b1d1b;
    /* The dimming behind a sheet (brief 163, the first-time Talk sheet). Ink at 38% in light, black at 60% in dark, as the v6 mockup's --scrim. */
    --color-scrim: rgb(0 0 0 / 0.6);
    /* The square on the Stop button while recording (brief 163): white on the record red, in light and dark alike, as the v6 mockup draws it. */
    --color-on-record: #ffffff;
    /* The one soft shadow, for sheets and dialogs only. Nothing else casts a shadow. In dark it is deeper, but it barely shows, so a raised surface also takes color.raised (brief 161). */
    --shadow-sheet: 0px 8px 24px 0px rgb(0 0 0 / 0.5);
    /* The app shell's top bar once the page has scrolled under it (brief 162, the v6 mockup's bar shadow): a soft shadow under the hairline, faded in by the scroll. At the top of the page there is none, only the hairline. In dark it is deeper, as shadow.sheet is. */
    --shadow-bar: 0px 8px 18px -10px rgb(0 0 0 / 0.7);
    /* The same for the tab bar at the bottom of a phone (brief 162): the shadow falls upward, over the page running under it. */
    --shadow-bar-up: 0px -8px 18px -10px rgb(0 0 0 / 0.7);
  }
}

:root[data-look="dark"] {
  color-scheme: dark;
  /* Main text, outlined button text, the selected tab and the selected date chip. */
  --color-ink: #e9ebef;
  /* Secondary text, such as the sentence under a page title. Meets 4.5:1 on white. */
  --color-ink-soft: #bac0ca;
  /* Labels, captions and quiet statuses ('Waiting for you', 'Scheduled'). Meets 4.5:1 on white. */
  --color-ink-muted: #8f96a3;
  /* Page background, and the inside of cards and inputs. */
  --color-paper: #14171c;
  /* Quiet panels, unselected date chips, stat tiles, and an outlined button while pressed. */
  --color-wash: #1f232a;
  /* The strip across the top of a post card. */
  --color-wash-strong: #1a1d23;
  /* Card borders. */
  --color-line: #2c313a;
  /* Dividers, and the edges of the header and the tab bar. */
  --color-line-soft: #242830;
  /* Borders of outlined buttons and inputs. */
  --color-control-line: #3a404b;
  /* The brand colour: the primary button, the active tab, the 'Live on <channel>' status, links and the focus ring. Comes from the brand's data, checked by checkedPrimaryColor before it reaches CSS; this value is the default, used when a brand sets none or sets something that is not a colour. */
  --color-brand: #8c98ff;
  /* Words written on the brand colour: black or white, whichever reads better, picked by textColorFor. This value is the pick for the default brand colour; its dark value is the pick for the default dark brand colour (#8c98ff), black. */
  --color-on-brand: #000000;
  /* The brand colour when it is used for words on white: links, the active tab, the 'Live on <channel>' status, the focus ring. The page's layout sets it to color.ink when the brand colour is too light to read on white (readsOnWhite). Worked out from color.brand by our code; never set by a brand. In dark the same rule runs against the dark paper (readsOnDarkPaper). */
  --color-brand-text: var(--color-brand);
  /* Background of the 'Live on <channel>' tile: the brand colour at 8% on white. Worked out from the live brand colour by the stylesheet; this value is the tint of the default brand colour. It follows the look on its own, because it mixes into paper. */
  --color-brand-tint: color-mix(in srgb, var(--color-brand) 8%, var(--color-paper));
  /* The primary button while it is pressed: the brand colour darkened by 6%. Worked out from the live brand colour by the stylesheet; this value is the default brand colour, darkened. In dark it mixes towards paper instead of ink, so a pressed button still darkens on a dark page (brief 161). */
  --color-brand-pressed: color-mix(in srgb, var(--color-brand) 94%, var(--color-paper));
  /* Words of a problem that needs the client, and the 'Didn't go out' status. Kept from today's pages. */
  --color-notice: #f3c46e;
  /* Background of a problem notice. Kept from today's pages. */
  --color-notice-wash: #3a2d12;
  /* 'Done' confirmations. */
  --color-success: #5ccfb0;
  /* The background of a surface that sits above the page: a sheet, a dialog, an open menu (each also casts shadow.sheet). The page's own paper in light. In dark it is a step lighter than the page, because a shadow barely shows on dark (Branden, 2026-10-23, brief 161, decision 6). */
  --color-raised: var(--color-wash-strong);
  /* Recording a voice note (brief 163): the red dot, the word Recording and the Stop button. From the v6 mockup's --rec. */
  --color-record: #ff6d61;
  /* The soft ring round the Stop button while recording (brief 163). From the v6 mockup's --rec-tint. */
  --color-record-tint: #3b1d1b;
  /* The dimming behind a sheet (brief 163, the first-time Talk sheet). Ink at 38% in light, black at 60% in dark, as the v6 mockup's --scrim. */
  --color-scrim: rgb(0 0 0 / 0.6);
  /* The square on the Stop button while recording (brief 163): white on the record red, in light and dark alike, as the v6 mockup draws it. */
  --color-on-record: #ffffff;
  /* The one soft shadow, for sheets and dialogs only. Nothing else casts a shadow. In dark it is deeper, but it barely shows, so a raised surface also takes color.raised (brief 161). */
  --shadow-sheet: 0px 8px 24px 0px rgb(0 0 0 / 0.5);
  /* The app shell's top bar once the page has scrolled under it (brief 162, the v6 mockup's bar shadow): a soft shadow under the hairline, faded in by the scroll. At the top of the page there is none, only the hairline. In dark it is deeper, as shadow.sheet is. */
  --shadow-bar: 0px 8px 18px -10px rgb(0 0 0 / 0.7);
  /* The same for the tab bar at the bottom of a phone (brief 162): the shadow falls upward, over the page running under it. */
  --shadow-bar-up: 0px -8px 18px -10px rgb(0 0 0 / 0.7);
}

/*
 * The kit's components (brief 111): one block per component in src/ui/, in
 * the order of docs/design/client-screens-design.md §3. Direction B,
 * "crisp studio": borders do the work, no drop shadows, one brand colour.
 *
 * Only tokens. Every colour, size, space, radius, weight and duration is a
 * var(--…) from tokens.css. The only raw numbers allowed are 0 and 100%,
 * and the wide breakpoint in @media lines: CSS cannot read a custom
 * property inside a media query, so the number is written there, and a test
 * checks it matches breakpoint.wide in tokens.json. A test fails on any
 * other raw colour or size in this file.
 *
 * Edited by hand. After editing it, run `npm run tokens` to rebuild the
 * stylesheet the Workers serve (src/generated/stylesheet.ts); a test fails
 * if that is forgotten.
 */

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--text-md);
}

a {
  color: var(--color-brand-text);
}

/*
 * The focus ring (design note §4): two pixels of the brand colour, two
 * pixels out, on whatever a keyboard user is on. Shown for the keyboard
 * only (:focus-visible), not after a tap.
 */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-brand-text);
  outline-offset: var(--focus-ring-offset);
}

/*
 * Hidden means hidden (brief 131). A page script shows and hides parts of a
 * page with the `hidden` attribute (Drop's composer); without this line, a
 * component whose block sets its own display (a Notice is a flex column)
 * would stay on screen with `hidden` on it.
 */
[hidden] {
  display: none !important;
}

/*
 * Words for screen readers only: there for a screen reader, invisible on
 * the screen. The usual pattern; its one-pixel box borrows the border
 * width, the only one-pixel token.
 */
.visually-hidden {
  position: absolute;
  inline-size: var(--border-width);
  block-size: var(--border-width);
  margin: calc(var(--border-width) * -1);
  padding: 0;
  border: 0;
  overflow: hidden;
  /* Clipped to nothing. (The usual pattern writes 50%; 100% clips just the same, and keeps raw sizes out.) */
  clip-path: inset(100%);
  white-space: nowrap;
}

/*
 * Page to page: the browser's own cross-fade, where it has one (design note
 * §2, motion). The header and the tab bar keep their names, so they stay
 * still while the page under them changes. A browser without view
 * transitions simply changes page.
 */
@view-transition {
  navigation: auto;
}

/*
 * "Reduce motion" (design note §2 and §4): when a person has asked their
 * device for less motion, nothing moves. No page transition, no easing on
 * a press.
 */
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------
 * Layout: the page's column
 * ---------------------------------------------------------------------- */

.layout__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-inline-size: var(--layout-reading-width);
  margin-inline: auto;
  padding: var(--space-7) var(--layout-page-padding) var(--space-8);
}

/* With the tab bar fixed to the bottom of a phone, the page ends above it. */
.layout--with-tabs .layout__main {
  padding-block-end: calc(var(--size-touch) + var(--space-8) + env(safe-area-inset-bottom, 0));
}

@media (min-width: 640px) {
  .layout--with-tabs .layout__main {
    padding-block-end: var(--space-8);
  }
}

/* -------------------------------------------------------------------------
 * AppHeader
 * ---------------------------------------------------------------------- */

/*
 * The header is drawn above the tab bar (brief 134). Its view-transition-name
 * gives it a layer of its own, and the name menu's panel, which opens down
 * out of the header, can only sit as high as the header does. Without a
 * layer above the tab bar's, the menu opened underneath the bottom tab bar
 * on a phone. Nothing else about the header changes.
 */
.app-header {
  position: relative;
  z-index: 2;
  background: var(--color-paper);
  border-block-end: var(--border-width) solid var(--color-line-soft);
  view-transition-name: app-header;
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-inline-size: var(--layout-reading-width);
  margin-inline: auto;
  padding: var(--space-4) var(--layout-page-padding);
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-inline-size: 0;
}

.app-header__tile {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-logo-tile);
  block-size: var(--size-logo-tile);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font: var(--text-sm);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}

/* A logo is drawn on white with a thin edge, not on the brand colour, so it is never lost against it. White in the dark look too (color.logo-tile): logos are drawn for white. */
.app-header__tile--logo {
  border: var(--border-width) solid var(--color-line);
  background: var(--color-logo-tile);
}

.app-header__logo {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

.app-header__product {
  overflow: hidden;
  font: var(--text-lg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header__client {
  min-inline-size: 0;
  overflow: hidden;
  color: var(--color-ink-muted);
  font: var(--text-sm);
  text-align: end;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The client's name and the account button, at the right (brief 113). */
.app-header__end {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-inline-size: 0;
}

/*
 * The way back on Drop's settings page (brief 131): a full touch target at
 * the far left, its arrow drawn in soft ink. Pulled left by the space the
 * touch target adds, so the arrow lines up with the page's edge.
 */
.app-header__back {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-touch);
  min-block-size: var(--size-touch);
  margin-inline-start: calc((var(--size-touch) - var(--size-icon)) / -2);
  color: var(--color-ink-soft);
  border-radius: var(--radius-sm);
}

.app-header__back-icon {
  display: block;
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

/* -------------------------------------------------------------------------
 * The one app's shell (brief 162, the v6 mockup): Layout's `shell`.
 *
 * "Both bars have a solid background and a hairline edge." The header and
 * the tab bar stay put while the page scrolls under them: the header (with,
 * from the wide breakpoint up, the tab row under it) at the top, the tab
 * bar at the bottom of a phone. At the top of the page each has its hairline
 * and no shadow; once the page has scrolled under it, a soft shadow fades in
 * (shadow.bar, shadow.bar-up), worked out by the browser from the scroll
 * itself, so no script runs. A browser that cannot do that shows the
 * hairline alone, which is how every page looked before.
 * ---------------------------------------------------------------------- */

.app-top {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
}

/* Under the console's look-only banner (brief 122), which stays at the top itself: the bars scroll with the page. */
.app-top--still {
  position: relative;
}

.layout--shell .app-header {
  border-block-end-color: var(--color-line);
}

.layout--shell .tab-bar {
  border-block-start-color: var(--color-line);
}

@supports (animation-timeline: scroll()) {
  @keyframes app-top-shadow {
    from {
      box-shadow: none;
    }
    to {
      box-shadow: var(--shadow-bar);
    }
  }

  @keyframes tab-bar-shadow {
    from {
      box-shadow: none;
    }
    to {
      box-shadow: var(--shadow-bar-up);
    }
  }

  .app-top {
    animation: app-top-shadow linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 var(--space-6);
  }

  .layout--shell .tab-bar {
    animation: tab-bar-shadow linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 var(--space-6);
  }

  .app-top--still {
    animation: none;
  }

  /* From the wide breakpoint up the tab row sits inside the top bar, which has the shadow. */
  @media (min-width: 640px) {
    .layout--shell .tab-bar {
      animation: none;
    }
  }
}

/*
 * A page's own sticky heading under the bars (the review page's month,
 * brief 129): it sticks just below the header instead of under it, and a
 * post scrolled to stops below both. The header is one touch target tall
 * plus its padding and hairline (AppHeader's account button sets it); from
 * the wide breakpoint up the tab row under it adds one touch target and a
 * hairline more. Under the console's banner the bars scroll away, so the
 * heading keeps sticking at the top as before.
 */
.app-top:not(.app-top--still) ~ .layout__main .feed-month__head {
  inset-block-start: calc(var(--size-touch) + 2 * var(--space-4) + var(--border-width));
}

.app-top:not(.app-top--still) ~ .layout__main .post-preview {
  scroll-margin-block-start: calc(var(--size-touch) + 2 * var(--space-4) + var(--border-width) + var(--space-8) + var(--space-5));
}

@media (min-width: 640px) {
  .layout--with-tabs .app-top:not(.app-top--still) ~ .layout__main .feed-month__head {
    inset-block-start: calc(2 * var(--size-touch) + 2 * var(--space-4) + 2 * var(--border-width));
  }

  .layout--with-tabs .app-top:not(.app-top--still) ~ .layout__main .post-preview {
    scroll-margin-block-start: calc(2 * var(--size-touch) + 2 * var(--space-4) + 2 * var(--border-width) + var(--space-8) + var(--space-5));
  }
}

/*
 * The business's name above the page's title (Layout's `business`): "The
 * business name sits above the greeting, where a long name can wrap to two
 * lines." Pulled up close to what comes next, out of the page's usual gap.
 */
.business-name {
  margin: 0 0 calc(var(--space-1) - var(--space-5));
  color: var(--color-ink-soft);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------
 * AccountButton (brief 113): a person in a circle, the link around it a full
 * touch target.
 * ---------------------------------------------------------------------- */

.account-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-touch);
  min-block-size: var(--size-touch);
  color: var(--color-ink-soft);
  border-radius: 100%;
}

.account-button__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-account-circle);
  block-size: var(--size-account-circle);
  border: var(--border-width) solid var(--color-control-line);
  border-radius: 100%;
  background: var(--color-wash);
  transition: border-color var(--dur-fast) var(--ease);
}

.account-button:hover .account-button__circle {
  border-color: var(--color-ink-muted);
}

/* On the Account page itself: the circle in ink, never colour alone (aria-current says it too). */
.account-button--current {
  color: var(--color-ink);
}

.account-button--current .account-button__circle {
  border-color: var(--color-ink);
}

.account-button__icon {
  display: block;
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

/* Switched off (brief 122): the console's look-only view of a client page.
 * The same circle, not a link, and nothing happens on hover. */
.account-button--off {
  cursor: default;
}

.account-button--off:hover .account-button__circle {
  border-color: var(--color-control-line);
}

/* -------------------------------------------------------------------------
 * LookOnlyBanner (brief 122): staff looking at a client page. Ink, the
 * console's own look, and always at the top while the page scrolls.
 * ---------------------------------------------------------------------- */

.look-only-banner {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  background: var(--color-ink);
  color: var(--color-paper);
  font: var(--text-sm);
}

.look-only-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  max-inline-size: var(--layout-reading-width);
  margin-inline: auto;
  padding: var(--space-3) var(--layout-page-padding);
}

.look-only-banner__words {
  margin: 0;
  font-weight: var(--weight-semibold);
}

.look-only-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
}

.look-only-banner__link {
  color: var(--color-paper);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * TabBar
 * ---------------------------------------------------------------------- */

/* On a phone: fixed to the bottom of the screen, above the home bar. */
.tab-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 1;
  padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom, 0));
  background: var(--color-paper);
  border-block-start: var(--border-width) solid var(--color-line-soft);
  view-transition-name: tab-bar;
}

.tab-bar__list {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  max-inline-size: var(--layout-reading-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.tab-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-block-size: var(--size-touch);
  border-radius: var(--radius-md);
  color: var(--color-ink-muted);
  font: var(--text-xs);
  text-decoration: none;
}

.tab-bar__link--current {
  color: var(--color-brand-text);
  font-weight: var(--weight-semibold);
}

.tab-bar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: var(--size-badge);
  block-size: var(--size-badge);
  padding-inline: var(--space-1);
  border-radius: var(--radius-md);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/*
 * With icons (brief 162, the v6 mockup's tab bar): on a phone each icon sits
 * above its words, and "the active tab gets a quiet tinted pill behind its
 * icon". The count sits at the icon's top right.
 */
.tab-bar--icons .tab-bar__link {
  position: relative;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-1) 0;
  font-weight: var(--weight-medium);
}

.tab-bar__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-tab-pill-width);
  block-size: var(--size-tab-pill-height);
  border-radius: var(--radius-full);
  transition: background-color var(--dur-med) var(--ease);
}

.tab-bar--icons .tab-bar__link--current .tab-bar__pill {
  background: var(--color-brand-tint);
}

.tab-bar__icon {
  display: block;
  inline-size: var(--size-tab-icon);
  block-size: var(--size-tab-icon);
}

/* The icon with its count: the count sits on the pill's top right corner. */
.tab-bar__mark {
  position: relative;
  display: inline-flex;
}

.tab-bar--icons .tab-bar__count {
  position: absolute;
  inset-block-start: calc(-1 * var(--space-1));
  inset-inline-end: 0;
}

/* The words under the icon, on one line. */
.tab-bar__label {
  white-space: nowrap;
}

/*
 * The one moment after "Got it" on the welcome card: each tab's
 * highlight fades in and out once, left to right, a step apart, under a
 * second in all. On a phone it is the pill behind the icon; the current
 * tab's pill is tinted already and stays as it is. Reduce motion turns it
 * off with every other animation (Base).
 */
.tab-bar--hello .tab-bar__link:not(.tab-bar__link--current) .tab-bar__pill {
  animation: tab-bar-hello calc(var(--dur-hello) / 2) var(--ease) 2 alternate both;
}

.tab-bar--hello li:nth-child(2) .tab-bar__pill,
.tab-bar--hello li:nth-child(2) .tab-bar__link {
  animation-delay: var(--dur-hello-step);
}

.tab-bar--hello li:nth-child(3) .tab-bar__pill,
.tab-bar--hello li:nth-child(3) .tab-bar__link {
  animation-delay: calc(var(--dur-hello-step) * 2);
}

/* In, then out again: run twice, the second time backwards, so it ends with no background. */
@keyframes tab-bar-hello {
  to {
    background-color: var(--color-brand-tint);
  }
}

/* From the wide breakpoint up the pill is not shown, so the tab itself lights, every one of them. */
@media (min-width: 640px) {
  .tab-bar--hello .tab-bar__link {
    margin-inline: calc(-1 * var(--space-2));
    padding-inline: var(--space-2);
    animation: tab-bar-hello calc(var(--dur-hello) / 2) var(--ease) 2 alternate both;
  }
}

/* From the wide breakpoint up: a row under the header, the current tab underlined as well. */
@media (min-width: 640px) {
  /* The row with icons is the row without them: words, the count beside them, no pill. */
  .tab-bar--icons .tab-bar__pill {
    display: none;
  }

  .tab-bar--icons .tab-bar__link {
    flex-direction: row;
    gap: var(--space-1);
    padding-block: 0;
  }

  /* The wrapper steps aside, so the count is one of the link's own items again, drawn after the words. */
  .tab-bar__mark {
    display: contents;
  }

  .tab-bar--icons .tab-bar__count {
    position: static;
    order: 1;
  }

  /* The row lines up with the header's brand mark and the page under it. */
  .tab-bar--icons .tab-bar__list {
    padding-inline: var(--layout-page-padding);
  }

  /* The current tab's words are underlined, and not its count beside them. */
  .tab-bar--icons .tab-bar__link--current {
    text-decoration: none;
  }

  .tab-bar--icons .tab-bar__link--current .tab-bar__label {
    text-decoration: underline;
    text-decoration-thickness: var(--focus-ring-width);
    text-underline-offset: var(--space-3);
  }

  .tab-bar {
    position: static;
    padding: 0 var(--layout-page-padding);
    border-block-start: 0;
    border-block-end: var(--border-width) solid var(--color-line-soft);
  }

  .tab-bar__list {
    grid-auto-columns: max-content;
    gap: var(--space-6);
    justify-content: start;
  }

  .tab-bar__link {
    border-radius: 0;
    font: var(--text-sm);
  }

  .tab-bar__link--current {
    font-weight: var(--weight-semibold);
    text-decoration: underline;
    text-decoration-thickness: var(--focus-ring-width);
    text-underline-offset: var(--space-3);
  }
}

/* -------------------------------------------------------------------------
 * PageTitle
 * ---------------------------------------------------------------------- */

.page-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page-title__heading {
  margin: 0;
  font: var(--text-2xl);
  letter-spacing: var(--letter-spacing-title);
}

.page-title__lead {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-md);
}

/* -------------------------------------------------------------------------
 * DateChips
 * ---------------------------------------------------------------------- */

.date-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--size-touch);
  padding-inline: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-wash);
  color: var(--color-ink);
  font: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.date-chip--selected {
  background: var(--color-ink);
  color: var(--color-paper);
}

/* -------------------------------------------------------------------------
 * PostCard (open) and PostCardCollapsed
 * ---------------------------------------------------------------------- */

.post-card {
  overflow: hidden;
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-paper);
  /* A date chip's jump stops a little above the card, not flush with the top. */
  scroll-margin-block-start: var(--space-4);
}

/* When the date and "1 of 3 · Google and Facebook post" do not fit on one line, the second part moves under the date rather than squeezing it. */
.post-card__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-wash-strong);
  border-block-end: var(--border-width) solid var(--color-line);
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

.post-card__date {
  margin: 0;
  color: var(--color-ink);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

/* Where it sits and where it goes ("1 of 3 · Google post"), on the right of the strip: kept on one line however long the date. */
.post-card__meta {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
}

.post-card__channel {
  flex-shrink: 0;
}

.post-card__position + .post-card__channel::before {
  margin-inline-end: var(--space-2);
  content: "·";
}

/* The post's photo (brief 126), above its words as Google shows it: the card's full width, its own shape kept. */
.post-card__photo {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-wash-strong);
  border-block-end: var(--border-width) solid var(--color-line);
}

/* An event's or offer's label, bold title and dates, above the text (brief 128). */
.post-card__kind {
  padding: var(--space-4) var(--space-4) 0;
}

.post-card__kind p {
  margin: 0;
}

.post-card__kind-label {
  color: var(--color-ink-muted);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.post-card__kind-title {
  font: var(--text-md);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

.post-card__kind-dates {
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

.post-card__kind + .post-card__text {
  padding-block-start: var(--space-2);
}

/* An offer's code, terms and redeem link, under the text; the terms in full and smaller. */
.post-card__offer {
  padding: 0 var(--space-4) var(--space-4);
}

.post-card__offer p {
  margin: 0;
  overflow-wrap: anywhere;
}

.post-card__offer-code {
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.post-card__offer-terms {
  color: var(--color-ink-soft);
  font: var(--text-xs);
  white-space: pre-line;
}

.post-card__offer-redeem {
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

/* "Your version", above words the client wrote in place of the post's own. */
.post-card__text-label {
  margin: 0;
  padding: var(--space-4) var(--space-4) 0;
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.post-card__text-label + .post-card__text {
  padding-block-start: var(--space-1);
}

.post-card__status {
  padding: var(--space-3) var(--space-4) 0;
}

/* The post's whole text, its line breaks kept as written, never smaller than 16px (design note §2). */
.post-card__text {
  margin: 0;
  padding: var(--space-4);
  font: var(--text-md);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* The post's button under its text ("Button: Learn more, opens shop.example/brakes", brief 114): quieter than the post, and a long address wraps rather than widening the card. */
.post-card__button {
  margin: 0;
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-ink-soft);
  font: var(--text-sm);
  overflow-wrap: anywhere;
}

/* The first action (the one filled button) across the card; the others side by side under it. */
.post-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-4);
}

.post-card__actions > :first-child {
  grid-column: 1 / -1;
}

.post-card__actions form {
  margin: 0;
}

.post-card__actions .button {
  inline-size: 100%;
}

/* "Change it" or "Turn it down", opened: its box takes the card's whole width. */
.post-card__actions > .disclosure[open] {
  grid-column: 1 / -1;
}

.post-card--collapsed {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

.post-card__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Two lines of the post, then an ellipsis. */
.post-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-ink-soft);
  font: var(--text-sm);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.post-card__open {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-block-size: var(--size-touch);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

/* -------------------------------------------------------------------------
 * PostMonth and PostRow
 * ---------------------------------------------------------------------- */

.post-month {
  display: flex;
  flex-direction: column;
}

.post-month__heading {
  margin: 0 0 var(--space-1);
  font: var(--text-lg);
}

.post-month__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/*
 * A row (brief 129): the whole row is the browser's own <details>. Its
 * summary is a grid: the date block, the middle (status, two lines of text,
 * "See the post"), and the photo's thumbnail. Opened, the whole post comes
 * under the row at full width.
 */
.post-row {
  border-block-end: var(--border-width) solid var(--color-line-soft);
}

.post-row:last-child {
  border-block-end: 0;
}

.post-row__item {
  margin: 0;
}

.post-row__summary {
  display: grid;
  grid-template-columns: var(--size-date-block) minmax(0, 1fr) var(--size-photo-thumb);
  column-gap: var(--space-3);
  align-items: start;
  /* Reaches a little past the column on each side, so a hover tint has room around the words. */
  margin-inline: calc(var(--space-3) * -1);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.post-row__summary::-webkit-details-marker {
  display: none;
}

/* On a phone: a light tint while the row is pressed. */
.post-row__summary:active {
  background: var(--color-wash);
}

.post-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-row__weekday {
  color: var(--color-ink-muted);
  font: var(--text-xs);
  text-transform: uppercase;
}

.post-row__day {
  font: var(--text-xl);
}

.post-row__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

/* One line of words that wraps like a sentence, so "· approved by ..." never starts a line on its own. */
.post-row__status {
  display: block;
}

/* "Live on Google ↗": the status words are the link to the post there. */
.post-row__status-link {
  text-decoration: none;
}

.post-row__out {
  margin-inline-start: var(--space-1);
}

/* "· approved by Larkin", after the status, quieter. */
.post-row__who {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.post-row__who::before {
  content: "·";
  margin-inline: var(--space-2);
}

.post-row__note {
  color: var(--color-ink-soft);
  font: var(--text-xs);
}

/* Two lines of the text, then an ellipsis. */
.post-row__text {
  display: -webkit-box;
  overflow: hidden;
  font: var(--text-sm);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.post-row__toggle {
  color: var(--color-brand-text);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* The quiet ">" after "See the post", which nudges right on a hover. */
.post-row__toggle--open::after {
  content: " ›";
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}

.post-row__toggle--close {
  display: none;
}

/* Keeps the grid's third column for a row with no photo, so every row's text lines up. */
.post-row__thumb-space {
  inline-size: var(--size-photo-thumb);
}

.post-row__thumb {
  inline-size: var(--size-photo-thumb);
  block-size: var(--size-photo-thumb);
  border-radius: var(--radius-sm);
  background: var(--color-wash);
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease);
}

/* Opened: the two lines, "See the post" and the thumbnail give way to the whole post below. */
.post-row__item[open] .post-row__text,
.post-row__item[open] .post-row__toggle--open {
  display: none;
}

.post-row__item[open] .post-row__toggle--close {
  display: inline;
}

.post-row__item[open] .post-row__thumb {
  visibility: hidden;
}

.post-row__item[open] > .post-row__summary {
  padding-block-end: var(--space-3);
}

.post-row__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block-end: var(--space-4);
}

/* "Where it went": one line per channel, each with its own "See it ↗". */
.post-row__places {
  overflow: hidden;
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-lg);
}

.post-row__places-heading {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--color-wash-strong);
  color: var(--color-ink-muted);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.post-row__places-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-row__place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-block-size: var(--size-touch);
  padding-inline: var(--space-4);
  border-block-start: var(--border-width) solid var(--color-line-soft);
  font: var(--text-sm);
}

.post-row__place-name {
  font-weight: var(--weight-medium);
}

.post-row__place-link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--size-touch);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.post-row__approved {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

/* -------------------------------------------------------------------------
 * StatusLabel: the words always say it; the colour only helps.
 * ---------------------------------------------------------------------- */

.status-label {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.status-label--brand {
  color: var(--color-brand-text);
  font-weight: var(--weight-semibold);
}

.status-label--notice {
  color: var(--color-notice);
  font-weight: var(--weight-semibold);
}

.status-label--success {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}

/* -------------------------------------------------------------------------
 * Button
 * ---------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-inline: var(--space-5);
  border: var(--border-width) solid var(--color-control-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.button--wide {
  inline-size: 100%;
}

.button--primary {
  min-block-size: var(--size-button-primary);
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font: var(--text-md);
  font-weight: var(--weight-semibold);
}

/* Pressed: the brand colour darkened by 6% (brand-pressed). Also drawn for a toggle that is on. */
.button--primary:active:not(:disabled),
.button--primary[aria-pressed="true"] {
  border-color: var(--color-brand-pressed);
  background: var(--color-brand-pressed);
}

.button--secondary {
  min-block-size: var(--size-button-secondary);
}

.button--secondary:active:not(:disabled),
.button--secondary[aria-pressed="true"] {
  background: var(--color-wash);
}

/* A text link's look, for a minor action. Still at least a touch target tall. */
.button--quiet {
  min-block-size: var(--size-touch);
  padding-inline: 0;
  border: 0;
  background: none;
  color: var(--color-brand-text);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

.button--quiet:active:not(:disabled),
.button--quiet[aria-pressed="true"] {
  color: var(--color-ink);
}

.button:disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}

.button[aria-busy="true"] {
  cursor: progress;
}

/* -------------------------------------------------------------------------
 * Field
 * ---------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* 16px text: a phone does not zoom into an input whose text is at least that size. */
.field__input {
  inline-size: 100%;
  min-block-size: var(--size-input);
  padding: 0 var(--space-4);
  border: var(--border-width) solid var(--color-control-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--text-md);
  transition: border-color var(--dur-fast) var(--ease);
}

.field__input--multiline {
  padding-block: var(--space-3);
  resize: vertical;
}

.field__input:focus {
  border-color: var(--color-ink);
}

.field__help {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.field__error {
  margin: 0;
  color: var(--color-notice);
  font: var(--text-sm);
}

.field--error .field__input {
  border-color: var(--color-notice);
}

/* -------------------------------------------------------------------------
 * Notice
 * ---------------------------------------------------------------------- */

.notice {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font: var(--text-sm);
}

.notice--problem {
  background: var(--color-notice-wash);
  color: var(--color-notice);
}

.notice--done {
  background: var(--color-wash);
  color: var(--color-ink);
}

.notice__title {
  margin: 0;
  font-weight: var(--weight-semibold);
}

.notice--done .notice__title {
  color: var(--color-success);
}

.notice__body p {
  margin: 0;
}

/* -------------------------------------------------------------------------
 * EmptyState
 * ---------------------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding-block: var(--space-8);
}

.empty-state__message {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-md);
}

.empty-state__link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--size-touch);
  font: var(--text-md);
  font-weight: var(--weight-semibold);
}

/* -------------------------------------------------------------------------
 * Brief 112: the pieces the approval page needed. Section, Panel, Text,
 * ActionForm, Disclosure, Checkboxes and AccountLine.
 * ---------------------------------------------------------------------- */

/* A group under one heading: a month of posts, the quick questions, the invite form. */
.section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scroll-margin-block-start: var(--space-4);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.section__heading {
  margin: 0;
  font: var(--text-lg);
}

.section__lead {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

/* A bordered box for one thing that is not a post: a question, a person, the invite form. */
.panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-paper);
  scroll-margin-block-start: var(--space-4);
}

/* A question or a name: the client's own words, so line breaks are kept and long words wrap. */
.panel__heading {
  margin: 0;
  font: var(--text-md);
  font-weight: var(--weight-semibold);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.text {
  margin: 0;
  font: var(--text-md);
  overflow-wrap: anywhere;
}

.text--soft {
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

.text--muted {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.text--keep-lines {
  white-space: pre-line;
}

.action-form {
  margin: 0;
}

/* A form with boxes to fill in: its fields in a column, the button last. */
.action-form--stacked {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.disclosure {
  margin: 0;
}

/* The browser's own <details>, drawn as an outlined button: no triangle. */
.disclosure__summary {
  inline-size: 100%;
  list-style: none;
}

.disclosure__summary::-webkit-details-marker {
  display: none;
}

.disclosure[open] > .disclosure__summary {
  background: var(--color-wash);
}

/* A primary one (brief 117), opened: the pressed brand colour, so its words stay readable. */
.disclosure[open] > .disclosure__summary.button--primary {
  background: var(--color-brand-pressed);
}

.disclosure__panel {
  padding-block-start: var(--space-3);
}

.checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkboxes__legend {
  margin-block-end: var(--space-2);
  padding: 0;
  font: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* Each choice is a touch target tall, and the words beside the box are part of it. */
.checkboxes__option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--size-touch);
  font: var(--text-md);
}

.checkboxes__input {
  inline-size: var(--space-5);
  block-size: var(--space-5);
  margin: 0;
  accent-color: var(--color-brand);
}

/* Words shown back to read and copy, not to change. */
.field__input[readonly] {
  background: var(--color-wash);
}

/* Who is signed in, and "Not you?", at the foot of a signed-in page. */
.account-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-block-start: var(--space-6);
  border-block-start: var(--border-width) solid var(--color-line-soft);
  color: var(--color-ink-muted);
  font: var(--text-sm);
  text-align: center;
}

.account-line__words {
  margin: 0;
}

/* -------------------------------------------------------------------------
 * SignInCard
 * ---------------------------------------------------------------------- */

.sign-in-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-5);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-xl);
}

.sign-in-card__heading {
  margin: 0;
  font: var(--text-2xl);
  letter-spacing: var(--letter-spacing-title);
}

.sign-in-card__lead {
  margin: 0;
  color: var(--color-ink-soft);
}

.sign-in-card__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* -------------------------------------------------------------------------
 * Brief 115: the pieces the staff console needed. The wide layout,
 * FilterBar, ListDetail, ClientList, DetailFacts and Checklist. The client
 * pages use none of these, and nothing above changed for them.
 * ---------------------------------------------------------------------- */

/*
 * The console is a desk tool (Branden, 2026-10-15): on a wide screen its
 * page, header and tab bar may use twice the reading width, so the list and
 * the open item sit side by side. Only a page that asks (Layout's `wide`)
 * gets it.
 */
.layout--wide .layout__main,
.layout--wide .app-header__inner,
.layout--wide .tab-bar__list {
  max-inline-size: calc(var(--layout-reading-width) * 2);
}

/* FilterBar: a row of chips, each a link with its count. The same chip shape and colours as DateChips. */
.filter-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--size-touch);
  padding-inline: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-wash);
  color: var(--color-ink);
  font: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.filter-chip--current {
  background: var(--color-ink);
  color: var(--color-paper);
}

/* The count, a little quieter than the words; on the current chip it stays readable on ink. */
.filter-chip__count {
  color: var(--color-ink-muted);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.filter-chip--current .filter-chip__count {
  color: var(--color-paper);
}

/*
 * ListDetail. On a phone, one column: the list, or once an item is open,
 * the item alone with the way back above it. From the wide breakpoint up,
 * the list on the left and the open item on the right.
 */
.list-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.list-detail--open .list-detail__list {
  display: none;
}

/* The list's column: the page's title and chips (when given), then the rows. */
.list-detail__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-inline-size: 0;
}

.list-detail__detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-inline-size: 0;
}

.list-detail:not(.list-detail--open) .list-detail__detail {
  display: none;
}

.list-detail__items {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-xl);
  list-style: none;
}

.list-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-block-size: var(--size-touch);
  padding: var(--space-3) var(--space-4);
  border-block-end: var(--border-width) solid var(--color-line-soft);
  color: var(--color-ink);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.list-detail__items > li:last-child .list-item {
  border-block-end: 0;
}

.list-item:hover {
  background: var(--color-wash);
}

/* The row whose item is open beside the list: on the brand's tint, and marked for screen readers too. */
.list-item--current {
  background: var(--color-brand-tint);
}

.list-item__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
}

.list-item__eyebrow {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.list-item__title {
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

/* Two lines of the text, then an ellipsis. */
.list-item__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-ink-soft);
  font: var(--text-sm);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Brief 118: rows in groups, each under a small heading (a client's questions). */
.list-detail__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.list-detail__group-heading {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.list-detail__group-empty {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-sm);
}

.list-detail__back {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-block-size: var(--size-touch);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.list-detail__placeholder {
  margin: 0;
  padding-block: var(--space-8);
  color: var(--color-ink-muted);
  font: var(--text-sm);
  text-align: center;
}

@media (min-width: 640px) {
  .list-detail {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: var(--space-6);
  }

  .list-detail--open .list-detail__list {
    display: flex;
  }

  .list-detail:not(.list-detail--open) .list-detail__detail {
    display: flex;
  }

  .list-detail__back {
    display: none;
  }
}

/*
 * ClientList. On a phone, a picker: one line per client, its name and its
 * summary. From the wide breakpoint up, a grid of cards with their counts.
 */
.client-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-xl);
  list-style: none;
}

.client-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-block-size: var(--size-touch);
  padding: var(--space-3) var(--space-4);
  border-block-end: var(--border-width) solid var(--color-line-soft);
  color: var(--color-ink);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.client-list > li:last-child .client-card {
  border-block-end: 0;
}

.client-card:hover {
  background: var(--color-wash);
}

.client-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
}

.client-card__name {
  font: var(--text-md);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

.client-card__summary {
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

/* The counts are for the wide screen's cards; the phone's picker shows the summary only. */
.client-card__counts {
  display: none;
  margin: 0;
}

.client-card__count {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-1);
  border-block-start: var(--border-width) solid var(--color-line-soft);
  font: var(--text-sm);
}

.client-card__count-label {
  color: var(--color-ink-soft);
}

.client-card__count-value {
  margin: 0;
  font-weight: var(--weight-semibold);
}

@media (min-width: 640px) {
  .client-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--layout-reading-width) / 2)), 1fr));
    gap: var(--space-4);
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .client-card {
    block-size: 100%;
    padding: var(--space-4);
    border: var(--border-width) solid var(--color-line);
    border-radius: var(--radius-xl);
  }

  .client-list > li:last-child .client-card {
    border-block-end: var(--border-width) solid var(--color-line);
  }

  .client-card__counts {
    display: block;
  }
}

/*
 * ClientList, brief 108a: a card that is not a link (an archived client),
 * drawn the same but with no hover; and the card's bar and its line under it.
 */
.client-card--still:hover {
  background: none;
}

.client-card__note {
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

/* DetailFacts: each sentence, then the facts behind it, quieter. */
.detail-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.detail-facts__heading {
  margin: 0;
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.detail-facts__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-facts__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-inline-start: var(--space-3);
  border-inline-start: var(--focus-ring-width) solid var(--color-line);
}

.detail-facts__sentence {
  margin: 0;
  font: var(--text-md);
  overflow-wrap: anywhere;
}

.detail-facts__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
}

.detail-facts__fact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  font: var(--text-sm);
}

.detail-facts__key {
  color: var(--color-ink-muted);
  overflow-wrap: anywhere;
}

.detail-facts__value {
  margin: 0;
  color: var(--color-ink-soft);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.detail-facts__none {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-sm);
}

/*
 * RecordTable (brief 173): a short record, newest first. On a phone each
 * row is a small block with each cell under its heading's words, so nothing
 * scrolls sideways; from the wide breakpoint up it is an ordinary table.
 */
.record-table {
  width: 100%;
  border-collapse: collapse;
  font: var(--text-sm);
}

/* Hidden from sight on a phone, as .visually-hidden does it; a screen reader still reads the headings. */
.record-table__head {
  position: absolute;
  inline-size: var(--border-width);
  block-size: var(--border-width);
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
}

.record-table__heading {
  padding: var(--space-2) var(--space-3);
  color: var(--color-ink-muted);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-align: start;
}

.record-table__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-block-start: var(--focus-ring-width) solid var(--color-line-soft);
}

.record-table__cell {
  display: block;
  color: var(--color-ink-soft);
  overflow-wrap: anywhere;
}

.record-table__cell::before {
  content: attr(data-label) ": ";
  color: var(--color-ink-muted);
}

@media (min-width: 640px) {
  .record-table__head {
    position: static;
    inline-size: auto;
    block-size: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  .record-table__row {
    display: table-row;
  }

  .record-table__cell {
    display: table-cell;
    padding: var(--space-2) var(--space-3);
    vertical-align: top;
  }

  .record-table__cell::before {
    content: none;
  }
}

/* Checklist: each line with an empty box drawn before it. Drawing only: nothing here is ticked or recorded. */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist__heading {
  margin: 0;
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.checklist__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font: var(--text-md);
  overflow-wrap: anywhere;
}

.checklist__item::before {
  flex-shrink: 0;
  inline-size: var(--space-4);
  block-size: var(--space-4);
  border: var(--border-width) solid var(--color-control-line);
  /* Half the smallest radius: the smallest whole one would round a box this size into a circle. */
  border-radius: calc(var(--radius-sm) / 2);
  /* Down a little, so the box sits level with the first line of words. */
  margin-block-start: var(--space-1);
  content: "";
}

.checklist__empty {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-sm);
}

/* -------------------------------------------------------------------------
 * Brief 131: the pieces Drop's sign-in and upload pages needed. The code
 * step's shared-computer box, View, FileButton, SelectField, PhotoList,
 * PhotoRow and StatusLine. Nothing above changed for the other pages.
 * ---------------------------------------------------------------------- */

/* "This is a shared computer": the box and its words are one touch target, the line under it explains. */
.sign-in-card__check {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sign-in-card__check-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--size-touch);
  font: var(--text-md);
  cursor: pointer;
}

.sign-in-card__check-input {
  flex-shrink: 0;
  inline-size: var(--space-5);
  block-size: var(--space-5);
  margin: 0;
  accent-color: var(--color-brand);
}

/* Under the words, not under the box: lined up with the words it explains. */
.sign-in-card__check-help {
  margin: 0;
  padding-inline-start: calc(var(--space-5) + var(--space-3));
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

/* One view of a page a script swaps with others: its parts in a column. */
.view {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/*
 * The browser's file input, out of sight but still reachable by keyboard:
 * the label beside it is the button people tap. Kept in the page's flow so
 * a phone still opens its picker from the label.
 */
.file-button__input {
  position: absolute;
  inline-size: var(--border-width);
  block-size: var(--border-width);
  overflow: hidden;
  opacity: 0;
}

/* The focus ring goes on the button people see. */
.file-button__input:focus-visible + .file-button__label {
  outline: var(--focus-ring-width) solid var(--color-brand-text);
  outline-offset: var(--focus-ring-offset);
}

/* A label cannot be disabled, so a page script marks it with aria-disabled. */
.file-button__label[aria-disabled="true"] {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}

/* A select drawn like a one-line input, with room for the phone's own arrow. */
.field__select {
  padding-inline-end: var(--space-3);
}

.photo-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The list takes no room until a photo is in it. */
.photo-list:empty {
  display: none;
}

.photo-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
}

.photo-row__thumb {
  flex-shrink: 0;
  inline-size: var(--size-photo-thumb);
  block-size: var(--size-photo-thumb);
  border-radius: var(--radius-sm);
  background: var(--color-wash);
  object-fit: cover;
}

.photo-row__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.photo-row__size {
  font: var(--text-sm);
  font-weight: var(--weight-medium);
}

.photo-row__state {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

/* An empty state takes no line while the person is still choosing photos. */
.photo-row__state:empty {
  display: none;
}

.photo-row[data-state="sent"] .photo-row__state {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}

.photo-row[data-state="needs_attention"] .photo-row__state {
  color: var(--color-notice);
  font-weight: var(--weight-semibold);
}

.photo-row__progress {
  inline-size: 100%;
  block-size: var(--size-progress);
  accent-color: var(--color-brand);
}

/* A touch target, drawn as a quiet circle. */
.photo-row__remove {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-touch);
  block-size: var(--size-touch);
  padding: 0;
  border: var(--border-width) solid var(--color-control-line);
  border-radius: 100%;
  background: var(--color-paper);
  color: var(--color-ink-soft);
  font: var(--text-lg);
  cursor: pointer;
}

.photo-row__remove:active {
  background: var(--color-wash);
}

.status-line {
  margin: 0;
  font: var(--text-md);
  font-weight: var(--weight-semibold);
}

/* -------------------------------------------------------------------------
 * GalleryPhotoRow, PhotoPicker and RadioChoices (brief 142): the photos on
 * a client's profile. A photo is shown as it is, never tinted or dimmed, in
 * the light look or the dark: no filter or opacity is put on one.
 * ---------------------------------------------------------------------- */

/* One photo on "Your posts", Profile photos: the thumbnail, then its lines and what can be done, as a PhotoRow is drawn. */
.gallery-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-block-end: var(--border-width) solid var(--color-line-soft);
}

.gallery-row:last-child {
  border-block-end: 0;
}

.gallery-row__thumb {
  flex-shrink: 0;
  inline-size: var(--size-photo-thumb);
  block-size: var(--size-photo-thumb);
  border-radius: var(--radius-sm);
  background: var(--color-wash);
  object-fit: cover;
}

.gallery-row__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.gallery-row__title {
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.gallery-row__line {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.gallery-row__action form {
  margin: 0;
}

/* The starter set: a grid of photos, three across, each a box a tap unticks. */
.photo-picker {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  counter-reset: photo-picked;
}

.photo-picker__set {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.photo-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-picker__tile {
  position: relative;
  display: block;
  border: var(--focus-ring-width) solid var(--color-brand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

/* The box itself sits on the photo's corner, under the tick drawn over it; it is still what a keyboard reaches. */
.photo-picker__box {
  position: absolute;
  inset-block-start: var(--space-1);
  inset-inline-end: var(--space-1);
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
  margin: 0;
  opacity: 0;
}

/* Each box still ticked counts toward "Approve N photos". */
.photo-picker__box:checked {
  counter-increment: photo-picked;
}

.photo-picker__photo {
  display: block;
  inline-size: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-wash);
}

/* The tick: a filled brand circle with a check while ticked. */
.photo-picker__mark {
  position: absolute;
  inset-block-start: var(--space-1);
  inset-inline-end: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
  border-radius: var(--radius-full);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font: var(--text-xs);
  font-weight: var(--weight-bold);
}

.photo-picker__mark::before {
  content: "\2713";
}

/* "Left out": shown only once the box is unticked, in words, on a paper strip across the photo's foot. */
.photo-picker__out {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  display: none;
  padding: var(--space-1) var(--space-2);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-align: center;
}

.photo-picker__tile:has(.photo-picker__box:not(:checked)) {
  border-color: var(--color-control-line);
  border-style: dashed;
}

.photo-picker__tile:has(.photo-picker__box:not(:checked)) .photo-picker__mark {
  display: none;
}

.photo-picker__tile:has(.photo-picker__box:not(:checked)) .photo-picker__out {
  display: block;
}

.photo-picker__tile:has(.photo-picker__box:focus-visible) {
  outline: var(--focus-ring-width) solid var(--color-brand);
  outline-offset: var(--focus-ring-offset);
}

.photo-picker__hint {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

/* The number of photos still ticked, counted by the stylesheet. */
.photo-picker__count::before {
  content: counter(photo-picked);
}

.photo-picker__count {
  margin-inline: var(--space-1);
}

/* One choice of a few: round buttons, each a touch target tall. */
.radio-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-choices__legend {
  margin-block-end: var(--space-2);
  padding: 0;
  font: var(--text-sm);
  font-weight: var(--weight-medium);
}

.radio-choices__option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--size-touch);
  font: var(--text-md);
}

.radio-choices__input {
  inline-size: var(--space-5);
  block-size: var(--space-5);
  margin: 0;
  accent-color: var(--color-brand);
}

/* -------------------------------------------------------------------------
 * Brief 129: the review page as a feed. PostPreview, ApprovedBanner,
 * ProgressBar, FeedMonthHeading, ActionPanel, ActionBox, SummaryLine,
 * LinkBox and DoneState; the hover, press and focus states for the kit.
 * PostRow was reworked above; StatTiles is gone.
 * ---------------------------------------------------------------------- */

/*
 * PostPreview. Outside the frame, everything is the kit's: the date heading,
 * quiet so the post itself leads, and the channel's name, small and
 * uppercase. Inside the frame, Google's own look: its font, white, its greys
 * and its link blue, from the preview.google tokens, which only this
 * component uses (a test checks).
 */
.post-preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-7);
  /* A link or "Approve" that lands here stops below the sticky month heading. */
  scroll-margin-block-start: calc(var(--space-8) + var(--space-5));
}

.post-preview + .post-preview {
  border-block-start: var(--border-width) solid var(--color-line-soft);
}

/* Inside a row on "Your posts" it is the whole content: no extra space above. */
.post-row__panel .post-preview {
  padding-block: 0;
}

.post-preview__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.post-preview__heading {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-md);
  font-weight: var(--weight-semibold);
}

.post-preview__channel {
  color: var(--color-ink-muted);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.post-preview__frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--border-width) solid var(--preview-google-line);
  border-radius: var(--radius-lg);
  background: var(--preview-google-paper);
  color: var(--preview-google-ink);
  font-family: var(--preview-google-font);
  transition:
    opacity var(--dur-med) var(--ease),
    filter var(--dur-med) var(--ease);
}

.post-preview__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-3);
}

/* The round profile picture: a plain grey circle with a shop outline, never a letter. */
.post-preview__avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  inline-size: var(--size-preview-avatar);
  block-size: var(--size-preview-avatar);
  border-radius: 100%;
  background: var(--preview-google-avatar);
  color: var(--preview-google-avatar-icon);
}

.post-preview__avatar--photo {
  object-fit: cover;
}

.post-preview__shop {
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

.post-preview__who {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.post-preview__name {
  font: var(--text-sm);
  font-family: var(--preview-google-font);
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}

.post-preview__when {
  color: var(--preview-google-ink-muted);
  font: var(--text-xs);
  font-family: var(--preview-google-font);
}

/*
 * The photo: full width, one height for every photo (16 by 10 of the
 * frame's width, never taller than size.preview-photo), an upright or
 * square photo letterboxed on black so it is never cropped.
 */
.post-preview__media {
  display: flex;
  justify-content: center;
  aspect-ratio: 16 / 10;
  max-block-size: var(--size-preview-photo);
  /* Without this, a tall photo's own height would stretch the box past its shape. */
  overflow: hidden;
  background: var(--preview-google-letterbox);
}

.post-preview__photo {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

.post-preview__kind {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-4) 0;
}

.post-preview__kind-title {
  margin: 0;
  font: var(--text-lg);
  font-family: var(--preview-google-font);
  overflow-wrap: anywhere;
}

.post-preview__kind-dates {
  margin: 0;
  color: var(--preview-google-ink-muted);
  font: var(--text-xs);
  font-family: var(--preview-google-font);
}

.post-preview__text {
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-2);
  font: var(--text-sm);
  font-family: var(--preview-google-font);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* An offer's code, in a dashed box, as Google shows it. */
.post-preview__code {
  align-self: flex-start;
  margin: var(--space-2) var(--space-4);
  padding: var(--space-2) var(--space-3);
  border: var(--border-width) dashed var(--preview-google-line);
  border-radius: var(--radius-sm);
  font: var(--text-sm);
  font-family: var(--preview-google-font);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

.post-preview__terms {
  margin: 0;
  padding: var(--space-1) var(--space-4);
  color: var(--preview-google-ink-muted);
  font: var(--text-xs);
  font-family: var(--preview-google-font);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* The button, and an offer's redeem link: a real link in Google's blue. */
.post-preview__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-block-size: var(--size-touch);
  margin: 0 var(--space-4) var(--space-2);
  color: var(--preview-google-link);
  font: var(--text-sm);
  font-family: var(--preview-google-font);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.post-preview__call {
  display: flex;
  flex-direction: column;
  margin: 0 var(--space-4) var(--space-4);
}

.post-preview__call-label {
  color: var(--preview-google-link);
  font: var(--text-sm);
  font-family: var(--preview-google-font);
  font-weight: var(--weight-medium);
}

.post-preview__call-note {
  color: var(--preview-google-ink-muted);
  font: var(--text-xs);
  font-family: var(--preview-google-font);
}

.post-preview__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/*
 * While one ActionPanel of a post is open, that post's other actions step
 * aside: one task, one blue button. A browser without :has simply shows
 * them all.
 */
.post-preview__actions:has(> .action-panel[open]) > :not(.action-panel[open]) {
  display: none;
}

/* Approved: the post greyed out, its actions gone, the green line under it. */
.post-preview--approved .post-preview__frame,
.post-preview--approved .post-preview__meta {
  opacity: var(--opacity-disabled);
  filter: grayscale(100%);
}

.post-preview--approved .post-preview__actions {
  display: none;
}

/* The fold after it is approved (the review page's script): height, space and opacity to nothing. */
.feed-leaving {
  overflow: hidden;
  opacity: 0;
  padding-block: 0;
  margin-block: 0;
  transition:
    height var(--dur-fold) var(--ease),
    opacity var(--dur-med) var(--ease),
    padding var(--dur-fold) var(--ease),
    margin var(--dur-fold) var(--ease);
}

/* ApprovedBanner: a green tick and one line. The box is always there for screen readers; empty, it takes no room. */
.approved-banner__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-block-size: var(--size-button-primary);
  margin: 0;
  padding-inline: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-wash);
  color: var(--color-ink);
  font: var(--text-md);
  font-weight: var(--weight-semibold);
}

.approved-banner__mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  inline-size: var(--size-approved-mark);
  block-size: var(--size-approved-mark);
  border-radius: 100%;
  background: var(--color-success);
  color: var(--color-paper);
}

.approved-banner__tick {
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

.approved-banner__words {
  color: var(--color-ink);
}

/* ProgressBar: the browser's own <progress>, drawn thin, the track in the line colour, the done part in the brand's. */
.progress-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.progress-bar__track {
  display: block;
  inline-size: 100%;
  block-size: var(--size-progress);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-line);
  color: var(--color-brand);
  appearance: none;
}

.progress-bar__track::-webkit-progress-bar {
  border-radius: var(--radius-sm);
  background: var(--color-line);
}

.progress-bar__track::-webkit-progress-value {
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  transition: inline-size var(--dur-med) var(--ease);
}

.progress-bar__track::-moz-progress-bar {
  border-radius: var(--radius-sm);
  background: var(--color-brand);
}

.progress-bar__under {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

/* The caption takes what room is left; the review page's script writes it again as posts are approved. */
.progress-bar__caption {
  min-inline-size: 0;
}

/* A quiet link that is underlined at rest ("See approved"); on a hover it loses the underline. */
.progress-bar__link {
  color: var(--color-ink-muted);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--color-control-line);
  text-underline-offset: var(--space-1);
}

/* FeedMonthHeading: the month stays at the top of the screen while its posts scroll under it. */
.feed-month {
  display: flex;
  flex-direction: column;
}

.feed-month + .feed-month {
  margin-block-start: var(--space-6);
}

.feed-month__head {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-inline: calc(var(--layout-page-padding) * -1);
  padding: var(--space-3) var(--layout-page-padding);
  border-block-end: var(--border-width) solid var(--color-line-soft);
  background: var(--color-paper);
}

.feed-month__heading {
  display: flex;
  flex-direction: column;
  margin: 0;
  font: var(--text-xl);
}

.feed-month__name {
  overflow-wrap: anywhere;
}

.feed-month__location {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.feed-month__count {
  flex-shrink: 0;
  color: var(--color-ink-muted);
  font: var(--text-sm);
  font-weight: var(--weight-medium);
}

/*
 * ActionPanel. Closed: an outlined button. Open: its summary becomes the
 * task's title on the left and "Cancel" on the right, and the whole task
 * sits in a bordered box.
 */
.action-panel {
  margin: 0;
}

.action-panel__summary {
  list-style: none;
}

.action-panel__summary::-webkit-details-marker {
  display: none;
}

.action-panel__open {
  display: none;
}

.action-panel[open] {
  padding: var(--space-4);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-xl);
}

.action-panel[open] .action-panel__closed {
  display: none;
}

.action-panel[open] .action-panel__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  inline-size: 100%;
}

.action-panel[open] > .action-panel__summary {
  min-block-size: var(--size-touch);
  padding: 0;
  border: 0;
  background: none;
}

.action-panel__title {
  font: var(--text-md);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  text-align: start;
}

.action-panel__cancel {
  flex-shrink: 0;
  color: var(--color-ink-soft);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-color: var(--color-control-line);
  text-underline-offset: var(--space-1);
}

.action-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block-start: var(--space-2);
}

/* ActionBox: a soft box after a month's posts, for "Approve all". */
.action-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block-end: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--color-wash);
}

/* The outlined button stands on white inside the soft box. */
.action-box .action-panel:not([open]) > .action-panel__summary {
  background: var(--color-paper);
}

.action-box .action-panel[open] {
  background: var(--color-paper);
}

.action-box__lead {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-sm);
  text-align: center;
}

/* While its question is open, the line under it steps aside: the question says the dates. */
.action-box:has(.action-panel[open]) .action-box__lead {
  display: none;
}

/* SummaryLine: one muted line of counts. */
.summary-line {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-sm);
}

/* LinkBox: a bordered box that is one link. */
.link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-block-size: var(--size-touch);
  padding: var(--space-3) var(--space-4);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  font: var(--text-sm);
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.link-box__text {
  min-inline-size: 0;
}

.link-box__action {
  flex-shrink: 0;
  color: var(--color-brand-text);
  font-weight: var(--weight-semibold);
}

.link-box__action::after {
  content: " →";
}

/* DoneState: a tick, what is done, what comes next, and the next step. */
.done-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--color-wash);
  text-align: center;
}

.done-state__mark {
  display: grid;
  place-items: center;
  inline-size: calc(var(--size-approved-mark) * 2);
  block-size: calc(var(--size-approved-mark) * 2);
  border: var(--border-width) solid var(--color-line);
  border-radius: 100%;
  background: var(--color-paper);
  color: var(--color-success);
}

.done-state__tick {
  inline-size: var(--size-approved-mark);
  block-size: var(--size-approved-mark);
}

.done-state__heading {
  margin: 0;
  font: var(--text-2xl);
  letter-spacing: var(--letter-spacing-title);
}

.done-state__message {
  margin: 0;
  font: var(--text-md);
  font-weight: var(--weight-semibold);
}

.done-state__detail {
  margin: 0 0 var(--space-2);
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

/*
 * Hover states (brief 129), on devices with a pointer only: a phone has no
 * hover, and a hover left behind after a tap would look like a choice.
 * Every interactive thing keeps the focus ring at the top of this file for
 * the keyboard.
 */
@media (hover: hover) {
  /* A filled button darkens to the brand's pressed colour. */
  .button--primary:hover:not(:disabled) {
    border-color: var(--color-brand-pressed);
    background: var(--color-brand-pressed);
  }

  /* An outlined button takes a light tint. */
  .button--secondary:hover:not(:disabled) {
    border-color: var(--color-ink-muted);
    background: var(--color-wash-strong);
  }

  /* An open ActionPanel's summary is a title and "Cancel", not a button: only "Cancel" answers a hover. */
  .action-panel[open] > .action-panel__summary:hover {
    background: none;
  }

  .action-panel[open] > .action-panel__summary:hover .action-panel__cancel {
    color: var(--color-ink);
    text-decoration-color: var(--color-ink);
  }

  /* A quiet text link shows its underline; one underlined at rest loses it. */
  .button--quiet:hover,
  .post-preview__link:hover,
  .post-row__status-link:hover,
  .post-row__place-link:hover,
  .empty-state__link:hover {
    text-decoration: underline;
    text-underline-offset: var(--space-1);
  }

  .progress-bar__link:hover {
    color: var(--color-ink);
    text-decoration: none;
  }

  .link-box:hover {
    border-color: var(--color-control-line);
    background: var(--color-wash-strong);
  }

  /* A row on "Your posts": a light tint, its photo a little bigger, the ">" a few pixels on. An opened row has no tint. */
  .post-row__summary:hover {
    background: var(--color-wash-strong);
  }

  .post-row__summary:hover .post-row__thumb {
    transform: scale(1.04);
  }

  .post-row__summary:hover .post-row__toggle--open::after {
    transform: translateX(var(--space-1));
  }

  .post-row__item[open] > .post-row__summary:hover {
    background: none;
  }

  .post-row__item[open] > .post-row__summary:hover .post-row__toggle--close {
    text-decoration: underline;
    text-underline-offset: var(--space-1);
  }
}

/* "Reduce motion": no growing photo and no nudging arrow either (the rule at the top already stops every transition). */
@media (prefers-reduced-motion: reduce) {
  .post-row__summary:hover .post-row__thumb,
  .post-row__summary:hover .post-row__toggle--open::after {
    transform: none;
  }
}

/* -------------------------------------------------------------------------
 * NameMenu (brief 108a): the signed-in person's name, opening a small menu
 * under it. The browser's own <details>: no script.
 * ---------------------------------------------------------------------- */

.name-menu {
  position: relative;
  min-inline-size: 0;
}

.name-menu__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-block-size: var(--size-touch);
  max-inline-size: 100%;
  padding-inline: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-ink-soft);
  font: var(--text-sm);
  cursor: pointer;
  list-style: none;
}

.name-menu__button::-webkit-details-marker {
  display: none;
}

.name-menu[open] > .name-menu__button {
  background: var(--color-wash);
  color: var(--color-ink);
}

.name-menu__name {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-menu__icon {
  flex-shrink: 0;
  inline-size: var(--space-4);
  block-size: var(--space-4);
  transition: transform var(--dur-fast) var(--ease);
}

.name-menu[open] .name-menu__icon {
  transform: rotate(180deg);
}

.name-menu__panel {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-inline-size: calc(var(--layout-reading-width) / 3);
  margin-block-start: var(--space-1);
  padding-block: var(--space-1);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-lg);
  /* A raised surface: the page's paper in light, a step lighter in dark, where the shadow barely shows (brief 161). */
  background: var(--color-raised);
  box-shadow: var(--shadow-sheet);
}

.name-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.name-menu__form {
  margin: 0;
  border-block-start: var(--border-width) solid var(--color-line-soft);
}

.name-menu__item {
  display: flex;
  align-items: center;
  inline-size: 100%;
  min-block-size: var(--size-touch);
  padding-inline: var(--space-4);
  border: 0;
  background: none;
  color: var(--color-ink);
  font: var(--text-md);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

/* Sign out is a button in a form, drawn as the links above it. */
.name-menu__item--button {
  font-family: inherit;
}

.name-menu__item:hover {
  background: var(--color-wash);
}

.name-menu__item[aria-current="page"] {
  font-weight: var(--weight-semibold);
}

/* -------------------------------------------------------------------------
 * StepList (brief 108a): numbered steps, each marked done or not. A done
 * number is filled in the success colour; its state says so in words too.
 * ---------------------------------------------------------------------- */

.step-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-block-end: var(--border-width) solid var(--color-line-soft);
}

.step-list__item:last-child {
  border-block-end: 0;
}

.step-list__number {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  inline-size: var(--size-badge);
  block-size: var(--size-badge);
  border: var(--border-width) solid var(--color-control-line);
  border-radius: 100%;
  color: var(--color-ink-soft);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.step-list__item--done .step-list__number {
  border-color: var(--color-success);
  background: var(--color-success);
  color: var(--color-paper);
}

.step-list__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  min-inline-size: 0;
}

.step-list__title {
  margin: 0;
  font: var(--text-md);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

.step-list__state {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-sm);
}

.step-list__item--done .step-list__state {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}

.step-list__note {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

.step-list__link {
  color: var(--color-ink);
  font: var(--text-sm);
}

/* -------------------------------------------------------------------------
 * The quick questions (brief 150): QuickQuestions, QuickQuestion,
 * ChoiceRow, AnswerLine, and Button's pill and Disclosure's link. To the
 * approved mockup, docs/design/question-choices/question-choices-v1.html.
 * ---------------------------------------------------------------------- */

/*
 * The same room above and below the divider (Branden, 08:03Z on the
 * mockup): 24px each side, the page's own gap between its parts (space-5)
 * plus space-1. Stretched across, since the page lays its parts out in a
 * column that would otherwise give a rule no width.
 */
.quick-questions__divider {
  align-self: stretch;
  inline-size: 100%;
  margin-block: var(--space-1);
  border: 0;
  border-block-start: var(--border-width) solid var(--color-line-soft);
}

/* One tinted block holding every question: no card per question. */
.quick-questions {
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--color-wash);
  scroll-margin-block-start: var(--space-4);
}

.quick-questions__heading {
  margin: 0;
  font: var(--text-lg);
}

.quick-questions__lead {
  margin: var(--space-1) 0 var(--space-2);
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

/* 24px above and below each dividing line (the mockup's .q padding). */
.quick-question {
  padding-block: var(--space-6);
  border-block-start: var(--border-width) solid var(--color-line);
  scroll-margin-block-start: var(--space-4);
}

.quick-question:first-of-type {
  border-block-start: 0;
}

.quick-question:last-of-type {
  padding-block-end: var(--space-1);
}

/*
 * Brief 148: the photo a question is about, above the question. The width
 * of the block on a phone, no wider than a post's preview photo at a desk;
 * the photo keeps its own shape inside a 4:3 frame.
 */
.quick-question__photo {
  display: block;
  inline-size: 100%;
  max-inline-size: var(--size-preview-photo);
  aspect-ratio: 4 / 3;
  margin: 0 0 var(--space-3);
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--color-wash-strong);
}

/* Brief 148: the quiet link under the ways to answer ("Don't use this photo"). */
.quick-question__aside {
  margin-block-start: var(--space-2);
}

/* Muted, so it reads as a way out, not a fourth choice. */
.quick-question__aside .button--quiet {
  color: var(--color-ink-muted);
}

/* The client's own words, so line breaks are kept and long words wrap. */
.quick-question__text {
  margin: 0 0 var(--space-3);
  font: var(--text-md);
  font-weight: var(--weight-semibold);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.quick-question__location {
  margin: calc(var(--space-2) * -1) 0 var(--space-3);
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.quick-question__note {
  margin: 0 0 var(--space-3);
  color: var(--color-notice);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.quick-question__done {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: baseline;
  margin: 0;
  color: var(--color-success);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

/* "Thanks." stays on one line; what they said wraps after it. */
.quick-question__thanks {
  white-space: nowrap;
}

.quick-question__said {
  color: var(--color-ink-soft);
  font-weight: var(--weight-regular);
  overflow-wrap: anywhere;
}

/*
 * The choices in one row that wraps; "Something else?" opened takes the
 * whole width. The choices' one form is drawn as if it were not there
 * (display: contents), so its buttons sit in the row beside "Something
 * else?", whose own form cannot be inside theirs.
 */
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.choice-row > .action-form {
  display: contents;
}

.choice-row > .disclosure[open] {
  flex-basis: 100%;
}

/*
 * A choice: outlined, fully round, at least a touch target tall. A little
 * less padding than a button's, so two short choices share a phone's row
 * as in the mockup.
 */
.button--pill {
  min-block-size: var(--size-touch);
  padding-inline: var(--space-4);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
}

/* "Something else?": a text-style button in softer ink, still a touch target tall. */
.disclosure__summary--link {
  display: inline-flex;
  align-items: center;
  inline-size: auto;
  min-block-size: var(--size-touch);
  padding-inline: var(--space-1);
  color: var(--color-ink-soft);
  font: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
  cursor: pointer;
}

.disclosure[open] > .disclosure__summary--link {
  background: none;
}

/* A one-line box with Send beside it. */
.answer-line {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.answer-line__box {
  flex: 1;
  min-inline-size: 0;
  min-block-size: var(--size-touch);
  padding: var(--space-3);
  border: var(--border-width) solid var(--color-control-line);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--text-md);
  resize: none;
}

/* It grows as they type where the browser can (Safari 26.2 and later); elsewhere it stays two lines tall (rows="2"). */
@supports (field-sizing: content) {
  .answer-line__box {
    field-sizing: content;
  }
}

.answer-line__send {
  min-block-size: var(--size-touch);
}

/* -------------------------------------------------------------------------
 * Voice notes (brief 163, the v6 mockup's screens 1, 2, 3, 7 and 16)
 * ---------------------------------------------------------------------- */

/*
 * Send's three front doors (Photos, Camera, Talk), side by side, the same
 * size. A phone's; a computer shows the composer bar. minmax(0, 1fr) lets a
 * column shrink below its words, so the words wrap at a space instead of
 * pushing a door wider than the others.
 */
.send-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.send-door {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--size-touch);
  padding: var(--space-4) var(--space-1) var(--space-3);
  border: var(--border-width) solid var(--color-control-line);
  border-radius: var(--radius-xl);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--text-sm);
  text-align: center;
  cursor: pointer;
  min-inline-size: 0;
  transition: background-color var(--dur-fast) var(--ease);
}

.send-door:active {
  background: var(--color-wash);
}

.send-door[aria-disabled="true"],
.send-door:disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}

/* The file input sits just before the Photos door: its focus shows on the door. */
.file-button__input:focus-visible + .send-door {
  outline: var(--focus-ring-width) solid var(--color-brand-text);
  outline-offset: var(--focus-ring-offset);
}

.send-door__ring {
  display: grid;
  place-items: center;
  inline-size: var(--size-door-ring);
  block-size: var(--size-door-ring);
  border-radius: var(--radius-full);
  background: var(--color-brand-tint);
  color: var(--color-brand-text);
}

.send-door--main .send-door__ring {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

/* The Talk ring breathes very slowly. Still under "reduce motion" (the rule at the top). */
.send-door__ring--breath {
  animation: send-door-breath var(--dur-breath) var(--ease) infinite alternate;
}

@keyframes send-door-breath {
  from {
    box-shadow: 0 0 0 0 var(--color-brand-tint);
  }
  to {
    box-shadow: 0 0 0 var(--space-2) var(--color-brand-tint);
  }
}

.send-door__icon {
  inline-size: var(--size-door-icon);
  block-size: var(--size-door-icon);
}

.send-door__label {
  font: var(--text-lg);
}

.send-door__sub {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

/* The composer's bar on a computer: the file button at the left, Talk at the right. */
.composer-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.composer-bar__talk {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--size-touch);
  padding-inline: var(--space-4) var(--space-5);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.composer-bar__talk:active {
  background: var(--color-brand-pressed);
}

.composer-bar__icon {
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

@media (min-width: 640px) {
  .send-doors .send-door {
    display: none;
  }

  /*
   * A computer has no Camera door, and the camera input must not be left
   * behind where a keyboard could reach it: display none takes it out of the
   * tab order. The Photos input stays, because the composer bar's "Add
   * photos" is a second label for it.
   */
  .send-doors .send-doors__camera-input {
    display: none;
  }

  .send-doors {
    display: block;
  }

  .composer-bar {
    display: flex;
  }
}

/* The first-time Talk sheet: a dimmed page, and the sheet from the bottom. */
.talk-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.talk-sheet[hidden] {
  display: none;
}

.talk-sheet__scrim {
  position: absolute;
  inset: 0;
  background: var(--color-scrim);
}

.talk-sheet__panel {
  position: relative;
  inline-size: 100%;
  max-inline-size: var(--layout-reading-width);
  margin-inline: auto;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--color-raised);
  box-shadow: var(--shadow-sheet);
}

.talk-sheet__ask {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.talk-sheet__heading {
  margin: 0;
  font: var(--text-xl);
}

.talk-sheet__lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.talk-sheet__line {
  display: flex;
  gap: var(--space-3);
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

.talk-sheet__icon {
  flex: none;
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
  color: var(--color-ink);
}

.talk-sheet__next {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-xs);
}

.talk-sheet__quiet {
  align-self: center;
  color: var(--color-ink-soft);
  font-weight: var(--weight-medium);
}

/* Recording: everything centred, the timer large, Stop in the record red. */
.recording-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.recording-screen[hidden] {
  display: none;
}

.recording-screen__dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-record);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.recording-screen__dot-mark {
  inline-size: var(--size-record-dot);
  block-size: var(--size-record-dot);
  border-radius: var(--radius-full);
  background: var(--color-record);
  animation: recording-blink var(--dur-blink) var(--ease) infinite alternate;
}

@keyframes recording-blink {
  from {
    opacity: 1;
  }
  to {
    opacity: var(--opacity-disabled);
  }
}

.recording-screen__timer {
  margin: 0;
  font: var(--text-timer);
  font-variant-numeric: tabular-nums;
}

.recording-screen__bars {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  block-size: var(--size-record-bars);
}

/* Each bar is full height, scaled by the page script to the loudness it measures on the phone. */
.recording-screen__bar {
  inline-size: var(--size-record-bar);
  block-size: 100%;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  transform: scaleY(0.12);
  transition: transform var(--dur-fast) var(--ease);
}

.recording-screen__line {
  margin: 0;
  color: var(--color-ink);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: center;
}

.recording-screen__stop {
  display: grid;
  place-items: center;
  inline-size: var(--size-record-stop);
  block-size: var(--size-record-stop);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-record);
  box-shadow: 0 0 0 var(--space-3) var(--color-record-tint);
  cursor: pointer;
}

.recording-screen__stop-mark {
  inline-size: var(--size-record-stop-mark);
  block-size: var(--size-record-stop-mark);
  border-radius: var(--radius-sm);
  background: var(--color-on-record);
}

.recording-screen__hint {
  max-inline-size: var(--layout-reading-width);
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-xs);
  text-align: center;
}

.recording-screen__cancel {
  color: var(--color-ink-soft);
  font-weight: var(--weight-medium);
}

/* A voice note in the tray. */
.voice-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.voice-list:empty {
  display: none;
}

.voice-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-paper);
}

.voice-card__play {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: var(--size-voice-play);
  block-size: var(--size-voice-play);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-ink);
  color: var(--color-paper);
  cursor: pointer;
}

.voice-card__icon {
  inline-size: var(--size-voice-play-icon);
  block-size: var(--size-voice-play-icon);
}

.voice-card__icon--pause,
.voice-card[data-playing] .voice-card__icon--play {
  display: none;
}

.voice-card[data-playing] .voice-card__icon--pause {
  display: block;
}

.voice-card__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-inline-size: 0;
}

.voice-card__title {
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.voice-card__wave {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  block-size: var(--size-wave);
  margin-block-start: var(--space-1);
}

.voice-card__wave-bar {
  inline-size: var(--size-wave-bar);
  block-size: 100%;
  border-radius: var(--radius-sm);
  background: var(--color-control-line);
  transform: scaleY(0.5);
}

/* A fixed, simple shape: it says "a recording", not what is in it. */
.voice-card__wave-bar:nth-child(4n + 1) {
  transform: scaleY(0.4);
}

.voice-card__wave-bar:nth-child(4n + 2) {
  transform: scaleY(0.85);
}

.voice-card__wave-bar:nth-child(4n + 3) {
  transform: scaleY(0.6);
}

.voice-card__wave-bar:nth-child(8n) {
  transform: scaleY(1);
}

.voice-card__meta {
  display: flex;
  gap: var(--space-2);
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.voice-card__state:empty {
  display: none;
}

.voice-card[data-state="sent"] .voice-card__state {
  color: var(--color-success);
}

.voice-card[data-state="needs_attention"] .voice-card__state {
  color: var(--color-notice);
}

.voice-card__remove {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: var(--size-remove-button);
  block-size: var(--size-remove-button);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-wash);
  color: var(--color-ink-soft);
  cursor: pointer;
}

.voice-card__remove[hidden] {
  display: none;
}

/* The component library draws the sheet in its own place, not over the page. */
.talk-sheet--inline {
  position: relative;
  inset: auto;
  z-index: auto;
}

/* The composer bar's file button keeps to its own size beside Talk. */
.composer-bar__files {
  flex: none;
}

/* The length reads in figures that keep their width as the time changes. */
.voice-card__length {
  font-variant-numeric: tabular-nums;
}

/* HeardCard (brief 164; v6 screens 8 and 9, v8 screen 5): after a send, one
   line per thing sent; with a voice note, "Listening to your note…" with three
   quiet dots, then up to three short lines, each fading in after the one before. */
.heard-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--color-wash);
}

.heard-card[hidden] {
  display: none;
}

.heard-card__listening {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-ink-soft);
  font: var(--text-md);
}

.heard-card__dots {
  display: flex;
  gap: var(--space-1);
}

.heard-card__dots i {
  display: block;
  inline-size: var(--size-heard-dot);
  block-size: var(--size-heard-dot);
  border-radius: var(--radius-full);
  background: var(--color-ink-muted);
  animation: heard-card-dot var(--dur-blink) infinite alternate;
}

.heard-card__dots i:nth-child(2) {
  animation-delay: var(--dur-dot-step);
}

.heard-card__dots i:nth-child(3) {
  animation-delay: calc(var(--dur-dot-step) * 2);
}

/* Down to faint and back: `alternate` plays the way back, so no 50% step is written. */
@keyframes heard-card-dot {
  to {
    opacity: var(--opacity-faint);
  }
}

.heard-card__heard {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.heard-card[data-state="listening"] .heard-card__heard,
.heard-card[data-state="heard"] .heard-card__listening {
  display: none;
}

.heard-card__lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Each line with the brand's dot before it, as the mockup draws it. */
.heard-card__line {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  color: var(--color-ink);
  font: var(--text-md);
  animation: heard-card-rise var(--dur-rise) var(--ease) both;
}

.heard-card__line::before {
  content: "";
  flex: none;
  inline-size: var(--size-heard-dot);
  block-size: var(--size-heard-dot);
  margin-block-start: var(--space-2);
  border-radius: var(--radius-full);
  background: var(--color-brand);
}

.heard-card__line:nth-child(2) {
  animation-delay: var(--dur-rise-step);
}

.heard-card__line:nth-child(3) {
  animation-delay: calc(var(--dur-rise-step) * 2);
}

@keyframes heard-card-rise {
  from {
    opacity: 0;
    transform: translateY(var(--size-heard-rise));
  }
}

@media (prefers-reduced-motion: reduce) {
  .heard-card__dots i,
  .heard-card__line {
    animation: none;
  }
}

/* -------------------------------------------------------------------------
 * What was sent (brief 165, the v6 mockup's screens 1, 7, 13, 14 and 16)
 * ---------------------------------------------------------------------- */

/* "or type a note": a small link on a phone that opens the note in place. */
.note-fold {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.note-fold__open {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: var(--space-2);
  min-block-size: var(--size-touch);
  padding-inline: var(--space-3);
  border: 0;
  background: none;
  color: var(--color-ink-soft);
  font: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
}

.note-fold__icon {
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

.note-fold[data-folded="true"] .note-fold__field {
  display: none;
}

.note-fold[data-folded="false"] .note-fold__open {
  display: none;
}

/* Done: under the field, at the right, only while the note has focus. It takes no room otherwise. */
.note-fold__done {
  display: none;
  justify-content: flex-end;
  margin-block-start: var(--space-2);
}

.note-fold:focus-within .note-fold__done,
.note-fold__done--typing {
  display: flex;
}

.note-fold__done .button {
  min-block-size: var(--size-touch);
}

/* Recent, under the doors: a hairline above, a small heading, "See all" at the right. */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
  padding-block-start: var(--space-4);
  border-block-start: var(--border-width) solid var(--color-line);
}

.recent-list__heading,
.sent-month__heading {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--letter-spacing-none);
  text-transform: uppercase;
}

.recent-list__rows,
.sent-month__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* "Everything you've sent" under the rows: the kit's wide secondary Button. */
.recent-list__all {
  display: flex;
  flex-direction: column;
  margin-block-start: var(--space-2);
}

/* One month on "Everything you've sent". */
.sent-month {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
}

/* One thing sent: an icon tile, the line, what was in it and when, where it stands. */
.sent-row {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-block-end: var(--border-width) solid var(--color-line-soft);
}

.sent-row:last-child {
  border-block-end: 0;
}

.sent-row__icon {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: var(--size-remove-button);
  block-size: var(--size-remove-button);
  border-radius: var(--radius-sm);
  background: var(--color-wash);
  color: var(--color-ink-soft);
}

.sent-row__glyph {
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

.sent-row__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.sent-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.sent-row__summary {
  margin: 0;
  color: var(--color-ink);
  font: var(--text-sm);
  overflow-wrap: anywhere;
}

.sent-row--removed .sent-row__summary {
  color: var(--color-ink-muted);
}

/* A removed row keeps its picture, faded and drained of colour. Nothing is struck through. */
.sent-row--removed .sent-row__picture {
  opacity: var(--opacity-removed);
  filter: grayscale(var(--opacity-removed-grey));
}

.sent-row--removed .sent-row__icon {
  opacity: var(--opacity-removed-icon);
}

/* The note's first words: one line, cut with an ellipsis. */
.sent-row__note {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sent-row--removed .sent-row__note {
  color: var(--color-ink-muted);
}

/* The preview's content waits in a template; the page script copies it into the sheet. */
.sent-row__preview {
  display: none;
}

/* A removed row with a preview opens it when tapped; its line is the button for a keyboard. */
.sent-row--looks {
  cursor: pointer;
}

.sent-row__look {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.sent-row__meta {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

/* The last day of the undo window is in the notice colour. */
.sent-row__meta--last {
  color: var(--color-notice);
  font-weight: var(--weight-semibold);
}

.sent-row__state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.sent-row__channels {
  color: var(--color-ink-soft);
  font: var(--text-xs);
}

/* The tag: words in a soft pill. The words carry the state; the colour only helps. */
.sent-tag {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-wash);
  color: var(--color-ink-soft);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.sent-tag--success {
  color: var(--color-success);
}

.sent-tag--brand {
  color: var(--color-brand-text);
}

.sent-tag--notice {
  background: var(--color-notice-wash);
  color: var(--color-notice);
}

/* A tag with posts opens to them. Its marker is the browser's, hidden: the pill is the button. */
.sent-row__posts > summary {
  list-style: none;
  cursor: pointer;
}

.sent-row__posts > summary::-webkit-details-marker {
  display: none;
}

.sent-row__post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.sent-row__post {
  color: var(--color-ink-soft);
  font: var(--text-xs);
}

.sent-row__post a {
  color: var(--color-brand-text);
}

.sent-row__undo {
  min-block-size: var(--size-touch);
  padding-inline: var(--space-2);
  border: 0;
  background: none;
  color: var(--color-brand-text);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

/* A sent row's first photo, in place of its icon, with "+2" on its corner (165's follow-up). */
.sent-row__picture {
  position: relative;
  flex: none;
  inline-size: var(--size-photo-thumb);
  block-size: var(--size-photo-thumb);
}

.sent-row__thumb {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border-radius: var(--radius-sm);
  background: var(--color-wash);
  object-fit: cover;
}

.sent-row__more-photos {
  position: absolute;
  inset-block-end: var(--space-1);
  inset-inline-end: var(--space-1);
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--color-scrim);
  color: var(--color-on-record);
  font: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* The ··· menu: a quiet round button, and its one item under it. */
.sent-row__menu {
  position: relative;
  flex: none;
}

.sent-row__more {
  display: grid;
  place-items: center;
  inline-size: var(--size-touch);
  block-size: var(--size-remove-button);
  border-radius: var(--radius-full);
  color: var(--color-ink-soft);
  font: var(--text-md);
  list-style: none;
  cursor: pointer;
}

.sent-row__more::-webkit-details-marker {
  display: none;
}

.sent-row__menu[open] .sent-row__more {
  background: var(--color-wash);
}

.sent-row__menu-list {
  position: absolute;
  inset-inline-end: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-inline-size: var(--size-door-ring);
  padding: var(--space-1);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-raised);
  box-shadow: var(--shadow-sheet);
}

.sent-row__menu-item {
  min-block-size: var(--size-touch);
  padding-inline: var(--space-4);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-notice);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: start;
  cursor: pointer;
}

.sent-row__menu-item:active {
  background: var(--color-wash);
}

/* The Remove sheet: a modal dialog from the bottom on a phone, centred on a computer. */
.remove-sheet {
  inline-size: 100%;
  max-inline-size: var(--layout-reading-width);
  margin-block: auto 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--color-raised);
  color: var(--color-ink);
  box-shadow: var(--shadow-sheet);
}

.remove-sheet[open] {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* The sheet's two modes (Remove, and the preview of a removed send) each fill it the same way. */
.remove-sheet__mode {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.remove-sheet__mode[hidden] {
  display: none;
}

.remove-sheet__preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.remove-sheet__title {
  margin: 0;
  font: var(--text-lg);
}

/* The photos in full colour: the same small copies as the list, larger. Up to three across; one or two fill the width. */
.remove-sheet__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.remove-sheet__photos[data-count="1"] {
  grid-template-columns: minmax(0, var(--size-preview-photo));
}

.remove-sheet__photos[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.remove-sheet__photo {
  display: block;
  inline-size: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--color-wash);
  object-fit: cover;
}

.remove-sheet__said {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-sm);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.remove-sheet__fine {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-xs);
  text-align: center;
}

.remove-sheet::backdrop {
  background: var(--color-scrim);
}

.remove-sheet__question {
  margin: 0;
  font: var(--text-lg);
}

.remove-sheet__published {
  margin: 0;
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

.remove-sheet__problem {
  margin: 0;
  color: var(--color-notice);
  font: var(--text-sm);
}

.remove-sheet__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.remove-sheet__buttons .button--quiet {
  align-self: center;
}

/* The component library draws the sheet in its own place, not over the page. */
.remove-sheet--inline {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
}

@media (min-width: 640px) {
  .note-fold__open {
    display: none;
  }

  .note-fold:focus-within .note-fold__done,
  .note-fold__done--typing {
    display: none;
  }

  .note-fold[data-folded="true"] .note-fold__field {
    display: block;
  }

  .remove-sheet {
    margin-block: auto;
    border-radius: var(--radius-xl);
  }

  /* On a computer the preview's two buttons sit side by side, Close on the left and Undo taking the rest. */
  .remove-sheet__buttons--across {
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--space-3);
  }

  .remove-sheet__buttons--across .button--primary {
    flex: 1;
    inline-size: auto;
  }

  .remove-sheet__buttons--across .button--quiet {
    flex: none;
  }
}

/* Send's quiet links under the doors: "Type a note" and "Send a file", a dot between. */
.note-fold__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.note-fold__dot {
  color: var(--color-control-line);
}

.note-fold[data-folded="false"] .note-fold__dot {
  display: none;
}

/* With something in the tray, "Send a file" moves into the Add more row. */
.note-fold[data-tray="full"] .note-fold__dot,
.note-fold[data-tray="full"] .file-link {
  display: none;
}

.send-doors[hidden] {
  display: none;
}

/* FileLink: a quiet link that is the label of a hidden file input, like the note's own link. */
.file-link {
  display: inline-flex;
}

.file-link__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--size-touch);
  padding-inline: var(--space-3);
  color: var(--color-ink-soft);
  font: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
}

.file-link__icon {
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

.file-link__label[hidden] {
  display: none;
}

.file-button__input:focus-visible + .file-link__label {
  outline: var(--focus-ring-width) solid var(--color-brand);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-md);
}

/* DocumentList and DocumentCard: a file in Send's tray, a small page with its kind. */
.document-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-list:empty {
  display: none;
}

.document-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-paper);
}

.document-card__kind {
  display: grid;
  flex: none;
  place-items: end center;
  inline-size: var(--size-voice-play);
  block-size: calc(var(--size-voice-play) * 1.15);
  padding-block-end: var(--space-1);
  border: var(--border-width) solid var(--color-control-line);
  border-radius: var(--radius-sm);
  background: var(--color-wash-strong);
  color: var(--color-ink-soft);
  font: var(--text-xs);
  font-weight: var(--weight-bold);
}

.document-card__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.document-card__name {
  overflow: hidden;
  color: var(--color-ink);
  font: var(--text-md);
  font-weight: var(--weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-card__meta {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.document-card__state {
  color: var(--color-ink-muted);
  font: var(--text-xs);
}

.document-card__state:empty {
  display: none;
}

.document-card[data-state="sent"] .document-card__state {
  color: var(--color-success);
}

.document-card[data-state="needs_attention"] .document-card__state,
.document-card[data-state="refused"] .document-card__state {
  color: var(--color-notice);
}

.document-card__progress {
  inline-size: 100%;
  block-size: var(--size-progress);
}

.document-card__progress[hidden] {
  display: none;
}

.document-card__remove {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: var(--size-remove-button);
  block-size: var(--size-remove-button);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-wash);
  color: var(--color-ink-soft);
  cursor: pointer;
}

.document-card__remove[hidden] {
  display: none;
}

.document-card__icon {
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
}

/* AddMoreRow: the doors once something is in the tray, small and dashed, so they read as adding. */
.add-more {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.add-more[hidden] {
  display: none;
}

.add-more__heading {
  margin: 0;
  color: var(--color-ink-muted);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.add-more__buttons {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--space-2);
}

.add-more__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-inline-size: 0;
  min-block-size: var(--size-touch);
  padding-inline: var(--space-2);
  border: var(--border-width) dashed var(--color-control-line);
  border-radius: var(--radius-full);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.add-more__button[hidden],
.add-more__button[aria-disabled="true"] {
  display: none;
}

.add-more__icon {
  flex: none;
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
  color: var(--color-brand);
}

/* RefusalList and RefusalLine: a file Send could not take, in words, on the notice wash. */
.refusal-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.refusal-list:empty {
  display: none;
}

.refusal-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-notice-wash);
  color: var(--color-ink);
  font: var(--text-sm);
}

.refusal-line__icon {
  flex: none;
  inline-size: var(--size-icon);
  block-size: var(--size-icon);
  color: var(--color-notice);
}

.refusal-line__lead {
  font-weight: var(--weight-semibold);
}

.refusal-line__rest {
  color: var(--color-ink);
}

/* HeardCard's lines of what was sent come first; the voice part shows only while listening or heard. */
.heard-card__sent {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.heard-card__sent:empty {
  display: none;
}

.heard-card[data-state="hidden"] .heard-card__listening,
.heard-card[data-state="hidden"] .heard-card__heard {
  display: none;
}

/* A computer has one "Add photos or files" button: no quiet links, no Add more row. */
@media (min-width: 640px) {
  .note-fold__links,
  .add-more {
    display: none;
  }
}

/* -------------------------------------------------------------------------
 * WelcomeCard (the first-visit v3 mockup)
 *
 * The kit's wash, the surface for words from us, with no outline and the
 * large radius. Below the wide breakpoint everything stacks; from it up the
 * tab lines sit side by side in equal columns, and the last line and "Got
 * it" share one row, where "Got it" is its own size.
 * ---------------------------------------------------------------------- */

.welcome-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--color-wash);
}

.welcome-card__heading {
  margin: 0;
  color: var(--color-ink);
  font: var(--text-xl);
}

.welcome-card__lead {
  margin: var(--space-1) 0 0;
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

.welcome-card__tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: var(--space-4) 0 0;
  border-block-start: var(--border-width) solid var(--color-line);
  list-style: none;
}

.welcome-card__tab {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.welcome-card__icon {
  display: inline-flex;
  flex: none;
  color: var(--color-brand-text);
}

.welcome-card__tab-words {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.welcome-card__tab-name {
  color: var(--color-ink);
  font: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.welcome-card__tab-line {
  color: var(--color-ink-soft);
  font: var(--text-sm);
}

.welcome-card__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  margin-block-start: var(--space-4);
  padding-block-start: var(--space-4);
  border-block-start: var(--border-width) solid var(--color-line);
}

.welcome-card__last {
  margin: 0;
  color: var(--color-ink);
  font: var(--text-sm);
}

.welcome-card__last strong {
  font-weight: var(--weight-semibold);
}

.welcome-card__link {
  color: var(--color-brand-text);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.welcome-card__link:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .welcome-card {
    padding: var(--space-6) var(--space-7);
  }

  .welcome-card__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  /* Two tabs for someone who may not send: two equal columns. */
  .welcome-card__tabs:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-card__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .welcome-card__foot .button--wide {
    inline-size: auto;
    flex: none;
  }
}
