/* Hanken Grotesk, self-hosted: the page's CSP is default-src 'none', so a font from Google's CDN
   is blocked outright. Variable 400-800 in one file; the latin-ext subset only loads if a glyph
   needs it, and anything outside Latin (Devanagari in a reminder body) falls through to system-ui. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/my-zo/assets/hanken-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/my-zo/assets/hanken-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  font:
    15px / 1.5 "Hanken Grotesk",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--ground);
  --ground: #f2f6f2;
  --surface: #ffffff;
  --surface-sunk: #eaf0eb;
  --ink: #10302a;
  --ink-soft: #436055;
  --muted: #65776e;
  --faint: #9aaba0;
  --line: #dfe9e1;
  --line-strong: #c3d5c8;
  --green: #176b4e;
  --green-lift: #1f9268;
  --green-deep: #115438;
  --green-wash: #e4f0e8;
  --on-green: #ffffff;
  --amber: #8a6416;
  --amber-wash: #fdf1dd;
  --sky: #2f6f8f;
  --sky-wash: #e3eef6;
  --danger: #a23737;
  --danger-deep: #812929;
  --danger-wash: #fbe9e7;
  --focus: #80bd94;
  --knob: #ffffff;
  --scrim: #183c3255;
  /* Faces for people in the notification centre; white initials read on each. */
  --tone-0: #8a6416;
  --tone-1: #2f6f8f;
  --tone-2: #5b4b8a;
  --tone-3: #436055;
  /* Kept: older rules still reference --border. */
  --border: var(--line);
  --shadow: 0 1px 2px rgba(16, 48, 42, 0.05), 0 8px 24px -12px rgba(16, 48, 42, 0.18);
  --shadow-lift: 0 2px 6px rgba(16, 48, 42, 0.07), 0 18px 40px -18px rgba(16, 48, 42, 0.3);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d1411;
    --surface: #16201c;
    --surface-sunk: #1d2925;
    --ink: #e8f1ea;
    --ink-soft: #b3c6bb;
    --muted: #8ba296;
    --faint: #6b8076;
    --line: #26332d;
    --line-strong: #34453c;
    --green: #34c08a;
    --green-lift: #4ad79f;
    --green-deep: #5fe3ae;
    --green-wash: #18332a;
    --on-green: #07120e;
    --amber: #e2b566;
    --amber-wash: #33280f;
    --sky: #7fbfdf;
    --sky-wash: #16303d;
    --danger: #e98b80;
    --danger-deep: #f0a89f;
    --danger-wash: #3a1f1c;
    --focus: #4ad79f;
    --knob: #dceae1;
    --scrim: #00000099;
    --tone-0: #7d5a12;
    --tone-1: #2a6582;
    --tone-2: #56478a;
    --tone-3: #3d5a4f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 40px -18px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
/* Feel like an app inside WhatsApp's browser: no double-tap zoom, no font inflation on rotation. */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
header,
main,
nav {
  max-width: 760px;
  margin: auto;
}
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  padding: 18px 24px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--ground) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
header.scrolled {
  border-bottom-color: var(--line);
}
.logo {
  position: relative;
  display: block;
  width: 74px;
  height: 40px;
  overflow: hidden;
}
.logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
}
.profile-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
main {
  padding: 8px 24px calc(104px + env(safe-area-inset-bottom, 0px));
}
/* A screen arrives; it does not blink into place. */
main > div > section:not([hidden]),
main > section:not([hidden]) {
  animation: screen-in 0.36s var(--ease) both;
}
@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
h1 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 10px 0 6px;
  text-wrap: balance;
}
h2 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 26px 0 10px;
}
p {
  margin: 8px 0;
}
.muted,
small {
  color: var(--muted);
}
small {
  display: block;
  font-size: 13px;
}
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  margin: 10px 0;
  box-shadow: var(--shadow);
}
/* A row is the unit of My Zo: a fixed leading element, a body that reflows, an optional mark. */
.row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 15px;
  margin: 9px 0;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s var(--ease),
    opacity 0.3s var(--ease);
}
.row.tappable {
  cursor: pointer;
}
.row.tappable:active {
  transform: scale(0.985);
}
.row > .body {
  flex: 1;
  min-width: 0;
}
.row .name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.row .meta {
  margin-top: 1px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.row .chev {
  flex: none;
  color: var(--faint);
  font-size: 19px;
  line-height: 1;
  transition: transform 0.22s var(--ease);
}
.row .calendar-icon {
  vertical-align: -2px;
  opacity: 0.75;
}
/* Done, ended, skipped: still legible, plainly behind you. */
.settled {
  opacity: 0.6;
}
/* Zepto predates the row and lays its own out; leave it as it was. */
#zepto .row {
  justify-content: space-between;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 12px 0;
  margin: 0;
}
.task {
  display: flex;
  align-items: start;
  gap: 13px;
}
.check {
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  height: 25px;
  width: 25px;
  margin-top: 4px;
  padding: 0;
  background: var(--surface);
  color: var(--on-green);
}
.check {
  display: grid;
  place-items: center;
}
.check svg {
  width: 13px;
  height: 13px;
  stroke: currentcolor;
}
.check.done {
  background: var(--green);
  border-color: var(--green);
}
.check:disabled {
  opacity: 1;
  cursor: default;
}
button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--green);
  transition:
    transform 0.16s var(--ease),
    background 0.16s var(--ease);
}
button:active {
  transform: scale(0.96);
}
button:hover {
  background: var(--green-wash);
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.primary {
  background: var(--green);
  color: var(--on-green);
  border-color: transparent;
  box-shadow: 0 4px 14px -5px color-mix(in srgb, var(--green) 65%, transparent);
}
.primary:hover {
  background: var(--green-deep);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.badge {
  font-size: 12px;
  color: var(--green);
  background: var(--green-wash);
  padding: 3px 8px;
  border-radius: 7px;
}
.tentative {
  background: var(--amber-wash);
  color: var(--amber);
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.7) blur(18px);
  -webkit-backdrop-filter: saturate(1.7) blur(18px);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-around;
  gap: 4px;
}
nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 4px 4px;
  min-height: 44px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-radius: 12px;
}
nav button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
nav button[aria-current="page"] svg {
  transform: translateY(-1px) scale(1.06);
}
nav button[aria-current="page"] {
  background: transparent;
  color: var(--green);
}
/* Something already sent is still unticked: the bell's green seal on the clock, with no number. */
nav button {
  position: relative;
}
.nav-dot {
  position: absolute;
  top: 7px;
  left: calc(50% + 3px);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--surface);
}
section[hidden] {
  display: none;
}
.notice {
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  padding: 9px 20px;
  text-align: center;
  background: var(--green-wash);
}
label {
  display: block;
  margin: 16px 0 5px;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  font: inherit;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  width: min(92vw, 440px);
  padding: 24px;
  color: inherit;
}
dialog::backdrop {
  background: var(--scrim);
}
#editor:focus {
  outline: none;
}
/* The sheet's padding is its top edge; a heading margin on top of it left an empty band on phones. */
#edit-title {
  margin-top: 0;
  font-size: 17px;
}
/* iOS ignores a native select's padding: in a sheet it stood 26px beside 46px fields. */
dialog select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23708a80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
/* The tick is drawn at 25px; its tap area reaches 45px without moving the row. */
.check {
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  inset: -10px;
}
/* iOS draws a date or time field at its own width, past the sheet's edge, with its value centred
   (6 Nov): held to the column and read from the left like every other field. */
input[type="datetime-local"],
input[type="date"],
input[type="time"] {
  display: block;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
input::-webkit-date-and-time-value {
  text-align: left;
}
textarea.wrapping {
  display: block;
  resize: none;
  overflow: hidden;
  min-height: 46px;
  line-height: 1.4;
}
#status {
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--on-green);
  padding: 10px 16px;
  border-radius: 10px;
  max-width: 90vw;
  font-size: 14px;
}
#status:empty {
  display: none;
}
@media (max-width: 420px) {
  main {
    /* Clear of the tab bar, which grows by the phone's home-indicator inset. */
    padding: 8px 18px calc(112px + env(safe-area-inset-bottom, 0px));
  }
  header {
    padding: 22px 18px 10px;
  }
  h1 {
    font-size: 30px;
  }
  nav button {
    font-size: 13px;
    padding: 9px 10px;
  }
}

/* Component rules further down set `display` and share this selector's specificity, so without
   the override a hidden element stays on screen — which is how an unconnected Zepto was rendering
   in the connections list. Hiding is not a style choice; it is the element not being there. */
[hidden] {
  display: none !important;
}
.danger {
  color: var(--danger);
}
.error {
  color: var(--danger);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.empty {
  padding: 22px 0;
  color: var(--muted);
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 16px 0;
  padding: 12px;
}
legend {
  font-size: 13px;
  color: var(--muted);
}
.days {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.days label {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* The login screen is the first thing anyone sees, and for a moment it is the whole product.
   It centres on one instruction, and the approval code is the only loud thing on it. */
.login {
  max-width: 430px;
  margin: 0 auto;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.login h1 {
  font-size: 28px;
  margin: 0 0 4px;
}
.login .muted {
  font-size: 15.5px;
  margin: 0 auto;
  max-width: 30ch;
}
.login .primary {
  align-self: center;
  min-width: 190px;
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
}
/* The code exists to be compared against WhatsApp, so it is set to be read a digit at a time. */
.code:not(:empty) {
  display: block;
  margin: 22px auto 0;
  padding: 18px 20px;
  max-width: max-content;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 10px;
  text-indent: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
/* Signed out, the way in is a fresh link from Zo: a button that opens the chat with /zo typed. */
.login a.get-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}
.login .error:not(:empty) {
  margin-top: 18px;
  font-size: 14.5px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
dialog {
  max-height: 90dvh;
  overflow: auto;
}
#status {
  z-index: 10;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}
#error {
  color: var(--danger);
}
a {
  color: var(--green);
}

.reminder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reminder-heading strong {
  overflow-wrap: anywhere;
}
.icon-button {
  flex: none;
  font-size: 22px;
  min-width: 44px;
  min-height: 44px;
  padding: 3px 8px;
  background: transparent;
  border-color: transparent;
}
.reminder-time {
  margin: 5px 0;
  font-weight: 600;
  color: var(--ink-soft);
}
.reminder-actions .primary {
  min-width: 100px;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.snooze-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.snooze-options button {
  min-height: 48px;
  text-align: left;
}

.reminder-heading {
  justify-content: flex-start;
  gap: 6px;
}
.reminder-heading strong {
  flex: 0 1 auto;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  padding: 8px;
  color: var(--muted);
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.event-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-icon {
  flex: none;
  object-fit: contain;
}
.event-ended {
  opacity: 0.52;
  background: var(--surface-sunk);
}
.event-state {
  margin-top: 8px;
}
.memory-content {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.5;
}
.destructive {
  background: var(--danger);
  color: var(--on-green);
  border-color: var(--danger);
}
.destructive:hover {
  background: var(--danger-deep);
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
}
.reminder-history {
  margin-top: 28px;
}
/* A watch: what it is about and a badge for where it stands, then the site's own words. */
.wcard .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.wcard .side {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
}
.wcard .said {
  margin: 6px 0 2px;
  color: var(--ink-soft);
}
.wcard .wfacts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  margin: 6px 0 2px;
  font-size: 0.9rem;
}
.wcard .wfacts dt {
  color: var(--muted);
}
.wcard .wfacts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.wlink {
  display: inline-block;
  margin: 4px 0 2px;
  font-weight: 600;
}
.wcard .more {
  min-width: 36px;
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}
.wcard-actions {
  display: none;
}
.wcard.open .wcard-actions {
  display: flex;
}
.pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill:is(.waiting, .moving, .done, .neutral, .problem)::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.waiting {
  background: var(--amber-wash);
  color: var(--amber);
}
.pill.moving {
  background: var(--sky-wash);
  color: var(--sky);
}
.pill.done {
  background: var(--green-wash);
  color: var(--green);
}
.pill.neutral {
  background: var(--surface-sunk);
  color: var(--ink-soft);
}
.pill.problem {
  background: var(--danger-wash);
  color: var(--danger);
}
.detail-card .pill {
  margin: 2px 0 10px;
}
.split .reminder .pill {
  align-self: center;
}
/* A website job: a dot for how it stands, its title, and the chat when it waits on them. */
.job-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.job-card .body {
  flex: 1;
  min-width: 0;
}
.job-card small {
  display: block;
  color: var(--muted);
}
.card > .pill {
  margin: 6px 0 2px;
}
.job-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-wash);
}
.job-dot.waiting {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-wash);
}
.job-chat {
  flex: none;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.group > .job-row .body {
  flex: 1;
  min-width: 0;
}
.job-row .name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.job-row .sub {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.job-row .val {
  flex: none;
  color: var(--muted);
}
/* Today's allowance: a share, never an amount, and the waitlist while Zo Pro is coming. */
#task-web .group > .usage {
  display: block;
}
.usage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}
.usage-head strong {
  flex: none;
}
.usage-bar {
  height: 10px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunk);
}
.usage-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-lift), var(--green));
}
.usage-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.pro-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--green-wash);
}
.pro-offer[hidden] {
  display: none;
}
.pro-offer p {
  flex: 1 1 160px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.pro-joined {
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 600;
}
.site-row .body,
#saved-details .body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.site-row .name,
#saved-details .name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.site-row .sub,
#saved-details .sub {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.site-initial {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-sunk);
  font-weight: 800;
}
.group > .site-none {
  color: var(--muted);
}
.group > .danger-row {
  justify-content: center;
  color: var(--danger);
  font-weight: 600;
}
.fine {
  margin: 22px 2px 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
/* Examples to ask Zo, each opening the chat with it typed. */
.try {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 20px;
}
.try-ask {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.try-ask span {
  flex: 1;
}
.try-ask b {
  color: var(--green);
  font-size: 0.85rem;
  white-space: nowrap;
}
.try-ask:not([href]) b {
  display: none;
}
.card p,
.card strong {
  overflow-wrap: anywhere;
}
/* A date reads as one more line of the person's details; its Remove sits on that line's baseline
   without pushing the lines apart, and without overlapping the next Remove's tap area. */
.date-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0;
}
.date-line p {
  margin: 0;
}
.date-line button {
  margin-block: -5px;
  padding: 5px 8px;
}
.profile-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.profile-link-card p {
  margin-bottom: 0;
}
.profile-link-card button {
  flex: none;
}

nav {
  padding-inline: 6px;
}
#lists-title {
  overflow-wrap: anywhere;
}
.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  width: 100%;
}
.list-inline input {
  flex: 1 1 150px;
  min-width: 0;
}
.list-inline textarea.wrapping {
  flex: 1 1 100%;
  min-width: 0;
}
.list-inline button {
  min-height: 44px;
}
/* A list is an object you open, so it gets an object's surface rather than a divider. It predates
   the component layer and used to be a bare block with a green title, which read as a link in a
   document instead of a card in an app. */
.list-preview {
  display: block;
  text-align: left;
  width: 100%;
  padding: 16px 17px;
  margin: 10px 0;
  color: inherit;
  background-color: var(--surface);
  background-image: var(--sheen);
  border: 1px solid var(--edge);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease);
}
.list-preview:active {
  transform: scale(0.985);
}
.list-preview strong {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.list-preview small {
  margin-top: 4px;
}
/* A list's items on one surface, with hairlines: the box ticks, the words open the editor. */
.checklist {
  list-style: none;
  margin: 14px 0 0;
  padding: 2px 0;
  background-color: var(--surface);
  background-image: var(--sheen);
  border: 1px solid var(--edge);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.checklist-item {
  border-top: 1px solid var(--line);
  margin-inline: 14px;
}
.checklist-item:first-child {
  border-top: 0;
}
.checklist-line {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0 10px;
  min-height: 48px;
}
.checklist-line .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 48px;
  margin: 0 -4px 0 -6px;
  cursor: pointer;
}
/* A soft round tick: a tinted dot that fills green with a white check when done. Drawn in CSS,
   since the page's CSP allows no data: images. */
.checklist-line input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 13%, var(--surface));
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.checklist-line input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 6px;
  height: 11px;
  border-right: 2.5px solid var(--on-green);
  border-bottom: 2.5px solid var(--on-green);
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.checklist-line input[type="checkbox"]:checked {
  background: var(--green);
}
.checklist-line input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.checklist-line input[type="checkbox"]:active {
  transform: scale(0.9);
}
.checklist-line input[type="checkbox"]:disabled {
  cursor: default;
}
.checklist-line input[type="checkbox"]:focus-visible {
  outline-offset: 3px;
}
@media (hover: hover) {
  .checklist-line input[type="checkbox"]:not(:checked):not(:disabled):hover {
    background: color-mix(in srgb, var(--green) 24%, var(--surface));
  }
}
@media (prefers-reduced-motion: reduce) {
  .checklist-line input[type="checkbox"],
  .checklist-line input[type="checkbox"]::after {
    transition: none;
  }
}
.checklist-line .item-text {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 11px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}
.checklist-line button.item-text {
  cursor: text;
}
/* A phone keeps :hover after a tap, so only a real pointer gets the colour. */
.checklist-line button.item-text:hover {
  background: none;
}
@media (hover: hover) {
  .checklist-line button.item-text:hover {
    color: var(--green);
  }
}
.checklist-line button.item-text:active {
  transform: none;
}
.checklist-item.done .item-text {
  text-decoration: line-through;
  color: var(--muted);
}
.checklist-line .list-inline {
  margin: 8px 0;
}
.checklist-line .actions {
  margin: 0 0 10px;
}
/* Editing an item is one row: the words, with a × inside them to cancel, then Save and a bin. */
.checklist-line .item-edit {
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}
.item-edit .edit-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}
.item-edit .edit-field textarea.wrapping,
.item-edit .edit-field input {
  flex: 1;
  min-width: 0;
  padding-right: 40px;
}
#account .item-edit .edit-cancel {
  position: absolute;
  top: 50%;
  right: 2px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  transform: translateY(-50%);
}
#account .item-edit .edit-cancel:hover,
#account .item-edit .edit-cancel:active {
  background: none;
  color: var(--ink);
  transform: translateY(-50%);
}
#account .item-edit .danger-icon {
  flex: none;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
}
#account .item-edit .danger-icon:hover {
  background: var(--danger-wash);
}
/* Save and delete are the same plain icons, side by side: green to keep, red to throw away. */
#account .item-edit .save-icon {
  flex: none;
  min-width: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
}
#account .item-edit .save-icon:hover {
  background: var(--green-wash);
}
#account .item-edit .save-icon svg,
#account .item-edit .danger-icon svg {
  width: 20px;
  height: 20px;
}
/* On a dark card the light tint all but vanishes, so the empty dot is stronger there. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .checklist-line input[type="checkbox"]:not(:checked) {
    background: color-mix(in srgb, var(--green) 24%, var(--surface));
  }
}
:root[data-theme="dark"] .checklist-line input[type="checkbox"]:not(:checked) {
  background: color-mix(in srgb, var(--green) 24%, var(--surface));
}
@media (max-width: 360px) {
  nav {
    gap: 0;
  }
  nav button {
    padding-inline: 5px;
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  .profile-link-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

#document-content h1 {
  overflow-wrap: anywhere;
  margin-top: 22px;
}
.document-language {
  color: var(--muted);
  margin: 12px 0 24px;
}
.document-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.document-tabs button {
  border: 0;
  background: transparent;
  min-height: 44px;
}
.document-tabs button[aria-selected="true"] {
  background: var(--green-wash);
  color: var(--green);
  font-weight: 650;
}
.document-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0 24px;
}
.document-tools a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.translation-paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 5vw, 42px);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.translation-paper p {
  margin: 0 0 1.25em;
  white-space: pre-wrap;
}
.translation-paper h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 1.8em 0 0.65em;
  scroll-margin-top: 24px;
}
.translation-paper h2:first-child {
  margin-top: 0;
}
.translation-paper ul,
.translation-paper ol {
  padding-inline-start: 24px;
  margin: 0 0 1.5em;
}
.translation-paper li {
  margin-block: 8px;
}
.translation-paper blockquote {
  margin: 1.5em 0;
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.document-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 22px 0;
}
.document-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  line-height: 1.55;
}
.document-table th,
.document-table td {
  text-align: start;
  vertical-align: top;
  padding: 12px;
  border: 1px solid var(--border);
  min-width: 110px;
}
.document-table th {
  background: var(--surface-sunk);
  font-weight: 650;
}
.document-note {
  background: var(--green-wash);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--ink-soft);
}
.source-note {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.document-contents {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.document-contents button {
  display: block;
  text-align: start;
  min-height: 44px;
}
.document-delete {
  margin-top: 24px;
}
.document-table:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 420px) {
  .translation-paper {
    padding: 22px 18px;
    font-size: 16px;
  }
}

/* Zepto's own page. Rows carry the meaning; nothing here explains itself in a paragraph. */
#zepto h2 {
  margin: 26px 0 2px;
}
.status-line {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}
.status-line::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--faint);
}
.status-line.on::before {
  background: var(--green-lift);
}
#zepto-preferences .row,
#zepto-orders .order {
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
#zepto .tight {
  margin: 2px 0 0;
  font-size: 14px;
}
#zepto-preferences .row button {
  flex: none;
  padding: 4px 10px;
  font-size: 13px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
#zepto #zepto-disconnect {
  margin-top: 32px;
  padding-left: 0;
  color: var(--danger);
}

/* An order's state is the one thing worth seeing before reading anything. */
#zepto-orders .tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
#zepto-orders .tag.good {
  background: var(--green-wash);
  color: var(--green-lift);
}
#zepto-orders .tag.bad {
  background: var(--danger-wash);
  color: var(--danger);
}
#zepto-orders .tag.live {
  background: var(--amber-wash);
  color: var(--amber);
}

/* Swiggy's own page. One connection, three capabilities, so the page is a list of what the
   connection does followed by a block per capability — today only tables have anything to show. */
#swiggy h2 {
  margin: 26px 0 2px;
}
/* One line each: a state dot, the name Swiggy itself uses, and whether it works yet. This is a
   footer telling you what the connection covers, not the subject of the page. */
.capability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.capability .name {
  flex: 1;
  font-weight: 600;
}
.capability .state {
  flex: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.capability.live .state {
  color: var(--green);
}
.capability .dot {
  margin-right: 0;
}

/* A booking wraps badly as two columns: the restaurant and the date each want the whole width on a
   phone. The day becomes a fixed tile so only the name and the details reflow. */
.booking {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.booking .date {
  flex: none;
  width: 54px;
  padding: 6px 0;
  text-align: center;
  border-radius: 12px;
  background: var(--surface-sunk);
}
.booking .dow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}
.booking .dom {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
.booking .what {
  min-width: 0;
}
.booking .name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.booking .meta {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.footnote {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 13px;
}
.powered {
  margin: 22px 0 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* Profile: grouped rows, but without the boxes. Labels group; hairlines separate; values sit
   inline on the right. The rest of My Zo is a quiet reading surface and this now matches it. */
.group-label {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--faint);
  margin: 28px 0 2px;
}
.group-note {
  color: var(--faint);
  font-size: 13px;
  margin: 6px 0 0;
}
.settings {
  margin: 0;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.setting {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.setting > label:first-child,
.setting > span:first-child,
.setting > .brand {
  flex: 1;
  margin: 0;
}
.setting input[type="text"],
.setting input:not([type]),
.setting select {
  flex: 1.2;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: right;
  color: var(--green);
  font: inherit;
}
.setting:last-child {
  border-bottom: 0;
}
.setting.link {
  cursor: pointer;
}
.setting.link:active {
  background: var(--surface-sunk);
}
.setting .brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.setting .state {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.setting .chev {
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--faint);
}
.dot.on {
  background: var(--green);
}
.dot.warn {
  background: var(--amber);
}
/* A checkbox that reads as a switch, so a row of settings looks like settings. */
input.switch {
  appearance: none;
  flex: none;
  width: 42px;
  height: 25px;
  margin: 0;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background 0.15s ease;
}
input.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--knob);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: left 0.18s var(--ease);
}
input.switch:checked {
  background: var(--green);
}
input.switch:checked::after {
  left: 20px;
}
/* An address is longer than any other Profile value; it truncates rather than push the chevron off. */
#traffic-card .setting .state {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.place-results button {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
}
.place-results small {
  color: var(--muted);
}
#profile form .primary {
  margin-top: 22px;
}
#profile .actions {
  margin-top: 30px;
}

/* A screen that is still loading shows the shape of what is coming, not the word "Loading".
   Perceived speed is most of what separates an app from a page on a slow connection. */
.sk {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--surface-sunk) 25%,
    color-mix(in srgb, var(--surface-sunk) 55%, var(--surface)) 50%,
    var(--surface-sunk) 75%
  );
  background-size: 220% 100%;
  animation: sk-sweep 1.25s linear infinite;
}
.sk-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 15px;
  margin: 9px 0;
  box-shadow: var(--shadow);
}
.sk-row .sk-body {
  flex: 1;
  min-width: 0;
}
.sk-tile {
  flex: none;
  width: 52px;
  height: 46px;
  border-radius: 13px;
}
.sk-dot {
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
.sk-body .sk-line {
  height: 11px;
  width: 62%;
}
.sk-body .sk-line + .sk-line {
  height: 9px;
  width: 40%;
  margin-top: 8px;
  opacity: 0.7;
}
@keyframes sk-sweep {
  to {
    background-position: -220% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Up next: the answer to the question most people open My Zo to ask, given the top of the screen. */
.next {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(
    160deg,
    var(--surface),
    color-mix(in srgb, var(--green-wash) 55%, var(--surface))
  );
  box-shadow: var(--shadow-lift);
}
.next .when {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
}
.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-lift);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}
.next .title {
  margin: 9px 0 3px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.next .meta {
  color: var(--ink-soft);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.next .foot {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.next .foot button {
  border-radius: 999px;
}

/* A reminder is a row; its other controls open under it rather than living on screen. */
.reminder {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 9px 0;
  overflow: hidden;
}
.reminder .row {
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}
.reminder-more {
  display: none;
  padding: 0 15px 12px;
}
.reminder-more .actions {
  margin-top: 0;
}
.reminder.open .reminder-more {
  display: block;
}
.reminder.open .chev {
  transform: rotate(90deg);
}

/* The date tile, shared by the week list and the Swiggy page. */
.date {
  flex: none;
  width: 54px;
  padding: 6px 0;
  text-align: center;
  border-radius: 13px;
  background: var(--surface-sunk);
}
.dow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.dom {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pill {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Components
   
   The page had tokens and typography from the approved design but none of its
   component vocabulary, which is why it read as text on a background rather than
   as a built thing. These are the pieces that vocabulary needs. Everything here
   is plain CSS on purpose: the page runs in WhatsApp's WebView on mid-range
   Android over mobile data, where arriving instantly is most of what premium
   feels like, and its CSP admits no third-party code anyway.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* A hairline lighter than the surface it edges. In dark it is the single most
     load-bearing detail: without a lit top edge, a raised surface reads as a
     flat patch of slightly different paint. */
  --edge: rgba(16, 48, 42, 0.07);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --edge: rgba(255, 255, 255, 0.08);
    --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  }
}

/* A group is several rows that belong together, in one surface with hairlines
   between them — settings, connections, anything with a label and a value. It
   replaces a stack of separate cards, which spends a shadow on every line and
   makes a short list look like a long one. */
.group {
  background-color: var(--surface);
  background-image: var(--sheen);
  border: 1px solid var(--edge);
  border-radius: 18px;
  margin: 10px 0 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.group > * {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  margin: 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.group > :first-child {
  border-top: 0;
}
.group > button,
.group > a,
.group > .tappable {
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}
.group > button:active,
.group > a:active,
.group > .tappable:active {
  background-color: var(--surface-sunk);
}
/* The label takes the room it needs; the value sits against the right edge. */
.group .name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}
.group .val {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.group .val.on {
  color: var(--green);
  font-weight: 600;
}
.group .chev {
  flex: none;
  color: var(--faint);
  font-size: 19px;
  line-height: 1;
}
/* A row whose title and blurb stack in a body: the body takes the width, so every chevron sits
   against the right edge instead of trailing its own text. */
.group > * > .body {
  flex: 1;
  min-width: 0;
}

/* The micro-label above a group. Uppercase and tracked so it reads as a divider
   rather than as a heading competing with the page title. */
.group-label {
  margin: 24px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* How far through a list you are, in the only form that survives a glance. */
.meter {
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--surface-sunk);
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-lift));
  transform-origin: left;
  animation: meter-fill 0.7s var(--ease) both;
}
@keyframes meter-fill {
  from {
    transform: scaleX(0);
  }
}

/* A count or state, small and self-contained. */
.chip {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.chip.quiet {
  background: var(--surface-sunk);
  color: var(--muted);
}

/* A heading with a count against the right margin: "Later today … 3 left". */
.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.head-row h2 {
  margin-bottom: 0;
}
.head-row .count {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Raised surfaces get the same lit edge as a group, so a card and a row read as
   the same material rather than two different ones. */
.card,
.row {
  background-image: var(--sheen);
  border: 1px solid var(--edge);
}

/* The one card on the page that is allowed to glow: what happens next. */
.card.next {
  position: relative;
  background-color: var(--green-wash);
  border-color: color-mix(in srgb, var(--green) 26%, transparent);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.card.next::after {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--green) 22%, transparent),
    transparent 70%
  );
  pointer-events: none;
}
.card.next > * {
  position: relative;
}

/* Rows arrive in sequence rather than all at once — enough to feel deliberate,
   not enough to wait for. --i is set by the renderer; anything past the eighth
   row is below the fold and starts with the eighth. */
.stagger > * {
  animation: rise 0.42s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
/* Once a page load: a redraw or a return to the tab shows the screen where it already is. */
main section.drawn:not([hidden]),
section.drawn .stagger > * {
  animation: none;
}

/* Every animation here is decoration over a page that is already correct. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* A feature row opens to show the sentence you would actually send. Quoting it in the accent
   makes it read as speech rather than as documentation. */
.say {
  margin-top: 8px;
  color: var(--green);
  font-size: 13.5px;
  font-style: italic;
  animation: rise 0.28s var(--ease) both;
}
.footnote {
  margin: 10px 2px 0;
  color: var(--faint);
  font-size: 12.5px;
}
/* Settings groups predate the component layer and are the same object; give them the same skin. */
.settings {
  background-image: var(--sheen);
  border: 1px solid var(--edge);
}

/* A list card carries its own progress, so the meter spans the card rather than sitting inline. */
.list-preview .meter {
  width: 100%;
}

/* Up one level. Sits above the screen's own title rather than in the header, because the header is
   sticky and shared, and a back control that outlives the screen it belongs to is a trap of its
   own. Hidden at a tab, where there is nowhere up to go. */
.back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 2px;
  padding: 8px 14px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.back:active {
  transform: scale(0.97);
  background: var(--surface-sunk);
}
/* The bell sits beside the profile button and wears its shape; the count is a small green seal. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bell-button {
  position: relative;
}
/* WhatsApp's in-app browser can hide its own close button, so the way back to the chat is always
   in the header. The profile button's shape, stretched to hold its words. */
.chat-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 16px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.16s var(--ease),
    background 0.16s var(--ease);
}
.chat-link:active {
  transform: scale(0.96);
}
.chat-link:hover {
  background: var(--green-wash);
}
.chat-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.chat-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* An empty section: what is missing and what to say to Zo, then what can be done about it. */
.empty-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 22px 0;
}
.empty-state > .empty {
  flex-basis: 100%;
  margin: 0 0 6px;
  padding: 0;
}
.empty-state > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.bell-count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 0 0 2px var(--ground);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* On a phone only: wider screens keep their nav and bell beside the full list. */
@media (max-width: 719.98px) {
  body.fullscreen > header,
  body.fullscreen > nav,
  body.fullscreen #back {
    display: none;
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.sheet-title {
  margin: 0;
}
/* One entry: who, a sentence, when, and a dot while it is new. */
.group > .note {
  align-items: flex-start;
  padding: 14px 16px;
}
.group > .note.warn {
  background: var(--amber-wash);
}
.note .avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
.note .avatar.tone-0 {
  background: var(--tone-0);
}
.note .avatar.tone-1 {
  background: var(--tone-1);
}
.note .avatar.tone-2 {
  background: var(--tone-2);
}
.note .avatar.tone-3 {
  background: var(--tone-3);
}
.note .avatar.warn {
  background: var(--surface);
  color: var(--amber);
}
.note .avatar.warn svg {
  width: 18px;
  height: 18px;
}
.note img.avatar {
  border-radius: 10px;
  object-fit: cover;
}
.note-text {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
button.note-text {
  cursor: pointer;
}
.note .line,
.note .detail,
.note .when {
  display: block;
}
.note .line {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.note .line strong {
  font-weight: 700;
}
.note .detail {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.note .when {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.note .dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
}
.note-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.note .pill {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
/* Zo Circle: faces, the list screens, the share sheet and People. */
.face {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.face.tone-0 {
  background: var(--tone-0);
}
.face.tone-1 {
  background: var(--tone-1);
}
.face.tone-2 {
  background: var(--tone-2);
}
.face.tone-3 {
  background: var(--tone-3);
}
.face.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.face.face-space {
  visibility: hidden;
}
.face.tiny {
  width: 22px;
  height: 22px;
  font-size: 9.5px;
}
.face.large {
  width: 52px;
  height: 52px;
  font-size: 18px;
}
.face.more {
  background: var(--surface-sunk);
  color: var(--ink-soft);
}
/* Overlapping, each ringed in the surface colour so the stack reads as separate people. */
.faces {
  display: inline-flex;
  flex: none;
}
.faces .face {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
  box-shadow: 0 0 0 2px var(--surface);
}
.people-line .faces .face {
  box-shadow: 0 0 0 2px var(--ground);
}
.faces .face + .face {
  margin-left: -8px;
}
.segmented {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-sunk);
}
#account .segmented button {
  flex: 1;
  min-height: 38px;
  padding: 6px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 14px;
}
#account .segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
}
#people-filter {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}
#account .list-toolbar > .primary {
  flex: none;
  min-height: 44px;
}
.list-search {
  width: 100%;
  margin: 0 0 4px;
}
.list-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
#account .list-tools > .primary {
  min-height: 44px;
}
.icon-button.round {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.icon-button.round svg {
  width: 20px;
  height: 20px;
}
#account .icon-button.round.new-list {
  color: var(--green);
}
#account .icon-button.round.new-list svg {
  stroke-width: 2.2;
}
/* Earlier today: what already went out. A note, not a task, so no tick and no card. */
.earlier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.earlier-row .name {
  color: var(--muted);
}
.earlier-row .body {
  min-width: 0;
}
.earlier-row .meta {
  color: var(--muted);
  font-size: 13px;
}
.earlier-row button {
  flex: none;
  font-size: 13px;
}

/* One list in the Lists tab: its name and latest news, the faces of whoever else is on it. */
.group > .list-row,
.group > .person-row {
  min-height: 64px;
}
.list-row .name,
.person-row .name {
  display: block;
  overflow-wrap: anywhere;
}
.list-row small,
.person-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
/* What is on a list, on one line: the rest is a tap away. */
.list-row .body {
  flex: 1;
  min-width: 0;
}
.list-row small.peek {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.list-row small.news {
  color: var(--green);
  font-weight: 600;
}
.list-row .side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.left-count {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.left-count small {
  display: inline;
  margin: 0 0 0 1px;
  font-size: 12px;
  font-weight: 500;
}
.person-row .top,
.pick .top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.person-row .top .name,
.pick .top .name {
  flex: 0 1 auto;
}
.group > .person-row.invite,
.group > .invite-card {
  align-items: flex-start;
}
/* Today's invites (owner, 2026-10-17): one card at a time, the next one's edge beneath it. */
.invites-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 24px 0 0;
}
.invites-head .group-label {
  margin: 0;
}
.invites-head .count {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.invite-stack {
  position: relative;
  margin: 10px 0 18px;
}
.invite-stack.stacked {
  padding-bottom: 10px;
}
.invite-stack > .invite-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  background-color: var(--surface);
  background-image: var(--sheen);
  border: 1px solid var(--edge);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition:
    transform 0.22s var(--ease),
    opacity 0.22s var(--ease);
}
.invite-stack > .invite-card > .body {
  flex: 1;
  min-width: 0;
}
/* The next card's lower edge, the same material, set in so it reads as one behind. */
.invite-stack > .invite-peek {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  z-index: 1;
  height: 26px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow);
}
.invite-stack > .invite-card.leaving {
  transform: translateY(-12px);
  opacity: 0;
}
.invite-stack > .invite-card.arriving {
  transform: translateY(10px);
  opacity: 0;
  transition: none;
}
.invite-card button.pill.quiet {
  border-color: transparent;
  background: none;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .invite-stack > .invite-card {
    transition: none;
  }
}
.invite-card .line {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.invite-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}
.state-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
/* For others: the name with where it stands on one line, the reminder and its time under it. */
.for-others-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}
.card.for-others > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.state-tag.warn {
  background: var(--amber-wash);
  color: var(--amber);
}
.state-tag.quiet {
  background: var(--surface-sunk);
  color: var(--muted);
}
.person-row .note-actions,
.pick .note-actions,
.invite-card .note-actions,
.send-row .note-actions {
  flex-wrap: wrap;
}
.person-row button.pill,
.pick button.pill,
.invite-card button.pill,
.list-head button.pill,
.send-row .pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.person-row button.pill.danger {
  color: var(--danger);
}
.invite-card button.pill.primary,
.person-row button.pill.primary,
.pick button.pill.primary,
.list-head button.pill.primary,
.send-row .pill.primary {
  background: var(--green);
  color: var(--on-green);
  border-color: transparent;
}
.list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.list-title {
  margin: 0;
  font-size: 28px;
  overflow-wrap: anywhere;
}
.list-head button.pill {
  flex: none;
  margin-top: 2px;
}
/* The one-time sharing hint, hung from the Share pill above it. */
.share-hint {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--green-wash);
  color: var(--ink);
  animation: rise 0.3s var(--ease) both;
}
/* A notch under the pill's centre: the pill is about 66px wide at the head's right edge. */
.share-hint::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 78px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--green-wash);
  transform: rotate(45deg);
}
.share-hint p {
  flex: 1;
  margin: 0;
  font-size: 14px;
}
.share-hint-ok {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .share-hint {
    animation: none;
  }
}
/* Zo Circle's mark: wherever a reminder involves someone else, and on the Circle's own row. */
.circle-mark {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  color: var(--green);
}
/* Who is behind a card, in its corner: someone in their Circle, or Zo. A card without one is theirs. */
.corner-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-wash);
  color: var(--green);
}
.corner-badge svg {
  width: 20px;
  height: 20px;
}
.card.badged {
  position: relative;
}
.card.badged > .corner-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}
/* Block, so the title wraps short of the badge rather than under it. */
.card.badged > strong {
  display: block;
  padding-right: 44px;
}
.detail-card.badged > .corner-badge {
  top: 24px;
  right: 26px;
}
.detail-card.badged > .kicker,
.detail-card.badged > .detail-title {
  padding-right: 48px;
}
/* An open row is tinted the badge's own colour; the badge keeps a ground of its own. */
.reminder[aria-current="true"] .corner-badge {
  background: var(--surface);
}
/* Inline, not flex: the head row lines the label up with its count on the baseline. */
.group-label.with-mark .circle-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}
.circle-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--green-wash);
}
.circle-tile .circle-mark {
  width: 21px;
  height: 21px;
}
.setting .two-line {
  display: grid;
  min-width: 0;
}
.setting .two-line small {
  color: var(--muted);
  font-size: 13px;
}
.chip.from {
  display: inline-block;
  margin: 8px 0 0;
}
.people-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 12px 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
}
.people-line .who {
  overflow-wrap: anywhere;
}
#account .people-line .who-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 2px 4px 2px 2px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.people-line .list-progress {
  margin: 0;
}
/* The Manage / See everyone link beside a list's faces; `.link` alone is the settings rows. */
#account button.text-link {
  min-height: 32px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 14px;
}
.list-progress {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
}
/* On a phone the add bar waits under the thumb, above the tab bar, while the list scrolls. */
.add-bar {
  position: sticky;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  flex-wrap: nowrap;
  margin: 18px 0 6px;
  padding: 2px 4px 2px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.add-bar input {
  border: 0;
  background: none;
  box-shadow: none;
}
.add-bar input:focus-visible {
  outline: none;
}
.add-bar:focus-within {
  border-color: var(--green);
}
#account .add-bar .add-icon {
  flex: none;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--green);
}
#account .add-bar .add-icon[hidden] {
  display: none;
}
#account .add-bar .add-icon:hover {
  background: var(--green-wash);
}
#account .add-bar .add-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
/* The rest of a list, folded: done items are kept for the record, not read again. */
.done-fold {
  margin-top: 14px;
}
.done-fold > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.done-fold > summary::-webkit-details-marker {
  display: none;
}
.done-fold > summary::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.18s var(--ease);
}
.done-fold[open] > summary::before {
  transform: rotate(45deg);
}
.done-count {
  flex: none;
  font-weight: 600;
}
.done-names {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.done-fold[open] .done-names {
  visibility: hidden;
}
.done-fold .checklist {
  margin-top: 6px;
}
/* A list's options sit behind ⋯ beside its name, as a small menu under it. */
.list-head-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}
.list-menu {
  position: relative;
}
.list-menu > summary {
  list-style: none;
  cursor: pointer;
}
.list-menu > summary::-webkit-details-marker {
  display: none;
}
.list-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
}
#account .list-menu-panel button {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-weight: 550;
  text-align: left;
}
#account .list-menu-panel button:hover {
  background: var(--surface-sunk);
}
#account .list-menu-panel button.danger {
  color: var(--danger);
}
@media (min-width: 720px) {
  .add-bar {
    bottom: 16px;
  }
}
@media (min-width: 1100px) {
  .add-bar {
    position: static;
    box-shadow: var(--shadow);
  }
}
@media (min-width: 1280px) {
  .checklist.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    grid-auto-flow: row;
  }
  .checklist.two-col .checklist-item:nth-child(2) {
    border-top: 0;
  }
  /* An item being edited takes the whole width, so its buttons sit in one row. */
  .checklist.two-col .checklist-item:has(.list-inline) {
    grid-column: 1 / -1;
  }
}
.checklist-line .face.tiny {
  margin-top: 13px;
}
.leave {
  margin-top: 28px;
}
.person-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 6px;
}
.person-head .body {
  min-width: 0;
}
.person-head .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.since {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
#people .group > .date-line p {
  flex: 1;
  margin: 0;
}
#people .group > .date-line button {
  flex: none;
  margin-block: -6px;
}
/* The switch for a person's dates is one more line of the same group, its label taking the room. */
#people .group > .date-switch label {
  flex: 1;
  margin: 0;
  font-size: inherit;
}
.group > .detail-row {
  display: block;
  overflow-wrap: anywhere;
}
/* Editing a person reuses the form fields and inline rows; only the rows' spacing is its own, so
   several numbers read as one list rather than separate forms. */
.person-edit .list-inline {
  margin: 0 0 8px;
}
/* A number and its country: the native select lies invisibly over the flag and code it chose, so
   the closed picker stays narrow while the open one lists every country by name. */
.phone-field {
  display: flex;
  gap: 8px;
  width: 100%;
}
.phone-country {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.phone-country::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.phone-country:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.phone-country select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.phone-field input {
  flex: 1 1 auto;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.phone-hint {
  min-height: 1.3em;
  margin: 5px 0 0;
  font-size: 13px;
}
.person-edit .new-number {
  flex: 1 1 220px;
  min-width: 0;
}
.person-edit .saved-number {
  flex: 1 1 150px;
  align-self: center;
  font-variant-numeric: tabular-nums;
}
.person-edit .invite-mark {
  flex-basis: 100%;
  margin-top: -2px;
}
.person-edit .invite-mark .quiet {
  padding: 2px 0;
}
.person-edit .add-line {
  display: block;
  margin: 2px 0 0;
  padding-inline: 0;
}
.date-pick select {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}
.date-pick select + select {
  flex-grow: 1.6;
}
.date-pick select:last-child {
  flex-grow: 1.2;
}
.actions.stacked {
  flex-direction: column;
  align-items: stretch;
  margin-top: 28px;
}
/* An invite Zo will not send, for its sender to pass on: whose it is, and the two ways to. */
.send-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.send-row .note-actions {
  margin-top: 8px;
}
/* The share sheet rises from the bottom, as a phone's own share sheet does. */
dialog.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  margin: auto auto 0;
  padding: 8px 20px 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--ground);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-in 0.32s var(--ease) both;
}
@keyframes sheet-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}
.sheet-grip {
  flex: none;
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--line-strong);
}
.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#event-sheet {
  padding-bottom: 20px;
}
#share-sheet h2,
#event-sheet h2 {
  margin: 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.sheet-note {
  margin: 6px 0 12px;
  font-size: 13.5px;
}
#share-search {
  flex: none;
  width: 100%;
}
.group > .pick {
  cursor: pointer;
  margin: 0;
}
.pick .body {
  flex: 1;
  min-width: 0;
}
.pick small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}
.pick input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
}
.pick.taken {
  cursor: default;
}
.group > .pick.invite {
  align-items: flex-start;
}
.pick.taken .face {
  opacity: 0.6;
}
/* Several numbers saved: the row opens into a short list of them to choose from. */
.group > .pick.several {
  flex-wrap: wrap;
  align-items: flex-start;
  cursor: default;
}
.pick.several > .pill {
  flex: none;
}
/* Under the name, the width of the row: a number never breaks across lines. */
.pick .choices {
  display: grid;
  flex-basis: 100%;
  gap: 6px;
  padding-left: 46px;
}
.pick .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-size: 15px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.pick .choice:has(input:checked) {
  border-color: var(--green);
  background: var(--green-wash);
}
.pick .choice input[type="radio"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}
.pick .choice .number {
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pick .choice small {
  margin-top: 0;
}
.pick .choices > .pill {
  justify-self: start;
}
.sheet-foot {
  position: sticky;
  bottom: 0;
  margin: 4px -20px 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--ground);
  border-top: 1px solid var(--line);
}
#share-sheet .sheet-foot .primary {
  width: 100%;
  min-height: 48px;
}
/* iOS zooms into any field whose text is under 16px, which breaks the app feel; one pixel more
   stops it. Last and important because many rules reset fields with the `font` shorthand. */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font-size: max(16px, 1em) !important;
}

/* Later today: the time stands where a tick would, because nothing here can be done yet. */
.reminder.later .time {
  flex: none;
  /* "10:00 pm", so the names beside it line up whatever the hour. */
  min-width: 4.9em;
  white-space: nowrap;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Wider screens

   Below 720px nothing here applies: the phone layout above is the product, and
   every rule in this block is either inside a min-width query or styles an
   element a phone never shows. From 720px the tab bar becomes an icon rail; from
   1100px it is a sidebar, Today is a dashboard, and Lists, Reminders, People and
   Features show their index beside the thing picked from it. The breakpoints
   match WIDE and SPLIT in app.js.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* The detail pane sits a shade off the ground, so the index and the detail read as two places. */
  --pane: #f7faf7;
  /* WhatsApp's own chat colours, for a feature's example exchange. */
  --wa-wall: #e9e2d8;
  --wa-out: #d9fdd3;
  --wa-in: #ffffff;
  --wa-ink: #111b21;
  --wa-link: #027eb5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pane: #111a16;
    --wa-wall: #0b141a;
    --wa-out: #005c4b;
    --wa-in: #202c33;
    --wa-ink: #e9edef;
    --wa-link: #53bdeb;
  }
}

@media (max-width: 719.98px) {
  .wide-only {
    display: none;
  }
}
@media (max-width: 1099.98px) {
  .glance,
  .next .when .wide-label {
    display: none;
  }
}

/* ── Rail and sidebar: the same nav element, and the bell's menu ── */
@media (min-width: 720px) {
  .app > nav {
    top: 0;
    right: auto;
    max-width: none;
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .app > nav button {
    flex: none;
    min-height: 44px;
  }
  .app > nav button:hover {
    background: var(--surface-sunk);
  }
  .app > nav button[aria-current="page"] {
    background: var(--green-wash);
    color: var(--green-deep);
  }
  .app > nav button[aria-current="page"] svg {
    transform: none;
  }
  .nav-brand img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .nav-spacer {
    flex: 1;
  }
  .app > header > .logo,
  .app > header #profile-button {
    display: none;
  }
  .app > header {
    justify-content: flex-end;
  }
  #status {
    bottom: 28px;
  }
  /* Sheets and dialogs are centred modals once there is room around them. */
  dialog {
    width: min(92vw, 520px);
    padding: 28px;
  }
  #edit-title {
    margin-top: 0;
  }
  dialog.sheet {
    margin: auto;
    max-width: 520px;
    max-height: min(86dvh, 780px);
    padding: 22px 24px 0;
    border-radius: 22px;
    box-shadow: var(--shadow-lift);
  }
  dialog.sheet .sheet-grip {
    display: none;
  }
  dialog.sheet .sheet-foot {
    margin: 4px -24px 0;
    padding: 14px 24px 18px;
  }
  .header-actions {
    position: relative;
  }
  .bell-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(400px, calc(100vw - 32px));
    max-height: min(70dvh, 560px);
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
    text-align: left;
    animation: menu-in 0.18s var(--ease) both;
  }
  .bell-menu:focus {
    outline: none;
  }
  .bell-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 18px;
  }
  .bell-menu-head h2 {
    flex: 1;
    margin: 0;
    font-size: 15.5px;
  }
  .bell-menu-head .text-link {
    min-height: 36px;
    padding: 6px 8px;
    border: 0;
    background: none;
    color: var(--green);
    font-size: 14px;
  }
  #bell-menu-status:not(:empty) {
    margin: 0 18px 12px;
  }
  .bell-menu .group {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .bell-menu .group > .note {
    padding: 14px 18px;
  }
  .bell-menu .empty {
    padding: 16px 18px;
  }
  .bell-menu .sk-row {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ── Tablet: an icon rail, and one pane at a time, as on a phone ── */
@media (min-width: 720px) and (max-width: 1099.98px) {
  .app {
    padding-left: 76px;
  }
  .app > nav {
    bottom: 0;
    width: 76px;
    align-items: center;
    gap: 6px;
    padding: 20px 10px;
  }
  .nav-brand {
    padding-bottom: 16px;
  }
  .nav-brand span {
    display: none;
  }
  .app > nav button {
    width: 52px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  /* The rail is icons only; each name stays for anyone who cannot see them. */
  .app > nav button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .app > nav .nav-dot {
    top: 9px;
    left: calc(50% + 5px);
  }
  .app > main {
    padding-bottom: 56px;
  }
}

/* ── Desktop: sidebar at the window's edge, content beside it, and panes ── */
@media (min-width: 1100px) {
  /* A wide window gives its extra room to the right, not to gutters around a floating shell. */
  .app {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    max-width: none;
    min-height: 100dvh;
    margin: 0;
  }
  .app > nav {
    position: sticky;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    height: 100dvh;
    align-items: stretch;
    gap: 4px;
    padding: 28px 16px;
    border-right: 1px solid var(--line);
  }
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 24px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
  }
  .app > nav button {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
  }
  .app > nav button svg {
    width: 20px;
    height: 20px;
  }
  .app > nav button[aria-current="page"] {
    font-weight: 600;
  }
  /* The same seal as the tab bar's, at the end of the row where a count would go. */
  .app > nav .nav-dot {
    position: static;
    margin-left: auto;
    background: var(--green-lift);
    box-shadow: none;
  }
  /* The bell keeps the top right of the page while the page scrolls under it. */
  .app > header {
    position: sticky;
    top: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    width: min(100%, 1200px);
    box-sizing: border-box;
    max-width: none;
    margin: 0;
    padding: 32px 48px 0 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    pointer-events: none;
  }
  .app > header .header-actions {
    pointer-events: auto;
  }
  .app > main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: 1200px;
    margin: 0;
    padding: 0;
  }
  .app #back {
    margin: 32px 0 0 max(56px, calc(50% - 360px));
  }
  .app #error:empty {
    display: none;
  }
  .app #error {
    margin: 16px 56px 0;
  }
  /* Clear of the bell in the top right, and as wide as a note, not the whole page. */
  .app .travel-banner {
    max-width: 640px;
    margin: 32px 112px 0 56px;
  }
  #account > section {
    padding: 36px 56px 64px;
  }
  .app #back:not([hidden]) + #account > section {
    padding-top: 14px;
  }
  /* One readable column, centred, for everything that is not a dashboard or a pair of panes. */
  #profile {
    max-width: 752px;
    margin-inline: auto;
  }
  #memory,
  #documents,
  #swiggy,
  #zepto,
  #notifications {
    max-width: 832px;
    margin-inline: auto;
  }

  /* Today: up next and the day's counts, then what went out and the week beside it. */
  #today {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* A long week takes its height from the last, flexible row, not from the gap under Later today. */
    grid-template-rows: auto auto auto auto 1fr;
    grid-auto-flow: row dense;
    align-items: start;
    gap: 20px;
    max-width: 1180px;
  }
  .today-head {
    grid-column: 1 / -1;
    padding-right: 72px;
  }
  /* Inside the greeting's full row, as wide as the main column; the grid is not changed. */
  #order-bar {
    width: calc((100% + 72px - 40px) * 2 / 3 + 20px);
    margin-bottom: 22px;
  }
  #today .today-head h1 {
    margin: 4px 0 2px;
    font-size: 34px;
  }
  #today .today-head .muted {
    margin: 0;
  }
  .today-next,
  .today-invites {
    grid-column: 1 / span 2;
  }
  #today .today-invites > .invites-head {
    margin-top: 0;
  }
  #today .today-next > .group-label {
    display: none;
  }
  #today .card.next {
    margin: 0;
    padding: 22px 24px;
    border-radius: 18px;
  }
  #today .next .title {
    font-size: 24px;
  }
  .next .when .wide-label {
    text-transform: uppercase;
  }
  .glance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 3;
    align-self: stretch;
    padding: 20px 22px;
    background-color: var(--surface);
    background-image: var(--sheen);
    border: 1px solid var(--edge);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  /* Beside invites the counts keep their own height rather than stretching down a list of cards. */
  .today-invites:not([hidden]) ~ .glance {
    align-self: start;
  }
  .glance h2 {
    margin: 0 0 2px;
  }
  .glance-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-soft);
  }
  .glance-row strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .today-later,
  .today-earlier {
    grid-column: 1 / span 2;
  }
  #today .today-week h2 {
    margin: 0 0 4px;
  }
  #today .today-later .head-row h2 {
    margin-top: 0;
  }
  #today .today-later .reminder {
    margin: 0 0 10px;
  }
  .today-earlier,
  .today-week {
    padding: 6px 20px 8px;
    background-color: var(--surface);
    background-image: var(--sheen);
    border: 1px solid var(--edge);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .today-week {
    grid-column: 3;
    grid-row: 3 / span 3;
    align-self: start;
    padding-top: 16px;
  }
  #today .today-earlier .head-row h2 {
    margin: 12px 0 2px;
  }
  #today .today-earlier .earlier-row {
    padding: 12px 0;
  }
  #today .today-earlier .earlier-row:last-child {
    border-bottom: 0;
  }
  /* Rows inside a card are lines of it, not cards of their own. */
  #today .today-week .row {
    margin: 0;
    padding: 12px 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
  #today .today-week #events > :first-child {
    border-top: 0;
  }
  #today .today-week .date {
    width: 46px;
    padding: 4px 0;
  }
  #today .today-week .dom {
    font-size: 17px;
  }
  #today .today-week .empty {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  /* The week, a day at a time: a small day header, then one line per event. */
  #today .week-day {
    padding: 10px 0 6px;
    border-top: 1px solid var(--line);
  }
  #today .week-day:first-child {
    border-top: 0;
  }
  #today .week-label {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  #today .week-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 3px 0;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  #today button.week-line {
    cursor: pointer;
  }
  #today .week-time {
    flex: none;
    width: 58px;
    white-space: nowrap;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  #today .week-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  #today .week-title {
    font-weight: 600;
  }
  #today .week-place {
    color: var(--muted);
  }
  #today button.week-line:hover .week-title {
    text-decoration: underline;
  }
  .today-next:has(#up-next[hidden]),
  .today-later:has(#today-items[hidden]),
  .today-earlier:has(#earlier-head[hidden]) {
    display: none;
  }

  /* Two panes: the index scrolls with the page, the detail stays in view beside it. */
  #account > section.split {
    display: grid;
    grid-template-columns: min(400px, 42%) minmax(0, 1fr);
    align-items: start;
    min-height: 100dvh;
    padding: 0;
  }
  #account > #reminders.split,
  #account > #tasks.split {
    grid-template-columns: min(460px, 42%) minmax(0, 1fr);
  }
  #account > #people.split {
    grid-template-columns: min(420px, 42%) minmax(0, 1fr);
  }
  #account > #features.split {
    grid-template-columns: min(480px, 42%) minmax(0, 1fr);
  }
  .split > .pane-index {
    min-width: 0;
    padding: 32px 24px 56px 32px;
  }
  .split > .pane-detail {
    position: sticky;
    top: 0;
    min-width: 0;
    height: 100dvh;
    overflow-y: auto;
    padding: 94px 48px 48px;
    background: var(--pane);
    border-left: 1px solid var(--line);
    /* Past the content's cap the pane's colour runs on to the window's edge, not stopping mid-screen. */
    box-shadow: 0 0 0 100vmax var(--pane);
    clip-path: inset(0 -100vmax 0 0);
  }
  .split > .pane-detail > * {
    max-width: 640px;
  }
  #list-content.pane-detail > * {
    max-width: 720px;
  }
  .pane-detail .to-index {
    display: none;
  }
  .pane-hint {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
  }
  .detail-card + .pane-hint,
  .chat + .pane-hint {
    margin-top: 14px;
  }
  /* What is open, marked in the index the way the sidebar marks where you are. */
  .split .group > [aria-current="true"],
  .split .reminder[aria-current="true"],
  #features.split .settings > [aria-current="true"] {
    background-color: var(--green-wash);
  }
  .split .group > button:hover:not([aria-current="true"]),
  .split .reminder:hover:not([aria-current="true"]) {
    background-color: var(--surface-sunk);
  }
  .split .reminder:has(.body:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }
  .split .reminder .body:focus-visible {
    outline: none;
  }
  #reminders .reminder-more {
    display: none;
  }

  .repeat-mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 25px;
    height: 25px;
    color: var(--muted);
  }
  #reminders .repeat-mark svg {
    width: 17px;
    height: 17px;
  }

  /* A reminder, whole: when, how often, what state, and what can be done with it. */
  .detail-card {
    margin: 0;
    padding: 26px 28px;
    border-radius: 20px;
  }
  .split > .pane-detail > .detail-card {
    max-width: 560px;
  }
  .kicker {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .detail-title {
    margin: 4px 0 14px;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
  }
  .facts {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
  }
  .facts dt {
    color: var(--ink-soft);
  }
  .facts dd {
    margin: 0;
    overflow-wrap: anywhere;
  }
  .detail-card .actions {
    margin-top: 20px;
  }
  .detail-card .actions button:not(.icon-button) {
    border-radius: 999px;
  }

  /* A list open beside the index: its name level with its tools. */
  #list-content .list-head {
    align-items: center;
    margin-top: 0;
  }
  #people-content .person-head {
    margin-top: 0;
  }

  /* A feature as the exchange it would be: your message, and the kind of answer Zo gives. */
  #feature-detail .detail-title {
    margin-bottom: 6px;
  }
  .detail-blurb {
    margin: 0 0 16px;
    color: var(--ink-soft);
  }
  /* A connection beside the Features index: its card, or its own screen moved into the pane. */
  .brand-title {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .connection-card .facts {
    margin-bottom: 18px;
  }
  .inline-confirm {
    margin: 0 0 14px;
    padding: 14px 16px;
    background: var(--surface-sunk);
    border-radius: 12px;
  }
  .inline-confirm p {
    margin: 4px 0 0;
  }
  #feature-detail > #swiggy,
  #feature-detail > #zepto {
    margin-inline: 0;
    padding: 0;
  }
  .chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
    padding: 20px;
    border-radius: 18px;
    background: var(--wa-wall);
  }
  .bubble {
    position: relative;
    max-width: 78%;
    padding: 8px 12px;
    color: var(--wa-ink);
    font-size: 14.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  }
  .bubble.me {
    align-self: flex-end;
    background: var(--wa-out);
    border-radius: 12px 12px 4px;
  }
  .bubble.zo {
    align-self: flex-start;
    background: var(--wa-in);
    border-radius: 12px 12px 12px 4px;
  }
  /* A reply button hangs under its message, as WhatsApp draws one. */
  .bubble.with-button {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .bubble-button {
    margin: 8px -12px 0;
    padding: 9px 12px;
    border-top: 1px solid color-mix(in srgb, var(--wa-ink) 12%, transparent);
    color: var(--wa-link);
    font-weight: 600;
    text-align: center;
  }
  .bubble.reacted {
    margin-bottom: 14px;
  }
  .reaction {
    position: absolute;
    right: 10px;
    bottom: -15px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--wa-in);
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(11, 20, 26, 0.18);
  }
  .bubble.voice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
  }
  .voice .play {
    flex: none;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentcolor;
    opacity: 0.7;
  }
  .voice .wave {
    flex: 1;
    height: 18px;
    background: repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--wa-ink) 45%, transparent) 0 2px,
      transparent 2px 5px
    );
    mask-image: linear-gradient(180deg, transparent 20%, #000 20% 80%, transparent 80%);
  }
  .voice .length {
    flex: none;
    font-size: 12px;
    opacity: 0.7;
  }
}
/* With room for both, New reminder sits on the title's line, the way a list's Share does. */
@media (min-width: 1280px) {
  #reminders > .pane-index {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-content: start;
  }
  #reminders > .pane-index > * {
    grid-column: 1 / -1;
  }
  #reminders > .pane-index > h1 {
    grid-column: 1;
    margin-bottom: 0;
  }
  #reminders #new-reminder {
    grid-row: 2;
    grid-column: 2;
    align-self: center;
  }
}

/* Settled reminders fold away beneath Pending, closed until asked for. */
.completed > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
.completed > summary::-webkit-details-marker {
  display: none;
}
.completed > summary > span:first-child::after {
  content: "›";
  display: inline-block;
  margin-left: 8px;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.completed[open] > summary > span:first-child::after {
  transform: rotate(90deg);
}
.completed > summary .count {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Upcoming under each day it falls on: a quiet heading, the day's reminders beneath it. */
.reminder-day + .reminder-day {
  margin-top: 14px;
}
.reminder-day-label {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}
/* Completed past its first page: how many are shown, and the next page a tap away. */
.load-more {
  margin-top: 8px;
}

/* The travel banner and a new zone's question: a note in the page, never a modal. */
.travel-banner,
.zone-choice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--green-wash);
  color: var(--ink);
}
.zone-choice {
  margin: 12px 0 0;
}
.travel-banner p,
.zone-choice p {
  margin: 0;
}
.travel-banner .zone-detail,
.zone-choice .zone-detail {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}
.zone-actions,
#profile .zone-actions {
  margin-top: 12px;
  align-items: center;
}
#profile .zone-choice .primary {
  margin-top: 0;
}

/* ── onboarding_v3: Features is the header's star, Profile is a tab ── */
.features-button {
  color: var(--green);
}
.features-button[aria-current="page"] {
  background: var(--green-wash);
}
.v3 > nav [data-tab="features"],
.v3 > nav .nav-spacer {
  display: none;
}
@media (max-width: 719.98px) {
  .v3 > nav [data-tab="profile"] {
    display: flex;
  }
}

/* ── The first-visit spotlight: a lit cut-out over a scrim, and a tip beside it ── */
:root {
  --spot-scrim: #183c32a8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --spot-scrim: #000000b3;
  }
}
.spotlit {
  overflow: hidden;
}
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.spot-block {
  position: absolute;
  inset: 0;
}
.spotlight:has(.spot-hole[hidden]) .spot-block {
  background: var(--spot-scrim);
}
.spot-hole {
  position: fixed;
  border-radius: 14px;
  box-shadow:
    0 0 0 3px var(--green),
    0 0 0 9999px var(--spot-scrim);
  pointer-events: none;
  transition:
    left 0.3s var(--ease),
    top 0.3s var(--ease),
    width 0.3s var(--ease),
    height 0.3s var(--ease);
}
.spot-hole[hidden] {
  display: none;
}
.spot-tip {
  position: fixed;
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  animation: spot-in 0.24s var(--ease) both;
}
.spot-tip:focus {
  outline: none;
}
.spot-title {
  margin: 0 0 4px;
  font-size: 16px;
}
.spot-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.spot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.spot-count {
  color: var(--muted);
  font-size: 13.5px;
}
.spot-skip {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.spot-skip:hover {
  background: none;
  color: var(--ink);
}
.spot-next {
  min-width: 88px;
  min-height: 44px;
}
.spot-demo {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunk);
  font-size: 14px;
}
.spot-demo-label {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.spot-demo-head {
  margin-bottom: 4px;
}
.spot-demo-head span {
  color: var(--muted);
}
.spot-demo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.spot-box {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  color: transparent;
  font-size: 12px;
  font-weight: 800;
}
.spot-who {
  margin-left: auto;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
}
.spot-demo-item.ticked .spot-box {
  border-color: var(--green);
  background: var(--green);
  color: var(--on-green);
}
.spot-demo-item.ticked .spot-body {
  color: var(--muted);
  text-decoration: line-through;
}
.spot-demo-item.ticking .spot-box {
  animation: spot-tick 0.35s var(--ease) 1.2s both;
}
.spot-demo-item.ticking .spot-body {
  color: var(--muted);
  text-decoration: line-through;
  animation: spot-strike 0.35s var(--ease) 1.2s both;
}
.spot-demo-item.ticking .spot-who {
  animation: spot-say 0.3s var(--ease) 1.45s both;
}
@keyframes spot-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes spot-tick {
  from {
    border-color: var(--line-strong);
    background: transparent;
    color: transparent;
    transform: scale(1);
  }
  60% {
    transform: scale(1.15);
  }
  to {
    border-color: var(--green);
    background: var(--green);
    color: var(--on-green);
    transform: scale(1);
  }
}
@keyframes spot-strike {
  from {
    color: var(--ink);
    text-decoration-color: transparent;
  }
}
@keyframes spot-say {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot-hole,
  .spot-tip,
  .spot-demo-item.ticking .spot-box,
  .spot-demo-item.ticking .spot-body,
  .spot-demo-item.ticking .spot-who {
    animation: none;
    transition: none;
  }
  .spot-demo-item.ticking .spot-box {
    border-color: var(--green);
    background: var(--green);
    color: var(--on-green);
  }
}

/* Swiggy's attribution badge, to its guidelines: one per service, beside what it powers. The
   square logo first (20% corner radius), the exact wording, 8px gap and clear space. */
.powered-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 8px 0;
  font:
    16px / 1.25 Arial,
    sans-serif;
  color: #0a2540;
}
.powered-by[hidden] {
  display: none;
}
.powered-by img {
  width: 32px;
  height: 32px;
  border-radius: 20%;
  flex: none;
  display: block;
}
/* Swiggy's square logo naming the connection in a row: identification, not attribution. */
.brand img.square {
  border-radius: 20%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .powered-by {
    color: #f6f9fc;
  }
}
:root[data-theme="dark"] .powered-by {
  color: #f6f9fc;
}

/* Instamart orders: Today's bar, and the rows in Tasks, each opening the order's own page. */
#order-bar {
  position: relative;
  margin: 0 0 18px;
}
.order-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}
#order-bar:has(.close) .order-bar {
  padding-right: 44px;
}
.order-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.order-bar .body,
.order-row .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.order-bar .title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}
.order-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-wash);
}
.order-bar .sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.order-bar .go {
  flex: none;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.order-bar .track {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--green-wash);
}
.order-bar .track b {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 0 3px 3px 0;
}
#order-bar .close {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: var(--ink);
  text-decoration: none;
}
#task-orders-now .order-row {
  margin: 9px 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
#task-orders-past .order-row + .order-row {
  border-top: 1px solid var(--line);
}
.order-row .name {
  font-weight: 600;
}
.order-row .meta {
  color: var(--muted);
  font-size: 13px;
}
.show-all {
  display: block;
  margin: 6px auto 0;
}

/* Saved (saved_items): a list by collection, then one item's own screen. */
.saved-chips,
.page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}
#account .saved-chips button,
#account .page-chips button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}
#account .saved-chips button[aria-pressed="true"],
#account .page-chips button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
}
.group > .saved-row {
  min-height: 62px;
  text-align: left;
}
.saved-row .body {
  flex: 1;
  min-width: 0;
}
.saved-row .top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.saved-row .name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.saved-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 400;
}
.saved-kind {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--green-wash);
  color: var(--green);
}
.saved-kind svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.saved-kind.document,
.saved-kind.photo {
  background: var(--sky-wash);
  color: var(--sky);
}
.saved-kind.kind-login {
  background: var(--amber-wash);
  color: var(--amber);
}
.lock-mark {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
}
.saved-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
}
.saved-meta small {
  color: var(--muted);
}
.pill.sensitive {
  background: var(--amber-wash);
  color: var(--amber);
}
.pill.sensitive::before {
  display: none;
}
.saved-content {
  margin: 16px 0 0;
}
.saved-text {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.saved-secret {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.saved-secret .masked {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.saved-hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 24px;
  border-radius: 18px;
  background: var(--surface-sunk);
  text-align: center;
}
.saved-hidden p {
  margin: 0;
  max-width: 260px;
  color: var(--ink-soft);
}
.saved-hidden .lock-mark {
  width: 26px;
  height: 26px;
}
.saved-photo {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.saved-content audio {
  width: 100%;
}
.saved-tools,
.saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.saved-actions {
  margin-top: 24px;
}
.saved-actions .danger {
  border-color: var(--danger-wash);
}
.button-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.button-link.primary {
  border-color: transparent;
  background: var(--green);
  color: var(--on-green);
}
@media (min-width: 1100px) {
  #account > #saved.split,
  #account > #calls.split {
    grid-template-columns: min(420px, 42%) minmax(0, 1fr);
  }
}

/* Calls (calling): a list by when, then one call's summary, recording and transcript. */
#calls .call-row .pill {
  align-self: center;
}
/* The open row is washed green; its state keeps its own chip. */
#calls .call-row[aria-current="true"] .pill {
  background: var(--surface);
}
#calls .call-row .call-summary {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#calls .saved-kind.call-kind.needs_you {
  background: var(--amber-wash);
  color: var(--amber);
}
#calls .saved-kind.call-kind:is(.no_answer, .busy, .failed, .unknown) {
  background: var(--surface-sunk);
  color: var(--ink-soft);
}
#calls .call-content > * + * {
  margin-top: 14px;
}
#calls .call-summary-text {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#calls .call-content > .call-length {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
}
#calls .call-ask {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--amber-wash);
}
#calls .call-ask-text {
  margin: 0;
  overflow-wrap: anywhere;
}
#calls .call-ask .call-ask-label {
  margin-bottom: 4px;
  color: var(--amber);
  font-weight: 700;
}
#calls .call-ask small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
}
#calls .call-concerns {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.5;
}
.call-concerns li + li {
  margin-top: 6px;
}
#calls .call-recording audio {
  width: 100%;
}
#calls .call-transcript {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
#calls .call-line {
  max-width: 88%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
#calls .call-line.zo {
  align-self: flex-end;
  border-color: transparent;
  background: var(--green-wash);
}
#calls .call-text {
  margin: 2px 0 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#calls .call-speaker {
  color: var(--muted);
  font-weight: 600;
}
.confirm-points {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}
.confirm-points li + li {
  margin-top: 10px;
}

/* Pages (pages): a search and type chips over the list, all in the browser. */
.page-chips {
  margin: 10px 0 2px;
}
.page-results {
  margin-top: 8px;
}
/* A change still on its way after a second: the tick breathes and the time line says so, in
   the space the line already has, so nothing moves. Never an error colour. */
.reminder.saving .check,
.checklist-item.saving input[type="checkbox"] {
  animation: saving-pulse 1.1s ease-in-out infinite;
}
@keyframes saving-pulse {
  50% {
    opacity: 0.45;
  }
}
.reminder.saving .meta {
  position: relative;
  color: transparent;
}
.reminder.saving .meta::after {
  content: "Saving…";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .reminder.saving .check,
  .checklist-item.saving input[type="checkbox"] {
    animation: none;
    opacity: 0.55;
  }
}

/* Connectors, drawn to the agreed mocks: a card per account, its services as rows under it. */
#connectors-list .cx-label {
  margin: 22px 4px 8px;
  font-weight: 600;
  color: var(--muted);
}
#connectors-head .muted {
  margin-bottom: 4px;
}
.cx-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cx-card + .cx-card {
  margin-top: 12px;
}
.cx-acct,
.cx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.cx-acct {
  border-bottom: 1px solid var(--line);
}
.cx-row + .cx-row {
  border-top: 1px solid var(--line);
}
button.cx-row {
  cursor: pointer;
}
button.cx-row:active {
  background: var(--surface-sunk);
}
.cx-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}
.cx-mark.cx-photo {
  overflow: hidden;
  border: 0;
}
.cx-mark.cx-photo img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.cx-email {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cx-alias {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.cx-alias svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.cx-alias.empty {
  border: 1.5px dashed var(--green-lift);
  background: transparent;
  color: var(--green);
  font-weight: 600;
}
.cx-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.cx-ico.cx-plain {
  border-radius: 8px;
  background: var(--green-wash);
  color: var(--green);
}
.cx-svc {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cx-svc.cx-tap {
  cursor: pointer;
}
.cx-svc b {
  font-size: 15px;
  font-weight: 600;
}
.cx-default {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: 2px;
}
.cx-state,
.cx-sub {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.cx-sub {
  color: var(--muted);
}
.cx-state.ok {
  color: var(--green);
}
.cx-state.warn {
  color: var(--amber);
}
.cx-read {
  display: block;
  position: relative;
  height: 4px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunk);
}
.cx-read > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-lift), var(--green));
  transition: width 0.6s var(--ease);
}
/* Before the first read has listed what it will read: movement, no amount. */
.cx-read.unknown > i {
  position: absolute;
  width: 32%;
  animation: cx-reading 1.6s var(--ease) infinite;
}
@keyframes cx-reading {
  from {
    left: -32%;
  }
  to {
    left: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx-read > i {
    transition: none;
  }
  .cx-read.unknown > i {
    left: 0;
    width: 100%;
    opacity: 0.35;
    animation: none;
  }
}
.cx-chev {
  flex: none;
  color: var(--faint);
  font-size: 22px;
  line-height: 1;
}
.cx-btn {
  flex: none;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.cx-btn.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--on-green);
}
.cx-btn.amber {
  border-color: #e9cf9c;
  background: var(--amber-wash);
  color: var(--amber);
}
.cx-btn.danger {
  border-color: #e9c3bd;
  background: var(--danger-wash);
  color: var(--danger-deep);
}
.cx-btn.wide {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
}
.cx-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cx-foot {
  margin: 18px 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.cx-foot.center {
  margin: 0 4px;
  text-align: center;
}
/* Nothing connected yet: one card per provider that says what connecting it does. */
.cx-offer {
  padding: 18px 16px;
}
#connectors-head + #connectors-list > .cx-offer:first-child {
  margin-top: 22px;
}
.cx-offer + .cx-offer {
  margin-top: 14px;
}
.cx-offer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cx-offer .cx-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.cx-offer-name {
  font-size: 17px;
  font-weight: 700;
}
.cx-offer-sub {
  font-size: 13px;
  color: var(--muted);
}
.cx-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.cx-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.cx-dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green-lift);
}
.cx-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cx-or {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
/* A service's own screen. */
.cx-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
}
.cx-title .cx-ico {
  width: 36px;
  height: 36px;
}
.cx-who {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}
/* With the section labels gone, the first card keeps its distance from the address above it. */
.cx-who + .cx-card,
.cx-title + .cx-card {
  margin-top: 22px;
}
.cx-secured {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.cx-secured + .cx-card {
  margin-top: 18px;
}
.cx-ask {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}
.cx-time label {
  flex: 1;
  margin: 0;
  font-weight: 700;
}
.cx-time select {
  flex: none;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: right;
  color: var(--green);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.cx-switch .switch {
  flex: none;
}
.cx-leave {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
}
/* The rename sheet. */
#account-sheet,
#account-sheet .sheet-foot {
  background: var(--surface);
}
#account-sheet .sheet-foot {
  border-top: 0;
}
#account-sheet h2 {
  margin: 0;
  font-size: 22px;
}
.cx-field {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
#account-alias {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 2px solid var(--green-lift);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.cx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cx-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#account-sheet .sheet-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#account-sheet .sheet-foot .primary {
  width: 100%;
  min-height: 52px;
}
.cx-remove {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cx-mark {
    background: #f6f8f6;
  }
  :root:not([data-theme="light"]) .cx-btn.amber {
    border-color: #5a4720;
  }
  :root:not([data-theme="light"]) .cx-btn.danger {
    border-color: #5a2d28;
  }
}
#connectors {
  max-width: 640px;
}
.cx-pick {
  flex: none;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.cx-choice {
  min-height: 48px;
  padding-left: 32px;
}
.cx-choice .cx-svc {
  font-size: 15px;
}
.cx-check {
  flex: none;
  width: 20px;
  color: var(--green);
  font-weight: 700;
  text-align: center;
}
/* A default's ask, in its own row: the question, then Change and Cancel side by side. */
.cx-confirm {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.cx-confirm .cx-ask {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.cx-confirm .cx-actions {
  flex-direction: row;
}
.cx-confirm .cx-btn {
  flex: 1;
}
/* An empty circle where a default's check would sit: the row is a choice. */
.cx-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  box-sizing: border-box;
}

/* Invite a friend: the link beside two small icons, cut short rather than pushing them off. */
.setting.invite-row {
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.setting .invite-label {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.setting .invite-url {
  overflow: hidden;
  text-overflow: ellipsis;
}
