:root {
  /* aibo's palette (us.aibo.com): the classic aibo pink, blush tint, warm grey. Same values as apple/Shared/Brand.swift. */
  --bg: #fef7f8;
  --card: #ffffff;
  --ink: #3a3532;
  --muted: #6f6762;
  --line: #f3dde1;
  --field: #857a75;      /* a text field's edge: 3:1 on --card and --bg (WCAG 1.4.11), as the /assist console's */
  --pink: #ea5c6f;       /* paws and art only: too light for text */
  --accent: #c2364d;     /* text and icons, 5.1:1 on --bg */
  --accent-fill: #c2364d; /* behind white text, 5.4:1 */
  --accent-ink: #ffffff;
  --soft: #fde9ec;
  --danger: #b3261e;
  --ok: #2e8b57;
  --radius: 18px;
  --tabs-h: 4rem;        /* 64 px; in rem so the bar grows with the text (ROADMAP #88: at 200 % its labels fell off the screen) */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1517;
    --card: #2a2023;
    --ink: #f7edef;
    --muted: #b9a9ae;
    --line: #3d2f33;
    --field: #a8979c;
    --accent: #f7899a;
    --soft: #3d262c;
    --danger: #ff7a6b;
    --ok: #6fcf97;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 1rem/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) 0 calc(var(--tabs-h) + env(safe-area-inset-bottom));
}
/* Japanese (public/i18n.js sets <html lang="ja">): Japanese system fonts before any Chinese fallback. */
body:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
/* Japanese can break between any two characters: keep button labels (連携を解除) and short links (サインイン) whole,
   unless one is too long for its line (写真の説明なしで投稿 at 320 CSS px): then it breaks rather than scrolling. */
button:lang(ja), .btn:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
a { color: var(--accent); }
/* Keyboard focus: a clear ring on everything focusable (WCAG 2.4.7 and 2.4.11), in the accent colour, 3:1 or more on
   every background, and never hidden behind the tab bar (scroll-padding). */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
html { scroll-padding-bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); }
#view:focus { outline: none; }
/* Skip link: hidden until focused. */
.skip { position: absolute; left: 12px; top: -100px; z-index: 50; padding: 10px 16px; border-radius: 999px;
  background: var(--accent-fill); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }
/* `hidden` hides, whatever the element's own display rule (button and .btn are inline-flex, which beat the browser's
   [hidden] rule): Sign out everywhere else, Load more. */
[hidden] { display: none !important; }
/* For screen readers only. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
img { max-width: 100%; display: block; }
h1 { font-size: 1.6rem; margin: .2rem 0 .8rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
p { margin: .4rem 0; }
small, .muted { color: var(--muted); }

#view { max-width: 640px; margin: 0 auto; padding: 12px 16px 24px; }

/* bottom tabs: on a solid card (ROADMAP #61). It was 92% card over a blur, so the labels' contrast depended on what
   scrolled under them (the selected tab's accent fell to 4.49:1 over a dark photo). */
#tabs {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex; justify-content: space-around;
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card);
  border-top: 1px solid var(--line);
}
#tabs[hidden] { display: none; }
#tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
  /* ROADMAP #88: a label wider than its quarter of the bar (My aibos at 200 % on 320 px) wraps inside its tab instead
     of running into the next one. */
  min-width: 0; text-align: center; line-height: 1.2; overflow-wrap: anywhere;
}
#tabs a span { font-size: 1.3rem; filter: grayscale(1); opacity: .7; }
#tabs a span.paw { width: 1.3rem; height: 1.3rem; filter: none; }
#tabs a.on { color: var(--accent); }
#tabs a.on span { filter: none; opacity: 1; }

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.grow { flex: 1; min-width: 0; }
/* Small layout helpers instead of style="" attributes, which the site's CSP (public/_headers: style-src 'self') blocks. */
.center { text-align: center; }
.row.center { justify-content: center; }
.row.wrap { flex-wrap: wrap; }
/* ROADMAP #88: Settings' cards for a Sony link (its kind, then Manage and Unlink) and a blocked account (the name, then
   Unblock) were wider than a 320 px screen with the text at 200 %: their parts wrap onto the next line instead. */
.card.row.between, .card.row.between > .row { flex-wrap: wrap; }
.mt { margin-top: 8px; }
.gap { height: 12px; }
/* ROADMAP #20: the bot check's widget, shown only when Cloudflare asks the person to tick it. */
.bot-check:empty { display: none; }
.bot-check { margin: 0 0 12px; }
a.card { text-decoration: none; color: inherit; }
.card.warn { border-color: var(--danger); }
hr { border: 0; border-top: 1px solid var(--line); width: 100%; }

button, .btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--accent-fill); color: var(--accent-ink); text-decoration: none;
}
button.ghost, .btn.ghost { background: var(--soft); color: var(--ink); }
button.plain { background: none; color: var(--muted); padding: 0 8px; min-height: 36px; }
button.danger { background: none; color: var(--danger); border: 1px solid currentColor; }
button:disabled { opacity: .5; cursor: default; }
button.wide { width: 100%; }
label.btn { margin: 0; font-weight: 600; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
/* A field's edge is --field, 3:1 on the card (WCAG 1.4.11): on a card the same colour as the field, the edge is all
   that shows where to type (it was --line, 1.3:1; ROADMAP #61). */
input[type=text], input[type=email], input[type=password], input[type=search], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--field); border-radius: 12px; padding: 12px; outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
/* The photo picker's real file input is visually hidden (not display:none) so the keyboard can reach it; its label shows the focus. */
.btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 90px; resize: vertical; }
textarea.short { min-height: 70px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
/* A checkbox is a 24 px target of its own (WCAG 2.5.8, as the /assist console's), never smaller with smaller text, and
   bigger with bigger text; its words wrap beside it at 320 px (ROADMAP #61 follow-up). It was the browser's 13 px. */
.check input[type=checkbox] { flex: none; width: max(24px, 1.5rem); height: max(24px, 1.5rem); margin: 0; }
.check > span { flex: 1; min-width: 0; padding-top: 2px; }

.seg { display: flex; background: var(--soft); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg a { flex: 1; text-align: center; padding: 8px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }

/* avatars */
.av {
  width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--soft); display: grid; place-items: center; font-size: 1.4rem;
}
.av.lg { width: 88px; height: 88px; font-size: 2.6rem; }

/* posts */
.post .who { font-weight: 700; color: var(--ink); text-decoration: none; }
.post .meta { font-size: .82rem; color: var(--muted); }
.post .body { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post.auto .body { font-size: 1.05rem; }
.post .photo { margin: 10px -14px 0; width: calc(100% + 28px); max-width: none; max-height: 560px; object-fit: cover; }
.post .acts { display: flex; gap: 4px; margin: 8px -8px -6px; }
.post .acts button { background: none; color: var(--muted); min-height: 38px; padding: 0 10px; font-weight: 600; }
.post .acts button.on { color: var(--accent); }
/* a photo's description (ROADMAP #38): the composer's field and the edit sheet */
.alt-field { margin-top: 10px; }
.alt-field label { margin-top: 0; }
.hint { color: var(--muted); font-size: .85rem; margin: 4px 0; }
.nudge { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: .92rem; }
.preview { display: block; width: 100%; max-height: 240px; object-fit: contain; border-radius: 12px; background: var(--soft); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }

/* profile */
.profile { text-align: center; }
.profile .av { margin: 0 auto 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.chip { font-size: .85rem; padding: 6px 10px; border-radius: 999px; background: var(--soft); }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }

/* sheet (bottom modal) */
#sheet { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .4); display: flex; align-items: flex-end; justify-content: center; }
#sheet[hidden] { display: none; }
#sheet .panel {
  width: 100%; max-width: 640px; max-height: 85vh; overflow: auto;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.menu button { width: 100%; justify-content: flex-start; background: var(--card); color: var(--ink); border-radius: 12px; margin-bottom: 8px; }
.menu button.bad { color: var(--danger); }

/* Settings › Where you're signed in: a list of cards (app.js gives the ul role=list). The words keep 11rem before the
   Sign out button wraps under them (narrow phones, large text). */
.sessions-box { margin-bottom: 14px; }
.sessions { list-style: none; margin: 0; padding: 0; }
.session { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.session .grow { min-width: min(11rem, 100%); } /* ROADMAP #88: 11rem is wider than the screen at 200 % */
.session strong { display: block; }
.live:empty { margin: 0; }
/* Settings › People who help me (ROADMAP #43): a card per helper with the two roles as radios (each row 44 px, its
   hint under it), then what helpers did, as a list of sentences. */
.helpers, .activity { list-style: none; margin: 0; padding: 0; }
.helper h3 { margin: 0; font-size: 1rem; }
.helper fieldset { border: 0; margin: 10px 0 4px; padding: 0; min-width: 0; }
.helper legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 2px; }
.helper .role { min-height: 44px; align-items: center; margin: 0; font-size: 1rem; }
.helper .role input { margin: 0; width: 20px; height: 20px; flex: none; }
.helper .role + .hint { margin: -6px 0 6px 28px; }
.helper > .err:empty { margin: 0; }
.activity li { padding: 10px 0; border-top: 1px solid var(--line); }
.activity li:first-child { border-top: 0; }
.activity p { margin: 0 0 2px; }
.sessions-box > .err:empty { min-height: 0; margin: 0; }
/* A sign-in waiting for approval (ROADMAP #32): a 2 px accent border (its title says it in words too), the words across
   the card, then big Approve and Deny buttons (48 px), side by side until the card is too narrow, then one per line.
   Approve has a border in --accent as well, so the button's edge is 3:1 on the card in dark mode, where its fill isn't. */
.session.pending, .notice { border: 2px solid var(--accent); }
.session.pending .grow { flex-basis: 100%; }
.session .hint { margin-top: 6px; }
.pending-acts { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.pending-acts button { flex: 1 1 7rem; min-height: 48px; font-size: 1.05rem; }
.pending-acts .approve { border: 2px solid var(--accent); }
.pending-acts .deny { border-width: 2px; }
.pending-many { border-left: 4px solid var(--accent); padding: 2px 0 2px 12px; margin: 0 0 12px; }
.notice h2 { margin-top: 0; }
/* Settings › Care Circles (ROADMAP #49): a card per circle you own, with who's asking to join, each with the same big
   Approve and Decline buttons as a sign-in waiting (.pending-acts); and a card per circle you wait to join, with the
   accent border a waiting sign-in has (its heading says it in words too). */
.care-box { margin-bottom: 14px; }
.care-circles, .care-requests { list-style: none; margin: 0; padding: 0; }
.care-circle h3 { margin: 0 0 6px; font-size: 1rem; }
.care-circle.waiting { border: 2px solid var(--accent); }
.care-request { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.care-request .grow { flex-basis: 100%; }
.care-request strong { display: block; }
.care-box > .err:empty { min-height: 0; margin: 0; }
/* Settings › Accessibility (ROADMAP #65): a card per group, "On this website and in the app" and "In the Pawprint
   app", each setting a checkbox with its name (.check), what it does under it, and its error once there is one. */
.a11y-box { margin-bottom: 14px; }
.a11y-box h3 { margin: 14px 0 6px; font-size: 1rem; }
.prefs { list-style: none; padding: 4px 14px; }
.pref { padding: 10px 0; border-top: 1px solid var(--line); }
.pref:first-child { border-top: 0; }
.pref .check { margin: 0; font-size: 1rem; }
.pref .hint { margin: 4px 0 0 calc(max(24px, 1.5rem) + 8px); }
.pref .err:empty { min-height: 0; margin: 0; }
.pref .err { margin: 4px 0 0 calc(max(24px, 1.5rem) + 8px); }
/* While a change saves the box is aria-disabled, not disabled (focus stays on it), and looks as a disabled one. */
.pref input[aria-disabled=true] { opacity: .5; }

/* Mochi's day and Mochi's week (ROADMAP #74, app.js storyPage). The profile's links; on the pages, the way back, the
   day or week (a heading), Previous and Next side by side while both fit on one line each, else one under the other
   (each as wide as its words first, so a label never breaks), and a card per part. ROADMAP #93: each in a slot, where
   at the first or last day (or week) a sentence stands instead of the button, at least as tall, in the page's text
   (not dimmed: it's to be read), with a dashed edge so it doesn't look like a button. */
.story-links { margin-top: 10px; }
.back { margin: 0 0 6px; }
.back a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; }
.story-when { margin: 0 0 8px; font-size: 1.05rem; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pager button { flex: 1 1 auto; }
.pager button[aria-disabled=true] { opacity: .5; cursor: default; }
.pager-slot { flex: 1 1 auto; display: flex; min-width: 0; }
.pager-end { flex: 1 1 auto; margin: 0; min-height: 44px; padding: 8px 12px; display: flex; align-items: center; justify-content: center;
  text-align: center; border: 1px dashed var(--field); border-radius: 12px; overflow-wrap: anywhere; }
html.bigger-controls .pager-end { min-height: 52px; font-size: 1.1rem; }
/* Mochi's badges (ROADMAP #93): a count's words, then its bar for the eye (aria-hidden; the words say it). In rem, so it
   grows with the text; in forced colours, the system's own colours. */
.badge-progress { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.badge-bar { display: block; width: 100%; max-width: 20rem; height: .6rem; margin-top: 6px; border: 1px solid var(--field); border-radius: 999px;
  background: var(--soft); overflow: hidden; -webkit-appearance: none; appearance: none; }
.badge-bar::-webkit-progress-bar { background: var(--soft); }
.badge-bar::-webkit-progress-value { background: var(--accent); }
.badge-bar::-moz-progress-bar { background: var(--accent); }
@media (forced-colors: active) {
  .badge-bar { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .badge-bar::-webkit-progress-bar { background: Canvas; }
  .badge-bar::-webkit-progress-value { background: Highlight; }
  .badge-bar::-moz-progress-bar { background: Highlight; }
}
.story-part h2 { margin: 0 0 8px; }
.story-lines, .story-list, .segments, .day-photos { list-style: none; margin: 0; padding: 0; }
.story-lines li, .story-list li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.story-lines li:first-child, .story-list li:first-child { border-top: 0; }
.story-list .when, .story-lines .detail { display: block; }
.story-list .when { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.story-lines .line { display: block; font-weight: 600; }
.week-intro .headline { font-size: 1.1rem; font-weight: 600; margin: 0; }
.week-was .line { font-size: 1.35rem; font-weight: 800; }
/* The day's 24 hours for the eye (aria-hidden: the list under it says the same in words), a quarter hour a cell, in
   the apps' colours (iOS DayPalette); kept in forced colours, where it would otherwise vanish. */
.ribbon { margin: 0 0 10px; forced-color-adjust: none; }
.ribbon .bar { display: grid; grid-template-columns: repeat(96, minmax(0, 1fr)); height: 28px; border-radius: 8px; overflow: hidden; background: var(--soft); border: 1px solid var(--field); }
.ribbon .hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4px; color: var(--muted); font-size: .78rem; }
.segments li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.segments li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.dot { flex: none; width: .8rem; height: .8rem; border-radius: 50%; border: 1px solid var(--field); forced-color-adjust: none; }
.st-sleep { background: #5b4b8a; }
.st-rest { background: #9c8ac9; }
.st-awake { background: #e8a33b; }
.st-play { background: var(--accent); }
.st-charging { background: #15803d; }
.st-offline { background: var(--line); }
.st-none { background: transparent; }
@media (prefers-color-scheme: dark) {
  .st-sleep { background: #8e7cc3; }
  .st-rest { background: #6a5c99; }
  .st-awake { background: #f0b354; }
  .st-charging { background: #4ade80; }
}
.day-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.day-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--soft); }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 30; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem;
}
#toast[hidden] { display: none; }

.hero { text-align: center; padding: 28px 0 8px; }
.hero .logo { font-size: 3.4rem; color: var(--pink); }
/* aibo's paw (public/paw.svg, from scripts/brand/paw.py), drawn in the current text colour */
.paw { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.15em; background: currentColor;
  -webkit-mask: url(/paw.svg) center / contain no-repeat; mask: url(/paw.svg) center / contain no-repeat; }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
/* ROADMAP #74b: the error page's heading in the page's ink (the reason under it stays muted) */
.page-error h1 { color: var(--ink); overflow-wrap: anywhere; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; background: var(--soft); padding: 8px 10px; border-radius: 10px; overflow-wrap: anywhere; user-select: all; }
/* ROADMAP #33: the voice events code and endpoint (app.js codeField): larger and spaced, to read and type by hand */
.code-field .code { font-size: 1rem; letter-spacing: .04em; line-height: 1.6; }
.steps { margin: 0; padding-left: 1.4em; }
.steps li + li { margin-top: 6px; }
.voice-again { color: var(--danger); font-weight: 600; }
.err { color: var(--danger); font-size: .9rem; min-height: 1.2em; }
/* Reset your password (#/reset, app.js views.reset), Create account (#/welcome, ROADMAP #60a) and Sign in after a reset
   (app.js codeFormKit). A field's error sits between its hint and the field (as in the /assist console) and takes no
   room until there is one; an invalid field has the danger edge as well as its words (6:1 or more on the card), and
   the terms box a danger ring. What the Worker answered is a soft note, which also takes no room empty. */
.code-form h2 { margin-top: 0; }
.code-form .err:empty { min-height: 0; margin: 0; }
.code-form input[aria-invalid=true] { border-color: var(--danger); }
.code-form input[type=checkbox][aria-invalid=true] { box-shadow: 0 0 0 2px var(--danger); }
/* While a request runs the button is aria-disabled, not disabled (focus stays on it), and looks as a disabled one. */
.code-form button[aria-disabled=true] { opacity: .5; cursor: default; }
.note { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--ink); overflow-wrap: anywhere; }
.note:empty { margin: 0; padding: 0; }
form > .note:first-child { margin: 0 0 4px; }

/* Motion off: the system's reduced motion, or the account's Simplify motion (ROADMAP #65). app.js keeps
   .simplify-motion on <html> while either asks for it (prefers-reduced-motion through matchMedia, live, signed in or
   not), as the apps do (Simplify motion || Reduce Motion): one rule for both. Nothing here animates on purpose, but
   browser smooth scrolling and any transition stop too. */
html.simplify-motion, html.simplify-motion *, html.simplify-motion *::before, html.simplify-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
/* Bigger controls: the account's bigger_controls (ROADMAP #65; app.js puts .bigger-controls on <html>), as the apps'
   setting (iOS's large controls, Android's 64 dp targets): every button 52 px tall or more with its words 1.2×, tabs,
   links that stand alone in a list or row and form fields bigger too. Text in paragraphs stays as it is. Rows wrap
   rather than scroll sideways at 320 px. */
html.bigger-controls { --tabs-h: 5rem; }
html.bigger-controls button, html.bigger-controls .btn { min-height: 52px; padding: 0 20px; font-size: 1.2rem; }
html.bigger-controls button.plain { min-width: 48px; min-height: 48px; padding: 0 10px; }
html.bigger-controls .post .acts button { min-height: 48px; font-size: 1.1rem; }
html.bigger-controls .pending-acts button, html.bigger-controls .menu button { min-height: 56px; font-size: 1.2rem; }
html.bigger-controls #tabs a { font-size: .9rem; }
html.bigger-controls #tabs a span { font-size: 1.7rem; }
html.bigger-controls #tabs a span.paw { width: 1.7rem; height: 1.7rem; }
html.bigger-controls .post .who, html.bigger-controls .row > a:not(.btn):not(.card), html.bigger-controls .empty a {
  display: inline-flex; align-items: center; min-height: 48px; font-size: 1.1rem;
}
html.bigger-controls .row { flex-wrap: wrap; }
html.bigger-controls label { font-size: 1.05rem; }
html.bigger-controls input[type=text], html.bigger-controls input[type=email], html.bigger-controls input[type=password], html.bigger-controls input[type=search], html.bigger-controls textarea {
  font-size: 1.2rem; padding: 14px;
}
html.bigger-controls .check { font-size: 1.15rem; }
html.bigger-controls .check input[type=checkbox] { width: max(32px, 2rem); height: max(32px, 2rem); }
html.bigger-controls .check > span { padding-top: 3px; }
html.bigger-controls .pref .hint, html.bigger-controls .pref .err { margin-left: calc(max(32px, 2rem) + 8px); }
html.bigger-controls .helper .role { min-height: 52px; }
html.bigger-controls .helper .role input { width: 28px; height: 28px; }
html.bigger-controls .helper .role + .hint { margin-left: 36px; }
html.bigger-controls .back a { min-height: 48px; font-size: 1.1rem; }
/* More contrast (macOS/iOS Increase Contrast, Windows contrast themes): muted text at full ink, firmer borders, the
   tab icons in full colour. */
@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --line: var(--ink); --field: var(--ink); }
  #tabs a span { opacity: 1; filter: none; }
}
/* Windows High Contrast / forced colours: keep buttons and the focus ring visible. */
@media (forced-colors: active) {
  button, .btn { border: 1px solid ButtonText; }
  /* Approve and Deny keep their 2 px edge, in the system's button colour. */
  .pending-acts button.approve, .pending-acts button.deny { border: 2px solid ButtonText; }
  :focus-visible { outline-color: Highlight; }
  /* aibo's paw is a mask over its background colour, which forced colours would repaint as the page's background:
     an empty Paw button (ROADMAP #61). It keeps the text colour the system gives its button or link. */
  .paw { forced-color-adjust: none; background-color: currentColor; }
}

