/* Kiwi's one design system (docs/product/design-guideline.md, "The Kiwi design system").

   Round 6, third pass, October 22, 2026: the owner chose "C1": Apple for the frame, Notion for the page. The frame is the iPhone app's
   (ios/OpenKiwi/KiwiTheme.swift and the SwiftUI shell): system type on the iOS text styles, large titles that collapse into a navigation bar,
   a floating glass tab bar, inset grouped lists, an ink primary button, the iOS switch and segmented control, sheets, short springs. The page
   is the website's: a warm off-white ground, white note cards with a warm hairline, callouts, tags, property rows, a quiet list for the day,
   Kiwi's flat faces and small ink drawings. The structure the owner approved is unchanged: Home, Ask and Settings, a sentence, one tile for
   each card, the alert with its picture.

   Everything here is shared by the phone and the computer: the same components, one column with a tab bar on a phone and a sidebar on a
   computer, a list and a detail on a wide window.

   This file holds
     1. the tokens, light and dark (every colour in the app is one of these; tests/contrast.test.cjs reads them),
     2. the shell: the navigation bar, the tab bar, the sidebar, the page,
     3. the components,
     4. the layout of Home, and what moves,
     5. the older pages (Settings' panes, forms, dialogs) in the same skin.
   styles.css keeps the rules of the pages that have not changed shape (Settings panes, Activity, Moments, dialogs); they follow these tokens. */

/* ---------------------------------------------------------------------------------------------------------------- */
/* 1. Tokens                                                                                                         */
/* ---------------------------------------------------------------------------------------------------------------- */
:root {
  font-family: var(--font-ui); font-optical-sizing: auto;
  color: var(--ink); background: var(--surface); font-synthesis: none;
  color-scheme: light;
  /* Type: the system font on every Apple device (SF), Inter off them. The rounded keepsake face is for keepsakes only. */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Inter Fallback", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: var(--font-ui);
  --keepsake: "Kiwi Display", "Kiwi Text", sans-serif; --keepsake-text: "Kiwi Text", sans-serif;
  /* The iOS text styles, in rem so a larger system or browser text size scales all of it (Dynamic Type): Large Title 34, Title 1 28, Title 2 22,
     Title 3 20, Headline 17 (semibold), Body 17, Callout 16, Subheadline 15, Footnote 13, Caption 12, Caption 2 11. */
  --fs-largetitle: 2.125rem; --fs-title1: 1.75rem; --fs-title2: 1.375rem; --fs-title3: 1.25rem; --fs-headline: 1.0625rem; --fs-body: 1.0625rem;
  --fs-callout: 1rem; --fs-sub: .9375rem; --fs-foot: .8125rem; --fs-cap: .75rem; --fs-cap2: .6875rem;

  /* Surfaces, as the iPhone app has them: the canvas is white, a card is the warm-grey wash, and a thing inside a card is white again. */
  --surface: #f7f5f1; --card: #ffffff; --card-line: #e9e0d2; --inner: #f7f5f1; --side: #f2eee7; --paper: #eeeae3; --quiet-surface: #fbf9f5; --surface-hover: #f1ede6;
  /* Selected is one clear step past hover (about 8% ink), so a selected row still reads as selected under the mouse. */
  --selected: color-mix(in srgb, var(--ink) 8%, var(--surface));
  --side-hover: color-mix(in srgb, var(--ink) 5%, transparent); --side-selected: color-mix(in srgb, var(--ink) 9%, transparent);
  --fill: #eeeae3; --fill-strong: #e6e1d8;

  /* Ink. --muted is the iPhone app's secondary text, a touch darker for the web (6:1 on the page); --icon-quiet never is text. */
  --ink: #1c1a16; --ink-soft: #39352e; --muted: #5f5a50; --icon-quiet: #7a7468; --chev: #c9c2b4; --dim-ink: #6a6458;
  --line: #e9e0d2; --line-strong: #d8ccb9; --control-line: #857d6d; --hair: #ece5d9;

  /* Kiwi green marks what is well and what is on; the primary action is ink, as in the iPhone app (its tint is ink). */
  --primary: #0a8441; --primary-hover: #087238; --on-primary: #fff; --primary-ink: #086b35;
  --primary-pale: #e3f2e6; --primary-line: #c4e0cf;
  --button-primary: var(--ink); --button-primary-hover: color-mix(in srgb, var(--ink) 82%, var(--surface)); --on-button-primary: #fdf9f3;
  /* An iOS switch: a grey track, a white knob, and Kiwi green when it is on. */
  --switch-on: var(--primary); --switch-on-hover: var(--primary-hover);
  --switch-off: #ddd7ca; --switch-off-hover: #d3ccbd; --switch-knob-off: #fff;
  /* The iOS segmented control: a grey track and a white thumb. */
  --seg-track: #ece8e0; --seg-thumb: #ffffff;

  /* Tags name kinds; Kiwi's own soft hues, each with its ink. There is no red tag: red belongs to status. */
  --tag-gray: #ebe3d6; --tag-gray-ink: #352e25;
  --tag-green: #dbeddb; --tag-green-ink: #1c3829;
  --tag-blue: #dbe9f3; --tag-blue-ink: #1c4061;
  --tag-yellow: #fdecc8; --tag-yellow-ink: #4a3212;
  --tag-orange: #fbe4d2; --tag-orange-ink: #6a3a12;
  --tag-purple: #ece4f3; --tag-purple-ink: #4a2d63;
  --tag-pink: #f7e3ec; --tag-pink-ink: #66284a;
  --teal-pale: var(--tag-blue); --teal-ink: var(--tag-blue-ink);
  --lavender: var(--tag-purple); --lavender-ink: var(--tag-purple-ink);
  --yellow: var(--tag-yellow); --yellow-ink: var(--tag-yellow-ink);
  --peach: var(--tag-orange); --peach-ink: var(--tag-orange-ink);

  /* Status, separate from tags: the iPhone app's green and amber (KiwiTheme.green, KiwiTheme.amber) and system red for what needs you. Green
     says nothing needs you, always with a word; amber is "Kiwi stopped watching" or a thing to look at; red is only for what needs you now,
     a failed action or a destructive control. */
  --success: #08753a; --success-pale: var(--tag-green); --success-line: #cfe6d3;
  --on-video-live: #1d7a43;
  --amber: #7a4d0d; --amber-edge: #e6a32c; --amber-pale: #fbf0d6; --amber-line: #ecd9b0;
  --red: #b42318; --red-fill: #d2241a; --red-pale: #fdeceb; --red-line: #f1c9c3; --tag-red: #f9d9d4; --tag-red-ink: #6e1f17;
  /* The big sentence on a status card, and the smaller line under it: each its own ink on its own ground. */
  --status-ok: #1c1a16; --status-ok-sub: #39352e; --status-ok-bg: #e6f3e8; --status-ok-line: #cfe6d3;
  --status-stop: #1c1a16; --status-stop-sub: #39352e; --status-stop-bg: #fbf0d6;
  --status-alert: #b42318; --status-alert-sub: #7a2a20; --status-alert-bg: #fdeceb; --status-alert-line: #f1c9c3;
  /* The avatar grounds: rose for people, amber for pets, sky for the home. */
  --hue-rose: #f7e1dc; --hue-rose-ink: #6b2a20; --hue-amber: #f6e7c4; --hue-amber-ink: #5f4310; --hue-sky: #e2ecf6; --hue-sky-ink: #1f4264;
  /* Over video: the Live pill and its dot, the same in both modes. */
  --live-pill: #000000a6; --live-dot: #4be88f; --watch-on-dot: #1d7a43;
  /* Keepsakes only: cream paper and its ink. */
  --keepsake-paper: #fffdf8; --keepsake-line: #e7e1d4; --keepsake-ink: #1f1f1d; --keepsake-muted: #676762;

  /* Shape, as in the app: cards 18, notes and buttons 14, inner rows and fields 12; chips, avatars and switches are round. */
  --focus-ring: color-mix(in srgb, var(--ink) 16%, transparent);
  --radius: 14px; --radius-md: 12px; --radius-sm: 10px; --tag-radius: 6px;
  --r-card: 18px; --r-tile: 18px; --r-inner: 12px; --r-button: 14px;
  /* Space, on a 4px grid. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  /* Nothing floats on a shadow but sheets and menus: cards are flat fills, as on iOS. */
  --shadow-card: 0 0 0 0 #0000;
  --shadow-float: 0 8px 32px #00000026, 0 1px 3px #0000001a;
  --shadow-ask-fab: 0 4px 12px #0000001a, 0 1px 2px #0000000f;
  /* Motion: the iOS ease-out (UIKit's sheet curve), and a spring with a little overshoot for things that arrive. Short, and off under Reduce Motion. */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: linear(0, .24 6%, .58 14%, .86 23%, 1.03 34%, 1.05 42%, 1.02 55%, .995 72%, 1);
  /* Ask Kiwi's aurora (the Ask field's focus, the thinking state): a fresh kiwi-to-sky light, not a new accent. */
  --ai-1: #8fd97c; --ai-2: #e0ec8e; --ai-3: #ffd991; --ai-4: #8fe1cf; --ai-5: #a9cbff; --ai-glow: 1;
  --ai-ring: conic-gradient(from var(--ai-angle), var(--ai-1), var(--ai-2), var(--ai-3), var(--ai-4), var(--ai-5), var(--ai-1));
  --ai-linear: linear-gradient(135deg, var(--ai-1), var(--ai-3) 48%, var(--ai-5));
  --ai-spark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c1 6 3 8 9 9-6 1-8 3-9 9-1-6-3-8-9-9 6-1 8-3 9-9Z'/%3E%3C/svg%3E");
  --shadow-ask: 0 12px 32px #0000001f, 0 4px 12px #0000001a, 0 1px 2px #0000000f;
  /* Badge rounds (the b-* and i-* symbols): pastel tag hues behind the #191918 pen; one shared disc. */
  --badge-green: #dcefe0; --badge-red: #fde3dd; --badge-gray: #e3e0d8; --badge-yellow: #fbf0cf; --badge-blue: #dbe9f3;
  --badge-purple: #ece4f3; --badge-orange: #fbe4d2; --badge-pink: #f7e3ec;
  --badge-paper: var(--paper); --badge-disc: var(--badge-paper);
  /* Page measures: Settings and Moments keep their own columns; Home is a sidebar, a list and a detail. */
  --page-max: 1080px; --settings-max: 884px;
  --rail-w: 208px; --list-w: 380px; --gutter: 20px; --tabbar-h: 82px; --navbar-h: 44px;
  --tab-fade: linear-gradient(to right, #000 calc(100% - 56px), transparent calc(100% - 8px));
}

/* Dark: theme.js sets data-theme on the root (Settings › Preferences, the system by default). The canvas is true black, as on iOS, and the
   wash a warm near-black; status keeps its meaning. */
:root[data-theme=dark] {
  color-scheme: dark;
  --dim-ink: #9a9487; --surface: #181612; --card: #221f1a; --card-line: #34302a; --inner: #1b1915; --side: #141310; --paper: #2a2620; --quiet-surface: #1d1b16; --surface-hover: #2a2721;
  --selected: color-mix(in srgb, var(--ink) 10%, var(--surface));
  --side-hover: color-mix(in srgb, var(--ink) 6%, transparent); --side-selected: color-mix(in srgb, var(--ink) 12%, transparent);
  --fill: #332f28; --fill-strong: #3d3830;
  --ink: #f4efe6; --ink-soft: #e3ddd0; --muted: #b2ab9d; --icon-quiet: #8a8477; --chev: #5a554b;
  --line: #2f2b24; --line-strong: #454036; --control-line: #8e8a80; --hair: #2f2b24;
  --primary: #32b36a; --primary-hover: #2a9a5b; --on-primary: #000; --primary-ink: #70d487;
  --primary-pale: #12301f; --primary-line: #24502f;
  --button-primary: #f4efe6; --button-primary-hover: #e3ddd0; --on-button-primary: #181612;
  --switch-on: #32b36a; --switch-on-hover: #2a9a5b;
  --switch-off: #3d382f; --switch-off-hover: #48433a; --switch-knob-off: #fff;
  --seg-track: #2b2721; --seg-thumb: #4a453c;
  --tag-gray: #2f2b25; --tag-gray-ink: #d9d2c4;
  --tag-green: #1f3a29; --tag-green-ink: #a9dcb8;
  --tag-blue: #1d3346; --tag-blue-ink: #a9cbe8;
  --tag-yellow: #3a2e14; --tag-yellow-ink: #f2d9a0;
  --tag-orange: #42291a; --tag-orange-ink: #f2bf95;
  --tag-purple: #33263f; --tag-purple-ink: #d3b9ec;
  --tag-pink: #40222f; --tag-pink-ink: #efb3cf;
  --success: #70d487; --success-line: #24502f; --on-video-live: #1d7a43; --watch-on-dot: #70d487;
  --amber: #f0b863; --amber-edge: #e6a32c; --amber-pale: #2c2413; --amber-line: #4d3b1a;
  --red: #ff9488; --red-fill: #d92a20; --red-pale: #2e1815; --red-line: #4f2723; --tag-red: #4a2220; --tag-red-ink: #f5b7b0;
  --status-ok: #f4efe6; --status-ok-sub: #e3ddd0; --status-ok-bg: #1b2e21; --status-ok-line: #26422f;
  --status-stop: #f4efe6; --status-stop-sub: #e3ddd0; --status-stop-bg: #2c2413;
  --status-alert: #ff9488; --status-alert-sub: #e5aaa3; --status-alert-bg: #2e1815; --status-alert-line: #4f2723;
  --hue-rose: #4a2b27; --hue-rose-ink: #f2c4bb; --hue-amber: #4a3b18; --hue-amber-ink: #f0d79a; --hue-sky: #243649; --hue-sky-ink: #bdd5ee;
  --keepsake-paper: #24221e; --keepsake-line: #3a372f; --keepsake-ink: #f4efe5; --keepsake-muted: #b3ada0;
  --shadow-float: 0 8px 32px #000000b0, inset 0 0 0 1px var(--line);
  --shadow-ask-fab: 0 4px 12px #00000080, 0 1px 2px #0006, inset 0 0 0 1px var(--line-strong); --ai-glow: .75;
  --shadow-ask: 0 12px 32px #000000a0, 0 4px 12px #0007, inset 0 0 0 1px var(--line-strong);
  /* Badge rounds dim to mid-tones: the #191918 pen keeps at least 3:1 on each, and none glows on a dark page. */
  --badge-green: #9fc7aa; --badge-red: #d8aaa2; --badge-gray: #b4b3ae; --badge-yellow: #d6c189; --badge-blue: #a3bccf;
  --badge-purple: #bba9cd; --badge-orange: #d8b192; --badge-pink: #d3a9bc;
  --badge-paper: #b4b3ae;
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* 2. Shell: the navigation bar and tab bar on a phone, the sidebar on a computer                                    */
/* ---------------------------------------------------------------------------------------------------------------- */
body { background: var(--surface); color: var(--ink-soft); font-size: 1rem; -webkit-font-smoothing: antialiased; }
/* The new screens read at the iOS Body size and line height; the pages that kept their shape (Settings panes, Activity, dialogs) keep theirs. */
.ku-home, .ku-ask, .ku-nav, .ku-navbar, .global-alert, #pictureDialog, .ku-sheet { font-size: var(--fs-body); line-height: 1.4; }
/* A control reached with Tab scrolls in above the tab bar, never under it (WCAG 2.4.11), and below the navigation bar. */
html { scroll-padding-bottom: calc(var(--tabbar-h) + var(--s6) + env(safe-area-inset-bottom, 0px)); scroll-padding-top: calc(var(--navbar-h) + env(safe-area-inset-top, 0px) + var(--s4)); }
@media (min-width: 1024px) { html { scroll-padding-bottom: 0; scroll-padding-top: 0; } }
h1, h2, h3, h4 { color: var(--ink); }
time { font-variant-numeric: tabular-nums; }

/* The glass of the bars (the tab bar, the navigation bar, a back button): a warm translucent fill with a hairline ring. */
:root { --glass: rgba(253, 249, 243, .74); --glass-line: rgba(60, 45, 20, .12); --sel-pill: rgba(60, 45, 20, .09); --shadow-bar: 0 8px 28px rgba(60, 40, 10, .12), 0 1px 3px rgba(60, 40, 10, .06); }
:root[data-theme=dark] { --glass: rgba(34, 31, 26, .72); --glass-line: rgba(255, 244, 220, .12); --sel-pill: rgba(255, 244, 220, .14); --shadow-bar: 0 8px 28px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .4); }

/* The navigation bar (a phone): empty while the page's large title shows, but for the small "Kiwi" label at its trailing edge; once the large
   title has scrolled away it turns translucent, with a hairline and the page's small title in the middle, as iOS does. A page that was opened
   from another has its back button here (the page's own .ku-back) and no label. Hidden on a computer. */
.ku-navbar { position: fixed; z-index: 40; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: calc(var(--navbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--s5) 0; background: transparent; box-shadow: 0 .5px 0 transparent; pointer-events: none;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.ku-navbar[data-scrolled] { background: var(--surface); box-shadow: 0 .5px 0 var(--hair); }  /* opaque: nothing of the page shows through it (Home v3) */
.ku-navbar-title { grid-column: 2; max-width: 56vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 var(--fs-headline)/1.2 var(--font-ui); color: var(--ink); opacity: 0; transition: opacity .2s var(--ease); }
.ku-navbar[data-scrolled] .ku-navbar-title { opacity: 1; }
.ku-navbar-brand { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 7px; font: 500 var(--fs-sub)/1 var(--font-ui); letter-spacing: -.01em; color: var(--ink); }
.ku-navbar-brand img { width: 26px; height: 26px; }
.ku-navbar[data-back] .ku-navbar-brand { display: none; }
/* A page's own title, large: it is the page's heading, and the navigation bar repeats it small once it has scrolled out. */
.ku-large-title { margin: 0 0 var(--s3); font: 700 var(--fs-largetitle)/1.2 var(--font-ui); letter-spacing: -.026em; color: var(--ink); text-wrap: balance; }

/* The tab bar: a floating pill of glass, a hairline round it, filled SF-Symbols-style icons and small labels; the current place sits on a
   grey pill. It floats above the page with the page's own space round it. */
.ku-nav { position: fixed; z-index: 30; left: var(--s5); right: var(--s5); bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: stretch; justify-content: space-around; gap: 0;
  min-height: 62px; padding: 4px; border-radius: 31px; background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: 0 0 0 .5px var(--glass-line), var(--shadow-bar); }
.ku-nav-brand, .ku-nav-foot, .ku-nav-slot { display: none; }
.ku-nav-item { position: relative; flex: 1; max-width: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 54px; padding: 4px 8px; border-radius: 27px; color: var(--ink); font-size: var(--fs-cap2); font-weight: 600; letter-spacing: -.003em; text-decoration: none; transition: background-color .2s var(--ease); }
.ku-nav-ico { position: relative; display: grid; place-items: center; width: 28px; height: 28px; }
.ku-nav-ico .icon { width: 26px; height: 26px; grid-area: 1 / 1; fill: currentColor; stroke: none; }
.ku-nav-ico .ico-off { display: none; }
.ku-nav-ico .ico-on { display: block; }
.ku-nav-item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.ku-nav-item[aria-current=page] { background: var(--sel-pill); color: var(--ink); }
.ku-nav-dot { position: absolute; top: 5px; left: calc(50% + 7px); width: 11px; height: 11px; border-radius: 50%; background: var(--red-fill); box-shadow: 0 0 0 2px var(--surface); }
.ku-nav-dot[hidden] { display: none; }
/* The one count: how many things need you. A number in ink, never red (red is for an emergency), the same wherever it shows. */
.ku-nav-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.ku-nav-count[hidden] { display: none; }
.ku-nav-count--dot { min-width: 12px; width: 12px; height: 12px; padding: 0; border-radius: 50%; background: var(--red-fill); }

/* Nothing of the page shows behind or under the tab bar: a page-coloured backing from a little above the bar to the bottom edge, with a short fade at its top. */
@media (max-width: 1023px) {
  body::after { content: ""; position: fixed; z-index: 29; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); pointer-events: none;
    background: linear-gradient(to bottom, transparent 0, var(--surface) 14px, var(--surface) 100%); }
}
/* The page. On a phone it is one column between the bars; Activity, Moments and Settings keep their own measure. */
.workspace { margin: 0; min-height: 100svh; background: var(--surface); }
.page-content { width: 100%; padding: calc(var(--navbar-h) + env(safe-area-inset-top, 0px) + var(--s3)) var(--gutter) calc(var(--tabbar-h) + var(--s7) + env(safe-area-inset-bottom, 0px)); margin-inline: auto; }
.page-content > :not(.sr-only) { max-width: min(var(--view-max, 640px), 100%); margin-inline: auto; }
body[data-view=settings] { --view-max: var(--settings-max); }
body[data-view=moments] { --view-max: 760px; }
body[data-view=ask] { --view-max: 720px; }

@media (min-width: 1024px) {
  .ku-navbar { display: none; }
  /* The sidebar, as the source list of a Mac or iPad app: a quiet warm column, rounded rows, the current one in a grey fill. */
  .ku-nav { inset: 0 auto 0 0; width: var(--rail-w); min-height: 0; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 2px; padding: var(--s5) var(--s3) var(--s4); border-radius: 0;
    background: var(--side); box-shadow: inset -.5px 0 0 var(--hair); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ku-nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px var(--s5); min-height: 44px; font: 600 var(--fs-headline)/1.2 var(--font-ui); color: var(--ink); text-decoration: none; }
  .ku-nav-brand img { width: 28px; height: 28px; flex: none; }
  .ku-nav-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ku-nav-item { flex: none; max-width: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: var(--fs-callout); font-weight: 500; letter-spacing: -.012em; }
  .ku-nav-ico { width: 24px; height: 24px; }
  .ku-nav-ico .icon { width: 22px; height: 22px; }
  .ku-nav-item[aria-current=page] { background: var(--sel-pill); color: var(--ink); }
  .ku-nav-item:not([aria-current=page]) { color: var(--ink-soft); }
  .ku-nav-item:not([aria-current=page]):hover { background: var(--side-hover); }
  .ku-nav-count { position: static; margin-left: auto; box-shadow: none; }
  .ku-nav-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: var(--s3) 10px 0; font-size: var(--fs-foot); color: var(--muted); }
  /* The desktop app's updates row (desktop-updates.js) sits above the access line; the line then follows it. */
  .ku-nav-slot { display: block; margin-top: auto; }
  .ku-nav-slot:not(:empty) + .ku-nav-foot { margin-top: 0; }
  .ku-nav-foot .icon { width: 16px; height: 16px; color: var(--icon-quiet); }
  .workspace { margin-left: var(--rail-w); }
  .page-content { padding: var(--s8) clamp(24px, 4vw, 64px) var(--s8); }
  .page-content > :not(.sr-only) { --page-edge: max(0px, calc((100% - var(--page-max)) / 2)); max-width: min(var(--view-max, var(--page-max)), calc(100% - var(--page-edge))); margin-inline: var(--page-edge) auto; }
  body[data-view=ask] { --view-max: 760px; }
  /* A page's title is Title 1 on a computer (the sidebar says where you are; there is no navigation bar to collapse into). */
  .ku-large-title { font-size: var(--fs-title1); line-height: 1.2; }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* 3. Components                                                                                                     */
/* ---------------------------------------------------------------------------------------------------------------- */

/* Buttons, as in the iPhone app (KiwiButtonStyle): one filled primary, in ink, on a screen; the rest are grey-filled or plain words. 48 and up. */
.ku-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 3rem; padding: 0 var(--s5); border: 0; border-radius: var(--r-button);
  font: 600 var(--fs-body)/1.2 var(--font-ui); text-decoration: none; cursor: pointer; transition: opacity .15s, background-color .15s, transform .35s var(--spring); }
.ku-btn .icon { width: 18px; height: 18px; }
.ku-btn:active:not(:disabled) { opacity: .7; transform: scale(.985); }
.ku-btn--primary { background: var(--button-primary); color: var(--on-button-primary); }
.ku-btn--primary:hover:not(:disabled) { background: var(--button-primary-hover); }
.ku-btn--secondary { background: var(--fill); color: var(--ink); }
.ku-btn--secondary:hover:not(:disabled) { background: var(--fill-strong); }
.ku-btn--quiet { background: transparent; color: var(--ink); min-height: 44px; padding: 0 var(--s3); font-size: var(--fs-sub); }
.ku-btn--quiet:hover:not(:disabled) { background: var(--side-hover); }
.ku-btn--small { min-height: 44px; padding: 0 var(--s4); font-size: var(--fs-sub); }
.ku-btn--block { width: 100%; }
.ku-btn:disabled, .ku-btn[aria-busy=true] { opacity: .4; cursor: default; }
.ku-btn[aria-busy=true] { cursor: progress; }

/* Plain words, set apart by their underlines and the space between: "Call Mom   It was fine   Who's been told". They wrap as whole words, so no
   separator is ever left at the end of a line. */
.ku-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: var(--s3); }
.ku-alert { container-type: inline-size; }
.ku-deeper { flex-wrap: nowrap; column-gap: var(--s1); }
.ku-deeper .ku-link { padding: 0 var(--s2); font-size: var(--fs-sub); white-space: nowrap; }
/* In em, so a larger text size gives the links their own lines sooner. */
@container (max-width: 17em) { .ku-deeper { flex-direction: column; row-gap: 0; } }
.ku-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border: 0; background: none; color: inherit; font: 500 var(--fs-sub)/1.2 var(--font-ui);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; cursor: pointer; border-radius: 8px; transition: opacity .15s; }
.ku-link:hover { text-decoration-color: currentColor; }
.ku-link:active { opacity: .6; }

/* Chips: a white capsule with a warm hairline, a quick question or a short choice. */
.ku-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ku-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 var(--s4); border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line);
  color: var(--ink); font: 500 var(--fs-sub)/1.2 var(--font-ui); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: opacity .15s, background-color .15s; }
.ku-chip:hover { background: var(--surface-hover); }
.ku-chip:active { opacity: .7; }
.ku-chip[aria-pressed=true], .ku-chip[aria-checked=true] { background: var(--ink); color: var(--surface); box-shadow: none; }
.ku-chip .icon { width: 20px; height: 20px; }

/* Section heading, as the iPhone app's SectionHeading: Title 3 semibold, with an optional quiet link at the end. */
.ku-section { margin-top: var(--s7); }
.ku-section:first-child { margin-top: 0; }
.ku-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0 0 var(--s3); }
.ku-label { font: 600 var(--fs-title3)/1.25 var(--font-ui); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
/* The home's one setting is a sentence, not a tag: it reads as the same kind of title. */
#strangerTitle { font: 600 var(--fs-title3)/1.25 var(--font-ui); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.ku-section-head .ku-link { min-height: 44px; margin-block: -14px; padding: 0 var(--s2); margin-right: calc(var(--s2) * -1); font-size: var(--fs-sub); font-weight: 400; text-decoration: none; color: var(--muted); }
.ku-section-head .ku-link:hover { color: var(--ink); text-decoration: underline; }
.ku-section-head .ku-link::after { content: ""; width: 11px; height: 11px; margin-left: 5px; background: var(--chev); -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat; }

/* The avatar: a round ground in the card's hue holding its flat face (or the owner's photo). Rose for people, amber for pets, sky for home. */
.ku-avatar { --size: 46px; position: relative; display: grid; place-items: center; flex: none; width: var(--size); height: var(--size); border-radius: 50%; overflow: hidden;
  background: var(--hue-rose); color: var(--hue-rose-ink); font-size: calc(var(--size) * .5); line-height: 1; user-select: none; }
.ku-avatar[data-hue=amber] { background: var(--hue-amber); color: var(--hue-amber-ink); }
.ku-avatar[data-hue=sky] { background: var(--hue-sky); color: var(--hue-sky-ink); }
.ku-avatar[data-size="lg"] { --size: 64px; }
.ku-avatar[data-size="xl"] { --size: 72px; }
.ku-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ku-avatar > svg { width: 78%; height: 78%; }
.ku-avatar > .ku-face { width: 100%; height: 100%; }

/* The greeting under the large title: quiet, one line. */
.ku-hello { margin: 0 0 var(--s4); color: var(--muted); font-size: var(--fs-callout); }

/* The status sentence: one big answer to "Is everyone OK?", as a callout: a small icon, then the sentence, on a soft tint. Green-tinted when nothing
   needs you, amber with a left edge when Kiwi stopped watching, red only for an alert. */
.ku-status { position: relative; padding: 18px 18px 18px 16px; border-radius: 14px; background: var(--status-ok-bg); color: var(--status-ok-sub); box-shadow: inset 0 0 0 1px var(--status-ok-line); }
.ku-status-head { display: flex; align-items: flex-start; gap: 14px; }
.ku-status-text { min-width: 0; flex: 1; }
.ku-status-big { margin: 0; font: 600 1.625rem/1.19 var(--font-ui); letter-spacing: -.024em; color: var(--status-ok); text-wrap: balance; overflow-wrap: anywhere; }
.ku-status-small { margin: 6px 0 0; font-size: var(--fs-sub); line-height: 1.35; color: var(--status-ok-sub); text-wrap: balance; }
.ku-status-mark { flex: none; width: 28px; height: 28px; margin-top: 2px; color: var(--success); }
.ku-status-mascot { display: block; width: 64px; height: 64px; margin: 0 0 var(--s3); }
.ku-status[data-state=stopped] { background: var(--status-stop-bg); color: var(--status-stop-sub); box-shadow: inset 3px 0 0 var(--amber-edge); border-radius: 6px 14px 14px 6px; }
.ku-status[data-state=stopped] .ku-status-big { color: var(--status-stop); }
.ku-status[data-state=stopped] .ku-status-small { color: var(--status-stop-sub); }
.ku-status[data-state=stopped] .ku-status-mark { color: var(--amber); }
.ku-status[data-state=needs_you] { background: var(--status-alert-bg); color: var(--status-alert-sub); box-shadow: inset 0 0 0 1px var(--status-alert-line); }
.ku-status[data-state=needs_you] .ku-status-big { color: var(--status-alert); }
.ku-status[data-state=needs_you] .ku-status-small { color: var(--status-alert-sub); }
.ku-status[data-state=needs_you] .ku-status-mark { color: var(--red-fill); }
.ku-status[data-state=empty] { background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--card-line); }
.ku-status[data-state=empty] .ku-status-big { color: var(--ink); }
.ku-status[data-state=empty] .ku-status-small { color: var(--muted); }
.ku-status-step { margin-top: var(--s4); }
/* System red for what needs you: the alert's filled button is red, as an urgent action is on iOS; its secondary button is white. */
.ku-status[data-state=needs_you] .ku-btn--primary { --button-primary: var(--red-fill); --button-primary-hover: color-mix(in srgb, var(--red-fill) 86%, #000); --on-button-primary: #fff; }
.ku-status[data-state=needs_you] .ku-btn--secondary { background: var(--card); box-shadow: inset 0 0 0 1px var(--status-alert-line); }
:root[data-theme=dark] .ku-status[data-state=needs_you] .ku-btn--secondary { background: #3a2a27; box-shadow: none; }
:root[data-theme=dark] .ku-status[data-state=needs_you] .ku-btn--primary { --button-primary-hover: color-mix(in srgb, var(--red-fill) 86%, #fff); }

/* "2 more need you": a quiet red row under the alert, a way to the list of open alerts. */
.ku-more { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; margin-top: var(--s2); padding: 0 var(--s4); border-radius: 14px; background: var(--status-alert-bg); box-shadow: inset 0 0 0 1px var(--status-alert-line);
  color: var(--status-alert); font: 600 var(--fs-sub)/1.3 var(--font-ui); letter-spacing: -.01em; text-decoration: none; transition: opacity .15s; }
.ku-more .icon { flex: none; width: 14px; height: 14px; color: var(--status-alert-sub); }
.ku-more:active { opacity: .6; }
/* While Home cannot be read an open alert stays; under it, what went wrong and that it is the last known (an amber callout). */
.ku-camera-note { margin: var(--s3) 0 var(--s4); padding: var(--s4); border-radius: 6px 14px 14px 6px; background: var(--amber-pale); box-shadow: inset 3px 0 0 var(--amber-edge); color: var(--ink); }
.ku-camera-note[hidden] { display: none; }
.ku-camera-note p { margin: 0; }
.ku-camera-note-title { font-weight: 700; color: var(--amber); }
.ku-camera-note-sub { margin-top: 2px !important; font-size: var(--fs-sub); color: var(--ink-soft); }
.ku-camera-note .ku-btn { margin-top: var(--s3); }
/* Earlier alerts: one calm block, neutral, in Kiwi's voice (never red). */
.ku-earlier { padding: var(--s4); border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.12)); color: var(--ink); }
.ku-earlier[hidden] { display: none; }
.ku-earlier p { margin: 0; }
.ku-earlier-title { font-size: var(--fs-body, 1rem); font-weight: 700; }
.ku-earlier-sub { margin-top: 2px !important; font-size: var(--fs-sub); color: var(--ink-soft); }
.ku-earlier .ku-btn { margin-top: var(--s3); }
.ku-stale { margin: var(--s2) 0 0; padding: var(--s3) var(--s4); border-radius: 6px 14px 14px 6px; background: var(--amber-pale); box-shadow: inset 3px 0 0 var(--amber-edge); color: var(--ink-soft); font-size: var(--fs-sub); line-height: 1.4; }

/* The alert card lives inside the red status card: the plain sentence, the picture with its play button, two buttons. */
.ku-alert-next { margin: var(--s3) 0 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.35; color: var(--ink); }
.ku-media { position: relative; display: block; width: 100%; margin-top: var(--s4); padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--paper);
  aspect-ratio: 16 / 9; cursor: pointer; color: #fff; }
.ku-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ku-media-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: rgba(24, 22, 18, .6); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); transition: transform .35s var(--spring), background-color .15s; }
.ku-media-play .icon { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; stroke: none; }
.ku-media:hover .ku-media-play { background: rgba(24, 22, 18, .78); transform: scale(1.06); }
.ku-media-dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(24, 22, 18, .66); font: 600 var(--fs-cap)/1.3 var(--font-ui); font-variant-numeric: tabular-nums; }
.ku-media-cap { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(24, 22, 18, .66); font: 600 var(--fs-cap)/1.3 var(--font-ui); max-width: calc(100% - 90px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ku-clip { margin-top: var(--s4); }
.ku-alert-media { margin-bottom: var(--s6); }
.ku-alert-media .ku-media { margin-top: 0; }
.ku-alert-media .ku-clip { margin-top: 0; }
.ku-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.ku-actions > .ku-btn { min-width: 0; }
.ku-actions--one { grid-template-columns: 1fr; }
.ku-deeper { margin-top: var(--s2); color: var(--status-alert-sub); }
.ku-fine { margin: var(--s3) 0 0; font-size: .875rem; line-height: 1.4; color: var(--status-alert-sub); }
/* "Who's been told", the call, and "It was fine" are a sheet: they slide up over the page (a centred panel on a computer). */
.ku-told { color: var(--ink-soft); }
.ku-told-row { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; font-size: var(--fs-body); }
.ku-told-row + .ku-told-row { box-shadow: 0 -.5px 0 var(--hair); }
.ku-told-row span:last-child { color: var(--muted); text-align: right; }
.ku-told p { margin: var(--s3) 0; font-size: var(--fs-sub); color: var(--muted); }
.ku-told .ku-btn { margin-top: var(--s2); }
.ku-onit { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-button);
  background: var(--card); color: var(--ink); font-weight: 600; font-size: var(--fs-body); }
.ku-onit .ku-link { color: var(--muted); font-weight: 500; }

/* A card tile, a row of a list: a white note card with a warm hairline, a face, a name, the state as a tag and a chevron. The whole tile is the link. */
.ku-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.ku-tile { display: flex; align-items: center; gap: var(--s3); width: 100%; min-width: 0; min-height: 72px; padding: 13px var(--s4); border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line);
  color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), transform .35s var(--spring), box-shadow .2s var(--ease); }
.ku-tile:hover { background: var(--surface-hover); }
.ku-tile:active { transform: scale(.985); }
.ku-tile[aria-current=true] { background: var(--selected); }
.ku-tile-text { min-width: 0; flex: 1; }
.ku-tile-name { display: block; font: 600 var(--fs-headline)/1.25 var(--font-ui); letter-spacing: -.014em; color: var(--ink); }
.ku-tile-chev { flex: none; width: 14px; height: 14px; color: var(--chev); }
/* A tag names a state in a word, as on the website: a soft ground, a dark ink, a small glyph (the words say it; the glyph never carries it alone). */
.ku-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 3px; padding: 1px 9px 1px 7px; border-radius: 7px; background: var(--tag-gray); color: var(--tag-gray-ink);
  font: 550 .875rem/1.5 var(--font-ui); letter-spacing: -.006em; }
.ku-tag .icon { flex: none; width: 13px; height: 13px; }
/* One line, cut with an ellipsis at the card's width: a tag is a word or a few, never a block. (The line is whole in the text, for a screen reader.) */
.ku-tag-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* On a card's own page there is room: the line is said in full and may wrap, its glyph by the first line. */
.ku-tag--full { align-items: flex-start; }
.ku-tag--full .icon { margin-top: .4em; }
.ku-tag--full .ku-tag-text { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.ku-tag[data-tone=green] { background: var(--tag-green); color: var(--tag-green-ink); }
.ku-tag[data-tone=amber] { background: var(--tag-yellow); color: var(--tag-yellow-ink); }
.ku-tag[data-tone=red], .ku-tile[data-alert] .ku-tag { background: var(--tag-red); color: var(--tag-red-ink); }
.nw { white-space: nowrap; }
.ku-mark { flex: none; width: 26px; height: 26px; color: var(--success); }
.ku-mark[data-state=attention] { color: var(--amber); }
.ku-mark[data-state=unknown] { color: var(--icon-quiet); }
.ku-mark[data-state=paused] { color: var(--icon-quiet); }
.ku-mark[data-state=off] { color: var(--amber); }
.ku-mark use { pointer-events: none; }
/* While an alert is open the other tiles step back: a quieter ground, softer ink (never opacity on words, so they stay AA) and less vivid
   faces and tags, so the eye goes to the alert first. The change is a transition, not a rebuild. */
.ku-tiles[data-dim] .ku-tile:not([data-alert]) { background: color-mix(in srgb, var(--card) 55%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-line) 60%, transparent); }
.ku-tiles[data-dim] .ku-tile:not([data-alert]) .ku-tile-name { color: var(--dim-ink); }
.ku-tiles[data-dim] .ku-tile:not([data-alert]) .ku-tag { background: var(--paper); color: var(--dim-ink); }
.ku-tiles[data-dim] .ku-tile:not([data-alert]) .ku-avatar { filter: saturate(.5); opacity: .72; }
.ku-tiles[data-dim] .ku-tile[data-alert] { background: var(--status-alert-bg); box-shadow: inset 0 0 0 1px var(--status-alert-line); }
.ku-tile .ku-avatar { transition: opacity .3s, filter .3s; }
.ku-tile .ku-tile-name, .ku-tile .ku-tag { transition: color .3s, background-color .3s; }

/* "+ Look after someone else": a quiet line that opens plain choices. */
.ku-add { margin-top: var(--s4); }
.ku-add-toggle { display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; min-height: 52px; padding: 0 var(--s4); border: 0; border-radius: 14px;
  background: transparent; color: var(--ink); font: 500 var(--fs-body)/1.2 var(--font-ui); cursor: pointer; transition: opacity .15s, background-color .15s; }
.ku-add-toggle:hover { background: var(--fill); }
.ku-add-toggle:active { opacity: .6; }
.ku-add-toggle .icon { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.ku-add-toggle[aria-expanded=true] .icon { transform: rotate(45deg); }
.ku-add-list { display: grid; gap: var(--s2); margin: var(--s3) 0 0; padding: 0; list-style: none; }
.ku-add-list[hidden] { display: none; }
.ku-add-option { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 64px; padding: var(--s3) var(--s4); border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line);
  color: inherit; text-align: left; cursor: pointer; transition: background-color .2s var(--ease), transform .35s var(--spring); }
.ku-add-option:hover { background: var(--surface-hover); }
.ku-add-option:active { transform: scale(.985); }
.ku-add-option strong { display: block; font: 600 var(--fs-headline)/1.25 var(--font-ui); color: var(--ink); }
.ku-add-option span span { display: block; font-size: var(--fs-sub); color: var(--muted); }
.ku-add-option .ku-avatar { --size: 40px; }

/* "Getting started" under Home's sentence (the three steps and what is next): it has room above it, and its steps are one line in the list's width (the word "optional" stays
   for a screen reader). */
.ku-pane-list .setup-guide { margin: 0 0 var(--s4); padding: var(--s4); border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.ku-pane-list .setup-steps { gap: 6px; margin-bottom: var(--s4); }
.ku-pane-list .setup-steps li { white-space: nowrap; }
.ku-pane-list .setup-steps li + li::before { width: 14px; margin-right: 0; }
.ku-pane-list .setup-steps small { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* A heads-up: one calm line and the one step. It is the same card for "I can't reach you yet" (nobody can be told), a failed alert
   email, a phone to set up, a visitor to confirm, free disk space: amber when it needs the owner, quiet when it only asks. */
.callout, .delivery-notice, .ku-heads { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 12px; align-items: start; margin: var(--s4) 0 0; padding: 14px 16px;
  border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); color: var(--ink-soft); font-size: var(--fs-sub); line-height: 1.4; }
.callout[hidden], .delivery-notice[hidden], .ku-heads[hidden] { display: none; }
.callout[data-tone=quiet] { background: var(--card); }
/* What needs the owner is an amber callout with a left edge, as on the website. */
.reach-notice, .delivery-notice[data-attention=true] { background: var(--amber-pale); box-shadow: inset 3px 0 0 var(--amber-edge); border-radius: 6px 14px 14px 6px; color: var(--ink-soft); }
.callout > .icon, .delivery-notice > .icon, .ku-heads > .icon { grid-column: 1; grid-row: 1; width: 20px; height: 20px; margin-top: 1px; color: var(--icon-quiet); }
.reach-notice > .icon, .delivery-notice[data-attention=true] > .icon { color: var(--amber); }
.callout strong { font-weight: 600; color: var(--ink); }
.reach-notice strong { color: var(--ink); }
.callout p, .delivery-notice p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.reach-notice-text { grid-column: 2; min-width: 0; }
.reach-notice-text p { margin: 2px 0 0; }
/* What the heads-up asks for sits under its words: a button or a link, on the text's edge. */
.callout .button-row .text-button { min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-inner); font-weight: 600; color: var(--ink); background: var(--inner); text-decoration: none; }
.callout .button-row .text-button:hover { background: var(--surface-hover); }
.callout > .button-row, .delivery-notice > :is(a, button):not(.icon-button), .callout > :is(a, button) { grid-column: 2; justify-self: start; margin-top: 8px; }
.callout .button-row { gap: var(--s2); }
.delivery-notice > .icon-button { position: absolute; top: 2px; right: 2px; }
.delivery-notice > :is(a, button):not(.icon-button) { padding: 0 var(--s3); min-height: 44px; border-radius: var(--r-inner); font-weight: 600; color: var(--ink); background: var(--inner); text-decoration: none; }
.delivery-notice > :is(a, button):not(.icon-button):hover { background: var(--surface-hover); }
.household-review-notice p, .regular-question-notice p { padding-right: 36px; }
.phone-offer-steps { margin: 8px 0 0; padding-left: 20px; }
.phone-offer-steps li { margin: 2px 0; }

/* An alert comes first: while one shows, an offer waits. */
.ku-home:has(.ku-ev--emergency) #phoneOffer, .ku-home:has(.ku-ev--emergency) .setup-guide { display: none; }

/* The card's page: a page, as in Notion. The face is its icon, the name its title, then property rows, a callout for today in one line, the day
   as a quiet list, what Kiwi does, who hears first, the rooms. On a phone the back link is the navigation bar's leading item, a round glass
   button with a chevron (its words stay for a screen reader). */
.ku-back { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-height: 44px; margin: 0 0 var(--s1) calc(-1 * var(--s2)); padding: 0 var(--s3) 0 var(--s1); border-radius: 999px; color: var(--ink); font: 400 var(--fs-body)/1.2 var(--font-ui); text-decoration: none; transition: opacity .15s; }
.ku-back .icon { width: 22px; height: 22px; transform: rotate(180deg); stroke-width: 2.4; }
.ku-back:hover { background: var(--side-hover); }
.ku-back:active { opacity: .55; }
@media (max-width: 1023px) {
  .ku-back { position: fixed; z-index: 41; top: calc(env(safe-area-inset-top, 0px) + 2px); left: var(--s5); width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; font-size: 0; background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    box-shadow: 0 0 0 .5px var(--glass-line), 0 4px 14px rgba(40, 30, 10, .08); }
  .ku-back .icon { transform: rotate(180deg) translateX(1px); }
  .ku-back .ku-back-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
/* A page with a back button gives it room: the button floats in the navigation bar, and the page starts a little below it. */
@media (max-width: 1023px) { body:has(#navBar[data-back]) .page-content { padding-top: calc(var(--navbar-h) + env(safe-area-inset-top, 0px) + var(--s3)); } }
.ku-card-head { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.ku-card-head h1 { margin: 0; font: 700 var(--fs-largetitle)/1.2 var(--font-ui); letter-spacing: -.026em; color: var(--ink); }
.ku-card-head p { margin: 2px 0 0; font-size: var(--fs-sub); color: var(--muted); }
/* Property rows: a quiet label with a small icon, and the home's own words beside it. */
.ku-props { display: grid; gap: 2px; margin: var(--s3) 0 0; }
.ku-prop { display: flex; align-items: center; gap: var(--s3); min-height: 30px; font-size: var(--fs-sub); line-height: 1.35; }
.ku-prop dt { display: flex; align-items: center; gap: 7px; flex: none; width: 7.5em; color: var(--muted); }
.ku-prop dt .icon { width: 16px; height: 16px; color: var(--icon-quiet); }
.ku-prop dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
/* A note is a callout: green-tinted when it is well, amber with a left edge when it looks different, red when an alert is open on this card. */
.ku-note { display: flex; align-items: flex-start; gap: var(--s3); margin: var(--s4) 0 0; padding: var(--s4); border-radius: 14px; background: var(--status-ok-bg); box-shadow: inset 0 0 0 1px var(--status-ok-line);
  font-size: var(--fs-body); line-height: 1.42; letter-spacing: -.012em; color: var(--ink-soft); }
.ku-note b { color: var(--ink); font-weight: 600; }
.ku-note .ku-mark { width: 26px; height: 26px; margin-top: 0; }
.ku-note .ku-spot { flex: none; width: 40px; height: 40px; }
.ku-note[data-state=attention], .ku-note[data-state=paused] { background: var(--amber-pale); box-shadow: inset 3px 0 0 var(--amber-edge); border-radius: 6px 14px 14px 6px; }
.ku-note[data-state=alert] { background: var(--status-alert-bg); box-shadow: inset 0 0 0 1px var(--status-alert-line); }
.ku-note[data-state=alert] .ku-mark { color: var(--red-fill); }
@media (min-width: 1024px) {
  .ku-card-head { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--s4); }
  .ku-card-head .ku-avatar[data-size="lg"] { --size: 72px; }
  .ku-props { display: flex; flex-wrap: wrap; gap: 0 var(--s5); margin-top: 6px; }
  .ku-prop dt { width: auto; }
}

/* The day as a quiet list: the time (tabular figures), what happened, and a small picture; older rows wait behind a toggle. */
.ku-tl { display: block; margin: 0; padding: 0; list-style: none; }
.ku-tl > li { position: relative; }
.ku-tl > li + li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: .5px; background: var(--hair); }
.ku-tl-item { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 50px; padding: 6px 2px; border: 0; border-radius: 0; background: none; color: inherit; text-align: left; font: inherit; }
button.ku-tl-item { cursor: pointer; transition: background-color .2s var(--ease), transform .35s var(--spring); }
button.ku-tl-item:hover { background: var(--surface-hover); }
button.ku-tl-item:active { transform: scale(.995); }
.ku-tl-pic { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 38px; border-radius: 8px; overflow: hidden; background: var(--paper); color: var(--icon-quiet); }
.ku-tl-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ku-tl-pic .icon { width: 20px; height: 20px; }
.ku-tl-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: var(--s3); }
.ku-tl-time { flex: none; width: 5em; font: 400 var(--fs-sub)/1.35 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--muted); }
.ku-tl-what { min-width: 0; font-size: var(--fs-body); line-height: 1.3; letter-spacing: -.012em; color: var(--ink); }
/* A note the home wrote down (not something it saw): a quiet line of words, no picture. */
.ku-tl-note .ku-tl-what { color: var(--muted); font-size: var(--fs-sub); }
.ku-tl-empty { padding: var(--s4); border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); font-size: var(--fs-sub); color: var(--muted); }
/* "Earlier today · 1": a Notion toggle. */
.ku-tl-more { display: flex; align-items: center; gap: var(--s2); min-height: 44px; margin: 0; padding: 0 2px; border: 0; background: none; color: var(--muted); font: 400 var(--fs-sub)/1.2 var(--font-ui); cursor: pointer; }
.ku-tl-more .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; color: var(--icon-quiet); transition: transform .3s var(--spring); }
.ku-tl-more[aria-expanded=true] .icon { transform: rotate(90deg); }
.ku-tl-more:hover { color: var(--ink); }
.ku-tl-older[hidden] { display: none; }

/* An inset grouped list, as on iOS: rows on one white card, hairline separators inset from the leading edge. What Kiwi does (switches), who
   hears first, rooms. */
.ku-group { margin: 0; padding: 0 var(--s4); list-style: none; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.ku-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; padding: var(--s3) 0; font-size: var(--fs-body); line-height: 1.3; color: var(--ink); }
.ku-row + .ku-row::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: .5px; background: var(--hair); }
.ku-row-text { min-width: 0; }
.ku-row-sub { display: block; margin-top: 2px; font-size: var(--fs-sub); line-height: 1.35; color: var(--muted); }
.ku-row-value { flex: none; max-width: 52%; text-align: right; font-size: var(--fs-body); color: var(--muted); }
.ku-row[data-state=left_out] .ku-row-value, .ku-row[data-state=offline] .ku-row-value { color: var(--amber); font-weight: 500; }  /* a camera that is reconnecting or offline is amber in the Rooms list too */
/* The iOS switch: 51 by 31, a white knob that moves on a spring, Kiwi green when it is on. The hit area is larger than the track. */
.ku-switch { position: relative; flex: none; width: 51px; height: 31px; padding: 0; border: 0; border-radius: 999px; background: var(--switch-off); cursor: pointer; transition: background-color .25s var(--ease); }
.ku-switch::before { content: ""; position: absolute; inset: -7px -4px; }
.ku-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--switch-knob-off); box-shadow: 0 3px 8px #00000026, 0 3px 1px #0000000d; transition: transform .45s var(--spring); }
.ku-switch[aria-checked=true] { background: var(--switch-on); }
.ku-switch[aria-checked=true]::after { transform: translateX(20px); background: #fff; }
.ku-switch:hover:not(:disabled) { background: var(--switch-off-hover); }
.ku-switch[aria-checked=true]:hover:not(:disabled) { background: var(--switch-on-hover); }
.ku-switch:disabled { opacity: .5; cursor: default; }

/* The iOS segmented control: a grey track, a white thumb under the chosen choice; "While we're out / Always / Never". */
.ku-seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--seg-track); }
.ku-seg-item { flex: 1 1 auto; min-height: 44px; padding: 0 var(--s3); white-space: nowrap; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 500 var(--fs-sub)/1.2 var(--font-ui); cursor: pointer;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.ku-seg-item:hover:not([aria-checked=true]) { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ku-seg-item[aria-checked=true] { background: var(--seg-thumb); font-weight: 600; box-shadow: 0 3px 8px #0000001f, 0 3px 1px #0000000a; }
:root[data-theme=dark] .ku-seg-item[aria-checked=true] { box-shadow: 0 3px 8px #00000066; }

/* The home card's one setting, "Tell me about anyone unfamiliar", in plain words and one tap. */
.ku-stranger { padding: var(--s4); border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.ku-stranger .ku-btn--secondary { background: var(--inner); }
.ku-stranger .ku-btn--secondary:hover:not(:disabled) { background: var(--paper); }
.ku-stranger-state { display: flex; align-items: flex-start; gap: var(--s3); margin: 0 0 var(--s4); font-size: var(--fs-body); font-weight: 600; line-height: 1.35; color: var(--ink); }
.ku-stranger-state .ku-mark { margin-top: 0; }
.ku-stranger .ku-seg { margin-top: var(--s2); }
.ku-fine-print { margin: var(--s3) 0 0; font-size: .875rem; line-height: 1.4; color: var(--muted); }

.ku-form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ku-error { margin: 0; font-size: var(--fs-sub); color: var(--red); }
.ku-alert-error { margin-top: var(--s2); }
.ku-sheet-bar .ku-btn[data-side=start] { grid-column: 1; justify-self: start; }
.ku-sheet-bar:has(.ku-btn[data-side=start]) { padding-inline: var(--s2) var(--s4); }

/* The camera strip along the bottom of a wide window: snapshots that refresh quietly; a room left out shows as left out, never its picture. */
.ku-strip-wrap { padding: var(--s4) var(--s6) var(--s5); background: var(--surface); box-shadow: 0 -.5px 0 var(--hair); }
.ku-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: var(--s3); margin: var(--s2) 0 0; padding: 0; list-style: none; }
.ku-cam { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 96px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--paper); color: var(--ink); cursor: pointer; }
.ku-cam > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.ku-cam > img.is-loaded { opacity: 1; }
.ku-cam-name { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #1c1c1b; font: 600 var(--fs-cap)/1.35 var(--font-ui); overflow-wrap: anywhere; }
/* Why a room is not showing goes under its name, so a narrow tile never cuts it off ("Living room" / "paused"). The space between stays in the words, so they read as two words. */
.ku-cam-tag { font-weight: 500; white-space: nowrap; }
.ku-cam-tag::before { content: "· "; }
.ku-cam:not([data-state=live]) { background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 9px, var(--quiet-surface) 9px, var(--quiet-surface) 18px); }
div.ku-cam { cursor: default; }
button.ku-cam:hover { box-shadow: 0 0 0 2px var(--ink); }

/* The Ask page: a field, a few questions to start from, the answers as wash cards with the pictures they are based on. */
.ku-ask { display: flex; flex-direction: column; min-height: calc(100dvh - var(--tabbar-h) - var(--navbar-h) - var(--s8) - env(safe-area-inset-bottom, 0px)); }
/* Ask's head is a band like Home's: Kiwi, curious, then the page's small name with its Experimental tag, what to ask about (large) and where the answers come from. */
.ku-ask-head { position: relative; margin-bottom: var(--s4); }
.ku-ask-name { display: flex; align-items: center; gap: var(--s2); margin: 0 0 2px; padding-right: 44px; }
.ku-ask-name h1 { margin: 0; font: 700 var(--fs-sub)/1.3 var(--font-ui); letter-spacing: 0; color: var(--b-sub); }
.ku-ask-head .ku-band-sub.ask-scope { margin-top: 6px; font-size: .875rem; line-height: 1.35; color: var(--b-sub); }
.ku-ask-new { position: absolute; top: var(--s2); right: var(--s2); color: var(--b-ink); }
/* The first line of the large words stops short of that button, however many names it holds. */
.ku-ask-head .ku-band-big::before { content: ""; float: right; width: 36px; height: .5em; }
.ask-face { -webkit-user-drag: none; user-select: none; }
@media (min-width: 1024px) {
  .ku-ask-head.ku-band { grid-template-columns: 112px minmax(0, 1fr); }
  .ku-ask-head .ku-band-big { font-size: 1.75rem; }
  .ku-ask-name h1 { font-size: 1rem; }
  .ku-ask-head .ku-band-sub.ask-scope { font-size: 1rem; }
  .ku-ask-new { top: var(--s4); right: var(--s4); }
}
.ask-panel-body { flex: 1 1 auto; }
.ask-suggestions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
/* A phone that can look but not ask: the one step, before anyone types (public/app-ask.js). */
.ask-passkey { display: grid; justify-items: start; gap: var(--s2); }
.ask-passkey .ask-problem { margin: 0; }
.ask-scope { margin-top: var(--s4); font-size: .875rem; line-height: 1.45; color: var(--muted); }
.ask-thread { display: grid; gap: var(--s6); margin: 0; padding: var(--s2) 0 0; list-style: none; }
.ask-thread:empty { display: none; }
.ask-turn { display: grid; align-content: start; gap: var(--s3); scroll-margin-top: calc(var(--navbar-h) + var(--s4)); }
/* The question is the asker's, at the right; the answer is a note from Kiwi, the small figure beside it. */
.ask-q { justify-self: end; max-width: 85%; margin: 0; padding: 10px var(--s4); border-radius: 18px 18px 4px 18px; background: var(--fill); font: 600 var(--fs-body)/1.35 var(--font-ui); color: var(--ink); overflow-wrap: anywhere; }
.ask-a { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: var(--s3); }
.ask-a > .ku-kiwi { width: 44px; margin-top: 2px; }
.ask-a-body { padding: var(--s4); border-radius: 4px 18px 18px 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.ask-a-text { margin: 0; font-size: var(--fs-body); line-height: 1.45; color: var(--ink); }
.ask-callout { display: flex; gap: var(--s2); margin-top: var(--s3); padding: var(--s3); border-radius: var(--r-inner); background: var(--red-pale); font-size: var(--fs-sub); line-height: 1.45; color: var(--ink); }
.ask-callout > .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--red); }
.ask-sources { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; padding: 0; list-style: none; }
.ask-sources:empty { display: none; }
.ask-source { position: relative; display: block; width: 120px; height: 72px; padding: 0; border: 0; border-radius: var(--r-inner); overflow: hidden; background: var(--paper); cursor: pointer; }
.ask-source img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ask-source-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ask-source-place, .ask-source time { position: absolute; left: 6px; max-width: calc(100% - 12px); padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #1c1c1b; font: 600 var(--fs-cap2)/1.5 var(--font-ui); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-source-place { top: 6px; }
.ask-source time { bottom: 6px; }
.ask-source:not(:disabled):hover, .ask-source[aria-expanded=true] { box-shadow: 0 0 0 2px var(--ink); }
.ask-source:disabled { position: static; display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; padding: 6px 12px; border-radius: 999px; background: var(--fill); box-shadow: none; cursor: default; }
.ask-source:disabled .ask-source-n { position: static; width: auto; height: auto; clip-path: none; font: 600 var(--fs-cap)/1.4 var(--font-ui); color: var(--muted); }
.ask-source:disabled :is(.ask-source-place, time) { position: static; padding: 0; background: none; color: var(--ink-soft); font-size: var(--fs-foot); }
.ask-source:disabled :is(.ask-source-place, time) { max-width: none; overflow: visible; }
.ask-source:disabled .ask-source-place + time::before { content: "·"; margin-right: 6px; }
.ask-peek { margin: var(--s3) 0 0; }
.ask-peek img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-inner); background: var(--paper); }
.ask-peek figcaption { margin-top: 6px; font-size: var(--fs-foot); color: var(--muted); font-variant-numeric: tabular-nums; }
.ask-nosource { margin: var(--s3) 0 0; font-size: var(--fs-foot); line-height: 1.45; color: var(--muted); }
.ask-period { margin: var(--s2) 0 0; font-size: var(--fs-foot); line-height: 1.45; color: var(--muted); }
.ask-actions { display: flex; gap: 2px; margin: var(--s2) 0 0 -10px; }
.ask-action { width: 44px; height: 44px; color: var(--icon-quiet); }
.ask-action:hover { color: var(--ink); }
.ask-action .icon { width: 18px; height: 18px; }
.ask-action.is-down .icon { transform: rotate(180deg); }
.ask-action[aria-pressed=true] { background: var(--selected); color: var(--ink); }
.ask-waiting { display: grid; justify-items: start; gap: var(--s2); }
.ask-shimmer { display: block; width: min(260px, 80%); height: 10px; margin-top: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--paper) 0%, var(--selected) 50%, var(--paper) 100%) 0 0 / 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .ask-shimmer { animation: ask-shimmer 1.4s linear infinite; } }
@keyframes ask-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ask-waiting-text { margin: 0; font-size: var(--fs-sub); line-height: 1.45; color: var(--muted); }
.ask-stop { min-height: 44px; padding: 0 var(--s3); gap: 6px; font-size: var(--fs-sub); }
.ask-stop .icon { width: 14px; height: 14px; }
.ask-problem { margin: 0; font-size: var(--fs-body); line-height: 1.45; color: var(--ink-soft); }
.ask-retry { margin-top: 4px; gap: 6px; }
.ask-retry .icon { width: 16px; height: 16px; }
/* The field floats above the tab bar like a message field on iOS: a rounded grey fill, no line, an ink line while it is being typed in. */
.ask-composer { position: sticky; z-index: 31; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); margin: var(--s6) 0 0; padding: var(--s2) var(--s2) var(--s2) var(--s4);
  border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--card-line), 0 6px 24px #3c28101f; transition: box-shadow .2s var(--ease); }
.ask-composer:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 6px 24px #3c28101f; }
.ask-composer textarea { display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 400 var(--fs-body)/1.4 var(--font-ui); resize: none; box-shadow: none; outline: none; overflow-y: auto; }
.ask-composer textarea::placeholder { color: var(--muted); }
.ask-composer-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: 2px; }
.ask-scope-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-foot); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-scope-chip .icon { width: 15px; height: 15px; color: var(--icon-quiet); }
.ask-send { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--button-primary); color: var(--on-button-primary); cursor: pointer; transition: background-color .15s, transform .35s var(--spring); }
.ask-send:hover:not(:disabled) { background: var(--button-primary-hover); }
.ask-send:active:not(:disabled) { transform: scale(.94); }
.ask-send:disabled { background: var(--switch-off); color: var(--inner); cursor: default; }
.ask-send .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.ask-foot { margin: var(--s3) var(--s2) 0; font-size: .875rem; line-height: 1.45; color: var(--muted); text-align: center; }
/* While Kiwi works, a slow light turns around the field (the aurora of Ask's own mark). */
.ku-ask[data-thinking=true] .ask-composer::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; background: var(--ai-ring); opacity: calc(.4 + var(--ai-glow) * .5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .ku-ask[data-thinking=true] .ask-composer::before { animation: ai-turn 3.2s linear infinite; } }
@media (min-width: 1024px) { .ku-ask { min-height: calc(100dvh - 2 * var(--s8)); } .ask-composer { bottom: var(--s6); } }

/* Settings: the home's name, then its pages as an inset grouped list. A phone shows the list, then one page at a time with a back button;
   a computer shows the list beside the page. */
.ku-settings-back { display: none; }
/* The two notices above Settings' pages keep their distance from what follows. */
#diskNotice, #recognitionNotice { margin-bottom: var(--s4); }
.ku-settings-home { display: none; }
.settings-nav a { position: relative; }
.ku-settings-foot { display: none; gap: 10px; align-items: flex-start; margin: var(--s5) var(--s2) 0; font-size: var(--fs-foot); line-height: 1.4; color: var(--muted); }
.ku-settings-foot .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--icon-quiet); }
@media (max-width: 1023px) {
  .ku-settings-home { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s5); padding: var(--s3) var(--s4); border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
  .ku-settings-home img { width: 44px; height: 44px; flex: none; }
  .ku-settings-home strong { display: block; font: 600 var(--fs-headline)/1.3 var(--font-ui); color: var(--ink); }
  .ku-settings-home span { display: block; font-size: var(--fs-sub); color: var(--muted); }
  .settings-heading { margin-bottom: var(--s2); }
  .settings-crumb .crumb-tail { display: none; }
  .settings-layout { grid-template-columns: 1fr; gap: 0; }
  .settings-nav { position: static; display: grid; gap: 0; margin: 0; padding: 0 var(--s4); border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .settings-nav a { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 52px; margin: 0; padding: 0; border-radius: 0; color: var(--ink); font: 400 var(--fs-body)/1.3 var(--font-ui); background: none; }
  .settings-nav a + a::before { content: ""; position: absolute; top: 0; left: 38px; right: 0; height: .5px; background: var(--hair); }
  .settings-nav a .icon, .settings-nav a:hover .icon, .settings-nav a[aria-current] .icon { display: block; width: 24px; height: 24px; padding: 0; border-radius: 0; background: none; color: var(--ink); }
  .settings-nav a::after { content: ""; margin-left: auto; width: 16px; height: 16px; background: var(--chev); -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat; }
  .settings-nav a[aria-current], .settings-nav a:hover { background: none; }
  .settings-nav a[aria-current]::after { position: static; height: 16px; left: auto; right: auto; bottom: auto; border-radius: 0; background: var(--chev); }
  body[data-settings=list] .ku-settings-foot { display: flex; }
  body[data-settings=list] .settings-panels { display: none; }
  body[data-settings=page] :is(.settings-nav, .ku-settings-home, #diskNotice, #recognitionNotice) { display: none; }
  /* The page's title stays for a screen reader (the panel's own is the one on screen). */
  body[data-settings=page] .settings-heading { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  body[data-settings=page] .ku-settings-back { display: inline-flex; }
  .settings-panel-heading { margin-bottom: var(--s4); }
  .settings-panel-heading h2 { font: 600 var(--fs-largetitle)/1.18 var(--font-ui); letter-spacing: -.02em; color: var(--ink); }
}
:root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 6.5 5.5 5.5-5.5 5.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* A sheet: detail that slides up over the page on a phone (grabber, a title and a Done at the top, the page dimmed behind), and is a centred
   panel on a computer. It is a modal dialog, so the page behind it is inert, Escape closes it and focus comes back to what opened it. */
.ku-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 640px; max-height: calc(100dvh - var(--s8)); margin: 0 auto; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--ink); overflow: auto; box-shadow: var(--shadow-float); }
.ku-sheet:not([open]) { display: none; }
.ku-sheet::backdrop { background: rgba(0, 0, 0, .4); }
.ku-sheet-grab { display: block; width: 36px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.ku-sheet-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--s1) var(--s2) var(--s2) var(--s4); }
.ku-sheet-bar h2 { grid-column: 2; margin: 0; font: 600 var(--fs-headline)/1.2 var(--font-ui); color: var(--ink); text-align: center; }
.ku-sheet-bar .ku-btn { grid-column: 3; justify-self: end; }
.ku-sheet-body { padding: 0 var(--s5) calc(var(--s6) + env(safe-area-inset-bottom, 0px)); }
.ku-sheet-body > :first-child { margin-top: 0; }
@media (min-width: 1024px) {
  .ku-sheet { inset: 50% auto auto 50%; width: min(440px, calc(100vw - 48px)); transform: translate(-50%, -50%); border-radius: 20px; }
  .ku-sheet-grab { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ku-sheet[open] { animation: ku-sheet-up .45s var(--ease) both; }
  .ku-sheet[open]::backdrop { animation: ku-fade-in .3s var(--ease) both; }
  @media (min-width: 1024px) { .ku-sheet[open] { animation: ku-sheet-pop .35s var(--ease) both; } }
}
@keyframes ku-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ku-sheet-pop { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes ku-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* A picture opened full size: a quiet dialog, the picture as it is. */
.ku-lightbox { width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); overflow: auto; }
.ku-lightbox::backdrop { background: rgba(0, 0, 0, .5); }
.ku-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); }
.ku-lightbox-bar p { margin: 0; font-weight: 600; font-size: var(--fs-sub); }
.ku-lightbox img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 96px); object-fit: contain; background: var(--paper); }

/* ---------------------------------------------------------------------------------------------------------------- */
/* 4. Home: one column on a phone (the list, or one card), a list and a detail side by side on a computer; and what moves                    */
/* ---------------------------------------------------------------------------------------------------------------- */
.ku-home { position: relative; }
.ku-pane-list, .ku-pane-detail { min-width: 0; }
.ku-home[data-pane=detail] .ku-pane-list { display: none; }
.ku-detail-empty h2 { font: 600 var(--fs-title2)/1.2 var(--font-ui); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.ku-detail-empty p { max-width: 34ch; margin: 0; font-size: var(--fs-body); line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.ku-empty-mascot { width: 84px; height: 84px; margin-bottom: var(--s2); }
.ku-ghost { width: min(100%, 460px); margin-top: var(--s6); padding: var(--s5); display: grid; gap: var(--s4); text-align: left; border-radius: var(--r-card);
  background: var(--quiet-surface); border: 1.5px dashed var(--line-strong); }
.ku-ghost i, .ku-ghost-days span { display: block; border-radius: 999px; background: var(--paper); }
.ku-ghost-head { display: flex; align-items: center; gap: var(--s3); }
.ku-ghost-dot { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--hue-rose); }
.ku-ghost-bars { display: grid; gap: 8px; flex: 1; }
.ku-ghost-bars i { height: 12px; width: 46%; }
.ku-ghost-bars i + i { width: 30%; height: 9px; }
.ku-ghost-note { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--r-inner); background: var(--card); }
.ku-ghost-note .ku-ghost-dot { width: 24px; height: 24px; background: var(--status-ok-bg); }
.ku-ghost-note i { flex: 1; height: 10px; }
.ku-ghost-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.ku-ghost-days span { aspect-ratio: 4 / 3; border-radius: var(--r-inner); background: var(--paper); }
.ku-ghost-rows { display: grid; gap: var(--s2); }
.ku-ghost-rows i { height: 34px; border-radius: var(--r-inner); background: var(--card); }
.ku-skel { height: 132px; border-radius: 22px; background: var(--card); }
@media (prefers-reduced-motion: no-preference) { .ku-skel { animation: ku-pulse 1.4s ease-in-out infinite; } }
@keyframes ku-pulse { 50% { opacity: .55; } }
.ku-gone { display: grid; justify-items: start; gap: var(--s4); padding: var(--s6) 0; }
.ku-gone h1 { font: 600 var(--fs-title2)/1.25 var(--font-ui); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.ku-card-body > .ku-section:first-of-type { margin-top: 0; }
.ku-foot { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.ku-chip-short { display: none; }
@media (max-width: 599px) {
  /* The nearby actions: two to a row, each on one line with its whole label (the row wraps rather than a chip being squeezed into its neighbor). */
  .ku-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); margin-top: var(--s4); }
  .ku-foot .ku-chip { min-width: 0; padding: 0 var(--s3); font-weight: 600; white-space: nowrap; }
  .ku-foot .ku-chip-long { display: none; }
  .ku-foot .ku-chip-short { display: inline; }
  /* Three actions: the first (See live) takes the whole first row and the other two share the second, never one left alone on a row. */
  .ku-foot:has(> :last-child:nth-child(3)) > :first-child { grid-column: 1 / -1; }
}
.ku-columns { display: grid; gap: var(--s7); }

/* ---- Home v3 (2026-11-15): Kiwi's band, a question or an emergency, round faces, live camera tiles, Today, one quiet footer line. A phone is one column; a computer is the band across the top,
   then the faces and Today on the left and the cameras in a 340px column on the right. A card's page (#card/<id>) is a page of its own: the list steps aside, and the way back is the page's own. */
body[data-view=home] { --view-max: 720px; }
.ku-home { display: flex; flex-direction: column; }
.ku-home[data-pane=list] .ku-pane-list { display: contents; }
.ku-home[data-pane=detail] .ku-strip-wrap, .ku-home[data-pane=detail] .ku-foot-line { display: none; }
.ku-home[data-pane=list] .ku-pane-detail { display: none; }
.ku-pane-detail { max-width: 880px; }
.ku-detail-empty { display: none; }
.ku-card-head h1 { font-size: 1.875rem; }
.ku-columns { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .ku-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6) var(--s7); align-items: start; }
  .ku-columns > .ku-section { margin-top: 0; }
  .ku-columns > .ku-section:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* The order of the page, whatever order the parts are in: the band, what needs you (anything that needs the household comes first), the set-up card, the heads-ups, the faces, the
   cameras, Today, the footer. Home's own title is for the navigation bar and a screen reader. */
.ku-home[data-pane=list] > *, .ku-home[data-pane=list] .ku-pane-list > * { min-width: 0; }
.ku-home[data-pane=list] .ku-home-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ku-home[data-pane=list] .ku-band-slot { order: 1; } .ku-home[data-pane=list] #alertViewerNote, .ku-home[data-pane=list] .ku-camera-note { order: 2; } .ku-home[data-pane=list] .ku-needs { order: 3; } .ku-home[data-pane=list] .ku-earlier { order: 3; } .ku-home[data-pane=list] .ku-camera-note[data-after=needs] { order: 3; } .ku-home[data-pane=list] .ku-notices { order: 2; } .ku-home[data-pane=list] .ku-notices[data-after=needs] { order: 3; } .ku-notices[hidden] { display: none; }
.ku-home[data-pane=list] .setup-guide { order: 4; }
.ku-home[data-pane=list] .ku-heads, .ku-home[data-pane=list] .delivery-notice { order: 6; }
.ku-home[data-pane=list] .ku-place { order: 7; } .ku-home[data-pane=list] .ku-strip-wrap { order: 8; } .ku-home[data-pane=list] .ku-today { order: 9; } .ku-home[data-pane=list] .ku-foot-line { order: 10; }
@media (min-width: 1024px) {
  body[data-view=home] { --view-max: 1040px; }
  .ku-home[data-pane=list] { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 44px; justify-content: stretch; align-content: start; grid-auto-rows: min-content; }
  .ku-home[data-pane=list] > .ku-pane-list { display: contents; }
  .ku-home[data-pane=list] .ku-pane-list > *, .ku-home[data-pane=list] > .ku-foot-line { grid-column: 1; }
  .ku-home[data-pane=list] .ku-band-slot, .ku-home[data-pane=list] > .ku-foot-line { grid-column: 1 / -1; }
  /* The notes under the band stay in the main column: the cameras are a column beside everything below the band, and a block that spans both columns cannot start beside them, so the grid
     put it BELOW them and the whole main column after it (about 500px of blank page, found on the first real day). */
  .ku-home[data-pane=list] > .ku-strip-wrap { grid-column: 2; grid-row: 2 / span 12; align-self: start; position: sticky; top: var(--s6); }
  /* An emergency leads and there is no band: the cameras start at the top, beside it. */
  .ku-home[data-pane=list]:has(.ku-band-slot[hidden]) > .ku-strip-wrap { grid-row: 1 / span 12; }
}
.ku-home .ku-label, .ku-strip-wrap .ku-label { margin: 0 0 var(--s3); font: 700 var(--fs-headline)/1.3 var(--font-ui); letter-spacing: 0; color: var(--ink); text-transform: none; }
.ku-home .ku-place, .ku-home .ku-today, .ku-home .ku-needs, .ku-home .ku-earlier { margin: 0 0 var(--s5); }
.ku-home .ku-heads, .ku-home .delivery-notice { margin: 0 0 var(--s4); }
.ku-home .ku-today .ku-label { margin-bottom: var(--s2); }
/* A section's title with a link beside it ("Mom's day" · All activity): the two sit on one line, centred on each other; the room under them is the row's. */
.ku-home .ku-section-head { margin-bottom: var(--s5); }
.ku-home .ku-section-head .ku-label { margin: 0; }

/* Kiwi's band: its colour and its face say how things are, and so do its words. Calm green; a question yellow; stopped by the household grey and asleep; a thing to look at amber; nothing to watch yet
   neutral; something that needs you that the page cannot draw, red. An emergency has no band: the red card leads. */
:root {
  --band-calm-bg: #a9dc72; --band-calm-ink: #16260d; --band-calm-sub: #2d4020;
  --band-ask-bg: #ffd55c; --band-ask-ink: #3b2704; --band-ask-sub: #5a3f0a;
  --band-sleep-bg: #d6d1c5; --band-sleep-ink: #2a2720; --band-sleep-sub: #4a463d;
  --band-warn-bg: #fbe3ad; --band-warn-ink: #3d2504; --band-warn-sub: #5a3a08; --band-warn-edge: #d68a0c;
  --band-info-bg: var(--card); --band-info-ink: var(--ink); --band-info-sub: var(--ink-soft);
  --band-alarm-bg: #c4281c; --band-alarm-ink: #fff; --band-alarm-sub: #fff;
  --face-ring-seen: #58b947; --face-ring-none: #c9c2b4; --face-ring-attention: #e6a32c;
}
:root[data-theme=dark] {
  --band-calm-bg: #27401a; --band-calm-ink: #eaf7d9; --band-calm-sub: #c6dcab;
  --band-ask-bg: #4a3a0b; --band-ask-ink: #fff0c4; --band-ask-sub: #e8d49a;
  --band-sleep-bg: #2d2a24; --band-sleep-ink: #efe9dc; --band-sleep-sub: #b9b2a2;
  --band-warn-bg: #3a2a10; --band-warn-ink: #ffe3ae; --band-warn-sub: #e6c98f; --band-warn-edge: #e6a32c;
  --band-alarm-bg: #b42318;
  --face-ring-seen: #58b947; --face-ring-none: #5a554b; --face-ring-attention: #e6a32c;
}
.ku-band-slot { margin: 0 0 var(--s4); }
.ku-band-slot[hidden] { display: none; }
.ku-band-slot > .ku-skel { height: 118px; border-radius: 24px; }
.ku-band { --b-bg: var(--band-calm-bg); --b-ink: var(--band-calm-ink); --b-sub: var(--band-calm-sub);
  display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; column-gap: var(--s4); row-gap: var(--s3); padding: var(--s4); border-radius: 24px; background: var(--b-bg); color: var(--b-ink); }
.ku-band[data-tone=ask] { --b-bg: var(--band-ask-bg); --b-ink: var(--band-ask-ink); --b-sub: var(--band-ask-sub); }
.ku-band[data-tone=sleep] { --b-bg: var(--band-sleep-bg); --b-ink: var(--band-sleep-ink); --b-sub: var(--band-sleep-sub); }
.ku-band[data-tone=warn] { --b-bg: var(--band-warn-bg); --b-ink: var(--band-warn-ink); --b-sub: var(--band-warn-sub); box-shadow: inset 0 0 0 2px var(--band-warn-edge); }
.ku-band[data-tone=info] { --b-bg: var(--band-info-bg); --b-ink: var(--band-info-ink); --b-sub: var(--band-info-sub); box-shadow: inset 0 0 0 1px var(--card-line); }
.ku-band[data-tone=alarm] { --b-bg: var(--band-alarm-bg); --b-ink: var(--band-alarm-ink); --b-sub: var(--band-alarm-sub); }
.ku-band-art { display: block; width: 100%; }
.ku-kiwi { display: block; width: 100%; height: auto; }
.ku-band-text { min-width: 0; }
.ku-band-big { margin: 0; font: 800 var(--fs-title2)/1.15 var(--font-ui); letter-spacing: -.012em; color: var(--b-ink); text-wrap: balance; overflow-wrap: anywhere; }
.ku-band-sub, .ku-band-sub.ku-says-sub { margin: 6px 0 0; font-size: .875rem; font-weight: 600; line-height: 1.35; color: var(--b-sub); }
.ku-band-start, .ku-band-step { grid-column: 1 / -1; }
.ku-band-start { width: 100%; }
.ku-band-step .ku-btn { width: 100%; }
.ku-band-side { display: none; }
.ku-band-note { margin: 0 0 var(--s3); padding: var(--s3) var(--s4); border-radius: 14px; background: var(--band-warn-bg); color: var(--band-warn-ink); box-shadow: inset 0 0 0 2px var(--band-warn-edge); font-weight: 700; }
.ku-band-slot .ku-stale { margin: var(--s3) 0 0; }
/* The owner's one quiet line when the face model is not naming anyone: small, the soft ink, no box and no amber (the home's words say how much it matters). */
.ku-recognition-line { margin: var(--s2) var(--s2) 0; font-size: var(--fs-sub); line-height: 1.4; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) { .ku-band-art .ku-kiwi { animation: ku-bob 4s ease-in-out infinite; } }
@keyframes ku-bob { 50% { transform: translateY(-3px); } }
@media (min-width: 1024px) {
  .ku-band { grid-template-columns: 124px minmax(0, 1fr) auto; column-gap: var(--s6); padding: var(--s5) var(--s7); }
  .ku-band-big { font-size: 2rem; line-height: 1.12; }
  .ku-band-sub, .ku-band-sub.ku-says-sub { font-size: 1rem; }
  .ku-band-cams { display: none; }
  .ku-band-sub:has(.ku-band-cams):not(:has(.ku-band-facts)) { display: none; }
  .ku-band-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s3); text-align: right; }
  .ku-band-watch { margin: 0; font-weight: 700; font-size: 1rem; color: var(--b-sub); }
  .ku-band-start, .ku-band-step { grid-column: 3; grid-row: 1; width: auto; min-width: 220px; }
  .ku-band-step .ku-btn { width: auto; }
  .ku-home:has(.ku-band-pause) .ku-foot-pause { display: none; }
}
.ku-band-pause { background: color-mix(in srgb, var(--b-ink) 10%, transparent); color: var(--b-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--b-ink) 40%, transparent); }
.ku-band-pause:hover:not(:disabled) { background: color-mix(in srgb, var(--b-ink) 18%, transparent); }
.ku-band .ku-btn--primary { --button-primary: #1c1a16; --button-primary-hover: #000; --on-button-primary: #fff; }
:root[data-theme=dark] .ku-band .ku-btn--primary { --button-primary: #f4efe6; --button-primary-hover: #fff; --on-button-primary: #181612; }
.ku-band[data-tone=alarm] .ku-btn--primary { --button-primary: #fff; --on-button-primary: #8f150e; }

/* What needs the reader. */
.ku-needs-list { display: flex; flex-direction: column; gap: var(--s3); }

/* The event block: one component for a question and for an emergency (public/app-brief.js kiwiEvent). */
.ku-ev { position: relative; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.ku-ev-pic { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--fill); cursor: pointer; }
.ku-ev-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ku-ev-stamp { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 3px 10px; border-radius: 999px; background: rgba(28, 26, 22, .74); color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ku-ev-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ku-ev-title { margin: 0; font: 800 var(--fs-title3)/1.25 var(--font-ui); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.ku-ev-meta { margin: 0; color: var(--ink-soft); }
.ku-ev-said { margin: var(--s2) 0 0; font-weight: 600; color: var(--ink); }
.ku-ev-error { margin: var(--s2) 0 0; }
.ku-ev-unsent { margin: 0; padding: 0 var(--s2); color: var(--ink-soft); }
.ku-ev-asking { margin: 0; font-weight: 800; }
/* The question: the picture first with the room and the time on it, "1 of 2" and a quiet See live, the question, then every answer under it. */
.ku-ev--question { display: block; overflow: hidden; }
.ku-ev--question .ku-ev-pic { height: 128px; border-radius: 0; }
.ku-ev--question .ku-ev-body { padding: var(--s3) var(--s4) var(--s3); gap: var(--s2); }
.ku-ev-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 32px; }
.ku-ev-count { padding: 3px 12px; border-radius: 999px; background: var(--tag-yellow); color: var(--tag-yellow-ink); font-size: .875rem; font-weight: 800; }
.ku-ev-live { margin-left: auto; font-weight: 800; color: var(--ink); }
.ku-ev-media { position: relative; }
.ku-ev-live--chip { position: absolute; right: 10px; bottom: 10px; margin: 0; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(28, 26, 22, .74); color: #fff; font-size: .875rem; line-height: 1.3; text-decoration: none; }
.ku-ev-live--chip::after { content: ""; position: absolute; inset: -4px; }
.ku-ev-live--chip:hover { background: rgba(28, 26, 22, .9); }
.ku-ev-live--chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ku-ev--question .ku-ev-title { font-size: 1.1875rem; }
.ku-ev-answers { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s1); }
/* The answers as two short lists of buttons (Nov 20, 2026): the household's people, then "Or someone else" and "A guest" / "I don't know them". Each answer is its own
   full-width button, at least 60 px tall, its picture and the name in full: a choice that is made with one tap, not a row that opens another page, so it has no arrow.
   Every button has the same left and right edges, whatever the household or the screen. */
.ku-ev-list { display: flex; flex-direction: column; gap: var(--s2); }
.ku-ev-answer { justify-content: flex-start; width: 100%; min-width: 0; height: auto; min-height: 60px; padding: 8px 16px 8px 10px; gap: 12px; border-radius: 16px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; font-weight: 700; text-align: left; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--control-line); }
@media (hover: hover) { .ku-ev-answer:hover:not(:disabled) { background: var(--surface-hover); } }  /* never a sticky hover on a touch screen: a tapped answer would keep a grey highlight */
.ku-ev-answer:active:not(:disabled) { background: var(--surface-hover); box-shadow: inset 0 0 0 2px var(--ink-soft); }
.ku-ev-answer .ku-avatar, .ku-ev-answer .household-name-photo, .ku-ev-answer .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
/* "A guest" and "I don't know them" get a quiet round sign where a person has their picture, so every name starts at the same place. The sign is decoration: the words say it. */
.ku-ev-answer--wide::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--fill) center / 22px no-repeat; }
.ku-ev-answer--guest::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8477' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4-6 8-6s7 2 8 6'/%3E%3C/svg%3E"); }
.ku-ev-answer--unknown::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8477' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 9a3 3 0 1 1 4 2.8c-.7.3-1 .9-1 1.7V15'/%3E%3Ccircle cx='12' cy='19' r='.8' fill='%238a8477'/%3E%3C/svg%3E"); }
.ku-ev-else-label { margin: var(--s1) 0 0; color: var(--muted); font-size: .9375rem; font-weight: 700; }
.ku-ev--emergency .ku-ev-else-label { color: #fff; }
.ku-ev--emergency[data-on-it] .ku-ev-else-label { color: var(--ink-soft); }
/* A red alert keeps the compact two-column answers it had: a list there would start every alert under it one row lower for each person in the household. */
.ku-ev--emergency .ku-ev-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ku-ev--emergency .ku-ev-list { display: contents; }
.ku-ev--emergency .ku-ev-else-label { display: none; }
.ku-ev--emergency .ku-ev-answer { justify-content: center; padding: 6px 12px; gap: 10px; text-align: center; }
.ku-ev--emergency .ku-ev-answer :is(.ku-avatar, .household-name-photo, .avatar) { width: 36px; height: 36px; }
.ku-ev--emergency .ku-ev-answer--wide::before { content: none; }
.ku-ev--emergency .ku-ev-answer--guest { grid-column: 1; }
@media (max-width: 340px) { .ku-ev--emergency .ku-ev-answers { grid-template-columns: minmax(0, 1fr); } }
.ku-ev-quiet { align-self: center; min-height: 44px; color: var(--muted); font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; }
.ku-ev-quiet:disabled { opacity: .4; }
.ku-ev-conf { display: flex; align-items: center; gap: var(--s3); min-height: 60px; padding: 8px 16px; border-radius: 22px; background: var(--primary-pale); box-shadow: inset 0 0 0 1px var(--primary-line); color: var(--ink); font-weight: 700; }
.ku-ev-conf .icon { flex: none; width: 22px; height: 22px; color: var(--success); }
.ku-ev-conf:focus-visible { outline: 2px solid var(--ink-soft); outline-offset: 2px; }
/* The emergency: one red card. Kiwi alert beside the headline, the picture, what to do, See live (white) and I'm on it (dark), who has been told. Once someone is on it, it is white with a green edge. */
.ku-ev--emergency { display: block; overflow: hidden; background: var(--red-fill); color: #fff; box-shadow: none; }
.ku-ev--emergency .ku-ev-body { padding: var(--s4); gap: var(--s3); }
.ku-ev-head { display: flex; align-items: center; gap: var(--s3); }
.ku-ev-head .ku-kiwi { flex: none; width: 56px; }
.ku-ev-head-text { min-width: 0; }
.ku-ev--emergency .ku-ev-title { color: #fff; font-size: var(--fs-title2); }
.ku-ev--emergency .ku-ev-meta { color: #fff; font-weight: 600; margin-top: 2px; }
.ku-ev--emergency .ku-ev-why { margin: 0 0 8px; font-weight: 500; }
.ku-ev--emergency .ku-alert { display: flex; flex-direction: column; gap: var(--s3); container-type: inline-size; }
.ku-ev--emergency .ku-media-slot:empty { display: none; }
.ku-media-wrap[hidden] { display: none; }
.ku-ev--emergency .ku-media-slot:has(> .ku-media-wrap[hidden]) { display: none; }
.ku-ev--emergency .ku-media { margin: 0; border-radius: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .92); }
.ku-ev--emergency .ku-alert-next { margin: 0; color: #fff; font-weight: 600; }
.ku-ev--emergency .ku-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: 0; }
.ku-ev--emergency .ku-actions--one { grid-template-columns: 1fr; }
.ku-ev--emergency .ku-btn { min-height: 56px; font-size: 1.0625rem; font-weight: 800; border-radius: 14px; }
.ku-act-live { background: #fff; color: #a31a11; }
.ku-act-live:hover:not(:disabled) { background: #fff4f2; }
.ku-act-onit { background: #1c1a16; color: #fff; }
.ku-act-onit:hover:not(:disabled) { background: #000; }
.ku-ev--emergency .ku-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 var(--s3); margin: 0 0 0 calc(var(--s2) * -1); }
.ku-ev--emergency .ku-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ku-ev--emergency .ku-fine, .ku-ev--emergency .ku-told-line { margin: 0; color: #fff; }
.ku-ev--emergency .ku-onit { margin: 0; background: rgba(255, 255, 255, .16); color: #fff; }
.ku-ev--emergency .ku-onit .ku-link { color: #fff; }
.ku-ev--emergency .ku-ev-ask { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s1); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .35); }
.ku-ev--emergency .ku-ev-asking, .ku-ev--emergency .ku-ev-said { color: #fff; }
.ku-ev--emergency .ku-ev-quiet { color: #fff; }
.ku-ev--emergency .ku-error { color: #fff; background: rgba(0, 0, 0, .25); border-radius: 10px; padding: var(--s2) var(--s3); }
.ku-ev--emergency :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ku-ev--emergency :is(.clip-caption, .clip-note) { color: #fff; }
.ku-ev--emergency[data-on-it] :is(.clip-caption, .clip-note) { color: var(--ink-soft); }
.ku-ev--emergency[data-on-it] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--success-line); }
.ku-ev--emergency[data-on-it] :is(.ku-ev-title, .ku-ev-meta, .ku-alert-next, .ku-fine, .ku-told-line, .ku-ev-asking, .ku-ev-said) { color: var(--ink); }
.ku-ev--emergency[data-on-it] .ku-link, .ku-ev--emergency[data-on-it] .ku-ev-quiet { color: var(--ink); }
.ku-ev--emergency[data-on-it] .ku-onit { background: var(--primary-pale); color: var(--ink); }
.ku-ev--emergency[data-on-it] .ku-onit .ku-link { color: var(--ink); }
.ku-ev--emergency[data-on-it] .ku-ev-ask { border-top-color: var(--card-line); }
.ku-ev--emergency[data-on-it] :focus-visible { outline-color: var(--ink-soft); }
.ku-ev--emergency[data-on-it] .ku-act-live { background: var(--fill); color: var(--ink); }
.ku-ev--emergency .ku-ev-answer { color: var(--ink); }
/* While an emergency is open the rest of Home steps back, and stays where it was.
   Its pictures and faces fade and lose some colour; its words keep their full contrast. */
.ku-home:has(.ku-ev--emergency:not([data-on-it])) :is(.ku-faces .ku-face-ring, .ku-tile, .ku-tl-pic) { opacity: .6; filter: grayscale(.5); transition: opacity .2s var(--ease); }
@media (min-width: 761px) {
  .ku-ev--question .ku-ev-pic { height: 220px; }
  .ku-ev--question .ku-ev-body { padding: var(--s4) var(--s5) var(--s5); gap: var(--s3); }
  .ku-ev--question .ku-ev-title { font-size: var(--fs-title3); }
  .ku-ev--emergency .ku-ev-body { padding: var(--s5) var(--s6); }
  .ku-ev--emergency .ku-media { max-width: 100%; }
}

/* Body text on Home is 16 px or more, but for the small lines a design carries (the band's, a face's, a tile's caption, the footer's). */
.ku-home .ku-link, .ku-home .ku-btn--small, .ku-ev :is(.ku-fine, .ku-onit, .ku-alert-next), .ku-today :is(.ku-tl-time, .ku-tl-what, .ku-tl-more) { font-size: 1rem; }
.ku-ev .ku-fine { color: var(--ink-soft); }
.ku-ev--emergency .ku-fine { color: #fff; }
.ku-ev--emergency[data-on-it] .ku-fine { color: var(--ink-soft); }
.ku-watch-sheet { display: flex; flex-direction: column; gap: var(--s3); }

/* Faces: the people and pets, one round face each, in a row that wraps. The ring is green when Kiwi saw them lately, amber when something is open, neutral otherwise; the words say it too. */
/* Each face sits in a column a little wider than its ring; the row is pulled left by the difference so the first ring lines up with the page's edge, as the headings and cards do. */
.ku-faces { --face: 64px; --face-col: 88px; display: grid; grid-template-columns: repeat(auto-fill, var(--face-col)); gap: var(--s2) 2px; margin: 0 0 0 calc((var(--face) - var(--face-col)) / 2); padding: 0; list-style: none; }
.ku-face-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 6px 2px 8px; border: 0; border-radius: 16px; background: none; color: var(--ink); font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
.ku-face-item:hover { background: var(--surface-hover); }
.ku-face-item:active { transform: scale(.985); }
.ku-face-item:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 0; }
.ku-face-ring { --ring: var(--face-ring-none); position: relative; display: grid; place-items: center; width: var(--face); height: var(--face); padding: 3px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--ring); }
.ku-face-item[data-ring=seen] .ku-face-ring { --ring: var(--face-ring-seen); }
.ku-face-item[data-ring=attention] .ku-face-ring { --ring: var(--face-ring-attention); }
.ku-face-ring .ku-avatar { --size: 100%; width: 100%; height: 100%; }
.ku-face-text { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; width: 100%; padding-top: 4px; }
.ku-face-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.ku-face-line { max-width: 100%; font-size: .875rem; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.ku-face-plus { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--fill); color: var(--ink); }
.ku-face-plus .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.ku-face-add .ku-face-ring { box-shadow: none; }
.ku-face-add .ku-face-name { white-space: normal; overflow: visible; text-align: center; }
.ku-face-add[aria-expanded=true] .ku-face-plus { background: var(--fill-strong); }
.ku-place .ku-add { margin-top: var(--s2); }
@media (min-width: 1024px) {
  .ku-faces { --face: 76px; --face-col: 116px; }
  .ku-face-name { font-size: 1rem; }
  .ku-face-line { font-size: .875rem; }
}

/* Today: a quiet list, a small picture, one line, the time on the right. */
.ku-today .ku-tl-wrap { border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.ku-today .ku-tl > li + li::before { left: 0; right: 0; }
.ku-today .ku-tl-item { gap: var(--s3); min-height: 60px; padding: 7px 0; border-radius: 12px; }
/* A row that opens something keeps a little room around its words for the hover; it reaches out past the column so the words still line up. */
.ku-today button.ku-tl-item { width: calc(100% + 16px); margin-inline: -8px; padding-inline: 8px; }
.ku-today .ku-tl-pic { order: -1; width: 76px; height: 48px; border-radius: 10px; }
.ku-today .ku-tl-text { flex-direction: row-reverse; align-items: first baseline; justify-content: space-between; gap: var(--s3); }
.ku-today .ku-tl-time { width: auto; font-size: .875rem; white-space: nowrap; }
.ku-today .ku-tl-what { flex: 1; font-size: 1rem; font-weight: 600; }
.ku-today .ku-tl-note .ku-tl-what { font-weight: 400; }

/* The cameras: live tiles. A row you scroll sideways on a phone (the next one peeks in, and a hint and two buttons say so), a column on a computer. */
.ku-strip-wrap { padding: 0; background: none; box-shadow: none; margin: 0 0 var(--s5); }
.ku-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.ku-strip-scroll { position: relative; }
.ku-strip { display: flex; flex-direction: row; gap: 10px; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.ku-strip::-webkit-scrollbar { display: none; }
/* What scrolls past the edge fades inside the page's gutter, so no label is ever cut mid-word at the edge; the round arrows sit at the top of the tiles, over the picture and never over a name. */
.ku-strip { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); }
.ku-strip:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: -3px; border-radius: 14px; }
.ku-strip > li { flex: 0 0 calc((100% - 10px) * .46); min-width: 0; scroll-snap-align: start; }
.ku-strip[data-count="1"] > li { flex-basis: 100%; }
.ku-strip[data-count="2"] > li { flex: 1 1 0; }
.ku-tile { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--paper); color: #fff; font: inherit; text-align: left; }
button.ku-tile { cursor: pointer; transition: transform .35s var(--spring); }
button.ku-tile:active { transform: scale(.985); }
.ku-tile:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 2px; }
.ku-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.ku-tile > img.is-loaded { opacity: 1; }
.ku-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 18px 9px 7px; background: linear-gradient(to top, rgba(28, 26, 22, .82), rgba(28, 26, 22, 0)); }
.ku-tile-cap b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 800; }
.ku-tile[data-state=offline] { background: repeating-linear-gradient(45deg, var(--amber-pale), var(--amber-pale) 9px, color-mix(in srgb, var(--amber-edge) 14%, var(--amber-pale)) 9px, color-mix(in srgb, var(--amber-edge) 14%, var(--amber-pale)) 18px); box-shadow: inset 0 0 0 1px var(--amber-line); color: var(--amber); }
.ku-tile[data-state=offline] .ku-tile-mid .icon, .ku-tile[data-state=offline] .ku-tile-mid b, .ku-tile[data-state=offline] .ku-tile-mid em { color: var(--amber); }
.ku-tile-live { display: inline-flex; flex: none; align-items: center; gap: 5px; font-size: .875rem; font-style: normal; font-weight: 800; }
.ku-tile-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live-dot); }
.ku-tile-live[data-checking=off] i { background: #b3ab9c; }  /* grey: the picture is there, but Kiwi is not checking it */
.ku-tile:not([data-state=live]) { background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 9px, var(--quiet-surface) 9px, var(--quiet-surface) 18px); box-shadow: inset 0 0 0 1px var(--card-line); color: var(--ink-soft); }
.ku-tile-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px; text-align: center; }
.ku-tile-mid .icon { width: 24px; height: 24px; margin-bottom: 2px; color: var(--ink-soft); }
.ku-tile-mid b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 800; color: var(--ink); }
.ku-tile-mid em { font-size: .875rem; font-style: normal; font-weight: 700; color: var(--muted); }
.ku-strip-nav { position: absolute; top: calc(50% - 23px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 0 0 .5px var(--glass-line), var(--shadow-bar); cursor: pointer; }
.ku-strip-nav[hidden] { display: none; }
.ku-strip-nav .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.ku-strip-nav--prev { left: 6px; }
.ku-strip-nav--prev .icon { transform: rotate(180deg); }
.ku-strip-nav--next { right: 6px; }
.ku-strip-scroll[data-end=false]::after { content: ""; position: absolute; top: 0; right: calc(var(--gutter) * -1); bottom: 0; width: 28px; pointer-events: none; background: linear-gradient(to right, transparent, var(--surface)); }
@media (min-width: 1024px) {
  .ku-strip-nav { display: none; }
  .ku-strip { flex-direction: column; gap: var(--s3); margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .ku-strip > li, .ku-strip[data-count] > li { flex: none; width: 100%; }
  .ku-strip-scroll::after { display: none; }
  .ku-tile:not([data-state=live]) { aspect-ratio: 16 / 7; }
  .ku-tile-cap b { font-size: .9375rem; }
  .ku-tile-live { font-size: .8125rem; }
}

/* The footer: one quiet line, and the one thing it may offer. */
.ku-foot-line { margin: var(--s4) 0 0; padding: var(--s4) 0 0; box-shadow: 0 -.5px 0 var(--hair); color: var(--muted); font-size: .9375rem; }
.ku-foot-line:empty { display: none; }
.ku-foot-text { margin: 0; line-height: 1.5; }
.ku-foot-text .ku-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ku-foot-off { margin-top: var(--s1); }
.ku-foot-off .ku-btn { vertical-align: middle; }

/* The live sheet: the room, how it is and the time, one Close, the picture, tabs for the other cameras, who can see it. A sheet from the top on a phone, a panel on a computer. */
.live-view-dialog { border: 0; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-float); overflow: hidden; }
.live-view-dialog::backdrop { background: rgba(28, 26, 22, .55); }
/* The picture gives way so the tabs and the line under it are always in view. */
.live-view-dialog[open] { display: flex; flex-direction: column; }
.live-view-dialog #liveViewContent { min-height: 0; overflow: hidden; }
.live-view-dialog .video-wrap { max-height: calc(100dvh - 230px); }
.live-view-dialog .video-wrap img { object-fit: contain; }
.live-view-heading { padding: var(--s3) var(--s4); }
.live-view-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s3); min-width: 0; }
.live-view-heading h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.live-view-heading .live-view-status { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .875rem; font-weight: 800; color: var(--ink); }
.live-view-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--control-line); }
.live-view-status[data-live=true]::before { background: var(--success); }
.live-view-status[data-trouble=true]::before { background: var(--amber-edge); }  /* a camera that is reconnecting or offline is amber everywhere: the sentence, the tile, this dot */
.live-view-heading .live-view-clock { display: block; margin: 0; font-size: .875rem; font-weight: 700; color: var(--muted); }
.ku-pause-words { margin: 0 0 var(--s4); font-size: var(--fs-body); color: var(--ink-soft); }
.ku-pause-error { margin: var(--s3) 0 0; }
.ku-pause-actions { display: grid; gap: var(--s2); }
.ku-pause-actions .ku-btn { width: 100%; }
.ku-live-alert { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0 var(--s4) var(--s2); padding: var(--s3) var(--s4); border-radius: 14px; background: var(--red-fill); color: #fff; font-weight: 800; }
.ku-live-alert[hidden] { display: none; }
.ku-live-alert .ku-btn { background: #fff; color: #a31a11; flex: none; }
.ku-live-close { min-width: 88px; min-height: 44px; flex: none; }
.ku-live-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) var(--s4) 0; }
.ku-live-tabs[hidden] { display: none; }
.ku-live-tab { min-height: 44px; padding: 0 var(--s4); border: 0; border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); font: 800 1rem/1 var(--font-ui); cursor: pointer; }
.ku-live-tab[aria-pressed=true] { background: var(--ink); color: var(--surface); box-shadow: none; }
.ku-live-note { margin: 0; padding: var(--s2) var(--s4) var(--s4); color: var(--muted); font-size: .875rem; font-weight: 600; }
@media (max-width: 760px) {
  .live-view-dialog { width: 100vw; max-width: 100vw; margin: 0 auto auto; border-radius: 0 0 20px 20px; }
}

/* A banner that keeps an open alert in reach on the other pages (Ask, Settings). */
.global-alert { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); padding: var(--s3) var(--s4); border-radius: var(--r-button); background: var(--status-alert-bg); color: var(--status-alert); }
.global-alert[hidden] { display: none; }
.global-alert > div { flex: 1; min-width: 0; }
.global-alert strong { display: block; font-weight: 600; font-size: var(--fs-body); line-height: 1.35; }
.global-alert span { display: block; font-size: var(--fs-sub); color: var(--status-alert-sub); }
.global-alert .ku-btn { flex: none; }
body[data-view=home] .global-alert, body[data-view=home] .service-notice { display: none; }

/* ---------------------------------------------------------------------------------------------------------------- */
/* 5. The older pages in the same skin: Settings' panes, forms, switches and dialogs                                 */
/* ---------------------------------------------------------------------------------------------------------------- */
/* Buttons: the one filled button is ink, every other is the tinted grey of the app's own secondary button, a text button is a plain link. */
.primary-button, .secondary-button { border: 0; border-radius: var(--r-button); font-size: var(--fs-sub); font-weight: 600; }
.secondary-button { color: var(--ink); background: var(--fill); }
.secondary-button:hover:not(:disabled) { background: var(--fill-strong); }
.primary-button:disabled { border: 0; background: var(--fill); color: var(--muted); }
.secondary-button:disabled { border: 0; background: transparent; color: var(--muted); }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled) { opacity: .7; }
.text-button { font-size: var(--fs-sub); font-weight: 500; }
.set-row > .primary-button, .set-row > .secondary-button, .set-row .set-end > .primary-button, .set-row .set-end > .secondary-button { min-height: 36px; border-radius: 10px; }
@media (pointer: coarse) { .set-row > .primary-button, .set-row > .secondary-button, .set-row .set-end > .primary-button, .set-row .set-end > .secondary-button { min-height: 44px; } }

/* Fields: a tinted fill with rounded corners, no outline until one is focused (as the app's own fields are). */
input, select, textarea { border: 0; border-radius: 10px; background-color: var(--fill); font-size: var(--fs-body); }
input:hover:not(:focus, :disabled), select:hover:not(:focus, :disabled) { background-color: var(--fill-strong); }
input[aria-invalid=true], input[aria-invalid=true]:hover { box-shadow: inset 0 0 0 1.5px var(--red); }
input[type=checkbox], input[type=radio] { background-color: transparent; }
/* A checkbox in a dialog is at least 24px, so it is a target of its own (WCAG 2.5.8). */
.household-consent input { width: 24px; height: 24px; margin-top: 0; }
.pet-form #petName, #recapTime, #recapTimezone { background-color: var(--fill); }

/* The legacy switch is the iOS switch: 51 by 31, a white knob that settles on a spring, Kiwi green when on. */
.switch-control { padding: 0 0 0 var(--s2); }
.switch-track { position: relative; width: 51px; height: 31px; padding: 0; background: var(--switch-off); box-shadow: none; transition: background-color .25s var(--ease); }
.switch-control:hover:not(:disabled) .switch-track { background: var(--switch-off-hover); }
.switch-track::after { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; background: var(--switch-knob-off); box-shadow: 0 3px 8px #00000026, 0 3px 1px #0000000d; transition: transform .45s var(--spring); }
.switch-control[aria-checked=true] .switch-track, .switch-control[aria-checked=true]:hover:not(:disabled) .switch-track { background: var(--switch-on); }
.switch-control[aria-checked=true] .switch-track::after { transform: translateX(20px); }

/* Grouped lists, as iOS draws Settings: a small caption above, one rounded card of rows with the hairlines inset past the left edge, a footnote below. */
.set-group-title { margin: 0 0 var(--s2); padding-inline: var(--s4); font: 400 var(--fs-foot)/1.3 var(--font-ui); letter-spacing: .01em; text-transform: uppercase; color: var(--muted); }
/* Settings in Home's design (2026-11-18): a group's caption is said as Home says its sections (bold, sentence case, ink), on the cards' own left edge, and so are the sentences
   above and under a group (14px); a live camera's row shows its room. Only these lines changed how Settings is drawn. */
[data-view=settings] .set-group-title { padding-inline: 0; font: 700 var(--fs-headline)/1.3 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--ink); }
[data-view=settings] .set-group-head { padding-inline: 0; }
[data-view=settings] :is(.set-foot, .set-group-sub) { padding-inline: 0; font-size: .875rem; }
[data-view=settings] .set-group-sub { font-weight: 400; color: var(--muted); }
[data-view=settings] :is(.set-intro, .set-intro.privacy-summary) { padding-inline: 0; }
.set-list .camera-device-symbol.camera-device-shot { width: 64px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--paper); }
.camera-device-shot > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-group-head { margin: 0 0 var(--s2); padding-inline: var(--s4); }
.set-group-head .set-group-title { padding-inline: 0; }
.set-group-sub { margin: 2px 0 0; text-transform: none; }
.set-group-head .text-button { padding-inline: var(--s2); }
.set-foot { margin: var(--s2) 0 0; padding-inline: var(--s4); font-size: var(--fs-foot); }
#connectionMessage { white-space: pre-line; }
.set-list { gap: 0; border-block: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.set-list .camera-devices, .set-list .household-profiles, .set-list .family-list, .set-list .set-dl { gap: 0; background: none; }
.set-row, .set-list .camera-device, .set-list .household-profile, .set-list .family-list > li { position: relative; padding: var(--s3) var(--s4); background: none; }
/* A hairline above every row that has a row above it in the same card: inset past the left edge, as iOS draws them. */
.set-list :is(.set-row, .camera-device, .household-profile, .family-list > li) ~ :is(.set-row, .camera-device, .household-profile, .family-list > li)::before,
.set-list > :not([hidden], :empty) ~ :is(.camera-devices, .household-profiles, .family-list, .set-dl):not(:empty) > :first-child::before,
.set-list > :is(.camera-devices, .household-profiles, .family-list, .set-dl):not(:empty) ~ .set-row::before,
.set-list > :is(.camera-devices, .household-profiles, .family-list, .set-dl):not(:empty) ~ .set-more > summary::before,
.set-list > :not([hidden], :empty) ~ .set-more > summary::before { content: ""; position: absolute; top: 0; left: var(--s4); right: 0; height: .5px; background: var(--hair); pointer-events: none; }
.set-group > .set-list + .set-list { margin-top: var(--s4); }
.set-list .set-link, .set-more > summary.set-row { margin-inline: 0; padding-inline: var(--s4); border-radius: 0; }
.set-link:hover, .set-more > summary:hover { background: var(--side-hover); }
.set-more, .set-more-body { background: none; }
.set-more-body { padding: 0 var(--s4) var(--s4); }
/* A block of technical lines straight in a card (Advanced's AI): air above it, as a row has, not words against the card's edge. */
.set-list > .set-more-body { padding-top: var(--s3); padding-bottom: var(--s3); }
.set-danger-zone .set-row { padding-top: var(--s3); }
.set-chevron { color: var(--chev); }
/* A row's words and its button share the row: a long button label wraps rather than push the page sideways. */
.set-row .set-end { flex: 0 1 auto; min-width: 0; }
.set-row .set-end .text-button { white-space: normal; text-align: right; }
.set-danger { font-size: var(--fs-body); font-weight: 400; }
.set-label { font-size: var(--fs-body); font-weight: 400; letter-spacing: 0; }
.set-sub, .set-sub.dependency-help { font-size: var(--fs-foot); }
.set-value { font-size: var(--fs-body); }
.set-list .camera-device h3, .set-list .household-profile h3 { font-size: var(--fs-body); font-weight: 400; }
.set-intro.privacy-summary, .set-intro { padding-inline: var(--s4); }
.page-description { padding-inline: 0; }

/* The older dialogs (add a camera, add a person, confirmations) slide up from the bottom of a phone as sheets do, with a grabber and
   the rounded top corners; on a computer they stay centred panels. */
dialog { --sheet-ground: var(--surface); --sheet-card: var(--card); --sheet-hair: var(--hair); border-radius: 20px; box-shadow: var(--shadow-float); }
/* In the dark a sheet is one step lighter than the canvas, as on iOS (the elevated background), and a note card on it one step lighter again.
   A bar that sticks to a sheet's foot takes --sheet-ground; a group of rows takes --sheet-card and its rules --sheet-hair. */
:root[data-theme=dark] :is(.ku-sheet, dialog:not(.ku-lightbox, .live-view-dialog)) { --sheet-ground: var(--card); --sheet-card: var(--paper); --sheet-hair: var(--card-line); background: var(--card); }
@media (max-width: 767px) {
  dialog[open]:is(.camera-dialog, .camera-chooser-dialog, .family-confirm, .delivery-dialog, .household-profile-dialog, .moment-preferences, .household-welcome, .welcome-dialog, .handover-dialog) {
    inset: auto 0 0 0; width: 100%; max-width: 640px; margin: 0 auto; padding-top: var(--s7); padding-bottom: calc(var(--s7) + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; box-shadow: none; }
  dialog[open]:is(.camera-dialog, .camera-chooser-dialog, .family-confirm, .delivery-dialog, .household-profile-dialog, .moment-preferences, .household-welcome, .welcome-dialog, .handover-dialog)::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
}
/* Meet Kiwi's Skip sits at the sheet's top corner, so its screens start below it. */
@media (max-width: 767px) {
  dialog[open].welcome-dialog { padding-top: 52px; --sheet-bottom: calc(var(--s7) + env(safe-area-inset-bottom, 0px)); }
  /* Setup's sheets share one gutter, the page's 20px. */
  dialog[open]:is(.welcome-dialog, .camera-dialog, .household-welcome, .handover-dialog, #planDialog) { padding-inline: var(--s5); --dialog-pad: var(--s5); }
  dialog[open].handover-dialog { padding-bottom: 0; }
  /* A sheet's padding as the title bar and the foot need to know it; the grabber of one that scrolls belongs to its title bar. */
  dialog[open]:is(.camera-dialog, .household-welcome, .handover-dialog) { --sheet-top: var(--s7); --sheet-bottom: calc(var(--s7) + env(safe-area-inset-bottom, 0px)); }
  /* The camera sheet's foot is the privacy line, so it keeps less below it: its pinned Connect leaves the room question in view. */
  dialog[open].camera-dialog { --sheet-bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--sheet-bottom); }
  dialog[open].handover-dialog { --sheet-bottom: 0px; }
  dialog[open]:is(.household-welcome, .handover-dialog)::before { content: none; }
  :is(.household-welcome, .handover-dialog) .dialog-header::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
}
/* In a sheet the form's Save sits at the end of the form, not over it: a sticky bar would cover the last field (the consent) until the sheet is scrolled. */
@media (max-width: 767px) { #householdProfileForm .form-save { position: static; padding-top: var(--s3); } }
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  dialog[open]:is(.camera-dialog, .camera-chooser-dialog, .family-confirm, .delivery-dialog, .household-profile-dialog, .moment-preferences, .household-welcome, .welcome-dialog, .handover-dialog) { animation: ku-sheet-up .45s var(--ease) both; }
}

/* What moves (all of it only when the person has not asked for less motion), in the iOS manner, short and with a little spring:
   a new sentence on the status card, a card's page opening and a deeper answer rise in over about a quarter of a second;
   a sheet slides up (a panel eases in on a computer) and the page behind it dims;
   the tiles step back and the faces and marks soften over .3 s when an alert opens (a transition, not a rebuild);
   a switch's knob, a segmented control's thumb, a press on a tile or button settle on a spring;
   the navigation bar turns translucent and its small title fades in as the large title scrolls away;
   a camera snapshot in the strip fades to its new picture over .6 s once it has loaded, about every 20 seconds. */
@keyframes ku-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ku-enter, .ku-card.is-entering { animation: ku-rise .3s var(--ease) backwards; /* never `both`: a finished transform would make the page a containing block and carry the fixed back button down with it */ }
}
/* Reduced motion: nothing here moves. */
@media (prefers-reduced-motion: reduce) {
  .ku-btn, .ku-tile, .ku-tile .ku-avatar, .ku-tile .ku-mark, .ku-tile :is(.ku-tile-name, .ku-tile-line, .ku-tag), .ku-tl-more .icon, .ku-switch, .ku-switch::after, .ku-media-play, .ku-add-toggle .icon, .ku-cam > img, .ku-nav-item, .ku-chip, .ku-seg-item,
  .ku-navbar, .ku-navbar-title, .ku-add-option, button.ku-tl-item, .ask-send, .ku-link, .ku-back, .switch-track, .switch-track::after { transition: none !important; }
  .ku-media:hover .ku-media-play { transform: none; }
  .ku-enter, .ku-card.is-entering, .ku-sheet[open], .ku-sheet[open]::backdrop { animation: none !important; }
  .ku-btn:active:not(:disabled), .ku-tile:active, .ku-add-option:active, button.ku-tl-item:active, .ask-send:active:not(:disabled) { transform: none; }
}

/* The strip's label is a footnote, not a section title. */

/* ---------------------------------------------------------------------------------------------------------------- */
/* Activity: three tabs (Questions, What happened, Days) and two pages (a day, the people & pets seen).                 */
/* The rows are Home's quiet list (a picture, what it was, the time); the question is Home's own block.               */
/* ---------------------------------------------------------------------------------------------------------------- */
body[data-view=activity] { --view-max: 860px; }
.activity-view .page-heading { margin-bottom: var(--s3); }
.act-tabs { margin: 0 0 var(--s5); }
.act-tabs .ku-seg-item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 0 var(--s2); white-space: normal; text-align: center; line-height: 1.15; }
.act-tabs .ku-seg-item[aria-pressed=true] { background: var(--seg-thumb); font-weight: 600; box-shadow: 0 3px 8px #0000001f, 0 3px 1px #0000000a; }
:root[data-theme=dark] .act-tabs .ku-seg-item[aria-pressed=true] { box-shadow: 0 3px 8px #00000066; }
.act-tabs .ku-seg-item:hover:not([aria-pressed=true]) { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.act-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--amber-edge); color: #1c1a16; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.act-count[hidden] { display: none; }
.act-questions { margin: 0 0 var(--s4); }
.act-questions .ku-ev { margin: 0; }
.act-questions .ku-ev-unsent { margin-top: var(--s3); }
.act-empty { display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: var(--s8) var(--s4); text-align: center; }
.act-empty[hidden] { display: none; }
.act-empty-kiwi { display: block; width: 104px; }
.act-empty p { max-width: 24em; margin: 0; font-size: var(--fs-body); line-height: 1.45; color: var(--ink); }
.act-page { display: block; }
.act-page[hidden], .act-happened[hidden], .act-days[hidden], .act-questions[hidden] { display: none; }

/* What happened: the days, each a short list of rows. */
.act-day-label { margin: var(--s6) 0 var(--s2); font: 700 var(--fs-headline)/1.3 var(--font-ui); letter-spacing: 0; color: var(--ink); }
.act-day-label:first-child { margin-top: 0; }
.act-rows { display: block; margin: 0; padding: 0; list-style: none; }
.act-rows > li { position: relative; }
.act-rows > li + li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: .5px; background: var(--hair); }
.act-row { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 64px; padding: 6px 4px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; font: inherit; }
button.act-row { cursor: pointer; }
button.act-row:hover { background: var(--surface-hover); }
.act-thumb { position: relative; flex: none; display: grid; place-items: center; width: 76px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--paper); color: var(--icon-quiet); }
.act-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act-thumb .badge-art, .act-thumb > .icon { width: 28px; height: 28px; }
.act-thumb:has(> img) .badge-art { display: none; }
.act-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.act-row-title { font: 600 var(--fs-body)/1.3 var(--font-ui); letter-spacing: -.012em; color: var(--ink); overflow-wrap: anywhere; }
.act-row-sub { font-size: var(--fs-sub); line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.act-row-text .timeline-note { font-size: var(--fs-sub); line-height: 1.35; color: var(--muted); }
.act-row-time { flex: none; align-self: center; max-width: 9em; text-align: right; font-size: .875rem; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Something that still needs an answer is plainly open: amber, or red for an alert Kiwi would send, with its own edge. */
.act-row[data-open] { background: var(--amber-pale); box-shadow: inset 3px 0 0 var(--amber-edge); border-radius: 6px 14px 14px 6px; padding-inline: var(--s3); }
.act-row[data-open][data-tone=alert] { background: var(--red-pale); box-shadow: inset 3px 0 0 var(--red-fill); }
button.act-row[data-open]:hover { background: color-mix(in srgb, var(--amber-pale) 86%, var(--ink)); }
button.act-row[data-open][data-tone=alert]:hover { background: color-mix(in srgb, var(--red-pale) 86%, var(--ink)); }
button.act-row[data-open][data-tone=person]:hover { background: color-mix(in srgb, var(--paper) 86%, var(--ink)); }
.act-row[data-open][data-tone=person] { background: var(--paper); box-shadow: inset 3px 0 0 var(--icon-quiet); }
.act-row[data-open] .act-row-sub { color: var(--ink); font-weight: 600; }
.act-rows > li:has(> [data-open])::before, .act-rows > li:has(> [data-open]) + li::before { display: none; }
.act-rows > li:has(> [data-open]) { margin-bottom: var(--s1); }
.act-row[data-gap] { min-height: 0; padding-block: var(--s3); }
.act-link-row { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s6); min-height: 56px; padding: var(--s3) var(--s4); border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); color: var(--ink); text-decoration: none; }
.act-link-row[hidden] { display: none; }
.act-link-row:hover { background: var(--surface-hover); }
.act-link-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.act-link-label { font: 600 var(--fs-body)/1.3 var(--font-ui); }
.act-link-sub { font-size: var(--fs-sub); color: var(--muted); }
.act-link-sub:empty { display: none; }
.act-link-row .icon { width: 18px; height: 18px; flex: none; color: var(--chev); }

/* Days: one card for each day. */
.act-days { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.act-day { display: flex; align-items: center; gap: var(--s3); min-width: 0; min-height: 84px; padding: var(--s2); border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); color: var(--ink); text-decoration: none; }
.act-day:hover { background: var(--surface-hover); }
.act-day[data-empty] .act-day-pic { filter: grayscale(1); opacity: .6; }
.act-day-pic { position: relative; flex: none; display: grid; place-items: center; width: 104px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--paper); color: var(--icon-quiet); }
.act-day-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act-day-pic .icon { width: 30px; height: 30px; }
.act-day-text { flex: 1; min-width: 0; display: grid; gap: 2px; align-content: center; }
.act-day-name { font: 700 var(--fs-body)/1.3 var(--font-ui); }
.act-day-line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--fs-sub); line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.recap-history-note { grid-column: 1 / -1; margin: var(--s2) 0 0; font-size: var(--fs-sub); line-height: 1.5; color: var(--muted); }
@media (min-width: 900px) { .act-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The opened day: title, photo, Kiwi's paragraph, then the moments. */
.recap-day { min-width: 0; }
.recap-day-head { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); }
.recap-day-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; }
.recap-day-icon .icon, .recap-day-icon .ku-avatar { width: 48px; height: 48px; }
.recap-day[data-empty] .recap-day-icon { filter: grayscale(1); opacity: .5; }
.recap-day-copy { display: grid; min-width: 0; gap: 2px; }
.recap-day-title { margin: 0; overflow-wrap: anywhere; }
.recap-day-date { font-size: var(--fs-sub); line-height: 1.35; color: var(--muted); }
.recap-day-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.recap-day-flags > span { padding: 1px 8px; border-radius: var(--tag-radius); background: var(--tag-gray); font-size: .875rem; line-height: 1.5; font-weight: 600; color: var(--tag-gray-ink); }
.recap-day-flags > .recap-day-warning { background: var(--amber-pale); color: var(--amber); }
.recap-day-hero { display: grid; gap: var(--s2); width: 100%; margin: 0 0 var(--s3); padding: 0; border: 0; background: none; color: var(--ink); text-align: start; cursor: pointer; }
.recap-day-hero-photo { display: block; overflow: hidden; aspect-ratio: 16 / 10; max-height: 440px; border-radius: 16px; background: var(--paper); }
.recap-day-hero-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recap-day-hero-copy { display: grid; gap: 2px; font-size: var(--fs-sub); line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.recap-day-hero-copy time { font-size: .875rem; font-variant-numeric: tabular-nums; }
.recap-day-hero:focus-visible { outline-offset: 3px; border-radius: 12px; }
.act-note { display: flex; align-items: flex-start; gap: var(--s3); margin: var(--s3) 0 var(--s2); padding: var(--s4); border-radius: 14px; background: var(--status-ok-bg); box-shadow: inset 0 0 0 1px var(--status-ok-line); }
.act-note-art { flex: none; width: 48px; }
.act-note .ku-kiwi { width: 100%; height: auto; }
.recap-day-line { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.recap-day-moments { margin-top: var(--s2); }
.recap-day-concerns { display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.recap-day-concerns .act-day-label { margin-top: 0; }
.recap-day-concern { display: flex; align-items: center; gap: var(--s3); min-width: 0; min-height: 48px; padding: var(--s3) var(--s4); border: 0; border-radius: 14px; color: var(--ink); background: var(--amber-pale); box-shadow: inset 3px 0 0 var(--amber-edge); text-align: left; font: inherit; }
button.recap-day-concern { cursor: pointer; }
button.recap-day-concern:hover { background: color-mix(in srgb, var(--amber-pale) 88%, var(--ink)); }
.recap-day-concern-copy { display: grid; flex: 1; min-width: 0; gap: 2px; font-size: var(--fs-body); line-height: 1.4; overflow-wrap: anywhere; }
.recap-day-concern-state, .recap-day-unavailable { color: var(--muted); font-size: var(--fs-sub); }
.recap-day-concern > .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.recap-day-unavailable { margin: 0; }
.recap-day-ribbon { max-width: 560px; margin-top: var(--s5); }
.recap-day-coverage { display: grid; gap: 6px; margin-top: var(--s6); padding-top: var(--s4); border-top: .5px solid var(--hair); }
.recap-day-coverage p, .recap-day-coverage-line { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.recap-day-limit { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.recap-day-how > summary { display: flex; align-items: center; width: fit-content; min-height: 44px; color: var(--muted); font-size: .875rem; font-weight: 600; cursor: pointer; }
.recap-day-how-text { display: grid; gap: 6px; margin-top: 2px; }
.recap-day-period { color: var(--muted); font-size: .875rem; }
.act-page > .ku-large-title { margin-bottom: var(--s4); }
@media (prefers-reduced-motion: no-preference) {
  button.act-row, .act-day, .act-link-row { transition: background-color .2s var(--ease); }
  .act-page:not([hidden]), .act-questions:not([hidden]) > * { animation: ku-rise .3s var(--ease) backwards; }
}

/* Settings › Notifications › Anyone unfamiliar: the words on top, the On / Never choice under them (a row beside the words leaves them a sliver on a phone). */
#strangerSetting .watch-setting--stranger { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s3); align-items: start; }
#strangerSetting .set-text { min-width: 0; }
#strangerSetting .ku-seg { width: 100%; max-width: 360px; justify-self: start; }

/* ---- A card's page in Home's design (2026-11-18): the head is a band like Home's (the face where Kiwi stands, who it is in one small line, the card's one line large, the nearby
   actions under it), Kiwi's note is the small figure beside a white note, the day is drawn as Home draws Today, and on a computer what Kiwi does, who hears first and the rooms sit
   beside the day. The parts keep their names (.ku-card-head, .ku-prop, .ku-tag--full, .ku-note, .ku-foot, .ku-columns); only how they are drawn changed, all of it in this block. */
.ku-pane-detail { max-width: 980px; }
.ku-card-head { --b-bg: var(--band-info-bg); --b-ink: var(--band-info-ink); --b-sub: var(--band-info-sub);
  display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; column-gap: var(--s4); row-gap: var(--s3); margin-bottom: 0; padding: var(--s4); border-radius: 24px; background: var(--b-bg); color: var(--b-ink); box-shadow: inset 0 0 0 1px var(--card-line); }
.ku-card-head[data-tone=calm] { --b-bg: var(--band-calm-bg); --b-ink: var(--band-calm-ink); --b-sub: var(--band-calm-sub); box-shadow: none; }
.ku-card-head[data-tone=sleep] { --b-bg: var(--band-sleep-bg); --b-ink: var(--band-sleep-ink); --b-sub: var(--band-sleep-sub); box-shadow: none; }
.ku-card-head[data-tone=warn] { --b-bg: var(--band-warn-bg); --b-ink: var(--band-warn-ink); --b-sub: var(--band-warn-sub); box-shadow: inset 0 0 0 2px var(--band-warn-edge); }
.ku-card-head[data-tone=alarm] { --b-bg: var(--band-alarm-bg); --b-ink: var(--band-alarm-ink); --b-sub: var(--band-alarm-sub); box-shadow: none; }
.ku-card-head .ku-avatar[data-size="lg"] { --size: 76px; box-shadow: 0 0 0 3px color-mix(in srgb, #fff 70%, transparent); }
.ku-card-who { min-width: 0; }
/* Who it is, in one small line: the name, then the property rows said as the home wrote them ("Mom · Mother · lives alone · since Oct 11"). */
.ku-card-head h1 { display: inline; margin: 0; font: 700 var(--fs-sub)/1.3 var(--font-ui); letter-spacing: 0; color: var(--b-sub); }
.ku-card-head p { display: inline; margin: 0 0 0 .35em; font: 700 var(--fs-sub)/1.3 var(--font-ui); color: var(--b-sub); }
.ku-card-head .ku-props { display: inline; margin: 0; }
.ku-card-head .ku-prop { display: inline; min-height: 0; font: 700 var(--fs-sub)/1.3 var(--font-ui); color: var(--b-sub); }
.ku-card-head .ku-prop::before { content: " · "; white-space: pre; }
.ku-card-head .ku-prop dt { display: inline; width: auto; color: inherit; text-transform: lowercase; }
.ku-card-head .ku-prop dt .icon { display: none; }
.ku-card-head .ku-prop:first-child dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ku-card-head .ku-prop dd { display: inline; color: inherit; }
.ku-card-head .ku-prop dt::after { content: " "; white-space: pre; }
/* The card's one line, large, as the band's sentence. With no line of its own (the note already says it) the name is the large one. */
.ku-card-head .ku-tag--full { display: block; margin: 2px 0 0; padding: 0; border-radius: 0; background: none; color: var(--b-ink); font: 800 var(--fs-title2)/1.15 var(--font-ui); letter-spacing: -.012em; text-wrap: balance; }
.ku-card-head .ku-tag--full .icon { display: none; }
.ku-card-who:not(:has(.ku-tag)) h1 { display: block; margin-bottom: 2px; font: 800 var(--fs-title2)/1.15 var(--font-ui); letter-spacing: -.012em; color: var(--b-ink); }
.ku-card-who:not(:has(.ku-tag)) .ku-prop:first-child::before { content: none; }
.ku-card-who:not(:has(.ku-tag)) p { margin-left: 0; }
.ku-card-head .ku-foot { grid-column: 1 / -1; margin-top: 0; }
.ku-card-head .ku-chip { background: color-mix(in srgb, var(--b-ink) 10%, transparent); color: var(--b-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--b-ink) 40%, transparent); font-weight: 600; }
.ku-card-head .ku-chip:hover { background: color-mix(in srgb, var(--b-ink) 18%, transparent); }
.ku-card-head .ku-chip--primary { background: var(--button-primary); color: var(--on-button-primary); box-shadow: none; }
.ku-card-head .ku-chip--primary:hover { background: var(--button-primary-hover); }
.ku-card-head[data-tone=alarm] .ku-chip--primary { background: #fff; color: #8f150e; }
@media (min-width: 1024px) {
  .ku-card-head { grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--s6); padding: var(--s5) var(--s7); }
  .ku-card-head .ku-avatar[data-size="lg"] { --size: 112px; }
  .ku-card-head .ku-tag--full, .ku-card-who:not(:has(.ku-tag)) h1 { font-size: 2rem; line-height: 1.12; }
  .ku-card-head h1, .ku-card-head p, .ku-card-head .ku-prop { font-size: 1rem; }
  .ku-card-head .ku-foot { grid-column: 2; }
}
/* Kiwi's note: the small figure, then its words on a white note (amber or red when the note says so). */
.ku-says { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: var(--s3); margin: var(--s4) 0 0; }
.ku-says > .ku-kiwi { width: 44px; margin-top: 2px; }
.ku-says > .ku-note { margin: 0; padding: 14px var(--s4); border-radius: 4px 18px 18px 18px; }
.ku-says > .ku-note[data-state=ok], .ku-says > .ku-note[data-state=unknown] { background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
/* The day and what is beside it. */
.ku-card-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.ku-card .ku-today { margin: var(--s6) 0 0; }
.ku-card .ku-day-note { margin: var(--s2) 4px 0; }
.ku-day-empty { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: var(--s4); padding: var(--s4); border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.ku-day-empty p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .ku-card-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--s7); align-items: start; }
  .ku-card-cols > .ku-columns { grid-template-columns: minmax(0, 1fr); gap: var(--s5); margin-top: var(--s6); }
  .ku-card-cols > .ku-columns > .ku-section:last-child:nth-child(odd) { grid-column: auto; }
}
/* A room's camera picture at the start of its row. */
.ku-row-pic { flex: none; width: 64px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--paper); }
.ku-row:has(.ku-row-pic) { justify-content: flex-start; }
.ku-row:has(.ku-row-pic) .ku-row-text { flex: 1; }

/* A computer's Home, one step larger (Nov 19, 2026). The page is the phone's, laid out in two columns on a wide screen, and at the phone's sizes it read small and sparse
   there: a 22 px alert title in a 586 px card, 16 px rows. Only the sizes change here, at 1024 px and wider; the phone's layout, what is shown and its order are the same. */
@media (min-width: 1024px) {
  .ku-ev :is(.ku-fine, .ku-alert-next, .ku-onit), .ku-home .ku-link { font-size: 1.0625rem; }
  .ku-home .ku-label, .ku-strip-wrap .ku-label { font-size: 1.25rem; }
  .ku-today .ku-tl-what { font-size: 1.0625rem; }
  .ku-today .ku-tl-time { font-size: .9375rem; }
  .ku-face-name { font-size: 1.0625rem; }
  .ku-face-line { font-size: .9375rem; }
  .ku-tile-cap b { font-size: 1rem; }
  .ku-tile-live { font-size: .875rem; }
}
/* The alert card's title, Kiwi and the faces' rings grow only from 1280 px: from 1024 to 1279 px the middle column is about a phone's width, and there a larger title wraps
   onto more lines and pushes the card's buttons and a camera note below the first screen, and larger rings fit one face fewer to a row. */
@media (min-width: 1280px) {
  .ku-ev--emergency .ku-ev-title { font-size: 1.875rem; line-height: 1.15; }
  .ku-ev--emergency .ku-ev-meta { font-size: 1.125rem; }
  .ku-ev-head .ku-kiwi { width: 68px; }
  .ku-faces { --face: 88px; --face-col: 128px; }
}
