@font-face { font-family: Allo; src: url(fonts/AlloVariable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #fffafa; --tile: #f9f4f4; --ink: #111; --ink2: #3a3a3a; --dim: #8b8b8b; --mute: #c4c4c4;
  --line: #ededed; --soft: #f5f5f4; --soft2: #ebebea;
  --spot: #ff6a14; --spot-a: rgb(255 106 20 / .09); --spot-b: rgb(255 106 20 / .22);
  --out: cubic-bezier(.2, 0, 0, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@supports (color: color(display-p3 1 1 1)) {
  :root { --spot: color(display-p3 1 .4157 .0784); --spot-a: color(display-p3 1 .4157 .0784 / .09); --spot-b: color(display-p3 1 .4157 .0784 / .22); }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
html { overflow-x: clip; }
body {
  font: 420 15px/1.4 Allo, system-ui, sans-serif; font-variation-settings: "ROND" 40;
  font-optical-sizing: auto; font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
}
::selection { background: var(--ink); color: var(--paper); }
button, input { font: inherit; color: inherit; font-variation-settings: inherit; }
button { touch-action: manipulation; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; border-radius: 8px; }
.tnum { font-variant-numeric: tabular-nums; }

.i { width: 18px; height: 18px; flex: none; display: block; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--dim); font-variant-numeric: tabular-nums; }
.rule { padding-top: 8px; border-top: 1px solid var(--line); }

/* avatar */
.av { --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--soft); color: var(--ink2); font-size: calc(var(--s) * .36); font-weight: 600; letter-spacing: .02em;
  font-variation-settings: "ROND" 100; box-shadow: 0 0 0 2px var(--paper); }
.av-me { background: var(--ink); color: var(--paper); }

/* buttons */
.btn-ink { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 22px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; transition: scale .15s var(--out), background .2s; }
.btn-ink:active { scale: .96; }
.btn-ink .i { width: 17px; height: 17px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px;
  color: var(--ink2); font-weight: 500; transition: background .2s, scale .15s var(--out); }
.btn-ghost:hover { background: var(--soft); }
.btn-ghost:active { scale: .96; }
.ib { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); transition: background .2s, scale .15s var(--out); }
.ib:hover { background: var(--soft); }
.ib:active { scale: .92; }

/* segmented */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 14px; background: var(--soft); position: relative; }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 11px; border-radius: 11px; font-size: 13px; font-weight: 500; color: var(--dim);
  font-variant-numeric: tabular-nums; transition: color .2s; white-space: nowrap; }
.seg button.on { color: var(--ink); }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 11px; background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 2px 8px rgb(0 0 0 / .05); transition: left .35s var(--out), width .35s var(--out); }

/* reveal */
[data-rv] { opacity: 0; translate: 0 14px; filter: blur(4px);
  transition: opacity .8s var(--out), translate .8s var(--out), filter .8s var(--out); transition-delay: calc(var(--i, 0) * 70ms); }
[data-rv].in { opacity: 1; translate: 0 0; filter: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom)); white-space: nowrap; translate: -50% 20px; opacity: 0; z-index: 50; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 20px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500;
  transition: opacity .3s var(--out), translate .4s var(--out); pointer-events: none; }
.toast.on { opacity: 1; translate: -50% 0; }
.toast .i { color: var(--spot); }

/* menu */
.menu { position: absolute; z-index: 40; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .1); opacity: 0; translate: 0 -6px; scale: .98; transform-origin: top left;
  transition: opacity .16s var(--out), translate .2s var(--out), scale .2s var(--out); }
.menu.on { opacity: 1; translate: 0 0; scale: 1; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; text-align: left; font-size: 14px; font-weight: 500; }
.menu button:hover { background: var(--soft); }
.menu button span { flex: 1; }
.menu button em { font-style: normal; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.menu button .i { color: var(--spot); width: 16px; height: 16px; }

/* people sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgb(255 250 250 / 0);
  backdrop-filter: blur(0); transition: background .3s, backdrop-filter .3s; }
.sheet-wrap.on { background: rgb(255 250 250 / .55); backdrop-filter: blur(6px); }
.sheet { width: min(440px, 100%); height: min(640px, calc(100svh - 32px)); display: flex; flex-direction: column; border-radius: 24px; background: var(--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 64px rgb(0 0 0 / .12); opacity: 0; translate: 0 16px; scale: .98;
  transition: opacity .25s var(--out), translate .35s var(--out), scale .35s var(--out); }
.sheet-wrap.on .sheet { opacity: 1; translate: 0 0; scale: 1; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 20px; font-size: 17px; }
.sheet-head b { font-weight: 650; }
.search { display: flex; align-items: center; gap: 8px; margin: 6px 16px 8px; height: 42px; padding: 0 12px; border-radius: 13px; background: var(--soft); color: var(--dim); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 15px; }
.sheet-list { flex: 1; overflow: auto; padding: 4px 8px; }
.row { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 14px; transition: background .2s; }
.row:hover { background: var(--tile); }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px; text-align: left; }
.row-txt { min-width: 0; display: grid; }
.row-txt b { font-weight: 550; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-txt span { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.you { font-style: normal; font-size: 11px; font-weight: 500; color: var(--dim); margin-left: 4px; }
.chip-day { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 7px; border-radius: 14px; font-size: 12px; font-weight: 500;
  color: var(--ink2); background: var(--soft); transition: scale .15s var(--out); }
.chip-day:active { scale: .94; }
.chip-day .i { width: 14px; height: 14px; }
.tick { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .2s, color .2s, box-shadow .2s, scale .2s var(--spring); }
.tick .i { width: 16px; height: 16px; }
.row.on .tick { background: var(--ink); color: var(--paper); box-shadow: none; }
.tick:active { scale: .88; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 16px 20px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation-duration: .01s !important; }
  [data-rv] { opacity: 1; translate: none; filter: none; }
}
/* screenshot mode (?shot) */
html.shot *, html.shot *::before, html.shot *::after { transition: none !important; animation: none !important; }
html.shot .ring path { stroke-dashoffset: 0; }
html.shot .ch.r .o { display: none; }
html.shot .summary.good .i path { stroke-dashoffset: 0; }
