/* Pippin. Orchard colours: cream, leaf and russet, flat surfaces, almost no movement. Colour means
   something needs you or you can act; motion means an agent is working. */

@font-face {
  font-family: 'Albert Sans';
  font-weight: 100 900;
  font-display: swap;
  src: url('/albert-sans.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --ground: #f3ecdd;
  --card: #fbf7ee;
  --mine: #e0e2c4;
  --ink: #2b241c;
  --muted: #635747;
  --line: #dccfb8;
  --accent: #3f5a2b;
  --on-accent: #fbf7ee;
  --amber: #7d510c;
  --red: #98301f;
  --stone-filter: none;

  --font: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --small: 0.875rem;
  --tap: 46px;
  --column: 42rem;
  --gutter: max(1.125rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --ease: cubic-bezier(0.25, 0.7, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1f1b17;
    --card: #2b2620;
    --mine: #353a2a;
    --ink: #ece4d6;
    --muted: #ada08d;
    --line: #443b31;
    --accent: #b5c98a;
    --on-accent: #1f2613;
    --amber: #dcae62;
    --red: #e8998a;
    --stone-filter: brightness(1.2);
  }
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------ stones */

.stone {
  display: block;
  flex: none;
  overflow: visible;
}

.stone.agent {
  filter: var(--stone-filter);
}

.stone-initial {
  fill: #2a302d;
  font: 600 16px var(--font);
}

.stone.guest .stone-body {
  fill-opacity: 0.45;
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}

.stone.guest .stone-initial {
  fill: var(--ink);
}

/* ------------------------------------------------------------ controls */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.4rem 1.25rem;
  border: 0;
  border-radius: 24px;
  background: var(--mine);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}

.button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--mine) 88%, var(--ink));
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
}

.button:disabled {
  opacity: 0.55;
  cursor: default;
}

.button.small {
  min-height: 38px;
  padding: 0.2rem 1rem;
  font-size: var(--small);
}

.button.hold {
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.button.hold i {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--on-accent) 30%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}

.button.hold.holding i {
  transform: none;
  transition: transform 800ms linear;
}

.button.hold span {
  position: relative;
}

.text-button {
  min-height: var(--tap);
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--small);
  font-weight: 500;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

.icon-button {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.icon-button.small {
  width: 38px;
  height: 38px;
  color: var(--muted);
}

.icon-button svg,
.send svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg path,
.send svg path {
  fill: none;
}

input,
textarea {
  min-height: var(--tap);
  padding: 0.62rem 1.1rem;
  border: 0;
  border-radius: 24px;
  background: var(--card);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:focus-visible,
textarea:focus-visible {
  outline-width: 1.5px;
  outline-offset: 0;
}

textarea {
  display: block;
  resize: none;
  line-height: 1.4;
}

.hint {
  color: var(--muted);
  font-size: var(--small);
}

.error {
  margin-top: 0.6rem;
  color: var(--red);
  font-size: var(--small);
  font-weight: 600;
}

/* ------------------------------------------------------------ home */

.home {
  width: min(100% - 2.5rem, 36rem);
  margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 0 4rem;
}

.home.narrow {
  width: min(100% - 2.5rem, 30rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.intro,
.yours {
  padding-top: clamp(3.5rem, 13vh, 8rem);
}

.intro h1 {
  max-width: 12em;
  font-size: clamp(2.1rem, 8vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.yours h1,
.home.narrow h1 {
  font-size: 1.85rem;
}

.home.narrow h1 {
  margin-top: clamp(3.5rem, 16vh, 9rem);
}

.lede {
  max-width: 32em;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.home > .button,
.intro .button,
.new-room {
  margin-top: 1.5rem;
}

.new-room {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.start {
  margin-top: 2.25rem;
}

.start label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: var(--small);
  font-weight: 500;
}

.start-row {
  display: flex;
  gap: 0.6rem;
}

.start-row input {
  flex: 1;
  min-width: 0;
}

.start .hint {
  margin-top: 0.75rem;
}

.steps {
  margin: 1.75rem 0;
  padding-left: 1.3rem;
}

.steps li + li {
  margin-top: 0.6rem;
}

.needs,
.rooms {
  list-style: none;
}

.needs:not(:empty) {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.need,
.room-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 0.9rem;
  align-items: center;
  text-decoration: none;
}

.need {
  padding: 1rem 1.15rem;
  border-radius: 26px 22px 28px 20px;
  background: var(--card);
}

.need-who {
  display: block;
  color: var(--muted);
  font-size: var(--small);
}

.need-what {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rooms {
  margin-top: 1.5rem;
}

.room-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 -0.75rem;
  padding: 0.75rem;
  border-radius: 20px;
}

.room-row:hover {
  background: color-mix(in srgb, var(--card) 60%, transparent);
}

.room-name,
.room-last {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-name {
  font-weight: 600;
}

.room-last,
.room-row time {
  color: var(--muted);
  font-size: 0.9375rem;
}

.room-row time {
  align-self: start;
  padding-top: 0.15rem;
  font-size: 0.8125rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.75rem 2.5rem;
  margin-top: clamp(4rem, 12vh, 7rem);
}

.facts h2 {
  font-size: 1rem;
  letter-spacing: 0;
}

.facts p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------ room */

.room {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.bar {
  display: flex;
  align-items: center;
  width: min(100%, calc(var(--column) + 6rem));
  margin: 0 auto;
  padding: max(0.6rem, env(safe-area-inset-top)) 0.6rem 0.35rem;
}

.bar-title {
  flex: 1;
  min-width: 0;
  padding: 0 0.35rem;
}

.bar-title h1 {
  overflow: hidden;
  font-size: 1.0625rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence {
  display: flex;
  text-overflow: ellipsis;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--small);
  line-height: 1.35;
  white-space: nowrap;
}

.presence .dot {
  flex: none;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.presence[data-state='working'] .dot,
.presence[data-state='listening'] .dot {
  border-color: var(--accent);
  background: var(--accent);
}

.presence[data-state='waiting'],
.presence[data-state='offline'] {
  color: var(--amber);
}

.presence[data-state='waiting'] .dot {
  background: currentColor;
}

.members {
  display: flex;
  flex: none;
}

.member {
  display: grid;
  place-items: center;
  width: 34px;
  height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
}

.bar [data-stop] {
  flex: none;
}

@media (max-width: 420px) {
  .member:nth-child(n + 3) {
    display: none;
  }

  .member + .member {
    margin-left: -10px;
  }

  .bar [data-stop] {
    padding: 0 0.25rem;
  }
}

.notice,
.nudge {
  width: min(100% - 1.5rem, var(--column));
  margin: 0.25rem auto;
  padding: 0.6rem 1rem;
  border-radius: 18px;
  background: var(--card);
  font-size: var(--small);
  line-height: 1.4;
}

.nudge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-right: 0.35rem;
}

.nudge p {
  flex: 1;
}

.nudge-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0.75rem var(--gutter) 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line) transparent;
}

.timeline > * {
  flex: none;
  width: min(100%, var(--column));
  margin-inline: auto;
}

/* Short conversations sit near the composer, where your thumb is. */
.events {
  margin-top: auto;
  list-style: none;
}

.day,
.system {
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
  text-wrap: balance;
}

.day {
  padding: 1.1rem 0 0.4rem;
  font-weight: 500;
}

.system {
  padding: 0.25rem 1rem;
}

.msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1.25rem;
}

.msg.continued {
  margin-top: 0.6rem;
}

.msg.mine {
  align-items: flex-end;
}

.msg.mine.continued {
  margin-top: 0.25rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 34px;
  margin: 0 0 0.15rem -0.1rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: var(--small);
  cursor: pointer;
}

.byline .who {
  font-weight: 600;
}

.tag {
  color: var(--amber);
}

/* Agents write straight onto the page, so long messages read like text.
   People speak in bubbles. */
.body {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.msg.agent .body {
  max-width: min(100%, 38rem);
  line-height: 1.55;
}

.msg.human .body {
  max-width: min(84%, 32rem);
  padding: 0.6rem 1.05rem;
  border-radius: 20px;
  background: var(--card);
}

.msg.mine .body {
  background: var(--mine);
}

.body > * + *,
.ask-detail > * + *,
.folded-more > * + * {
  margin-top: 0.65em;
}

.body ul,
.body ol,
.ask-detail ul,
.ask-detail ol,
.ask-text ul,
.ask-text ol,
.folded-more ul:not(.other-answers),
.folded-more ol {
  padding-left: 1.25rem;
  white-space: normal;
}

.body ul,
.ask-detail ul,
.ask-text ul,
.folded-more ul:not(.other-answers) {
  list-style: disc;
}

.body li + li,
.ask-detail li + li {
  margin-top: 0.25em;
}

.body li::marker {
  color: var(--muted);
}

pre {
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 0.9rem;
  overflow-x: auto;
  border-radius: 14px;
  background: var(--card);
  line-height: 1.45;
  white-space: pre;
}

.msg.human pre,
.ask pre {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

pre code {
  font-size: 0.8125rem;
}

/* A time only under the last message in a run. */
.msg time {
  display: none;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.msg:last-child time,
.msg:has(+ :not(.continued)) time {
  display: block;
}

.msg.status {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.msg.status time {
  display: none;
}

/* ------------------------------------------------------------ questions */

.ask.open {
  margin-top: 1.4rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 26px 22px 28px 20px;
  background: var(--card);
}

.ask-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.45rem;
  font-size: var(--small);
}

.ask-head .who {
  font-weight: 600;
}

.ask-kind,
.ask-head time {
  color: var(--muted);
}

.ask-head time {
  margin-left: auto;
  font-size: 0.8125rem;
}

.ask-text {
  margin-top: 0.6rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.006em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ask-text p {
  text-wrap: pretty;
}

.ask-detail {
  margin-top: 0.45rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ask .hint {
  margin-top: 0.75rem;
}

.answer {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.answer textarea {
  width: 100%;
  background: var(--ground);
}

.answer .text-button {
  justify-self: start;
  min-height: 34px;
  margin: 0 0 -0.5rem;
  padding: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.choice-row:has(.hold) {
  grid-template-columns: 2fr 3fr;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.options .button {
  text-align: left;
}

.reply-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.other-answers {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--small);
  list-style: none;
}

.ask:not(.open) {
  margin-top: 1rem;
}

.folded summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0 0.65rem;
  align-items: start;
  padding: 0.45rem 0;
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
}

.folded summary::-webkit-details-marker {
  display: none;
}

.folded svg {
  width: 20px;
  height: 20px;
  margin-top: 0.12rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.folded.deny svg {
  stroke: var(--red);
}

.folded.stopped svg {
  stroke: var(--muted);
}

.folded-line {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.folded-line strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.folded-said {
  display: block;
  color: var(--ink);
}

.folded time {
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.folded-more {
  margin: 0.25rem 0 0.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 20px;
  background: var(--card);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.folded-from {
  color: var(--muted);
  font-size: var(--small);
}

/* ------------------------------------------------------------ activity */

.activity:not(:empty) {
  margin-top: 1.1rem;
}

.working {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-height: 3rem;
  padding-left: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.ripple {
  position: relative;
  display: grid;
  place-items: center;
}

.ripple::before,
.ripple::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
  content: '';
  opacity: 0;
  animation: ripple 3.6s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

.ripple::after {
  animation-delay: 1.8s;
}

@keyframes ripple {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  15% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

.unheard {
  padding-left: 15%;
  color: var(--muted);
  font-size: var(--small);
  text-align: right;
  text-wrap: pretty;
}

/* ------------------------------------------------------------ bring in an agent */

.invite {
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.4rem 1.2rem;
  border-radius: 28px 24px 30px 22px;
  background: var(--card);
}

.invite h2 {
  font-size: 1.1875rem;
}

.invite ol {
  margin-top: 0.6rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.invite li + li {
  margin-top: 0.25rem;
}

.prompt {
  display: grid;
  gap: 1rem;
  justify-items: start;
  margin-top: 1rem;
}

.prompt p {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--ground);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  user-select: all;
}

.invite details {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: var(--small);
}

.invite summary {
  width: fit-content;
  cursor: pointer;
}

.invite details > * + * {
  margin-top: 0.5rem;
}

.invite pre {
  background: var(--ground);
}

/* ------------------------------------------------------------ composer */

.composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  width: min(100%, calc(var(--column) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0.5rem var(--gutter) max(0.9rem, env(safe-area-inset-bottom));
}

.composer textarea {
  flex: 1;
  min-width: 0;
}

.send {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.composer.empty .send {
  background: var(--card);
  color: var(--muted);
}

/* ------------------------------------------------------------ continue on your phone */

.phone {
  position: fixed;
  z-index: 5;
  right: 1.5rem;
  bottom: 5.5rem;
  width: 17rem;
  padding: 1.25rem;
  border-radius: 26px 22px 28px 20px;
  background: var(--card);
  box-shadow: 0 10px 36px rgb(20 26 24 / 16%);
}

.phone > .icon-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.phone h2 {
  padding-right: 2rem;
  font-size: 1.125rem;
}

.phone p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: var(--small);
}

.qr {
  margin: 0.95rem 0 0.7rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: #fff;
}

.qr svg {
  display: block;
  width: 100%;
  fill: #1b2220;
}

@media (min-width: 1300px) {
  .phone {
    top: 5rem;
    bottom: auto;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .phone {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .qr {
    max-width: 15rem;
    margin-inline: auto;
  }
}

/* ------------------------------------------------------------ sheets, toast */

.sheet {
  width: min(100%, 26rem);
  max-width: none;
  margin: auto auto 0;
  padding: 1.5rem 1.25rem max(1.1rem, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 28px 24px 0 0;
  background: var(--card);
  color: var(--ink);
}

@media (min-width: 640px) {
  .sheet {
    margin: auto;
    border-radius: 28px 24px 30px 22px;
  }
}

.sheet::backdrop {
  background: rgb(20 26 24 / 42%);
}

.sheet[open] {
  animation: settle 220ms var(--ease);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.sheet form {
  display: grid;
  gap: 0.45rem;
}

.sheet h2 {
  font-size: 1.1875rem;
}

.sheet .hint {
  margin-bottom: 0.4rem;
}

.device-list {
  list-style: none;
}

.device-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 52px;
}

.device-list .room-name {
  flex: 1;
  min-width: 0;
}

.phone .text-button {
  min-height: 34px;
  padding: 0;
}

.invite [data-also] {
  margin-top: 0.9rem;
}

.sheet-item {
  min-height: 48px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 18px;
  background: var(--ground);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.sheet-item:hover {
  background: var(--mine);
}

.sheet-item.danger {
  color: var(--red);
}

.sheet-item.quiet {
  background: none;
  color: var(--muted);
  text-align: center;
}

.member-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.member-head p,
.fingerprint {
  color: var(--muted);
  font-size: var(--small);
}

.fingerprint {
  margin-top: 0.5rem;
}

.fingerprint code {
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: 5.75rem;
  left: 50%;
  width: max-content;
  max-width: min(90vw, 26rem);
  padding: 0.65rem 1.1rem;
  border-radius: 20px;
  background: var(--ink);
  color: var(--ground);
  font-size: var(--small);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 180ms var(--ease);
}

.toast.show {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Holding still needs to show progress: fill at once, not gradually. */
  .ripple::before {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

@media (forced-colors: active) {
  .button,
  .ask.open,
  .need,
  .body,
  input,
  textarea {
    border: 1px solid;
  }
}
