
@font-face { font-family: "Fraunces"; src: url("/brand/fraunces.5097cb6923.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
/* Digits come from the system font: Atkinson Hyperlegible only has a slashed zero, which read as a broken "0" in counts and times (Steven, November 28 2026). */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/brand/atkinson-400.a60206dd47.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-002F, U+003A-10FFFF; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/brand/atkinson-700.1cc7c0c5fb.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; unicode-range: U+0000-002F, U+003A-10FFFF; }
:root { --font-title: "Fraunces", "Iowan Old Style", Georgia, serif; --font-body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif; --column: 680px; --column-wide: 1120px; --column-gap: 32px; --card-width: 560px; --signin-width: 440px; --gutter: 16px; --gutter-wide: 24px; --radius-group: 18px; --radius-card: 24px; --radius-control: 14px; --button-height: 52px; --title: 34px; --title-card: 30px; --title-hero: 48px; --paper: #EDF1E6; --sheet: #FBFCF7; --sheet-pressed: #EEF2E8; --sheet-inset: #F1F4EC; --sheet-inset-pressed: #E6EBDF; --sunk: #E0E6D7; --sunk-strong: #D2DAC7; --ink: #1C2920; --ink-soft: #435247; --muted: #526157; --faint: rgba(28, 41, 32, .34); --line: rgba(28, 41, 32, .13); --shimmer: rgba(255, 255, 255, .7); --accent: #2D5C43; --accent-fill: #2D5C43; --on-accent: #FFFFFF; --accent-wash: #DCE8DC; --bloom: #A63D57; --bloom-wash: #F3DDE2; --sun: #7A5410; --sun-wash: #F4E9C8; --tone-red: #A63D57; --tone-blue: #2F6690; --tone-green: #2E6B45; --tone-orange: #8A5A12; --tone-purple: #694C86; --tone-indigo: #2D5C43; --tone-teal: #1F6B69; --tone-gray: #5F675C; --on-tone: #FFFFFF; --knob: #FFFFFF; --glass: rgba(251, 252, 247, .58); --glass-solid: #F8FAF4; --glass-rim: inset 0 0 0 1px rgba(28, 41, 32, .08), inset 0 1px 0 rgba(255, 255, 255, .75); --glass-shadow: 0 0 0 transparent; --glow-1: rgba(247, 226, 160, .32); --glow-2: rgba(45, 92, 67, .07); --shadow-card: 0 0 0 transparent; --shadow: 0 0 0 transparent; --shadow-button: 0 0 0 transparent; --signin-button: #FFFFFF; --signin-button-label: #1F1F1F; --signin-button-edge: rgba(0, 0, 0, .28); --paper-texture: url("/brand/paper-light.c91df19ff7.jpg"); --scene: url("/brand/scene-day.1d13d3ec93.jpg"); color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #131A15; --sheet: #1C251E; --sheet-pressed: #253027; --sheet-inset: #222C24; --sheet-inset-pressed: #2B372D; --sunk: #243026; --sunk-strong: #34423A; --ink: #E9EFE4; --ink-soft: #BCC8BC; --muted: #9DAB9F; --faint: rgba(233, 239, 228, .32); --line: rgba(233, 239, 228, .11); --shimmer: rgba(233, 239, 228, .09); --accent: #8CC6A0; --accent-fill: #2F6A4A; --on-accent: #FFFFFF; --accent-wash: #1F3527; --bloom: #E68CA2; --bloom-wash: #3A2229; --sun: #E8C877; --sun-wash: #362F18; --tone-red: #A63D57; --tone-blue: #2F6690; --tone-green: #2E6B45; --tone-orange: #8A5A12; --tone-purple: #694C86; --tone-indigo: #2F6A4A; --tone-teal: #1F6B69; --tone-gray: #5F675C; --on-tone: #FFFFFF; --knob: #F4F7F0; --glass: rgba(28, 37, 30, .58); --glass-solid: #1C251E; --glass-rim: inset 0 0 0 1px rgba(233, 239, 228, .09), inset 0 1px 0 rgba(233, 239, 228, .08); --glass-shadow: 0 0 0 transparent; --glow-1: rgba(230, 195, 108, .08); --glow-2: rgba(140, 198, 160, .05); --shadow-card: 0 0 0 transparent; --shadow: 0 0 0 transparent; --shadow-button: 0 0 0 transparent; --signin-button: #FFFFFF; --signin-button-label: #1F1F1F; --signin-button-edge: transparent; --paper-texture: url("/brand/paper-dark.0539dce6be.jpg"); --scene: url("/brand/scene-night.011a62256e.jpg"); color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #131A15; --sheet: #1C251E; --sheet-pressed: #253027; --sheet-inset: #222C24; --sheet-inset-pressed: #2B372D; --sunk: #243026; --sunk-strong: #34423A; --ink: #E9EFE4; --ink-soft: #BCC8BC; --muted: #9DAB9F; --faint: rgba(233, 239, 228, .32); --line: rgba(233, 239, 228, .11); --shimmer: rgba(233, 239, 228, .09); --accent: #8CC6A0; --accent-fill: #2F6A4A; --on-accent: #FFFFFF; --accent-wash: #1F3527; --bloom: #E68CA2; --bloom-wash: #3A2229; --sun: #E8C877; --sun-wash: #362F18; --tone-red: #A63D57; --tone-blue: #2F6690; --tone-green: #2E6B45; --tone-orange: #8A5A12; --tone-purple: #694C86; --tone-indigo: #2F6A4A; --tone-teal: #1F6B69; --tone-gray: #5F675C; --on-tone: #FFFFFF; --knob: #F4F7F0; --glass: rgba(28, 37, 30, .58); --glass-solid: #1C251E; --glass-rim: inset 0 0 0 1px rgba(233, 239, 228, .09), inset 0 1px 0 rgba(233, 239, 228, .08); --glass-shadow: 0 0 0 transparent; --glow-1: rgba(230, 195, 108, .08); --glow-2: rgba(140, 198, 160, .05); --shadow-card: 0 0 0 transparent; --shadow: 0 0 0 transparent; --shadow-button: 0 0 0 transparent; --signin-button: #FFFFFF; --signin-button-label: #1F1F1F; --signin-button-edge: transparent; --paper-texture: url("/brand/paper-dark.0539dce6be.jpg"); --scene: url("/brand/scene-night.011a62256e.jpg"); color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* The paper: a 600 px tile drawn at half size so it stays crisp on a Retina screen, over its flat colour. */
body { margin: 0; background: var(--paper) var(--paper-texture) 0 0 / 300px repeat; color: var(--ink); overflow-wrap: break-word;
  font: 17px/1.4 var(--font-body); letter-spacing: 0; }
main { max-width: var(--column); margin: 0 auto; padding: 0 var(--gutter) 40px; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
main.wide { max-width: 760px; }
/* The tab bar sits on the safe area (the home bar's), or 10px up where there is none (Steven: no gap on top of it). */
:root { --tab-gap: max(10px, env(safe-area-inset-bottom)); }
body.has-tabs main { padding-bottom: calc(100px + var(--tab-gap)); }
a { color: var(--accent); text-decoration: none; }
p a, li a, .footer a, td a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--sheet); padding: 10px 16px; border-radius: 99px; z-index: 30; }
.skip:focus { top: 8px; }

/* Liquid Glass surfaces: the tab bar, the round Back button, the bar's buttons. They float over the page and blur what scrolls under them. */
.tabbar, .navbar .back, .glass, :is(button, .button).block:not(.primary) {
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: var(--glass-rim), var(--glass-shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar, .navbar .back, .glass, :is(button, .button).block:not(.primary) { background: var(--glass-solid); }
}
/* A soft wash of color behind the top of every page, so the glass has something to catch. */
:root { --glow: radial-gradient(70% 70% at 12% 0%, var(--glow-1), transparent 70%), radial-gradient(60% 60% at 95% 5%, var(--glow-2), transparent 70%); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 420px; z-index: -1; pointer-events: none; background: var(--glow); }

/* Navigation bar: no bar of its own. A round glass Back button; the title fades in over a blurred edge once the large title scrolls away. */
.navbar { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: calc(env(safe-area-inset-top) + 6px) 12px 6px; min-height: 56px;
  display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; }
/*
 * The edge under the bar, as iOS 27's scroll edge effect: what scrolls under it blurs and washes into the paper, most at the top and
 * fading out smoothly below the bar, never a solid band (Steven, November 28 2026). One fixed layer blurs what's behind it and carries a
 * light paper wash; its mask fades both out. It's the body's, not the bar's: a fixed layer inside the sticky bar vanished on iOS while the
 * page scrolled, so the page script marks the body (bar-scrolled) when the bar does.
 */
body::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top) + 56px + 48px); z-index: 19;
  pointer-events: none; opacity: 0; transition: opacity .25s;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 78%, transparent), color-mix(in srgb, var(--paper) 40%, transparent));
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(env(safe-area-inset-top) + 30px), rgba(0, 0, 0, .75) calc(env(safe-area-inset-top) + 56px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(env(safe-area-inset-top) + 30px), rgba(0, 0, 0, .75) calc(env(safe-area-inset-top) + 56px), transparent); }
body.bar-scrolled::after { opacity: 1; }
.navbar .nav-title { grid-column: 2; font-weight: 600; font-size: 17px; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.navbar.scrolled .nav-title { opacity: 1; }
.navbar .back { grid-column: 1; justify-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); transition: transform .2s; }
.navbar .back::before { content: ""; width: 11px; height: 11px; border-left: 2.6px solid currentColor; border-bottom: 2.6px solid currentColor; transform: rotate(45deg); margin-left: 5px; border-radius: 1px; }
.navbar .back:active { transform: scale(1.08); }
.navbar .brand { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; color: var(--ink);
  font-family: var(--font-title); font-size: 21px; font-weight: 400; font-variation-settings: "opsz" 36; }
.navbar .brand svg { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.navbar .progress { grid-column: 2; }
body.has-tabs .navbar .brand { display: none; }

/* Tab bar: a floating glass capsule over the bottom of the page on a phone; the chosen tab sits in a lighter pill. */
.tabbar { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: var(--tab-gap);
  width: min(340px, calc(100% - 40px)); display: flex; gap: 2px; padding: 4px; border-radius: 99px; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 56px; border-radius: 99px;
  font-size: 10px; font-weight: 600; letter-spacing: 0; color: var(--ink); transition: background .2s, color .2s; }
.tabbar a svg { width: 25px; height: 25px; }
.tabbar a[aria-current="page"] { color: var(--accent); background: var(--sunk); }
/* Content fades as it reaches the tab bar, the way iOS softens the edge under its bars. */
/* No fade under the tab bar: it's glass and floats over the list, as iOS 27's does (Steven, November 28 2026). */

/* Type */
/* Titles are Fraunces, regular weight, never bold. */
h1 { font-family: var(--font-title); font-size: var(--title); line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; margin: 6px 0 18px; font-variation-settings: "opsz" 72; }
h2 { font-family: var(--font-title); font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: -0.005em; margin: 32px 0 10px; font-variation-settings: "opsz" 36; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 18px 0 6px; }
p { margin: 0 0 12px; line-height: 1.45; }
.lead { font-size: 17px; color: var(--ink-soft); margin: -10px 0 22px; line-height: 1.4; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 8px 0 0; text-transform: uppercase; letter-spacing: .02em; }
ul.plain, ol.plain { padding-left: 22px; margin: 0 0 14px; line-height: 1.45; }
ul.plain li, ol.plain li { margin: 6px 0; }

/* Grouped lists: the heart of every page. */
.group { margin: 0 0 30px; }
/* Group headers are words you read, not titles: the text face, bold. */
.group-header { font-family: var(--font-body); font-variation-settings: normal; font-size: 15px; line-height: 1.3; letter-spacing: 0; color: var(--ink-soft); margin: 0 20px 8px; font-weight: 700; }
.group-footer { font-size: 13px; color: var(--ink-soft); margin: 8px 20px 0; line-height: 1.4; }
.group-footer p { margin: 0 0 6px; }
.cells { background: var(--sheet); border-radius: var(--radius-group); overflow: hidden; box-shadow: var(--shadow-card); }
/* A list being asked again (data-fresh): what was known, with a light sweeping across it, and not tappable until fresh. */
.refreshing { pointer-events: none; }
.refreshing .cells { position: relative; }
.refreshing .cells::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, var(--shimmer) 50%, transparent 70%) 0 0 / 250% 100% no-repeat;
  animation: shimmer 1.2s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .refreshing .cells::after { animation: none; background: var(--shimmer); opacity: .5; } }
.cell { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 18px; color: var(--ink); background: var(--sheet);
  width: 100%; border: 0; border-radius: 0; box-shadow: none; font: inherit; text-align: left; letter-spacing: inherit; }
.cells > * { position: relative; }
.cells > * + *::before { content: ""; position: absolute; z-index: 1; top: 0; right: 0; left: 18px; border-top: .5px solid var(--line); pointer-events: none; }
.cells > * + :is(.has-icon, :has(> .has-icon))::before { left: 59px; }
.cells > * + .subrow::before { left: 32px; }
.cells > form { display: block; margin: 0; }
a.cell, button.cell, label.cell { cursor: pointer; }
a.cell:active, button.cell:active, label.cell:active { background: var(--sheet-pressed); }
/* Text, not a mask image: the page's CSP allows no data: images. */
a.cell.outside::after { content: "\2197"; flex: none; margin-left: 4px; color: var(--faint); font-size: 17px; font-weight: 600; line-height: 1; }
a.cell.nav::after, button.cell.nav::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2.2px solid var(--faint); border-top: 2.2px solid var(--faint); transform: rotate(45deg); margin-left: 4px; }
.cell .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 2px 0; }
.cell .title { font-size: 17px; line-height: 1.3; }
.cell .sub { font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.cell .sub.red { color: var(--bloom); }
.cell .value { color: var(--ink-soft); font-size: 17px; flex: none; max-width: 45%; text-align: right; }
.cell.nav .value { flex: 0 1 auto; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cell.action { color: var(--accent); }
.cell.action .title { color: var(--accent); }
.cell.destructive { justify-content: center; color: var(--bloom); }
.cell.destructive .title { color: var(--bloom); }
.cell.center { justify-content: center; }
button.cell.action.has-icon, button.cell.start { justify-content: flex-start; }
.cell.plain-text { display: block; padding: 14px 18px; line-height: 1.45; }
.cell.plain-text p:last-child { margin-bottom: 0; }
.cell.stack { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 18px; }
.cell.stack > .cell-label { font-size: 15px; color: var(--ink-soft); }
.cell .empty, .cell.empty { color: var(--ink-soft); }
.ico { flex: none; width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: var(--on-tone); background-color: var(--tone-gray); font-weight: 700; font-size: 15px;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 70%); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ico svg { width: 18px; height: 18px; }
.ico.red { background-color: var(--tone-red); } .ico.blue { background-color: var(--tone-blue); } .ico.green { background-color: var(--tone-green); } .ico.orange { background-color: var(--tone-orange); }
/* A numbered step (Add iCloud Drive): a round green number in the icon's place. */
.ico.step-number { border-radius: 50%; background-color: var(--tone-green); font-size: 14px; }
.ico.purple { background-color: var(--tone-purple); } .ico.indigo { background-color: var(--tone-indigo); } .ico.teal { background-color: var(--tone-teal); } .ico.gray { background-color: var(--tone-gray); }

/* The person's picture (Settings, Profile, Activity): their square photo shown round, or their initial on blue. */
.avatar { flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.ico.avatar { border-radius: 50%; background-image: none; box-shadow: none; padding: 0; }
.ico.avatar.letter { background-color: var(--tone-blue); }
.avatar.large { width: 120px; height: 120px; font-size: 52px; font-weight: 700; color: var(--on-tone); }
.avatar.large.letter { background-color: var(--tone-blue); font-family: var(--font-title); font-weight: 400; }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0 22px; }
.profile-head[hidden] { display: none; }
.photo-pick { position: relative; color: var(--accent); }
.photo-pick:focus-within { outline: 3px solid var(--accent); border-radius: var(--radius-control); }
form.scripted .no-script-only { display: none; }
/* The cropper: the photo fills a square, the circle shows how it will look round, outside it is dimmed. */
.cropper { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 4px 0 24px; }
.cropper[hidden] { display: none; }
.cropper-hint { margin: 0; color: var(--ink-soft); font-size: 15px; }
.crop-frame { position: relative; width: min(100%, 360px); aspect-ratio: 1; border-radius: var(--radius-group); overflow: hidden; background: var(--sunk); touch-action: none; cursor: grab; }
.crop-frame:active { cursor: grabbing; }
.crop-frame canvas { display: block; width: 100%; height: 100%; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, rgba(0, 0, 0, 0) 99.5%, rgba(0, 0, 0, .45) 100%); }
.crop-ring::after { content: ""; position: absolute; inset: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); }
.crop-zoom { width: min(100%, 360px); }
.crop-zoom input { width: 100%; accent-color: var(--accent); }
.crop-actions { display: flex; gap: 12px; width: min(100%, 360px); }
.crop-actions button { flex: 1; }
.cropper.sending { opacity: .6; pointer-events: none; }
.cell.input-field { align-items: center; }
.cell.input-field input[type="text"] { flex: 1; min-width: 0; background: transparent; padding: 0; border-radius: 0; min-height: 24px; }
.cell.input-field input[type="text"]:focus { outline: none; }
.cell.photo-change { justify-content: center; gap: 18px; padding: 18px; }
.cell.photo-change .avatar.large { width: 96px; height: 96px; font-size: 40px; }
.cell.photo-change .avatar.none { background: var(--sunk); color: var(--ink-soft); font-size: 15px; font-family: var(--font-body); }
.photo-arrow { font-size: 24px; color: var(--ink-soft); }

/* Pages that save as you tap keep their Save button only for browsers without scripts; a note shows only when a save fails. */
form.autosaving .sticky { display: none; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(86px + var(--tab-gap)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 20px; border-radius: 99px; font-size: 15px; font-weight: 600; color: var(--ink); transition: opacity .2s, transform .25s;
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%); box-shadow: var(--glass-rim), var(--glass-shadow); }
.toast.shown { opacity: 1; transform: translate(-50%, 0); }
.toast { width: max-content; max-width: calc(100vw - 40px); text-align: center; }
.toast.error { color: var(--bloom); }

/* An app's page opens with its icon and name, as iOS draws an account. */
.app-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 4px 0 24px; }
.app-head .ico { width: 76px; height: 76px; border-radius: 18px; }
.app-head .ico svg, .app-head .ico.brand svg { width: 46px; height: 46px; }
.app-head .ico.brand-claude svg { width: 52px; height: 52px; }
.app-head h1 { margin: 12px 0 2px; font-size: 28px; }
.app-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Real marks: Claude, ChatGPT, Google, Microsoft. App icons keep their own colors in dark mode. */
.ico.brand { background-color: #fff; background-image: none; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.ico.brand svg { width: 19px; height: 19px; }
.ico.brand-claude { background-color: #F4F1EA; }
.ico.brand-claude svg { width: 21px; height: 21px; }
.ico.brand-chatgpt { background-color: #000; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); }
.ico.brand-microsoft svg { width: 16px; height: 16px; }
.ico.brand-grok { background-color: #000; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); }
.ico.brand-perplexity { background-color: #20808D; }
.ico.brand.off { filter: grayscale(1); opacity: .45; }
.ico.app { background: none; box-shadow: none; border-radius: 0; }
.ico.app img { width: 100%; height: 100%; display: block; }
.ico.app.rounded { border-radius: 22%; overflow: hidden; }
/* Browser: the icon of the browser the Mac's extension is in (html[data-browser]), Safari until a Mac reports. */
.ico.browser-icon img.for-chrome { display: none; }
html[data-browser="chrome"] .ico.browser-icon img.for-safari { display: none; }
html[data-browser="chrome"] .ico.browser-icon img.for-chrome { display: block; }
.ico.product img { width: 68%; height: 68%; display: block; }
.mark { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1); }
.mark svg { width: 16px; height: 16px; }
.mark-microsoft svg { width: 14px; height: 14px; }
.flow .node .ico { width: 40px; height: 40px; border-radius: 11px; margin: 0 auto 6px; }
.flow .node .ico svg { width: 24px; height: 24px; margin: 0; }
.mini .ico { width: 30px; height: 30px; }
.mini .ico svg { width: 19px; height: 19px; }

/* Choice cells: a radio or checkbox underneath, a blue checkmark when chosen. */
label.cell.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
label.cell.choice::after { content: ""; flex: none; width: 7px; height: 14px; border-right: 2.6px solid transparent; border-bottom: 2.6px solid transparent; transform: rotate(45deg); margin: -4px 6px 0 8px; }
label.cell.choice:has(input:checked)::after { border-color: var(--accent); }
label.cell.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
.badge { display: inline-block; vertical-align: 1px; margin-left: 6px; font-size: 12px; font-weight: 600; line-height: 20px; padding: 0 8px; border-radius: 99px; background: var(--accent-wash); color: var(--accent); white-space: nowrap; letter-spacing: 0; }
.badge.most { background: var(--sun-wash); color: var(--sun); }
.badge.off { background: var(--sunk); color: var(--ink-soft); }
.badge.danger { background: var(--bloom-wash); color: var(--bloom); }

/* Switches */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch-row .label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.switch-row .label .sub { font-size: 15px; color: var(--ink-soft); }
input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 63px; height: 28px; border-radius: 99px; background: var(--sunk-strong);
  position: relative; cursor: pointer; margin: 0; transition: background .25s; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 37px; height: 24px; border-radius: 99px; background: var(--knob);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .12); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), width .2s; }
input.switch:checked { background: var(--accent-fill); }
input.switch:checked::after { transform: translateX(22px); }
input.switch:active::after { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 4px 12px rgba(0, 0, 0, .18); }
input.switch:disabled { opacity: .45; }
.cell.subrow { padding-left: 34px; }

/* A small button at the end of a row (Remove). */
.cell .cell-button { flex: none; min-height: 32px; padding: 0 14px; font-size: 15px; font-weight: 600; background: var(--sunk); color: var(--accent); box-shadow: none; }
.cell .cell-button.destructive { background: var(--bloom-wash); color: var(--bloom); }
/* The search field at the top of a picker. */
form.search { margin: 0 0 22px; }
form.search input { width: 100%; font: inherit; font-size: 17px; padding: 11px 18px; border-radius: var(--radius-control); border: 0; background: var(--sunk); color: var(--ink); -webkit-appearance: none; appearance: none; }
form.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; }

/* A custom date under a window's menu, shown while Custom… is chosen; the field opens the phone's date picker. */
.date-row { display: none !important; }
/* Keyed to the form, not a page's wrapper, so Calendar's Time range page shows it too. */
form:has(select[name="calendar_past"] option[value="DATE"]:checked) .date-for-calendar_past,
form:has(select[name="calendar_future"] option[value="DATE"]:checked) .date-for-calendar_future,
form:has(select[name="email_window"] option[value="DATE"]:checked) .date-for-email_window { display: flex !important; }
.date-row input[type="date"] { flex: none; border: 0; border-radius: 8px; padding: 6px 10px; background: var(--sunk); color: var(--ink); font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; min-height: 34px; }
.date-row input[type="date"]:focus-visible { outline: 3px solid var(--accent); }

/* Preview rows: a quoted line of what the app reads. */
.cell .quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); opacity: .75; margin-top: 2px; }

/* Pop-up rows: the choice on the right with ⌃⌄, a native menu underneath (a wheel or menu on iPhone). */
.select-row { justify-content: space-between; cursor: pointer; }
.select-row .title { flex: 1; min-width: 0; }
.select-row .label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.select-row .label .sub { font-size: 15px; color: var(--ink-soft); }
.select { position: relative; flex: none; display: inline-flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink-soft);
  text-align: right; text-align-last: right; padding: 4px 22px 4px 8px; cursor: pointer; letter-spacing: inherit; }
.select svg { position: absolute; right: 2px; top: 50%; width: 9px; height: 14px; transform: translateY(-50%); pointer-events: none; color: var(--faint); }
.select select:focus-visible { outline: 3px solid var(--accent); border-radius: 8px; }

/* Buttons */
button, .button { font: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0; border-radius: var(--radius-control); padding: 0 24px; min-height: var(--button-height); cursor: pointer;
  border: 0; background: var(--sunk); color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), filter .2s; }
button.primary, .button.primary { background-color: var(--accent-fill); color: var(--on-accent);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), inset 0 -1px 1px rgba(0, 0, 0, .08), var(--shadow-button); }
:is(button, .button):is(.primary, .block):active { transform: scale(1.03); filter: brightness(1.06); }
button:disabled { cursor: default; transform: none; filter: none; }
button.primary:disabled { background-color: var(--sunk-strong); background-image: none; color: var(--faint); box-shadow: none; }
/* Continue with Apple and Continue with Google: a matched pair, neither above the other. Same size and fill, the mark at the same place. */
.button.signin-button { position: relative; background: var(--signin-button); color: var(--signin-button-label); box-shadow: inset 0 0 0 1px var(--signin-button-edge); padding: 0 56px; }
.signin-button .signin-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; }
.signin-button .signin-icon svg { width: 20px; height: 20px; }
.signin .sticky { gap: 10px; }
button.danger, .button.danger { background: var(--bloom-wash); color: var(--bloom); }
button.link, .button.link { background: none; min-height: 44px; padding: 0 4px; font-weight: 400; }
.button.block, button.block { display: flex; width: 100%; }
.quiet { color: var(--accent); font-weight: 400; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0 8px; font-size: 17px; }
button.quiet { width: 100%; }
.actions { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.actions > form { display: contents; }
.actions.row { flex-direction: row; flex-wrap: wrap; }
form.inline { display: inline; }
.sticky { position: sticky; bottom: 0; z-index: 5; margin: 18px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--paper) 26%); display: flex; flex-direction: column; gap: 4px; }
body.has-tabs .sticky { bottom: calc(66px + var(--tab-gap)); padding-bottom: 12px; z-index: 21; background: none; }
.sticky > * { width: 100%; }

/* Text inputs */
textarea, input[type="text"] { width: 100%; font: inherit; font-size: 17px; padding: 12px 16px; border-radius: var(--radius-control); border: 0; background: var(--sunk); color: var(--ink); resize: vertical; letter-spacing: inherit; }
textarea:focus, input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.cell textarea { background: transparent; padding: 0; border-radius: 0; min-height: 80px; }
.cell textarea:focus { outline: 0; }
.add-row { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 18px; }
.add-row input[type="text"] { flex: 1; min-width: 0; background: transparent; padding: 10px 0; border-radius: 0; }
.add-row input[type="text"]:focus { outline: 0; }
.add-row button { min-height: 38px; padding: 0 18px; font-size: 15px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45); }

/* Callouts: kept for warnings and setup's notes. */
.callout { border-radius: var(--radius-group); padding: 14px 16px; margin: 0 0 24px; background: var(--accent-wash); line-height: 1.45; }
.callout.warn { background: var(--sun-wash); }
.callout.danger { background: var(--bloom-wash); }
.callout.ok { background: var(--accent-wash); }
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: 2px; }
.card { background: var(--sheet); border-radius: var(--radius-group); padding: 16px; margin: 0 0 16px; box-shadow: var(--shadow-card); }
.card > :last-child { margin-bottom: 0; }

/* Expanders, for longer explanations on setup and the explainer. */
details.more { margin: 0 0 16px; border-radius: var(--radius-group); background: var(--sheet); box-shadow: var(--shadow-card); }
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; font-weight: 400; color: var(--accent); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2.2px solid var(--faint); border-bottom: 2.2px solid var(--faint); transform: rotate(45deg); margin: -4px 2px 0 0; transition: transform .15s; }
details.more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.more > .inside { padding: 0 18px 16px; line-height: 1.45; }
details.more > .inside > :first-child { margin-top: 0; }
details.choices { margin: 12px 0 0; overflow: hidden; }
details.choices > .inside { padding: 0; border-top: .5px solid var(--line); }
details.choices .options { border-radius: 0; }

/* Setup progress dots */
.progress ol { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; }
.progress li { width: 8px; height: 8px; border-radius: 99px; background: var(--faint); transition: width .2s; }
.progress li.done { background: var(--accent); opacity: .45; }
.progress li.current { width: 24px; background: var(--accent); }

/* Setup's own pieces, as the Mac draws them: "Step 2 of 4" over the title, the Welcome points, a Mac app's state, the wait. */
.step-label { margin: 16px 0 -12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.welcome-mark { margin: 0 auto; }
.screen .body:has(.welcome-mark) { text-align: center; }
.points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; text-align: left; }
.points li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.4; }
.points strong { display: block; }
.points li > span:last-child { color: var(--ink-soft); }
.points li > span:last-child strong { color: var(--ink); }
.cell .state { font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.cell .state.on { color: var(--accent); font-weight: 600; }
.cell .state.need { color: var(--sun); font-weight: 600; }
/* A Mac app that still needs macOS: a switch, drawn off, that opens its steps in Good Fence on the Mac. */
.switch-look { flex: none; width: 63px; height: 28px; border-radius: 99px; background: var(--sunk-strong); position: relative; }
.switch-look::after { content: ""; position: absolute; top: 2px; left: 2px; width: 37px; height: 24px; border-radius: 99px; background: var(--knob);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .12); }
.switch-look.on { background: var(--accent-fill); }
.switch-look.on::after { transform: translateX(22px); }
a.switch-row { color: inherit; text-decoration: none; }
.callout.waiting { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.spinner { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.done-mark { display: flex; justify-content: center; }
.done-mark .ico { width: 64px; height: 64px; border-radius: 50%; }
.done-mark .ico svg { width: 32px; height: 32px; }
.screen .body:has(.done-mark) > h1, .screen .body:has(.done-mark) > .line, .screen .body:has(.done-mark) > .step-label { text-align: center; }
.center { text-align: center; }

/* Preset cards on setup and consent: a grouped list of choices. */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.options { display: block; background: var(--sheet); border-radius: var(--radius-group); overflow: hidden; margin: 0; box-shadow: var(--shadow-card); }
.options > .option { display: flex; position: relative; align-items: center; gap: 12px; min-height: 52px; padding: 12px 18px; cursor: pointer; }
.options > .option + .option::before { content: ""; position: absolute; top: 0; right: 0; left: 18px; border-top: .5px solid var(--line); }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.option-title { font-size: 17px; line-height: 1.3; }
.option-text { color: var(--ink-soft); font-size: 15px; line-height: 1.35; }
.option::after { content: ""; flex: none; width: 7px; height: 14px; border-right: 2.6px solid transparent; border-bottom: 2.6px solid transparent; transform: rotate(45deg); margin: -4px 6px 0 8px; }
.option:has(input:checked)::after { border-color: var(--accent); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
.option:active { background: var(--sheet-pressed); }

/* Setup screens: a picture, a title, one line, one button. */
.screen { display: flex; flex-direction: column; min-height: calc(100svh - 56px - env(safe-area-inset-top)); }
.screen > .body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4px 0 12px; }
.screen h1 { font-size: var(--title); line-height: 1.12; margin: 20px 0 8px; text-wrap: balance; }
.screen .line { font-size: 17px; color: var(--ink-soft); margin: 0 0 18px; text-wrap: pretty; line-height: 1.4; }
.screen .sticky { margin-top: auto; }
/* A long stack of buttons (several services to connect) stays in the page instead of covering it. */
.screen .sticky:has(> form:nth-of-type(3)) { position: static; background: none; }
.stage { position: relative; background: var(--sheet); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--glass-rim), var(--shadow); width: 100%; max-width: 360px; margin: 0 auto; display: grid; gap: 10px; align-content: center; min-height: 210px; }
.stage.small { min-height: 0; }
.stage .who { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.bubble { max-width: 84%; padding: 9px 14px; border-radius: 19px; font-size: 16px; line-height: 1.3; }
.bubble.me { justify-self: end; background: var(--accent-fill); color: var(--on-accent); border-bottom-right-radius: 5px; }
.bubble.app { justify-self: start; background: var(--sunk); border-bottom-left-radius: 5px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--paper); font-weight: 600; font-size: 16px; }
.mini svg { width: 30px; height: 30px; flex: none; }
.mini .what { flex: 1; min-width: 0; }
.mini .what small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.mini.off { opacity: .55; }
.mini.off svg { filter: grayscale(1); }
.mini .time { font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.fake-switch { flex: none; width: 52px; height: 24px; border-radius: 99px; background: var(--sunk-strong); position: relative; }
.fake-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 30px; height: 20px; border-radius: 99px; background: var(--knob); box-shadow: 0 2px 5px rgba(0,0,0,.18); }
.fake-switch.on { background: var(--accent-fill); }
.fake-switch.on::after { left: 20px; }
.google { text-align: left; gap: 12px; }
.google .g { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.google .g .mark { width: 30px; height: 30px; box-shadow: none; }
.google .g .mark svg { width: 20px; height: 20px; }
.google .ask { font-size: 17px; font-weight: 600; line-height: 1.3; }
.google .bar { height: 10px; border-radius: 99px; background: var(--sunk); }
.google .bar.short { width: 62%; }
.google .buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.google .buttons span { padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.google .buttons .allow { background: #1a73e8; color: #fff; animation: tap 2.4s ease-out infinite; }
@keyframes tap { 0%, 40% { box-shadow: 0 0 0 0 rgba(26,115,232,.45); } 70% { box-shadow: 0 0 0 12px rgba(26,115,232,0); } 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0); } }
.connector { text-align: left; gap: 8px; min-height: 0; box-shadow: none; background: var(--sheet); }
.connector .head { font-weight: 600; font-size: 16px; }
.connector .field { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.connector .value { padding: 10px 14px; border-radius: 14px; background: var(--sunk); font-size: 15px; }
.connector code { display: block; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--accent); background: var(--accent-wash); font: 600 14px/1.35 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.connector button { min-height: 44px; }
/* The Mac tools' settings forms share the class for its show-and-hide rules, not the card: no sheet behind the groups. */
form.connector { background: none; }
.check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin: 0 auto; }
ol.steps { list-style: none; counter-reset: steps; padding: 0; margin: 14px 0 0; display: grid; gap: 16px; }
ol.steps > li { counter-increment: steps; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 17px; line-height: 1.45; }
ol.steps > li::before { content: counter(steps); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
ol.steps > li > div { min-width: 0; padding-top: 1px; }
ol.steps .stage { margin-top: 12px; }
.ui { font-weight: 600; }
.flow { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0 12px; }
.flow .node { flex: 1 1 0; min-width: 0; text-align: center; background: var(--sheet); border-radius: 22px; padding: 12px 4px; font-size: 14px; font-weight: 600; line-height: 1.25; box-shadow: var(--shadow); word-break: keep-all; }
.flow .node.gate { outline: 2px solid var(--accent); background: var(--accent-wash); }
.flow .node svg { display: block; margin: 0 auto 6px; }
.flow .arrow { flex: none; color: var(--ink-soft); font-size: 18px; }

/* Sign in: the icon large and everything centred; the bar's small mark would repeat it. */
.signin .body { align-items: center; text-align: center; }
.signin-mark { display: block; width: 92px; height: 92px; border-radius: 22.4%; overflow: hidden; box-shadow: var(--shadow-card); }
.signin-mark img, .signin-mark svg { display: block; width: 100%; height: 100%; }
/* The garden: a painted band across the top on a phone, the whole window behind the card on a desktop. */
.signin-scene { display: block; height: 30svh; min-height: 190px; max-height: 300px; margin: 0 calc(-1 * max(16px, env(safe-area-inset-right))) 8px calc(-1 * max(16px, env(safe-area-inset-left)));
  background: var(--scene) 64% 58% / cover no-repeat; border-radius: 0 0 var(--radius-card) var(--radius-card); align-self: stretch; }
.signin .body:has(.signin-scene) { justify-content: flex-start; padding-top: 0; }
/* Under the see-through bar, up to the top edge. */
.signin-scene { margin-top: calc(-68px - env(safe-area-inset-top)); }
.signin-scene + .signin-mark { width: 76px; height: 76px; margin-top: -46px; box-shadow: 0 0 0 4px var(--paper), var(--shadow-card); }
.signin h1 { margin: 26px 0 8px; }
.signin .line { max-width: 300px; }
body:has(.signin) .navbar .brand { visibility: hidden; }

/* Welcome cards */
.welcome { display: grid; gap: 12px; }
/* The cards run edge to edge, one screen wide with no gap (so one swipe or step is exactly one card), each with the page's side margin inside. */
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * max(16px, env(safe-area-inset-right))) 0 calc(-1 * max(16px, env(safe-area-inset-left))); }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 0 max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
.slide .eyebrow { margin: 6px 0 0; color: var(--accent); text-transform: none; font-size: 15px; letter-spacing: 0; }
.slide h2 { font-family: var(--font-title); font-weight: 400; font-size: 32px; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; min-height: 2.24em; }
.dots { display: flex; justify-content: center; gap: 2px; }
.dots button { min-height: 44px; min-width: 32px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--faint); transition: width .2s; }
.dots button[aria-current="true"]::before { width: 24px; background: var(--accent); }

/* An app's More control: details hide while a kind of data is off; sending and invitations show only when it may change things. */
.capability:has(input[name^="access:"][value="OFF"]:checked) .detail { display: none; }
.capability .write-only { display: none; }
.capability:has(input[name^="access:"][value="WRITE"]:checked) .write-only { display: flex; }

/* A Mac connector's screen while the Mac can't answer: what to do next, centered under the connector's icon. */
.stack-buttons { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 28px; }

/* A Mac connector's screen (Messages, Notes, Reminders, Photos, Browser): everything under the access choice hides while
   it's off, and what it may change shows only while it may change things. */
.connector:has(input[name="access"][value="OFF"]:checked) .when-on { display: none; }
.connector .when-write { display: none; }
.connector:has(input[name="access"][value="WRITE"]:checked) .when-write { display: block; }

/* A kind of data's screen: its limits and which calendars, addresses or drives show only while it's on; invitations and sending only while it may change things. */
.kind:has(input[name^="level:"][value="OFF"]:checked) .when-on { display: none; }
.kind .when-write, .kind .when-send { display: none; }
.kind:has(input[name="level:calendar"][value="WRITE"]:checked) .when-write { display: block; }
.kind:has(input[name="level:email"][value="SEND"]:checked) .when-send { display: block; }
h2.group-title { font-family: var(--font-body); font-variation-settings: normal; font-size: 15px; line-height: 1.3; font-weight: 700; letter-spacing: 0; color: var(--ink-soft); margin: 0 20px 8px; }
.kind:has(input[name="level:calendar"][value="BUSY"]:checked) .subrow { display: none; }

/* Privacy report: Home's card with a big number, the report's two stats and its bars. */
.cell.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; align-items: stretch; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 14px 18px; }
.stat + .stat { border-left: .5px solid var(--line); }
.stat-label { font-size: 15px; color: var(--ink-soft); line-height: 1.3; }
.stat-number { font-family: var(--font-title); font-size: 36px; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-sentence { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.bar-row .bar-line { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.bar-row .bar { height: 8px; border-radius: 99px; background: var(--accent); min-width: 8px; }
.bar-row .count { flex: none; font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Activity */
.activity .reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.activity .reasons .badge { margin-left: 0; white-space: normal; line-height: 1.35; padding: 2px 9px; }
.activity .title-row { display: flex; align-items: baseline; gap: 10px; }
.activity .title-row .title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity .when { flex: none; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.activity .sub.line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.activity .sub.refused { color: var(--bloom); }
.app-badge { position: relative; flex: none; width: 29px; height: 29px; }
.app-badge .kind-badge { position: absolute; right: -5px; bottom: -5px; }
.app-badge .kind-badge .ico { width: 17px; height: 17px; border-radius: 5px; box-shadow: 0 0 0 2px var(--sheet); }
.app-badge .kind-badge .ico svg { width: 11px; height: 11px; }
.activity .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.activity .tags .badge { margin-left: 0; white-space: normal; max-width: 100%; line-height: 1.35; padding: 2px 9px; }
.activity-head { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.activity-head .eyebrow { margin: 0; text-transform: none; font-size: 15px; letter-spacing: 0; }
h1.activity-title { font-size: 28px; margin: 8px 0 22px; text-wrap: balance; }
.cell.field { align-items: baseline; gap: 16px; }
.cell.field .field-label { flex: none; width: 76px; color: var(--ink-soft); font-size: 15px; }
.cell.field .field-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cell.written { white-space: pre-wrap; font-size: 17px; }
/* A change, word by word: what went out struck through in rose, what came in on a green wash. */
.diff del { color: var(--bloom); background: var(--bloom-wash); text-decoration: line-through; text-decoration-thickness: 1.5px; border-radius: 4px; padding: 0 2px; }
.diff ins { color: var(--ink); background: var(--accent-wash); text-decoration: none; border-radius: 4px; padding: 0 2px; }

.wide-only { display: none !important; }

@media (min-width: 720px) {
  .wide-only { display: inline !important; }
  .narrow-only { display: none !important; }
  main { padding-left: var(--gutter-wide); padding-right: var(--gutter-wide); }
  body.has-tabs main { padding-bottom: 64px; }
  .tabbar { position: sticky; top: 12px; bottom: auto; left: auto; transform: none; width: max-content; margin: 12px auto 0; }
  .tabbar a { flex-direction: row; gap: 8px; font-size: 15px; min-height: 40px; padding: 0 18px; }
  .tabbar a svg { width: 20px; height: 20px; }
  body.has-tabs .navbar { position: static; }
  /* No mark beside the tabs (Steven, November 28 2026): each page's title says where you are. */
  body.has-tabs .tabbar { margin: 12px auto -52px; }
  body.has-tabs::after, body.has-tabs .navbar .nav-title { display: none; }
  body.has-tabs .sticky { bottom: 0; }
  .sticky { position: static; background: none; margin: 20px 0 0; padding: 0; flex-direction: row; }
  .sticky > * { width: auto; min-width: 200px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions > * { flex: 0 0 auto; }
  .flow .node { font-size: 15px; padding: 16px 10px; }

  /*
   * Sign-in, setup and an app's Allow screen: on a phone they fill the screen with the button at the
   * bottom; in a window they are one card in the middle, its buttons stacked right under the words.
   */
  body:has(.screen) #content { min-height: calc(100svh - 56px - env(safe-area-inset-top)); display: flex; flex-direction: column; justify-content: center; padding: 8px 0 64px; }
  .screen { min-height: 0; }
  .screen > .body { flex: none; justify-content: flex-start; padding: 0; }
  .screen .sticky { position: static; margin: 28px 0 0; padding: 0; background: none; flex-direction: column; align-items: stretch; gap: 10px; }
  .screen .sticky > * { width: 100%; min-width: 0; }
  /* The bar (the mark and the step dots) lines up with the card. */
  body:has(.screen:not(.landing)) main { max-width: calc(var(--card-width) + 2 * var(--gutter-wide)); }
  .screen:not(.landing) { width: 100%; max-width: var(--card-width); margin: 0 auto; padding: 40px 44px 32px; border-radius: var(--radius-card); background: var(--sheet); box-shadow: var(--shadow-card);
    --sheet: var(--sheet-inset); --sheet-pressed: var(--sheet-inset-pressed); }
  .screen:not(.landing) > .body > :first-child { margin-top: 0; }
  .screen:not(.landing) h1 { font-size: var(--title-card); }
  .screen:not(.landing) .stage { box-shadow: none; }
  .screen.signin { max-width: var(--signin-width); padding: 48px 40px 40px; }
  .signin-scene { display: none; }
  .signin-scene + .signin-mark { width: 92px; height: 92px; margin-top: 0; box-shadow: var(--shadow-card); }
  /* A second choice (Don't allow, Add another AI app) is a button of the same height under the first. */
  .screen .sticky .quiet { min-height: var(--button-height); border-radius: var(--radius-control); background: var(--sunk); font-weight: 600; }

  /* The welcome cards still swipe on a tablet, edge to edge of the wider page margin; Get started sits under them. */
  .slides { margin: 0 -24px; }
  .slide { padding: 0 24px 12px; text-align: center; }
  .slide .stage { text-align: left; }
  .landing .sticky { align-items: center; margin-top: 28px; }
  .landing .sticky > * { width: 320px; }
}

/* Wide windows: Home, an app and the Privacy Report set their groups in two columns. */
.columns > * { min-width: 0; }
@media (min-width: 1024px) {
  /* The welcome: a headline, the three cards side by side, Get started under them. */
  main:has(.landing) { max-width: var(--column-wide); }
  .landing .hero { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    font-family: var(--font-title); font-weight: 400; font-size: var(--title-hero); line-height: 1.08; text-align: center; text-wrap: balance; margin: 0 auto 40px; max-width: 720px; }
  .slides { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 0; }
  .slide { text-align: left; padding: 24px; border-radius: var(--radius-card); background: var(--sheet); box-shadow: var(--shadow-card); --sheet: var(--sheet-inset); }
  .slide .stage { max-width: none; box-shadow: none; }
  .slide h2 { font-size: 26px; }
  .dots { display: none; }
  .landing .sticky { margin-top: 36px; }

  main:has(.columns) { max-width: var(--column-wide); }

  /* Sign in on a desktop: the painted garden fills the window, the card stands on the quiet lawn at the left. */
  body:has(.screen.signin) { background: var(--paper) var(--scene) 66% 60% / cover no-repeat fixed; }
  body:has(.screen.signin)::before { display: none; }
  body:has(.screen.signin) main { margin-left: max(6vw, 32px); }
  .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--column-gap); align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/*
 * Push and pop, as a navigation stack does on iOS. Every page load is a
 * cross-document view transition; the script in html.ts names its direction.
 * Push: the new screen slides in from the right edge with a soft shadow while
 * the old one drifts a third of the way left and dims. Pop runs it backwards,
 * the top screen sliding off to the right. Reduce Motion crossfades instead.
 */
@view-transition { navigation: auto; }
/* A screen that wasn't fetched ahead: the old one dims while the new one is on its way. */
html.sb-waiting main { opacity: .6; transition: opacity .15s; }
form.sending { opacity: .6; pointer-events: none; }
:root[data-navigation]::view-transition-group(root) { animation-duration: .5s; }
:root[data-navigation]::view-transition-old(root), :root[data-navigation]::view-transition-new(root) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); animation-fill-mode: both; mix-blend-mode: normal; }
:root[data-navigation="push"]::view-transition-old(root) { animation-name: sb-under-out; }
:root[data-navigation="push"]::view-transition-new(root) { animation-name: sb-top-in; box-shadow: -6px 0 28px rgba(0, 0, 0, .16); }
:root[data-navigation="pop"]::view-transition-old(root) { animation-name: sb-top-out; z-index: 1; box-shadow: -6px 0 28px rgba(0, 0, 0, .16); }
:root[data-navigation="pop"]::view-transition-new(root) { animation-name: sb-under-in; }
@keyframes sb-top-in { from { transform: translateX(100%); } }
@keyframes sb-top-out { to { transform: translateX(100%); } }
@keyframes sb-under-out { to { transform: translateX(-30%); filter: brightness(.9); } }
@keyframes sb-under-in { from { transform: translateX(-30%); filter: brightness(.9); } }
@keyframes sb-fade-out { to { opacity: 0; } }
@keyframes sb-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  :root[data-navigation]::view-transition-old(root) { animation: sb-fade-out .2s ease both; box-shadow: none; }
  :root[data-navigation]::view-transition-new(root) { animation: sb-fade-in .2s ease both; box-shadow: none; }
}
