:root {
  --ink: #173d36;
  --ink-soft: #355b53;
  --paper: #eef6f2;
  --paper-bright: #fbfffd;
  --paper-deep: #dcece5;
  --coral: #f47d6a;
  --coral-dark: #c95545;
  --gold: #f2c85d;
  --sage: #71aa95;
  --blue: #6195a6;
  --line: rgba(23, 61, 54, 0.16);
  --line-dark: rgba(255, 250, 240, 0.14);
  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 22px 55px rgba(36, 31, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(97, 149, 166, 0.16), transparent 26rem),
    radial-gradient(circle at 35% 96%, rgba(113, 170, 149, 0.11), transparent 31rem),
    linear-gradient(115deg, rgba(251, 255, 253, 0.76), transparent 42%),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(237, 101, 72, 0.32);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 22px;
  color: var(--paper-bright);
  background:
    linear-gradient(145deg, rgba(113, 180, 155, 0.2), transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(97, 149, 166, 0.15), transparent 15rem),
    var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -125px;
  bottom: 10%;
  border: 1px solid rgba(255, 250, 240, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 250, 240, 0.025),
    0 0 0 68px rgba(255, 250, 240, 0.018);
}

.brand-block {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 7px 27px;
  border-bottom: 1px solid var(--line-dark);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  color: var(--ink);
  background: var(--gold);
  font: 700 24px/1 Georgia, serif;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 75% 100%, 0 100%);
}

.brand-name {
  margin: 0;
  font: 700 18px/1 var(--mono);
  letter-spacing: 0.22em;
}

.brand-subtitle {
  margin: 7px 0 0;
  color: rgba(255, 250, 240, 0.55);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.primary-nav {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.nav-eyebrow,
.section-kicker {
  margin: 0;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-eyebrow {
  padding: 0 8px 10px;
  color: rgba(255, 250, 240, 0.4);
}

.nav-item {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-left: 2px solid transparent;
  padding: 0 9px 0 7px;
  color: rgba(255, 250, 240, 0.68);
  background: transparent;
  text-align: left;
  font-size: 13px;
  transition: 180ms ease;
}

.nav-item:hover {
  color: var(--paper-bright);
  background: rgba(255, 250, 240, 0.05);
}

.nav-item.is-active {
  color: var(--paper-bright);
  border-left-color: var(--coral);
  background: linear-gradient(90deg, rgba(237, 101, 72, 0.13), transparent);
}

.nav-index {
  color: rgba(255, 250, 240, 0.28);
  font: 10px var(--mono);
}

.nav-count {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  font: 10px var(--mono);
}

.type-nav {
  position: relative;
  z-index: 1;
  margin-top: 31px;
  padding-top: 25px;
  border-top: 1px solid var(--line-dark);
}

.nav-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tiny-actions {
  display: flex;
  align-items: center;
}

.tiny-action {
  border: 0;
  padding: 0 8px 10px;
  color: rgba(255, 250, 240, 0.42);
  background: transparent;
  font-size: 10px;
}

.tiny-action:hover {
  color: var(--paper-bright);
}

.tiny-action--manage {
  position: relative;
  color: var(--gold);
}

.tiny-action--manage::before {
  content: "";
  width: 1px;
  height: 9px;
  display: inline-block;
  margin-right: 8px;
  background: var(--line-dark);
  vertical-align: -1px;
}

.type-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 10px 9px;
  color: rgba(255, 250, 240, 0.65);
  background: transparent;
  text-align: left;
  font-size: 12px;
  transition: 160ms ease;
}

.type-item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-item:hover,
.type-item.is-active {
  color: var(--paper-bright);
  transform: translateX(3px);
}

.type-label-count {
  color: rgba(255, 250, 240, 0.38);
  font: 8px var(--mono);
}

.type-tag-list {
  display: grid;
  gap: 2px;
  margin: -2px 0 8px 20px;
  padding: 5px 0 4px 14px;
  border-left: 1px solid rgba(255, 250, 240, 0.12);
}

.type-tag-filter {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  padding: 7px 8px;
  color: rgba(255, 250, 240, 0.5);
  background: transparent;
  text-align: left;
  font-size: 10px;
  transition: 160ms ease;
}

.type-tag-filter:hover,
.type-tag-filter.is-active {
  color: var(--paper-bright);
  background: rgba(255, 250, 240, 0.07);
}

.type-tag-filter.is-active {
  box-shadow: inset 2px 0 0 var(--gold);
}

.type-tag-filter__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.type-tag-filter > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-tag-filter small {
  color: rgba(255, 250, 240, 0.3);
  font: 8px var(--mono);
}

.type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.type-dot--coral {
  background: var(--coral);
}

.type-dot--gold {
  background: var(--gold);
}

.type-dot--sage {
  background: #8eae9d;
}

.sidebar-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.storage-card {
  padding: 15px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 250, 240, 0.035);
}

.storage-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9bc0a9;
  box-shadow: 0 0 0 4px rgba(155, 192, 169, 0.1);
}

.storage-card p {
  margin: 11px 0;
  color: rgba(255, 250, 240, 0.43);
  font-size: 10px;
  line-height: 1.7;
}

.backup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.backup-actions button,
.backup-actions label,
.install-button {
  min-height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  padding: 0 6px;
  color: rgba(255, 250, 240, 0.7);
  background: rgba(255, 255, 255, 0.04);
  font-size: 9px;
  text-align: center;
  transition: 160ms ease;
}

.backup-actions button:hover,
.backup-actions label:hover,
.install-button:hover {
  border-color: rgba(242, 200, 93, 0.58);
  color: var(--gold);
}

.install-button {
  width: 100%;
  margin-bottom: 10px;
  border-color: rgba(113, 180, 155, 0.44);
  color: #b9e3d2;
}

.reset-button {
  border: 0;
  padding: 0;
  color: rgba(255, 250, 240, 0.55);
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prototype-version {
  margin: 16px 2px 0;
  color: rgba(255, 250, 240, 0.23);
  font: 9px var(--mono);
  letter-spacing: 0.18em;
}

.workspace {
  min-width: 0;
  padding: 0 38px 60px;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-brand {
  display: none;
}

.search-box {
  max-width: 360px;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  color: rgba(23, 35, 31, 0.42);
}

.search-box > span {
  font: 25px/1 Georgia, serif;
  transform: rotate(-12deg);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 9px 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder {
  color: rgba(23, 35, 31, 0.4);
}

kbd {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: rgba(23, 35, 31, 0.5);
  background: rgba(255, 250, 240, 0.35);
  font: 9px var(--mono);
}

.new-task-button {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  border: 0;
  padding: 0 14px;
  color: var(--paper-bright);
  background: var(--ink);
  box-shadow: 5px 5px 0 rgba(237, 101, 72, 0.22);
  font-size: 12px;
  transition: 180ms ease;
}

.report-button {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border: 1px solid rgba(23, 61, 54, 0.28);
  padding: 0 13px;
  color: var(--ink-soft);
  background: rgba(251, 255, 253, 0.52);
  font-size: 10px;
  transition: 180ms ease;
}

.report-button + .new-task-button {
  margin-left: 0;
}

.report-button span {
  color: var(--coral-dark);
  font: 13px var(--mono);
}

.report-button:hover {
  border-color: var(--ink);
  background: var(--paper-bright);
  transform: translateY(-2px);
}

.new-task-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(237, 101, 72, 0.24);
}

.new-task-button kbd {
  border-color: rgba(255, 250, 240, 0.18);
  color: rgba(255, 250, 240, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.week-hero {
  position: relative;
  padding: 17px 0 0;
  border-bottom: 1px solid var(--line);
  animation: rise-in 520ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.week-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.hero-copy {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.date-line {
  margin: 0;
  color: var(--ink-soft);
  font: 10px var(--mono);
  white-space: nowrap;
}

.week-hero h1 {
  margin: 0;
  font: 700 21px/1.25 var(--serif);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.week-navigation {
  display: grid;
  grid-template-columns: 30px auto 30px auto;
  align-items: center;
  gap: 7px;
}

.week-navigation button {
  min-height: 30px;
  border: 1px solid var(--line);
  padding: 3px 7px;
  color: var(--ink-soft);
  background: rgba(251, 255, 253, 0.6);
  font-size: 12px;
  transition: 160ms ease;
}

.week-navigation button:hover:not(:disabled) {
  border-color: var(--sage);
  color: var(--coral-dark);
  background: var(--paper-bright);
}

.week-navigation strong {
  justify-self: center;
  font: 600 10px var(--mono);
  white-space: nowrap;
}

.week-navigation .current-week-button {
  padding: 3px 10px;
  font-size: 10px;
}

.week-navigation .current-week-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.day-cell {
  position: relative;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  min-height: 54px;
  padding: 9px 10px 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: 180ms ease;
}

.day-cell:last-child {
  border-right: 0;
}

.day-cell:hover {
  background: rgba(255, 250, 240, 0.46);
}

.day-cell.is-today {
  color: var(--paper-bright);
  background: var(--ink);
}

.day-cell.is-selected:not(.is-today) {
  background: rgba(226, 181, 71, 0.22);
}

.day-cell.is-selected {
  box-shadow: inset 0 -3px var(--gold);
}

.day-cell__top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.day-cell__name {
  font-size: 10px;
}

.day-cell__date {
  font: 16px Georgia, serif;
}

.day-cell__markers {
  height: 7px;
  display: flex;
  align-items: end;
  gap: 3px;
  margin-top: 6px;
}

.day-marker {
  width: 14px;
  height: 3px;
  background: rgba(113, 170, 149, 0.5);
}

.day-marker.is-start {
  background: var(--blue);
}

.day-marker.is-delivery {
  background: var(--coral);
}

.day-marker.is-urgent {
  box-shadow: 0 0 0 1px rgba(201, 85, 69, 0.3);
}

.day-cell.is-today .day-marker:not(.is-delivery):not(.is-start) {
  background: var(--gold);
}

.week-summary {
  display: grid;
  grid-template-columns: repeat(3, max-content) minmax(0, 1fr);
  align-items: center;
  min-height: 37px;
}

.summary-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding: 0 13px;
}

.summary-cell:first-child {
  padding-left: 0;
}

.summary-cell span {
  color: rgba(23, 35, 31, 0.52);
  font-size: 10px;
}

.summary-cell strong {
  font: 700 17px Georgia, serif;
}

.summary-cell--danger strong {
  color: var(--coral-dark);
}

.summary-note {
  align-self: center;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 5px 12px;
  padding-left: 12px;
  color: rgba(23, 35, 31, 0.42);
  font-size: 9px;
}

.summary-note > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend-mark {
  width: 11px;
  height: 3px;
}

.legend-start {
  background: var(--blue);
}

.legend-due {
  background: var(--coral);
}

.task-board {
  padding-top: 18px;
}

.board-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 13px;
}

.section-kicker {
  color: var(--coral-dark);
}

.board-heading h2 {
  margin: 0;
  font: 700 22px/1.2 var(--serif);
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.board-heading > p {
  max-width: 310px;
  margin: 0;
  color: rgba(23, 35, 31, 0.48);
  font-size: 10px;
  line-height: 1.7;
  text-align: right;
}

.active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  border-left: 3px solid var(--gold);
  padding: 9px 11px;
  background: rgba(226, 181, 71, 0.12);
  font-size: 10px;
}

.active-filter button {
  border: 0;
  padding: 0;
  color: var(--coral-dark);
  background: transparent;
}

.task-group {
  margin-bottom: 24px;
  animation: rise-in 440ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.task-group:nth-child(2) {
  animation-delay: 50ms;
}

.task-group:nth-child(3) {
  animation-delay: 90ms;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(23, 35, 31, 0.53);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.group-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.group-label.is-overdue {
  color: var(--coral-dark);
}

.group-label.is-active {
  color: var(--blue);
}

.group-label.is-active::after {
  background: rgba(97, 149, 166, 0.28);
}

.task-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 72px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.46);
  transition: 190ms ease;
}

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

.task-row:hover,
.task-row.is-selected {
  z-index: 1;
  background: var(--paper-bright);
  box-shadow: 0 10px 30px rgba(43, 36, 25, 0.07);
  transform: translateX(4px);
}

.task-row.is-overdue {
  border-left: 3px solid var(--coral);
}

.task-row.is-done {
  opacity: 0.54;
}

.task-check-wrap {
  display: grid;
  place-items: center;
}

.task-check {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(23, 35, 31, 0.44);
  border-radius: 50%;
  background: transparent;
  transition: 160ms ease;
}

.task-check:hover {
  border-color: var(--coral);
  transform: scale(1.12);
}

.task-row.is-done .task-check {
  border-color: var(--sage);
  background: var(--sage);
}

.task-row.is-done .task-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 10px;
}

.task-main-button {
  min-width: 0;
  display: block;
  border: 0;
  padding: 13px 10px 12px 0;
  background: transparent;
  text-align: left;
}

.task-meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: rgba(23, 35, 31, 0.45);
  font-size: 9px;
}

.task-type-mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.task-type-mark[data-type="内容运营"] {
  background: var(--coral);
}

.task-type-mark[data-type="分析汇报"] {
  background: var(--gold);
}

.task-title {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-plan-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: rgba(23, 35, 31, 0.48);
  font-size: 8px;
}

.task-plan-line > span {
  border: 1px solid rgba(97, 149, 166, 0.36);
  padding: 1px 4px;
  color: var(--blue);
  font: 7px var(--mono);
  letter-spacing: 0.08em;
}

.task-row.is-done .task-title {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.task-end {
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  gap: 7px;
  padding: 10px 13px;
}

.due-label {
  font: 600 10px var(--mono);
}

.due-label.is-overdue {
  color: var(--coral-dark);
}

.task-badges {
  display: flex;
  align-items: center;
  gap: 5px;
}

.micro-badge {
  border: 1px solid var(--line);
  padding: 2px 5px;
  color: rgba(23, 35, 31, 0.54);
  font-size: 8px;
  line-height: 1.2;
}

.micro-badge.is-urgent {
  border-color: rgba(237, 101, 72, 0.38);
  color: var(--coral-dark);
  background: rgba(237, 101, 72, 0.07);
}

.tag-badge {
  border-color: var(--tag-color);
  padding: 2px 6px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--tag-color) 13%, transparent);
  line-height: 1.2;
}

.tag-badge:hover {
  background: color-mix(in srgb, var(--tag-color) 23%, transparent);
}

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

.empty-glyph {
  display: block;
  color: var(--sage);
  font: 54px/1 Georgia, serif;
}

.empty-state h3 {
  margin: 16px 0 8px;
  font: 700 20px var(--serif);
}

.empty-state p {
  margin: 0;
  color: rgba(23, 35, 31, 0.48);
  font-size: 11px;
}

.detail-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  border-left: 1px solid var(--line);
  padding: 34px 28px;
  background: rgba(255, 250, 240, 0.55);
  overflow: auto;
}

.detail-empty {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
}

.detail-empty h2 {
  margin: 23px 0 0;
  font: 700 31px/1.38 var(--serif);
  letter-spacing: -0.04em;
}

.focus-rule {
  width: 52px;
  height: 4px;
  margin: 28px 0 22px;
  background: var(--coral);
}

.detail-empty > p:not(.section-kicker) {
  margin: 0;
  color: rgba(23, 35, 31, 0.52);
  font-size: 11px;
  line-height: 1.9;
}

.focus-quote {
  position: relative;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 25px 4px 0 33px;
}

.focus-quote span {
  position: absolute;
  top: 14px;
  left: 0;
  color: var(--gold);
  font: 48px Georgia, serif;
}

.focus-quote p {
  margin: 0;
  color: rgba(23, 35, 31, 0.52);
  font: 14px/1.8 var(--serif);
}

.detail-content {
  animation: slide-in 260ms both ease-out;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.detail-id {
  color: rgba(23, 35, 31, 0.39);
  font: 9px var(--mono);
  letter-spacing: 0.1em;
}

.detail-close {
  display: none;
  border: 0;
  background: transparent;
  font-size: 24px;
}

.detail-title {
  margin: 0;
  font: 700 29px/1.35 var(--serif);
  letter-spacing: -0.04em;
}

.detail-project {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 27px;
  color: rgba(23, 35, 31, 0.5);
  font-size: 10px;
}

.detail-status-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.complete-button,
.delete-button {
  min-height: 39px;
  border: 1px solid var(--ink);
  padding: 0 13px;
  background: transparent;
  font-size: 10px;
}

.complete-button {
  color: var(--paper-bright);
  background: var(--ink);
}

.delete-button {
  border-color: rgba(184, 61, 39, 0.28);
  color: var(--coral-dark);
}

.detail-facts {
  margin: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 87px 1fr;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row dt {
  color: rgba(23, 35, 31, 0.43);
  font-size: 9px;
}

.fact-row dd {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

.fact-hint {
  display: block;
  margin-top: 2px;
  color: var(--coral-dark);
  font-size: 8px;
  font-weight: 400;
}

.fact-row input,
.fact-row select {
  width: 100%;
  border: 0;
  border-bottom: 1px dashed rgba(23, 35, 31, 0.25);
  padding: 0 0 4px;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}

.detail-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-tag-empty {
  color: rgba(23, 35, 31, 0.44);
  font-size: 9px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h3 {
  margin: 0 0 12px;
  font: 700 15px var(--serif);
}

.detail-note {
  margin: 0;
  padding: 15px;
  border-left: 3px solid var(--gold);
  color: rgba(23, 35, 31, 0.62);
  background: rgba(226, 181, 71, 0.1);
  font-size: 10px;
  line-height: 1.8;
}

.progress-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.progress-section-heading h3 {
  margin-bottom: 0;
}

.progress-section-heading span {
  color: rgba(23, 35, 31, 0.4);
  font: 8px var(--mono);
}

.progress-form {
  border: 1px solid rgba(97, 149, 166, 0.3);
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(97, 149, 166, 0.11), transparent 62%),
    rgba(251, 255, 253, 0.66);
}

.progress-form__date {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: rgba(23, 35, 31, 0.48);
  font-size: 8px;
}

.progress-form__date input {
  min-width: 0;
  border: 0;
  border-bottom: 1px dashed rgba(23, 61, 54, 0.24);
  padding: 5px 0;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
}

.progress-form textarea,
.progress-form input[type="text"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 1px;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
}

.progress-form textarea {
  min-height: 62px;
  resize: vertical;
}

.progress-form__extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.progress-form button {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border: 0;
  color: var(--paper-bright);
  background: var(--ink);
  font-size: 9px;
}

.progress-history {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.progress-empty {
  margin: 0;
  border-left: 2px solid var(--blue);
  padding: 9px 10px;
  color: rgba(23, 35, 31, 0.46);
  background: rgba(97, 149, 166, 0.07);
  font-size: 9px;
  line-height: 1.7;
}

.progress-entry {
  position: relative;
  border-left: 2px solid color-mix(in srgb, var(--type-color) 72%, var(--blue));
  padding: 9px 28px 9px 10px;
  background: rgba(238, 246, 242, 0.55);
}

.progress-entry time {
  color: var(--coral-dark);
  font: 8px var(--mono);
}

.progress-entry p {
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.65;
}

.progress-entry small {
  display: block;
  margin-top: 5px;
  color: rgba(23, 35, 31, 0.5);
  font-size: 8px;
  line-height: 1.6;
}

.progress-entry__remove {
  position: absolute;
  top: 7px;
  right: 7px;
  border: 0;
  padding: 2px 4px;
  color: rgba(184, 61, 39, 0.58);
  background: transparent;
  font-size: 13px;
}

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

.checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 10px;
}

.checklist button {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(23, 35, 31, 0.38);
  border-radius: 50%;
  padding: 0;
  background: transparent;
}

.checklist li.is-done {
  color: rgba(23, 35, 31, 0.38);
  text-decoration: line-through;
}

.checklist li.is-done button {
  border-color: var(--sage);
  background: var(--sage);
}

.checklist .checklist-remove {
  width: auto;
  height: auto;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  padding: 2px 4px;
  color: rgba(184, 61, 39, 0.62);
  background: transparent;
  font-size: 14px;
  text-decoration: none;
}

.checklist-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 11px;
}

.checklist-add input {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 8px 9px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.58);
  font-size: 9px;
}

.checklist-add button {
  border: 0;
  padding: 0 10px;
  color: var(--paper-bright);
  background: var(--ink);
  font-size: 9px;
}

.mobile-nav {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 21, 18, 0.7);
  backdrop-filter: blur(7px);
}

.task-modal {
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  border-top: 5px solid var(--coral);
  padding: 31px 34px 29px;
  background: var(--paper-bright);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
  animation: modal-in 230ms both ease-out;
}

.modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.modal-heading h2 {
  margin: 7px 0 0;
  font: 700 31px var(--serif);
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  font: 25px/1 Georgia, serif;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  margin-bottom: 18px;
}

.field span {
  color: rgba(23, 35, 31, 0.58);
  font-size: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(241, 235, 221, 0.34);
  font-size: 11px;
}

.field textarea {
  resize: vertical;
}

.field-hint {
  margin-top: -3px;
  color: rgba(23, 35, 31, 0.42);
  font-size: 8px;
  line-height: 1.5;
}

.task-tag-field {
  margin-top: 18px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(113, 170, 149, 0.07);
}

.task-tag-field__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.task-tag-field__heading span {
  color: rgba(23, 35, 31, 0.64);
  font-size: 9px;
}

.task-tag-field__heading p {
  margin: 5px 0 0;
  color: rgba(23, 35, 31, 0.42);
  font-size: 9px;
}

.task-tag-field__heading button {
  border: 0;
  border-bottom: 1px solid rgba(23, 61, 54, 0.3);
  padding: 2px 0 4px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 9px;
  white-space: nowrap;
}

.tag-picker,
.detail-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-picker {
  margin-top: 12px;
}

.tag-picker-empty {
  width: 100%;
  margin: 0;
  color: rgba(23, 35, 31, 0.42);
  font-size: 9px;
  line-height: 1.6;
}

.tag-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--tag-color) 55%, var(--line));
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(23, 61, 54, 0.72);
  background: rgba(251, 255, 253, 0.72);
  font-size: 9px;
  transition: 150ms ease;
}

.tag-choice > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tag-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag-color) 14%, transparent);
}

.tag-choice:hover,
.tag-choice.is-selected {
  border-color: var(--tag-color);
  color: var(--ink);
  background: color-mix(in srgb, var(--tag-color) 14%, var(--paper-bright));
}

.tag-choice.is-selected {
  box-shadow: inset 0 0 0 1px var(--tag-color);
}

.repeat-config {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 18px 0;
  border: 1px solid rgba(226, 181, 71, 0.42);
  padding: 13px 14px;
  background: rgba(226, 181, 71, 0.09);
}

.repeat-anchor-mark {
  border: 1px solid rgba(184, 61, 39, 0.28);
  padding: 3px 6px;
  color: var(--coral-dark);
  font: 8px var(--mono);
  white-space: nowrap;
}

.repeat-config > p {
  margin: 1px 0 0;
  color: rgba(23, 35, 31, 0.58);
  font-size: 9px;
  line-height: 1.7;
}

.review-cycle-fields {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: rgba(23, 35, 31, 0.52);
  font-size: 9px;
}

.review-cycle-fields label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  white-space: nowrap;
}

.review-cycle-fields input,
.review-cycle-fields select {
  height: 29px;
  border: 1px solid var(--line);
  padding: 0 6px;
  color: var(--ink);
  background: var(--paper-bright);
  font-size: 9px;
}

.review-cycle-fields input {
  width: 48px;
}

.recurrence-inline {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 7px;
}

.recurrence-inline input,
.recurrence-inline select {
  min-width: 0;
}

.checklist-builder {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(241, 235, 221, 0.22);
}

.builder-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.builder-heading span {
  color: rgba(23, 35, 31, 0.64);
  font-size: 9px;
}

.builder-heading p {
  margin: 5px 0 0;
  color: rgba(23, 35, 31, 0.42);
  font-size: 9px;
}

.builder-count {
  font: 9px var(--mono);
  white-space: nowrap;
}

.builder-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.builder-entry input {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 2px;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}

.builder-entry button {
  border: 1px solid var(--ink);
  padding: 0 12px;
  background: transparent;
  font-size: 9px;
}

.draft-checklist {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.draft-checklist:empty {
  margin: 0;
}

.draft-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  font-size: 9px;
}

.draft-index {
  color: var(--coral-dark);
  font: 8px var(--mono);
}

.draft-checklist button {
  margin-left: auto;
  border: 0;
  color: rgba(184, 61, 39, 0.62);
  background: transparent;
  font-size: 13px;
}

.type-modal {
  width: min(700px, 100%);
}

.report-modal {
  width: min(860px, 100%);
  border-top-color: var(--blue);
  padding: 30px 34px 28px;
}

.report-modal__heading {
  margin-bottom: 20px;
}

.report-controls {
  display: grid;
  grid-template-columns: auto minmax(190px, 0.7fr) minmax(210px, 1fr);
  align-items: end;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.report-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
}

.report-mode-switch button {
  min-width: 74px;
  min-height: 36px;
  border: 0;
  color: rgba(23, 61, 54, 0.58);
  background: transparent;
  font-size: 10px;
}

.report-mode-switch button + button {
  border-left: 1px solid var(--ink);
}

.report-mode-switch button.is-active {
  color: var(--paper-bright);
  background: var(--ink);
}

.report-date-field {
  display: grid;
  gap: 6px;
}

.report-date-field span {
  color: rgba(23, 35, 31, 0.48);
  font-size: 8px;
}

.report-date-field input {
  min-height: 36px;
  border: 0;
  border-bottom: 1px solid rgba(23, 61, 54, 0.35);
  padding: 0 3px;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}

.report-range {
  min-height: 36px;
  display: flex;
  align-items: center;
  margin: 0;
  border-left: 3px solid var(--gold);
  padding: 0 11px;
  color: rgba(23, 35, 31, 0.58);
  background: rgba(242, 200, 93, 0.08);
  font-size: 9px;
  line-height: 1.6;
}

.report-preview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin: 21px 0 9px;
}

.report-preview-heading span {
  font: 700 15px var(--serif);
}

.report-preview-heading p {
  margin: 5px 0 0;
  color: rgba(23, 35, 31, 0.44);
  font-size: 8px;
}

.report-preview-heading button {
  border: 0;
  border-bottom: 1px solid rgba(23, 61, 54, 0.3);
  padding: 3px 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 8px;
}

.report-output {
  width: 100%;
  min-height: 370px;
  border: 1px solid rgba(23, 61, 54, 0.2);
  border-left: 5px solid var(--ink);
  border-radius: 0;
  padding: 20px 22px;
  color: var(--ink);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 25px, rgba(23, 61, 54, 0.05) 26px),
    rgba(251, 255, 253, 0.78);
  font: 11px/2.35 var(--sans);
  resize: vertical;
}

.report-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-top: 12px;
  padding: 10px 12px;
  color: rgba(23, 35, 31, 0.5);
  background: rgba(97, 149, 166, 0.08);
}

.report-note span {
  color: var(--blue);
  font: 8px var(--mono);
  letter-spacing: 0.08em;
}

.report-note p {
  margin: 0;
  font-size: 8px;
  line-height: 1.6;
}

.report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.report-cancel,
.copy-report {
  min-height: 41px;
  padding: 0 17px;
  font-size: 10px;
}

.report-cancel {
  border: 1px solid var(--line);
  background: transparent;
}

.copy-report {
  border: 0;
  color: var(--paper-bright);
  background: var(--coral-dark);
}

.copy-report span {
  margin-left: 9px;
}

.type-modal-intro {
  margin: -9px 0 22px;
  color: rgba(23, 35, 31, 0.5);
  font-size: 10px;
  line-height: 1.7;
}

.type-editor-list {
  display: grid;
  gap: 12px;
}

.type-editor-card {
  border: 1px solid var(--line);
  background: rgba(238, 246, 242, 0.36);
}

.type-editor-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 11px 13px;
}

.type-color-input {
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
}

.type-name-input {
  min-width: 0;
  border: 0;
  border-bottom: 1px dashed rgba(23, 35, 31, 0.27);
  padding: 7px 2px;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}

.type-task-count {
  color: rgba(23, 35, 31, 0.42);
  font: 9px var(--mono);
  white-space: nowrap;
}

.type-delete {
  border: 0;
  padding: 5px;
  color: rgba(184, 61, 39, 0.65);
  background: transparent;
  font-size: 15px;
}

.tag-editor-block {
  padding: 12px 13px 14px 62px;
}

.tag-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(23, 35, 31, 0.5);
  font-size: 9px;
}

.tag-editor-heading small {
  font: 8px var(--mono);
}

.tag-editor-list {
  display: grid;
  gap: 5px;
}

.tag-editor-row,
.tag-create-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 8px;
}

.tag-editor-row {
  min-height: 35px;
  border-bottom: 1px dashed rgba(23, 61, 54, 0.13);
}

.tag-editor-row input[type="color"],
.tag-create-row input[type="color"] {
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
}

.tag-editor-row input[type="text"],
.tag-create-row input[type="text"] {
  min-width: 0;
  border: 0;
  border-bottom: 1px dashed rgba(23, 35, 31, 0.24);
  padding: 7px 2px;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
}

.tag-editor-row small {
  color: rgba(23, 35, 31, 0.38);
  font: 8px var(--mono);
  white-space: nowrap;
}

.tag-editor-row button {
  border: 0;
  color: rgba(184, 61, 39, 0.58);
  background: transparent;
  font-size: 14px;
}

.tag-create-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  margin-top: 10px;
  border: 1px dashed rgba(23, 61, 54, 0.2);
  padding: 8px;
  background: rgba(251, 255, 253, 0.62);
}

.tag-create-row button {
  min-height: 30px;
  border: 1px solid rgba(23, 61, 54, 0.26);
  padding: 0 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 8px;
  white-space: nowrap;
}

.type-create-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 10px;
  background: rgba(226, 181, 71, 0.08);
}

.type-create-row input[type="color"] {
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
}

.type-create-row input[type="text"] {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  background: transparent;
  font-size: 10px;
}

.type-create-row button {
  min-height: 34px;
  border: 0;
  padding: 0 13px;
  color: var(--paper-bright);
  background: var(--ink);
  font-size: 9px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.modal-actions p {
  margin: 0;
  color: rgba(23, 35, 31, 0.44);
  font-size: 9px;
}

.submit-task {
  min-height: 43px;
  border: 0;
  padding: 0 18px;
  color: var(--paper-bright);
  background: var(--coral-dark);
  font-size: 11px;
}

.submit-task span {
  margin-left: 11px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 28px;
  bottom: 28px;
  max-width: 320px;
  padding: 12px 16px;
  color: var(--paper-bright);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 52px));
  transition: 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1220px) {
  .app-shell {
    grid-template-columns: 218px minmax(520px, 1fr) 304px;
  }

  .sidebar {
    padding-right: 17px;
    padding-left: 17px;
  }

  .workspace {
    padding-right: 27px;
    padding-left: 27px;
  }

  .detail-panel {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .detail-panel {
    position: fixed;
    z-index: 25;
    top: 0;
    right: 0;
    width: min(390px, 92vw);
    box-shadow: -25px 0 70px rgba(23, 35, 31, 0.2);
    transform: translateX(105%);
    transition: 230ms ease;
  }

  .detail-panel.is-open {
    transform: translateX(0);
  }

  .detail-close {
    display: block;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 71px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding: 0 17px 32px;
  }

  .topbar {
    height: 65px;
    gap: 12px;
  }

  .mobile-brand {
    display: block;
    color: var(--coral-dark);
    font: 700 15px var(--mono);
    letter-spacing: 0.15em;
  }

  .search-box {
    display: none;
  }

  .new-task-button {
    min-height: 36px;
    padding: 0 11px;
    box-shadow: 3px 3px 0 rgba(237, 101, 72, 0.2);
  }

  .report-button {
    min-height: 35px;
    margin-left: auto;
    padding: 0 9px;
    font-size: 9px;
  }

  .new-task-button {
    margin-left: 0;
  }

  .new-task-button kbd {
    display: none;
  }

  .week-hero {
    padding-top: 14px;
  }

  .week-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .hero-copy {
    justify-content: space-between;
  }

  .week-hero h1 {
    font-size: 20px;
  }

  .week-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .week-navigation {
    grid-template-columns: 34px minmax(0, 1fr) 34px auto;
  }

  .week-navigation button {
    min-height: 34px;
  }

  .week-navigation strong {
    font-size: 10px;
  }

  .review-cycle-fields {
    align-items: start;
    flex-direction: column;
  }

  .day-cell {
    min-height: 64px;
    padding: 8px 4px;
  }

  .day-cell__top {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .day-cell__markers {
    justify-content: center;
    gap: 2px;
  }

  .day-marker {
    width: 8px;
  }

  .week-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-cell {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 0 9px;
  }

  .summary-cell:first-child {
    padding-left: 9px;
  }

  .summary-cell:nth-child(3) {
    border-right: 0;
  }

  .summary-note {
    display: none;
  }

  .board-heading {
    align-items: start;
  }

  .board-heading > p {
    display: none;
  }

  .task-row {
    grid-template-columns: 39px minmax(0, 1fr) auto;
  }

  .task-end {
    min-width: 69px;
    padding-right: 7px;
    padding-left: 5px;
  }

  .task-badges .micro-badge:not(.is-urgent) {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 24;
    right: 0;
    bottom: 0;
    left: 0;
    height: 70px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    border-top: 1px solid rgba(255, 250, 240, 0.1);
    color: rgba(255, 250, 240, 0.58);
    background: var(--ink);
  }

  .mobile-nav-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 8px;
  }

  .mobile-nav-item span {
    font-size: 16px;
  }

  .mobile-nav-item.is-active {
    color: var(--gold);
  }

  .mobile-add {
    width: 45px;
    height: 45px;
    justify-self: center;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: var(--coral);
    box-shadow: 0 0 0 5px var(--ink);
    font-size: 26px;
  }

  .task-modal {
    padding: 25px 19px;
  }

  .report-modal {
    max-height: calc(100vh - 24px);
    padding: 23px 17px 19px;
  }

  .report-controls {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .report-range {
    grid-column: 1 / -1;
  }

  .report-output {
    min-height: 330px;
    padding: 16px 14px;
    font-size: 10px;
  }

  .report-note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .report-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
  }

  .report-cancel,
  .copy-report {
    width: 100%;
    padding: 0 10px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .type-editor-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .type-task-count {
    display: none;
  }

  .type-create-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .type-create-row button {
    grid-column: 1 / -1;
  }

  .tag-editor-block {
    padding-left: 13px;
  }

  .tag-editor-row {
    grid-template-columns: 26px minmax(0, 1fr) 22px;
  }

  .tag-editor-row small {
    display: none;
  }

  .tag-create-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .tag-create-row button {
    grid-column: 1 / -1;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions p {
    line-height: 1.6;
  }

  .submit-task {
    width: 100%;
  }

  .toast {
    right: 15px;
    bottom: 84px;
    left: 15px;
    text-align: center;
  }
}

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