﻿:root {
  --wp-1: #ffd9b8;
  --wp-2: #fbdcdc;
  --wp-3: #f4ead0;

  --card: #fffaf0;
  --label: #1c1c1e;
  --label-2: rgba(60, 60, 67, .6);
  --label-3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .18);
  --fill: rgba(120, 120, 128, .12);
  --fill-strong: rgba(120, 120, 128, .2);

  --accent: #ff8a00;
  --accent-deep: #e07600;
  --red: #ff3b30;

  --dot-r: #ff5f57;
  --dot-y: #febc2e;
  --dot-g: #28c840;

  --glass: rgba(253, 247, 236, .74);
  --hairline: rgba(0, 0, 0, .1);

  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;

  --r-card: 14px;
  --r-seg: 9px;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  color: var(--label);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(70vw 55vh at 70% 90%, rgba(255, 224, 178, .5), transparent 65%),
    radial-gradient(60vw 50vh at 15% 80%, rgba(255, 214, 214, .45), transparent 62%),
    linear-gradient(180deg, #f6f1e9, #f3ece2);
}
.wallpaper::before,
.wallpaper::after {
  content: "";
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  pointer-events: none;
}
.wallpaper::before {
  background: radial-gradient(closest-side, rgba(255, 176, 64, .55), rgba(255, 158, 92, .24) 46%, transparent 70%);
  top: -18%;
  left: -12%;
  animation: sunWander1 26s ease-in-out infinite alternate;
}
.wallpaper::after {
  background: radial-gradient(closest-side, rgba(255, 118, 148, .42), rgba(255, 176, 122, .2) 46%, transparent 70%);
  bottom: -22%;
  left: -14%;
  animation: sunWander2 34s ease-in-out infinite alternate;
}
@keyframes sunWander1 {
  0% { transform: translate(0, 0) scale(1); }
  45% { transform: translate(32vw, 30vh) scale(1.18); }
  100% { transform: translate(58vw, 8vh) scale(.92); }
}
@keyframes sunWander2 {
  0% { transform: translate(0, 0) scale(.95); }
  50% { transform: translate(34vw, -26vh) scale(1.12); }
  100% { transform: translate(58vw, -6vh) scale(.9); }
}

img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }

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

::selection { background: rgba(255, 138, 0, .28); }

::-webkit-scrollbar { width: 0; height: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ic {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.pill-bar {
  position: sticky;
  top: 10px;
  z-index: 45;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  box-shadow:
    0 8px 26px rgba(31, 26, 18, .12),
    0 0 0 0.5px var(--hairline),
    inset -0.75px -0.5px rgba(255, 255, 255, .4),
    inset 0.75px 0.5px rgba(255, 255, 255, .15),
    inset 0 0 14px 5px rgba(255, 252, 244, .06);
}
@supports not (backdrop-filter: blur(1px)) {
  .pill-bar { background: rgba(253, 247, 236, .97); }
}

.pill-dots {
  display: flex;
  gap: 6px;
  padding-right: 4px;
}
.pill-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.pill-dots i:nth-child(1) { background: var(--dot-r); }
.pill-dots i:nth-child(2) { background: var(--dot-y); }
.pill-dots i:nth-child(3) { background: var(--dot-g); }

.pill-side { width: 8px; }

.pill-menu {
  position: relative;
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(120, 120, 128, .14);
}
.pill-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  height: calc(100% - 4px);
  width: 80px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  transition: transform .32s var(--ease), width .32s var(--ease);
  z-index: 0;
}
.pill-item {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--label-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, transform .15s var(--spring);
}
.pill-item:active { transform: scale(.94); }
.pill-item[aria-pressed="true"] { color: var(--label); }

.app {
  max-width: 720px;
  margin-inline: auto;
  padding: 18px 16px 60px;
}

.large-title {
  padding: 14px 8px 18px;
}
.large-title h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.5px;
}
.large-title p {
  margin: 3px 0 0;
  font-size: 15px;
  color: var(--label-2);
}

.view { display: flex; flex-direction: column; gap: 20px; }
.view[hidden] { display: none; }

.g-group { display: flex; flex-direction: column; }
.group-label {
  margin: 0 16px 7px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--label-2);
}
.group-label-in { margin: 0 0 16px; }

.g-card {
  position: relative;
  isolation: isolate;
  background: rgba(255, 246, 230, .32);
  backdrop-filter: blur(34px) saturate(175%);
  -webkit-backdrop-filter: blur(34px) saturate(175%);
  border: 1px solid rgba(255, 251, 243, .55);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow:
    inset -0.75px -0.5px rgba(255, 255, 255, .35),
    inset 0.75px 0.5px rgba(255, 255, 255, .14),
    3px 2px 14px rgba(31, 26, 18, .12),
    inset 0 0 10px 5px rgba(255, 252, 244, .05),
    inset 0 0 40px 5px rgba(255, 252, 244, .05);
}
@supports not (backdrop-filter: blur(1px)) {
  .g-card { background: rgba(255, 248, 236, .95); }
}

.g-card > * {
  position: relative;
  z-index: 1;
}

.g-card::before,
.sheet::before,
.pill-bar::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900'%3E%3Cdefs%3E%3ClinearGradient id='r' gradientUnits='userSpaceOnUse' x1='-50' y1='-50' x2='1250' y2='950'%3E%3Cstop offset='0' stop-color='%23936622' stop-opacity='0'/%3E%3Cstop offset='.05' stop-color='%23ffbe66' stop-opacity='.5'/%3E%3Cstop offset='.08' stop-color='%23fff' stop-opacity='.85'/%3E%3Cstop offset='.11' stop-color='%23ffbe66' stop-opacity='.4'/%3E%3Cstop offset='.16' stop-color='%23ffbe66' stop-opacity='0'/%3E%3Cstop offset='.22' stop-color='%23ffbe66' stop-opacity='.65'/%3E%3Cstop offset='.255' stop-color='%23fff' stop-opacity='.8'/%3E%3Cstop offset='.29' stop-color='%23ffbe66' stop-opacity='.35'/%3E%3Cstop offset='.36' stop-color='%23ffbe66' stop-opacity='0'/%3E%3Cstop offset='.42' stop-color='%23936622' stop-opacity='.25'/%3E%3Cstop offset='.48' stop-color='%23ffbe66' stop-opacity='.75'/%3E%3Cstop offset='.52' stop-color='%23fff' stop-opacity='1'/%3E%3Cstop offset='.56' stop-color='%23ffbe66' stop-opacity='.35'/%3E%3Cstop offset='.63' stop-color='%23ffbe66' stop-opacity='0'/%3E%3Cstop offset='.69' stop-color='%23ffbe66' stop-opacity='.6'/%3E%3Cstop offset='.73' stop-color='%23fff' stop-opacity='.85'/%3E%3Cstop offset='.77' stop-color='%23ffbe66' stop-opacity='.3'/%3E%3Cstop offset='.84' stop-color='%23ffbe66' stop-opacity='0'/%3E%3Cstop offset='.9' stop-color='%23ffbe66' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%23ffbe66' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='22'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='1200' height='900' fill='url(%23r)' filter='url(%23b)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: .5;
}

.g-list { display: flex; flex-direction: column; }

.g-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 16px;
}
.g-row + .g-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--sep);
}
.g-row-tap { cursor: pointer; transition: background-color .12s ease; }
.g-row-tap:hover { background: rgba(120, 120, 128, .06); }
.g-row-tap:active { background: var(--fill); }

.g-main { flex: 1; min-width: 0; }
.row-title {
  display: block;
  font-size: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.row-sub {
  display: block;
  font-size: 13px;
  color: var(--label-2);
}
.row-value {
  font-size: 17px;
  color: var(--label-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row-value b { font-weight: 600; color: var(--label); }
.row-accent { color: var(--accent-deep); font-weight: 700; }
.g-row-danger .row-title { color: var(--red); }
.row-chevron { color: var(--label-3); display: inline-flex; }
.row-chevron .ic { width: 15px; height: 15px; stroke-width: 2.5; }

.ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 22px;
  gap: 6px;
}
.ring { width: 180px; height: 180px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--fill-strong); stroke-width: 14; }
.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 477.5;
  stroke-dashoffset: 477.5;
  transition: stroke-dashoffset .7s var(--ease);
}
.ring-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -122px;
  margin-bottom: 52px;
  pointer-events: none;
}
.ring-pct {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ring-counts {
  font-size: 15px;
  color: var(--label-2);
  font-variant-numeric: tabular-nums;
}
.ring-cap {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--label-2);
}

.add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  min-height: 72px;
}
.add-btn {
  width: 34px;
  height: 34px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fffaf0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s var(--spring);
}
.add-btn:active { transform: scale(.86); }
.add-btn .ic { width: 18px; height: 18px; stroke-width: 2.4; }

.add-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 17px;
  padding: 6px 0;
}
.add-input:focus { outline: none; }
.add-input::placeholder { color: var(--label-3); }

.add-time, .add-cat {
  border: none;
  background: var(--fill);
  border-radius: 8px;
  font-size: 15px;
  padding: 6px 8px;
  color: var(--label);
  color-scheme: light;
  flex: none;
  max-width: 118px;
}
.add-time:focus, .add-cat:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.seg {
  position: relative;
  display: flex;
  padding: 2px;
  border-radius: var(--r-seg);
  background: var(--fill);
}
.seg-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  height: calc(100% - 4px);
  width: 90px;
  border-radius: 7px;
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 0 0 0.5px rgba(0, 0, 0, .04);
  transition: transform .32s var(--ease), width .32s var(--ease);
  z-index: 0;
}
.seg-item {
  position: relative;
  z-index: 1;
  flex: 1 0 0;
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--label);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}
.seg-item[aria-pressed="false"] { color: var(--label-2); }
.seg-item .count {
  margin-left: 4px;
  color: var(--label-2);
  font-variant-numeric: tabular-nums;
}
.seg-item[aria-pressed="true"] .count { color: var(--accent-deep); }

.date-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--card);
  color: var(--label);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(31, 26, 18, .1);
  transition: transform .15s var(--spring);
}
.nav-btn:active { transform: scale(.88); }
.nav-btn .ic { width: 18px; height: 18px; stroke-width: 2.4; }

.date-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.date-label strong { font-size: 17px; font-weight: 700; }
.date-label span { font-size: 12px; color: var(--label-2); }

.pill-today {
  border: none;
  background: var(--fill);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--label);
  cursor: pointer;
  transition: transform .15s var(--spring), opacity .15s ease;
}
.pill-today:active { transform: scale(.93); }
.pill-today[disabled] { opacity: .35; cursor: default; pointer-events: none; }

.task-list { list-style: none; margin: 0; padding: 0; }

.task {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 16px;
}
.task + .task::after {
  content: "";
  position: absolute;
  top: 0;
  left: 52px;
  right: 0;
  height: 0.5px;
  background: var(--sep);
}
.task.flash { animation: taskIn .32s var(--ease); }
.task-done .task-title {
  color: var(--label-2);
  text-decoration: line-through;
  text-decoration-color: rgba(60, 60, 67, .5);
}

.task-check {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  flex: none;
  margin: 0;
  border: 1.8px solid rgba(60, 60, 67, .3);
  border-radius: 50%;
  background: rgba(255, 249, 238, .3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .16s ease, background-color .16s ease, transform .16s var(--spring);
}
.task-check:active { transform: scale(.85); }
.task-check:checked { background: var(--label); border-color: var(--label); }
.task-check:checked::after {
  content: "";
  width: 13px;
  height: 13px;
  transform: scale(1);
  transition: transform .25s var(--spring);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.task-main { flex: 1; min-width: 0; }
.task-title {
  display: block;
  font-size: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.chip {
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label-2);
  white-space: nowrap;
}
.task-time {
  font-size: 15px;
  color: var(--label-2);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.task-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .16s ease; }
.task:hover .task-actions,
.task:focus-within .task-actions { opacity: 1; }
@media (hover: none) { .task-actions { opacity: 1; } }

.act-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--label-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease, transform .12s var(--spring);
}
.act-btn:hover { background: var(--fill); color: var(--label); }
.act-btn:active { transform: scale(.88); }
.act-btn.danger:hover { background: rgba(255, 59, 48, .12); color: var(--red); }
.act-btn .ic { width: 17px; height: 17px; }

.task-empty {
  padding: 36px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.task-empty h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.task-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--label-2);
}

.cat-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 16px;
}
.cat-row + .cat-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--sep);
}
.cat-name { font-size: 17px; font-weight: 500; }
.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--fill);
  overflow: hidden;
  max-width: 130px;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width .5s var(--ease);
}
.cat-count {
  font-size: 15px;
  color: var(--label-2);
  font-variant-numeric: tabular-nums;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  padding: 4px 16px 16px;
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.chart-val {
  min-height: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--label-2);
  font-variant-numeric: tabular-nums;
  transition: opacity .3s ease .2s;
}
.chart-track {
  width: 100%;
  max-width: 34px;
  height: 130px;
  flex: none;
  display: flex;
  align-items: flex-end;
  background: var(--fill);
  border-radius: 7px;
  overflow: hidden;
}
.chart-fill {
  width: 100%;
  background: rgba(60, 60, 67, .45);
  border-radius: 7px;
  transform-origin: bottom;
  transition: transform .55s var(--ease);
}
#weekChart:not(.in-view) .chart-fill { transform: scaleY(0); }
#weekChart:not(.in-view) .chart-val { opacity: 0; }
.chart-col.is-today .chart-fill { background: var(--accent); }
.chart-label {
  font-size: 11px;
  color: var(--label-2);
}
.chart-col.is-today .chart-label { color: var(--accent-deep); font-weight: 600; }
.chart-col:nth-child(2) .chart-fill { transition-delay: 60ms; }
.chart-col:nth-child(3) .chart-fill { transition-delay: 120ms; }
.chart-col:nth-child(4) .chart-fill { transition-delay: 180ms; }
.chart-col:nth-child(5) .chart-fill { transition-delay: 240ms; }
.chart-col:nth-child(6) .chart-fill { transition-delay: 300ms; }
.chart-col:nth-child(7) .chart-fill { transition-delay: 360ms; }

.foot-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--label-3);
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  padding: 22px;
}

.focus-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.focus-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.focus-time {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.focus-empty {
  margin: 0;
  font-size: 15px;
  color: var(--label-2);
}
.side-col .g-card {
  min-height: 132px;
}
.side-col .cat-row,
.side-col .g-row {
  min-height: 52px;
}

.view-enter { animation: viewIn .3s var(--ease); }

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .32);
  opacity: 0;
  transition: opacity .3s ease;
}
.sheet-overlay.open { opacity: 1; }

.sheet {
  position: fixed;
  isolation: isolate;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  z-index: 61;
  width: min(560px, 100%);
  background: rgba(253, 246, 231, .55);
  backdrop-filter: blur(38px) saturate(180%);
  -webkit-backdrop-filter: blur(38px) saturate(180%);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 0 0 0.5px rgba(255, 255, 255, .2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: transform .38s var(--ease);
}
@supports not (backdrop-filter: blur(1px)) {
  .sheet { background: rgba(253, 247, 236, .99); }
}
.sheet.open { transform: translate(-50%, 0); }

.sheet > * {
  position: relative;
  z-index: 1;
}

.sheet-grabber {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: var(--fill-strong);
  margin: 7px auto 2px;
}

.sheet-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6px 16px 10px;
}
.sheet-title {
  font-size: 17px;
  font-weight: 700;
}
.sheet-cancel, .sheet-save {
  background: none;
  border: none;
  font-size: 17px;
  color: var(--accent-deep);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: transform .15s var(--spring);
}
.sheet-cancel { justify-self: start; }
.sheet-save { justify-self: end; font-weight: 700; }
.sheet-cancel:active, .sheet-save:active { transform: scale(.92); }

.sheet-body { padding: 0 16px 20px; }
.sheet-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 17px;
  padding: 6px 0;
  color-scheme: light;
}
.sheet-input:focus { outline: none; }

@keyframes taskIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .app { padding-inline: 12px; }
  .pill-bar { top: 6px; gap: 7px; padding-left: 9px; }
  .pill-item { padding: 7px 12px; font-size: 13px; }
  .sheet { left: 0; right: 0; width: 100%; transform: translateY(100%); }
  .sheet.open { transform: translateY(0); }
  .g-row + .g-row::after, .task + .task::after, .cat-row + .cat-row::after {
    left: 12px;
  }
}

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