/* The watcher's page, in the site's own look (owner, 25 Oct 2026: "the whole design should be based on that orange
   colour... no sloppy svgs... no pulsing dots... make it minimal... and make it look grand"): the orange page with its
   faint dots, big white words in the site's typeface, the black notch hanging from the top, black pill buttons and black
   sheets. Colour lives only inside the notch (green for work, amber for wasting, red for lock-in), as on the Mac. */

:root {
  --orange: #f26b3a;
  --ink: #1d1410;
  --white: #fff;
  --w88: rgb(255 255 255 / 0.88);
  --w70: rgb(255 255 255 / 0.7);
  --w55: rgb(255 255 255 / 0.55);
  --hair: rgb(255 255 255 / 0.24);
  --glass: rgb(255 255 255 / 0.18);
  --glass-on: rgb(255 255 255 / 0.3);
  --sheet: #0b0b0c;
  --sheet-2: #1c1c1e;
  --sheet-3: #2c2c2e;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ios: cubic-bezier(0.32, 0.72, 0, 1);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --kb: 0px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--orange);
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  overscroll-behavior: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.num {
  font-variant-numeric: tabular-nums;
}
.noscript {
  padding: 40px 24px;
  text-align: center;
}

/* ---------- Apple's symbols, as masks the text colour fills ---------- */

.sym {
  display: inline-block;
  flex: none;
  height: 1.1em;
  aspect-ratio: var(--ar, 1);
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.s-chevron-left { --m: url(sf/chevron-left.png); --ar: 39 / 54; }
.s-chevron-right { --m: url(sf/chevron-right.png); --ar: 32 / 44; }
.s-chevron-down { --m: url(sf/chevron-down.png); --ar: 47 / 29; }
.s-gearshape-fill { --m: url(sf/gearshape-fill.png); --ar: 62 / 60; }
.s-mic-fill { --m: url(sf/mic-fill.png); --ar: 51 / 61; }
.s-stop-fill { --m: url(sf/stop-fill.png); --ar: 54 / 48; }
.s-play-fill { --m: url(sf/play-fill.png); --ar: 45 / 49; }
.s-pause-fill { --m: url(sf/pause-fill.png); --ar: 44 / 49; }
.s-checkmark { --m: url(sf/checkmark.png); --ar: 52 / 48; }
.s-xmark { --m: url(sf/xmark.png); --ar: 48 / 45; }
.s-square-and-arrow-up { --m: url(sf/square-and-arrow-up.png); --ar: 58 / 67; }
.s-plus-square { --m: url(sf/plus-square.png); --ar: 59 / 53; }
.s-ellipsis { --m: url(sf/ellipsis.png); --ar: 58 / 21; }
.s-arrow-down { --m: url(sf/arrow-down.png); --ar: 53 / 57; }
.s-arrow-up { --m: url(sf/arrow-up.png); --ar: 53 / 57; }

/* ---------- the stage and its screens: the orange, with the site's faint dots at the edges ---------- */

#stage {
  position: fixed;
  inset: 0;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background:
    radial-gradient(ellipse 72% 62% at 50% 46%, var(--orange) 52%, rgb(242 107 58 / 0) 100%),
    radial-gradient(circle, rgb(255 255 255 / 0.16) 1px, transparent 1.4px) 0 0 / 15px 15px,
    var(--orange);
  will-change: transform;
}
.screen.pushed {
  box-shadow: -18px 0 40px rgb(60 20 0 / 0.22);
}

/* ---------- the notch: the site's black shape, flat on top, round below, two little curves where it meets the top ---------- */

.top-notch {
  --c: #fff;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 132px);
  height: calc(var(--st) + 56px);
  padding: var(--st) 22px 0 11px;
  transform: translateX(-50%);
  border-radius: 0 0 24px 24px;
  background: #000;
  color: #fff;
  box-shadow: 0 14px 34px -10px rgb(60 20 0 / 0.45);
}
.top-notch::before,
.top-notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.top-notch::before {
  left: -14px;
  background: radial-gradient(circle at 0 100%, transparent 13.5px, #000 14px);
}
.top-notch::after {
  right: -14px;
  background: radial-gradient(circle at 100% 100%, transparent 13.5px, #000 14px);
}
.top-notch.face-only {
  justify-content: center;
  width: 128px;
  padding: var(--st) 0 0;
}
.top-notch.big {
  gap: 13px;
  min-width: 212px;
  height: calc(var(--st) + 66px);
  padding: var(--st) 26px 0 12px;
  border-radius: 0 0 28px 28px;
}
.tn-face {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
}
.top-notch.big .tn-face {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.tn-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  image-rendering: pixelated;
}
.tn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.12;
}
.tn-label {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  color: var(--w55);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tn-word {
  overflow: hidden;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c);
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.5s ease;
}

.sprite-face {
  flex: none;
  width: var(--size);
  height: var(--size);
  overflow: hidden;
}
.sprite-face-img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- buttons and fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.3s var(--spring), opacity 0.2s ease, background 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.btn:disabled:active {
  transform: none;
}
/* on the orange: the site's black pill, a little Dynamic Island */
.btn.black {
  height: 58px;
  background: #000;
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 16px 36px -12px rgb(60 20 0 / 0.6);
}
.btn.black:disabled {
  opacity: 1;
  background: rgb(0 0 0 / 0.28);
  color: rgb(255 255 255 / 0.75);
  box-shadow: none;
}
.btn.ghost,
.btn.no {
  background: var(--sheet-3);
  color: #fff;
}
.btn.red {
  background: #ff453a;
  color: #fff;
}
.btn.no,
.btn.yes {
  height: 50px;
}
.btn-face {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #1c1c1e;
}
.btn-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  image-rendering: pixelated;
}
.btn.talk {
  position: relative;
}
.btn.talk .btn-face {
  position: absolute;
  left: 8px;
  top: 8px;
}
.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.85);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.field {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}
.field::placeholder {
  color: rgb(29 20 16 / 0.38);
}
.field:focus {
  outline: none;
  box-shadow: 0 0 0 3px #000;
}
.err {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.err:empty {
  display: none;
}
.spin {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* ---------- the pages with one thing to say ---------- */

.solo {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: calc(var(--st) + 80px) calc(var(--sr) + 24px) calc(var(--sb) + 20px) calc(var(--sl) + 24px);
  text-align: center;
}
.solo-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 28px;
}
.big {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(34px, 10.4vw, 46px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lead {
  max-width: 30ch;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--w88);
  text-wrap: balance;
}
.solo-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.fine {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--w70);
  text-wrap: balance;
}
.lines {
  width: 100%;
  max-width: 320px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.lines li {
  padding: 13px 0;
  border-top: 1px solid var(--hair);
  font-size: 17px;
  color: var(--w88);
}
.lines li:last-child {
  border-bottom: 1px solid var(--hair);
}
.loading {
  min-height: 100%;
}

/* your face in their notch */
.tries {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 330px;
  margin: 0 auto 24px;
}
.tries.n1 {
  max-width: 210px;
}
.tries.n2 {
  grid-template-columns: 1fr 1fr;
}
.try {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #000;
  outline: 3px solid transparent;
  outline-offset: 4px;
  transition: outline-color 0.2s ease, transform 0.3s var(--spring);
}
.try.on {
  outline-color: #fff;
}
.try:active {
  transform: scale(0.97);
}
.try img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgb(0 0 0 / 0.16);
  font-size: 14.5px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.tick {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.tick:checked {
  background: #fff;
}
.tick:checked::after {
  content: "";
  width: 13px;
  height: 12px;
  background: #000;
  -webkit-mask: url(sf/checkmark.png) center / contain no-repeat;
  mask: url(sf/checkmark.png) center / contain no-repeat;
}
.meter {
  width: min(240px, 64%);
  height: 4px;
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.26);
}
.meter i {
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: left;
  transition: transform 0.9s var(--ios);
}
.face-progress {
  margin-top: 26px;
}

/* alerts: the Home Screen steps, with Safari's own symbols */
.steps-area {
  width: 100%;
  max-width: 330px;
  margin: 24px auto 0;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.4;
}
.steps .n {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  font-size: 15px;
  font-weight: 600;
}
.sym.inline {
  height: 1.05em;
  margin: 0 1px;
  vertical-align: -0.16em;
}
.pointer {
  position: fixed;
  z-index: 20;
  color: #fff;
  animation: point-down 1.5s var(--ios) infinite;
}
.pointer .sym {
  height: 34px;
}
.pointer.bottom {
  bottom: calc(var(--sb) + 6px);
  left: calc(50% - 16px);
}
.pointer.bottom-right {
  right: 26px;
  bottom: calc(var(--sb) + 6px);
}
.pointer.top-right {
  top: 6px;
  right: 72px;
  animation-name: point-up;
}
@keyframes point-down {
  50% {
    transform: translateY(8px);
  }
}
@keyframes point-up {
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- home: one screen, nothing to scroll ---------- */

.home {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 560px;
  padding: calc(var(--st) + 70px) calc(var(--sr) + 20px) calc(var(--sb) + 6px) calc(var(--sl) + 20px);
}
.corner-r {
  position: absolute;
  top: calc(var(--st) + 11px);
  right: calc(var(--sr) + 8px);
  z-index: 6;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
}
.corner-r .sym {
  height: 23px;
}
.corner-r:active {
  background: var(--glass);
}
.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 6px 0 14px;
  text-align: center;
}
.time {
  font-size: clamp(66px, 24vw, 108px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.rc {
  display: inline-block;
}
.rc.in {
  animation: roll-in 0.5s var(--spring) both;
}
@keyframes roll-in {
  from {
    opacity: 0;
    transform: translateY(42%);
  }
}
.sub {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--w88);
}
.facts {
  max-width: 32ch;
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--w88);
  text-wrap: balance;
}
.now {
  max-width: 100%;
  margin: 6px 0 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--w70);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.view-note {
  margin: 16px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.18);
  font-size: 14px;
  font-weight: 500;
}
.home-foot {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 12px;
}
.setup-pill {
  align-self: center;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.3s var(--spring);
}
.setup-pill:active {
  transform: scale(0.96);
}
.req {
  padding: 16px 18px 18px;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 18px 40px -16px rgb(60 20 0 / 0.55);
}
.req-who {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--w55);
}
.req-q {
  margin: 6px 0 14px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.req-note {
  margin: -6px 0 14px;
  font-size: 13.5px;
  color: var(--w55);
}
.yn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.req-done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--w88);
}
.req-done .sym {
  height: 14px;
}
.req-more {
  display: block;
  width: 100%;
  height: 32px;
  margin: 12px 0 -4px;
  border: 0;
  background: none;
  color: var(--w55);
  font-size: 14.5px;
  font-weight: 600;
}
.reacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.react {
  height: 46px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.3s var(--spring);
}
.react:active {
  background: var(--glass-on);
  transform: scale(0.96);
}
.react:disabled {
  opacity: 0.6;
}
.links {
  display: flex;
  justify-content: center;
  gap: 4px 20px;
  flex-wrap: wrap;
}
.lnk {
  height: 42px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.82);
  font-size: 15px;
  font-weight: 600;
}
.lnk:active {
  color: #fff;
}

/* shorter phones: the same screen, a little tighter */
@media (max-height: 740px) {
  .home {
    padding-top: calc(var(--st) + 64px);
  }
  .time {
    font-size: clamp(56px, 20vw, 84px);
  }
  .sub {
    margin-top: 8px;
    font-size: 17px;
  }
  .meter {
    margin-top: 14px;
  }
  .facts {
    margin-top: 11px;
    font-size: 14px;
  }
  .home-foot {
    gap: 9px;
  }
  .req {
    padding: 13px 16px 15px;
  }
  .req-q {
    margin-bottom: 11px;
    font-size: 19px;
  }
  .btn.no,
  .btn.yes {
    height: 44px;
  }
  .react {
    height: 42px;
    font-size: 14.5px;
  }
  .btn.black {
    height: 54px;
  }
  .btn.talk .btn-face {
    top: 6px;
  }
  .lnk {
    height: 38px;
  }
}

/* ---------- the screens over home: today, past days, Blocks, latest ---------- */

.page {
  padding: 0 calc(var(--sr) + 20px) calc(var(--sb) + 48px) calc(var(--sl) + 20px);
}
.page-head {
  position: sticky;
  top: 0;
  z-index: 5;
  height: calc(var(--st) + 56px);
  margin: 0 -20px;
  pointer-events: none;
}
.back {
  position: absolute;
  top: calc(var(--st) + 8px);
  left: calc(var(--sl) + 14px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--glass);
  color: #fff;
  pointer-events: auto;
  transition: background 0.2s ease;
}
.back:active {
  background: var(--glass-on);
}
.back .sym {
  height: 17px;
  margin-left: -2px;
}
.title {
  margin: 26px 0 0;
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.page-sub {
  max-width: 34ch;
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--w88);
}
.summary {
  margin: 28px 0 0;
}
.sum-big {
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.sum-of {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--w70);
}
.daybar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin: 18px 0 0;
}
.daybar i {
  min-width: 6px;
  border-radius: 5px;
}
.daybar .w,
.sw.w {
  background: #fff;
}
.daybar .n,
.sw.n {
  background: #000;
}
.daybar .p,
.sw.p {
  background: rgb(255 255 255 / 0.45);
}
.daybar .u,
.sw.u {
  background: rgb(255 255 255 / 0.22);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--w88);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.sec {
  margin-top: 38px;
}
.sec h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rows {
  border-top: 1px solid var(--hair);
}
.title + .rows,
.page-sub + .rows,
.summary + .rows {
  margin-top: 26px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: none;
  color: #fff;
  text-align: left;
}
button.row {
  transition: background 0.2s ease;
}
button.row:active {
  background: rgb(255 255 255 / 0.08);
}
.row.timed {
  align-items: flex-start;
}
.row-time {
  flex: none;
  width: 66px;
  padding-top: 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--w70);
}
.row-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.row-t {
  overflow: hidden;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.row-t.wrap {
  white-space: normal;
}
.row-s {
  font-size: 14px;
  color: var(--w70);
}
.val {
  flex: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--w88);
}
.val.missed {
  color: #000;
}
.chev {
  height: 13px;
  opacity: 0.6;
}
.chev.turn {
  height: 8px;
  transition: transform 0.3s var(--ios);
}
.row.open .chev.turn {
  transform: rotate(180deg);
}
.titles {
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--hair);
}
.title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 8px 14px;
  font-size: 14.5px;
  color: var(--w88);
}
.tt {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.thumb {
  width: 132px;
  height: 82px;
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.22);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gone-pic {
  display: block;
  padding: 8px;
  font-size: 12px;
  color: var(--w70);
}
.foot {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--w70);
}
.empty {
  margin: 48px 0 0;
  font-size: 17px;
  color: var(--w88);
  text-align: center;
}
.blocks-list {
  margin-top: 22px;
  border-top: 1px solid var(--hair);
}
.block {
  padding: 20px 0;
  border-bottom: 1px solid var(--hair);
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.block-name {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.on-now {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: #000;
  font-size: 13px;
  font-weight: 600;
}
.block-when {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--w88);
}
.block-items {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--w70);
}

/* ---------- black sheets, like the Mac's notch cards ---------- */

#layer {
  position: relative;
  z-index: 50;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(40 12 0 / 0.4);
}
.sheet {
  position: fixed;
  right: 0;
  bottom: var(--kb);
  left: 0;
  z-index: 51;
  max-width: 520px;
  max-height: calc(100dvh - var(--st) - var(--kb) - 24px);
  margin: 0 auto;
  padding: 0 calc(var(--sr) + 20px) calc(var(--sb) + 20px) calc(var(--sl) + 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 30px 30px 0 0;
  background: var(--sheet);
  color: #fff;
  box-shadow: 0 -20px 60px rgb(40 12 0 / 0.35);
}
.sheet-grab {
  padding: 9px 0 16px;
  touch-action: none;
  cursor: grab;
}
.grabber {
  width: 38px;
  height: 5px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.22);
}
.sheet h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.sheet .sub {
  margin: 6px 0 18px;
  font-size: 16px;
  color: rgb(255 255 255 / 0.6);
}
.sheet h3 + .group {
  margin-top: 18px;
}
.sheet .btn + .btn,
.sheet .btn + .link {
  margin-top: 10px;
}
.sheet .link {
  width: 100%;
  color: rgb(255 255 255 / 0.62);
}
.sheet .foot {
  margin-top: 14px;
  color: rgb(255 255 255 / 0.5);
  text-align: center;
}
.group {
  overflow: hidden;
  border-radius: 18px;
  background: var(--sheet-2);
}
.group + .group {
  margin-top: 12px;
}
.srow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
}
.group > .srow + .srow {
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
button.srow:active {
  background: rgb(255 255 255 / 0.06);
}
.srow-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.srow-t {
  font-size: 17px;
  font-weight: 500;
}
.srow-s {
  font-size: 14px;
  color: rgb(255 255 255 / 0.55);
}
.srow-v {
  max-width: 45%;
  overflow: hidden;
  font-size: 16px;
  color: rgb(255 255 255 / 0.55);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.srow.danger .srow-t {
  color: #ff6961;
}
.srow .chev {
  opacity: 0.4;
}
.sfield {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--sheet-2);
  color: #fff;
  font-size: 17px;
  resize: none;
}
.sfield::placeholder {
  color: rgb(255 255 255 / 0.35);
}
.sfield:focus {
  outline: 2px solid rgb(255 255 255 / 0.45);
}
.count-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 26px;
}
.count {
  font-size: 13px;
  color: rgb(255 255 255 / 0.5);
}
.gap {
  height: 12px;
}
.req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.sheet .req {
  background: var(--sheet-2);
  box-shadow: none;
}
.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #39393d;
  transition: background 0.25s ease;
}
.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
  transition: transform 0.3s var(--spring);
}
.switch.on {
  background: var(--orange);
}
.switch.on i {
  transform: translateX(20px);
}

/* the voice note: one round button, a ring that fills over the thirty seconds */
.rec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 18px;
}
.rec-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
}
.rec-ring {
  --p: 0;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--p) * 1turn), rgb(255 255 255 / 0.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 57px, #000 58px);
  mask: radial-gradient(circle, transparent 57px, #000 58px);
  transition: opacity 0.3s ease;
}
.recorded .rec-ring {
  opacity: 0;
}
.rec-btn {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transition: transform 0.3s var(--spring), background 0.25s ease, color 0.25s ease;
}
.rec-btn:active {
  transform: scale(0.94);
}
.rec-btn .sym {
  height: 30px;
}
.recording .rec-btn {
  background: #ff453a;
  color: #fff;
}
.recording .rec-btn .sym {
  height: 24px;
}
.rec-time {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.rec-hint {
  margin-top: 2px;
  font-size: 15px;
  color: rgb(255 255 255 / 0.6);
}

/* ---------- the toast: a line that drops from the top like the Mac's notch ---------- */

.toast {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 90;
  min-width: min(260px, 78vw);
  max-width: calc(100vw - 64px);
  padding: calc(var(--st) + 19px) 26px 19px;
  transform: translate(-50%, 0);
  border-radius: 0 0 26px 26px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  box-shadow: 0 18px 40px -12px rgb(40 12 0 / 0.55);
}
.toast::before,
.toast::after {
  content: "";
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
}
.toast::before {
  left: -14px;
  background: radial-gradient(circle at 0 100%, transparent 13.5px, #000 14px);
}
.toast::after {
  right: -14px;
  background: radial-gradient(circle at 100% 100%, transparent 13.5px, #000 14px);
}

/* ---------- a strike's picture ---------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: calc(var(--st) + 64px) 16px calc(var(--sb) + 30px);
  background: rgb(0 0 0 / 0.92);
}
.viewer img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
}
.round {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}
.round .sym {
  height: 15px;
}
.viewer .close {
  position: absolute;
  top: calc(var(--st) + 12px);
  right: 14px;
}

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