@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/dm-serif.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171712;
  --muted: #716f67;
  --paper: #f3f0e8;
  --surface: #fbfaf6;
  --line: #d7d3c8;
  --cobalt: #2646d9;
  --acid: #d9f066;
  --orange: #ed704b;
  --pink: #e9b8d0;
  --green: #afcfbd;
  --focus: #1a49e7;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(38, 70, 217, 0.16);
}

button,
a,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 28px 20px 26px;
  overflow-y: auto;
  background: var(--ink);
  color: #f9f7ef;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.brand-mark i {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-mark i:first-child {
  top: 0;
  left: 0;
  color: var(--acid);
}

.brand-mark i:last-child {
  right: 0;
  bottom: 0;
  color: var(--orange);
}

.brand-mark.small {
  width: 19px;
  height: 19px;
}

.brand-mark.small i {
  width: 13px;
  height: 13px;
}

.brand-name {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.primary-nav {
  display: grid;
  gap: 6px;
  margin-top: 48px;
}

.nav-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #a8a79f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a.nav-link:hover {
  border-color: #393933;
  color: #fff;
}

.nav-link.is-active {
  background: var(--acid);
  color: var(--ink);
}

.nav-link-muted {
  cursor: default;
}

.nav-count {
  min-width: 25px;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-align: center;
}

.sidebar-note {
  margin-top: auto;
  padding: 22px 11px 0;
  border-top: 1px solid #3a3a35;
}

.eyebrow,
.kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sidebar-note .eyebrow {
  color: #7e7e76;
}

.sidebar-note p {
  margin: 7px 0 17px;
  font-size: 14px;
  font-weight: 600;
}

.avatar-stack {
  display: flex;
  padding-left: 6px;
}

.avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-left: -6px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-weight: 600;
}

.avatar-maya { background: var(--pink); }
.avatar-theo { background: var(--acid); }
.avatar-asha { background: #96b5ef; }
.avatar-luis { background: var(--orange); }
.avatar-more { background: #f6f4ed; }

.main-content {
  grid-column: 2;
  width: 100%;
  max-width: 1192px;
  min-width: 0;
  padding: 45px 56px 32px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin-bottom: 12px;
  color: var(--cobalt);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.header-copy {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.header-date {
  flex: 0 0 auto;
  padding-bottom: 4px;
  text-align: right;
}

.header-date span,
.header-date strong {
  display: block;
}

.header-date span {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-date strong {
  font-size: 13px;
}

.status-overview {
  padding: 27px 0 32px;
}

.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.overview-heading .eyebrow {
  color: var(--muted);
}

.completion-copy {
  color: var(--muted);
  font-size: 12px;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--ink);
  gap: 1px;
}

.status-card {
  position: relative;
  min-height: 105px;
  padding: 16px 18px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.status-card:hover,
.status-card.is-selected {
  background: var(--status-color);
}

.status-card.is-selected::after {
  position: absolute;
  right: 15px;
  bottom: 14px;
  content: "FILTERED";
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.status-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 0 1px rgba(23, 23, 18, 0.3);
}

.status-card:hover .status-dot,
.status-card.is-selected .status-dot {
  background: var(--ink);
}

.status-number {
  display: block;
  margin-top: 13px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.task-section {
  min-width: 0;
}

.task-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 17px;
}

.task-section-heading .eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--cobalt);
}

h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.result-count {
  position: relative;
  top: -3px;
  display: inline-grid;
  min-width: 27px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  place-items: center;
  border-radius: 99px;
  background: var(--cobalt);
  color: white;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.toolbar {
  display: flex;
  gap: 8px;
}

.search-control,
.filter-control {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  background: var(--surface);
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

.search-control:focus-within,
.filter-control:focus-within {
  box-shadow: 3px 3px 0 var(--cobalt);
}

.search-control svg,
.filter-control svg {
  width: 17px;
  margin-left: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-control {
  width: min(268px, 24vw);
}

.search-control input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-control input::placeholder {
  color: #85837b;
}

.search-control kbd {
  margin-right: 10px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #efede6;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.filter-control select {
  height: 40px;
  padding: 0 30px 0 8px;
  border: 0;
  outline: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.list-labels,
.task-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(128px, 0.8fr) 105px 112px 37px;
  column-gap: 16px;
  align-items: center;
}

.list-labels {
  min-height: 34px;
  padding: 0 12px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-list {
  border-bottom: 1px solid var(--ink);
}

.task-row {
  position: relative;
  min-height: 78px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 140ms ease;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row:hover,
.task-row:focus-within {
  background: var(--surface);
}

.task-main,
.task-owner,
.task-due {
  min-width: 0;
}

.task-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.priority-tick {
  width: 3px;
  height: 36px;
  margin-top: 1px;
  flex: 0 0 auto;
  background: var(--priority-color);
}

.task-title {
  display: block;
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.task-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
}

.task-project {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-comments {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.task-comments svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.task-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.task-owner .avatar {
  width: 27px;
  height: 27px;
  margin: 0;
  border-color: var(--paper);
  flex: 0 0 auto;
}

.owner-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-due {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--status-color) 55%, var(--ink));
  border-radius: 99px;
  background: color-mix(in srgb, var(--status-color) 35%, white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-color);
  content: "";
}

.open-item {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.open-item:hover {
  border-color: var(--ink);
  background: var(--acid);
  transform: translateX(2px);
}

.open-item svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  padding: 68px 20px;
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  display: inline-grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
}

.empty-icon svg {
  width: 37px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.empty-state h3 {
  margin: 18px 0 7px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.secondary-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.secondary-button:hover {
  background: var(--acid);
}

.secondary-button:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.page-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 42px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-layer {
  position: fixed;
  z-index: 50;
  inset: 0;
}

.detail-layer[hidden] {
  display: none;
}

.detail-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(13, 13, 10, 0.52);
  cursor: default;
  animation: fade-in 180ms ease-out both;
}

.detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(520px, 92vw);
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--surface);
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.18);
  animation: slide-in 220ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.detail-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.detail-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 19px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.icon-button:hover {
  border-color: var(--ink);
  background: var(--pink);
  transform: rotate(3deg);
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.detail-content {
  min-height: 0;
  padding: 34px 42px calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.detail-project {
  margin: 0 0 13px;
  color: var(--cobalt);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-content h2 {
  max-width: 420px;
  font-size: 42px;
  line-height: 1.02;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.detail-control-block {
  margin: 32px 0;
  padding: 17px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.detail-control-block label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.control-label-copy span,
.control-label-copy strong {
  display: block;
}

.control-label-copy span {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.control-label-copy strong {
  font-size: 13px;
}

.detail-control-block select {
  min-width: 145px;
  min-height: 39px;
  padding: 0 31px 0 11px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.status-feedback {
  min-height: 17px;
  margin: 12px 0 0;
  color: #305a37;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 32px;
  border: solid var(--line);
  border-width: 1px 0 0 1px;
}

.detail-meta-grid > div {
  min-width: 0;
  padding: 14px;
  border: solid var(--line);
  border-width: 0 1px 1px 0;
}

.detail-meta-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-meta-grid dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.detail-avatar-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.detail-avatar-line .avatar {
  width: 25px;
  height: 25px;
  margin: 0;
  border: 0;
}

.detail-body-section {
  padding-top: 27px;
  border-top: 1px solid var(--ink);
}

.detail-body-section h3 {
  margin: 0 0 15px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-body {
  margin: 0;
  color: #45443e;
  font-size: 15px;
  line-height: 1.72;
  white-space: pre-line;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  max-width: min(340px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  animation: toast-in 170ms ease-out both;
}

.toast[hidden] {
  display: none;
}

body.detail-open {
  overflow: hidden;
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1050px) {
  .main-content {
    padding-right: 32px;
    padding-left: 32px;
  }

  .list-labels,
  .task-row {
    grid-template-columns: minmax(240px, 1.6fr) minmax(110px, 0.75fr) 98px 37px;
  }

  .list-labels span:nth-child(4),
  .task-row .status-pill {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: auto;
    height: 68px;
    padding: 0 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
  }

  .brand {
    padding: 0;
  }

  .brand-name {
    font-size: 23px;
  }

  .primary-nav {
    margin: 0;
  }

  .primary-nav .nav-link:not(.is-active),
  .nav-link.is-active svg,
  .nav-link.is-active .nav-count,
  .sidebar-note {
    display: none;
  }

  .nav-link.is-active {
    min-height: 34px;
    padding: 0 11px;
    background: transparent;
    color: #f8f6ee;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .main-content {
    width: auto;
    max-width: none;
    padding: 35px 22px 30px;
  }
}

@media (max-width: 650px) {
  .page-header {
    align-items: flex-start;
    padding-bottom: 31px;
  }

  h1 {
    font-size: 52px;
  }

  .header-copy {
    font-size: 14px;
  }

  .header-date {
    display: none;
  }

  .status-overview {
    padding: 24px 0 31px;
  }

  .status-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-card {
    min-height: 89px;
    padding: 13px 14px;
  }

  .status-number {
    margin-top: 9px;
    font-size: 29px;
  }

  .task-section-heading {
    display: block;
  }

  .toolbar {
    margin-top: 20px;
  }

  .search-control {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .search-control kbd {
    display: none;
  }

  .filter-control {
    position: relative;
    width: 48px;
    flex: 0 0 48px;
  }

  .filter-control svg {
    margin: auto;
  }

  .filter-control select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
  }

  .filter-control:focus-within,
  .filter-control:has(select:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    box-shadow: none;
  }

  .list-labels {
    display: none;
  }

  .task-list {
    display: grid;
    gap: 10px;
    border: 0;
  }

  .task-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 13px 10px;
    min-height: 0;
    padding: 17px;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .task-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .task-main {
    grid-column: 1;
  }

  .task-title {
    margin-bottom: 7px;
    font-size: 15px;
  }

  .priority-tick {
    height: 42px;
  }

  .task-owner {
    grid-column: 1;
    grid-row: 2;
    padding-left: 15px;
  }

  .task-due {
    grid-column: 1;
    grid-row: 3;
    padding-left: 15px;
  }

  .task-due::before {
    content: "Due ";
    color: #99968c;
  }

  .task-row .status-pill {
    display: inline-flex;
    grid-column: 1;
    grid-row: 4;
    margin-left: 15px;
  }

  .open-item {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }

  .page-footer {
    gap: 16px;
    line-height: 1.5;
  }

  .detail-panel {
    top: 0;
    width: 100%;
    max-width: none;
  }

  .detail-header {
    min-height: 64px;
    padding: env(safe-area-inset-top) 20px 0;
  }

  .detail-content {
    padding: 28px 22px calc(35px + env(safe-area-inset-bottom));
  }

  .detail-content h2 {
    font-size: 36px;
  }

  .detail-control-block label {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .detail-control-block select {
    width: 100%;
  }

  .status-feedback {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
