@font-face {
  font-family: Source;
  src: url(/projects-assets/SourceSans3.ttf);
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url(/projects-assets/PlayfairDisplay.ttf);
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url(/projects-assets/DMMono.ttf);
  font-display: swap;
}
:root {
  --bg: #f6f2e8;
  --paper: #fffdf8;
  --ink: #23313a;
  --forest: #1f3d34;
  --muted: #58685f;
  --line: #d9d2c7;
  --sage: #e7ece5;
  --idea: #eeebe2;
  --claret: #65454f;
  --soft-claret: #eee5e5;
  --danger: #a33138;
  --shadow: 0 12px 48px #23313a20;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.45 Source,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Playfair, Georgia, serif;
  font-weight: 500;
  color: var(--forest);
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 20;
  padding: 12px;
  background: var(--paper);
}
.skip:focus {
  top: 10px;
}
#header {
  border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top) max(24px, calc((100vw - 1280px) / 2)) 0;
  min-height: 73px;
  display: flex;
  align-items: center;
  gap: 42px;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 29px/1 Playfair;
  color: var(--forest);
  height: 72px;
}
.brand img {
  width: 31px;
  height: 31px;
}
.brand i {
  color: var(--muted);
  font-weight: 400;
}
.topnav {
  display: flex;
  gap: 27px;
  height: 72px;
  align-items: stretch;
}
.topnav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  position: relative;
  font-size: 15px;
}
.topnav a.active {
  color: var(--forest);
  font-weight: 600;
}
.topnav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forest);
}
.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  font: 12px Mono;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
}
.icon:hover {
  background: var(--idea);
  color: var(--forest);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  min-height: 44px;
  border-radius: 5px;
  background: var(--forest);
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
}
.btn svg {
  width: 17px;
}
.btn.quiet {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--line);
}
.btn.danger {
  background: var(--danger);
  color: var(--paper);
}
#main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 43px 24px 48px;
  min-height: calc(100vh - 123px);
}
.eyebrow {
  font:
    11px/1.4 Mono,
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.page-heading h1 {
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 5px 0 8px;
}
.page-heading p {
  color: var(--muted);
  font-size: 17px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search {
  position: relative;
  max-width: 230px;
}
.search svg {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 18px;
  color: var(--muted);
}
.search input {
  width: 100%;
  height: 44px;
  padding: 0 10px 0 37px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline-offset: 2px;
  font-size: 15px;
}
.section {
  margin-top: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--line);
  position: relative;
  margin-bottom: 9px;
}
.section-title:before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--forest);
}
.section-title h2 {
  font: 11px Mono;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-right: 10px;
}
.section-title .count {
  font: 10px Mono;
  color: var(--muted);
}
.section-title .section-action {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--muted);
}
.section-title .section-action button {
  font-size: 13px;
}
.small-add {
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.small-add svg {
  width: 15px;
}
.section-title .icon {
  width: 34px;
  min-width: 34px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.project-card {
  position: relative;
  min-width: 0;
  background: var(--paper);
  border: 1px solid transparent;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.project-card:hover {
  border-color: #a9b8ab;
  box-shadow: 0 4px 15px #23313a07;
  transform: translateY(-2px);
}
.project-card .card-link {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 22px 23px 17px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 11px;
}
.card-stroke {
  width: 28px;
  height: 3px;
  background: var(--forest);
}
.card-number {
  font: 10px Mono;
  color: var(--muted);
  margin-right: 28px;
  opacity: 0.8;
}
.project-card h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.project-card .description {
  font-size: 15px;
  line-height: 1.35;
  max-width: 32ch;
  color: var(--muted);
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 23px;
  font-size: 12px;
  color: var(--muted);
}
.card-foot svg {
  width: 14px;
  height: 14px;
}
.card-foot .arrow {
  margin-left: auto;
  width: 17px;
  color: var(--forest);
}
.project-card .card-menu {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  opacity: 0;
}
.project-card:hover .card-menu,
.project-card:focus-within .card-menu {
  opacity: 1;
}
.existing .projects-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.existing .project-card {
  background: var(--sage);
  border-left: 3px solid var(--forest);
}
.existing .card-link {
  padding: 18px 18px 16px;
  min-height: 140px;
}
.existing h3 {
  font-size: 23px;
  margin-bottom: 8px;
}
.existing .card-top {
  display: none;
}
.existing .description {
  font-size: 14px;
  max-width: 26ch;
  padding-right: 10px;
}
.existing .card-foot {
  margin-top: 14px;
  font-size: 11px;
}
.ideas .projects-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ideas .project-card {
  background: var(--idea);
}
.ideas .card-link {
  padding: 18px 18px 15px;
  min-height: 151px;
}
.ideas h3 {
  font-size: 22px;
}
.ideas .card-top {
  margin-bottom: 15px;
}
.ideas .card-foot {
  display: none;
}
.ideas .description {
  font-size: 14px;
}
.ideas .section-title:before,
.ideas .card-stroke {
  background: var(--claret);
}
.ideas .section-title h2 {
  color: var(--claret);
}
.empty {
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  font-size: 15px;
}
.prototype {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.prototype a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.text-btn {
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  padding: 0 10px;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 916px;
  margin: 0 auto 29px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}
.back svg {
  width: 17px;
}
.project-tools {
  display: flex;
  align-items: center;
  gap: 1px;
}
.project-paper {
  max-width: 812px;
  margin: auto;
}
.project-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-kicker:before {
  content: "";
  width: 29px;
  height: 3px;
  background: var(--forest);
}
.project-paper h1 {
  font-size: 54px;
  letter-spacing: -0.035em;
  line-height: 1.16;
  margin: 11px 0 12px;
  overflow-wrap: anywhere;
}
.project-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.4;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0 26px;
  min-height: 48px;
}
.tabs a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  position: relative;
  color: var(--muted);
  font-size: 15px;
}
.tabs a.active {
  color: var(--forest);
  font-weight: 600;
}
.tabs a.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forest);
}
.tabs .tab-count {
  font: 10px Mono;
  color: var(--muted);
}
.tabs .saved {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.task-section {
  margin-bottom: 25px;
}
.task-section-heading {
  display: flex;
  align-items: center;
  min-height: 37px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.collapse {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-height: 37px;
  text-align: left;
}
.collapse svg {
  width: 13px;
  transition: transform 0.15s;
}
.collapse.closed svg {
  transform: rotate(-90deg);
}
.collapse span {
  font: 500 22px Playfair;
  color: var(--forest);
}
.collapse small {
  font: 10px Mono;
  color: var(--muted);
  margin-left: 5px;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  position: relative;
  min-height: 44px;
  padding: 1px 0;
}
.check-wrap {
  width: 37px;
  min-width: 37px;
  height: 43px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.check-wrap input {
  appearance: none;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1.2px solid #708278;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  display: grid;
  place-items: center;
}
.check-wrap input:checked {
  background: var(--forest);
  border-color: var(--forest);
}
.check-wrap input:checked:after {
  content: "✓";
  font-size: 13px;
  color: var(--paper);
  line-height: 1;
}
.task-text {
  min-height: 43px;
  text-align: left;
  padding: 9px 6px 8px 1px;
  flex: 1;
  font-size: 18px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.task-row.done .task-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #8fa59a;
}
.task-row .task-menu {
  opacity: 0;
  width: 36px;
  min-width: 36px;
}
.task-row:hover .task-menu,
.task-row:focus-within .task-menu {
  opacity: 1;
}
.add-task {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 44px;
  color: var(--muted);
  padding: 0;
}
.add-task > svg {
  width: 17px;
  margin: 0 10px;
}
.add-task input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 17px;
  min-height: 44px;
  padding: 7px 1px;
}
.add-task input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.add-task button {
  visibility: hidden;
}
.add-task:focus-within button,
.add-task:has(input:not(:placeholder-shown)) button {
  visibility: visible;
}
.completed-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.completed-toggle svg {
  width: 16px;
}
.notes-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.notes-heading h2 {
  font-size: 24px;
}
.note {
  position: relative;
  background: var(--paper);
  border-top: 3px solid var(--forest);
  padding: 22px 25px;
  margin-bottom: 18px;
}
.note h3 {
  font-size: 25px;
  margin-bottom: 9px;
  padding-right: 35px;
}
.note p {
  white-space: pre-wrap;
  font-size: 17px;
  line-height: 1.6;
}
.note .icon {
  position: absolute;
  right: 10px;
  top: 8px;
}
.note-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--forest);
  width: 100%;
  overflow-wrap: anywhere;
}
.note-link svg {
  width: 16px;
}
.notes-hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}
.paper-end {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  color: var(--muted);
  font: 10px Mono;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.paper-end img {
  width: 20px;
  height: 20px;
  opacity: 0.65;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 26px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(
    100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  overflow: auto;
}
dialog::backdrop {
  background: #142b2445;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 28px;
  margin: 0 35px 7px 0;
  overflow-wrap: anywhere;
}
dialog .dialog-caption {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
}
dialog label.field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 7px;
}
dialog input,
dialog textarea,
dialog select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  padding: 10px 12px;
  font-size: 16px;
}
dialog textarea {
  min-height: 94px;
  resize: vertical;
}
dialog .actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}
dialog .menu-list {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}
.menu-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 8px;
  text-align: left;
  font-size: 16px;
  border-radius: 4px;
}
.menu-list button:hover {
  background: var(--idea);
}
.menu-list .separator {
  border-top: 1px solid var(--line);
  margin: 7px 0;
}
.menu-list .danger {
  color: var(--danger);
}
.menu-list svg {
  width: 18px;
}
.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  min-height: 58px;
}
.archive-row span {
  font-family: Playfair;
  font-size: 19px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--paper);
  padding: 10px 17px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  z-index: 20;
  display: none;
  font-size: 14px;
  max-width: calc(100vw - 30px);
  align-items: center;
  gap: 18px;
}
#toast.show {
  display: flex;
}
#toast button {
  color: inherit;
  text-decoration: underline;
  min-height: 30px;
  padding: 0 5px;
}
.mobile-title {
  display: none;
}
@media (min-width: 1400px) {
  #main {
    padding-top: 46px;
  }
  .section {
    margin-top: 27px;
  }
  .project-card .card-link {
    min-height: 209px;
  }
  .existing .card-link {
    min-height: 145px;
  }
  .ideas .card-link {
    min-height: 156px;
  }
}
@media (max-width: 950px) {
  #header {
    padding-left: 24px;
    padding-right: 24px;
  }
  .projects-grid {
    gap: 10px;
  }
  .existing .projects-grid,
  .ideas .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .project-card .card-link {
    padding: 18px;
    min-height: 220px;
  }
  .project-card h3 {
    font-size: 24px;
  }
  .search {
    max-width: 180px;
  }
  .page-heading h1 {
    font-size: 46px;
  }
  .heading-actions {
    gap: 4px;
  }
  .header-end {
    gap: 3px;
  }
  .project-card .card-menu {
    opacity: 1;
  }
}
@media (max-width: 600px) {
  #header {
    padding-left: 18px;
    padding-right: 12px;
    gap: 20px;
    min-height: 60px;
  }
  .brand {
    height: 59px;
    font-size: 24px;
    gap: 7px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .topnav {
    height: 59px;
    gap: 18px;
  }
  .topnav a {
    font-size: 14px;
  }
  .topnav svg {
    display: none;
  }
  .avatar {
    display: none;
  }
  .header-end {
    gap: 0;
  }
  .header-end .icon {
    width: 38px;
    min-width: 38px;
  }
  #main {
    padding: 26px 20px 35px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 40px;
    margin-top: 4px;
    margin-bottom: 5px;
  }
  .page-heading p {
    font-size: 15px;
    max-width: 24ch;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .heading-actions {
    padding-top: 17px;
  }
  .heading-actions .btn {
    padding: 0 11px;
    font-size: 14px;
  }
  .heading-actions .btn .desktop-word {
    display: none;
  }
  .search {
    display: none;
  }
  .section {
    margin-top: 20px;
  }
  .section-title {
    margin-bottom: 8px;
  }
  .section-title h2 {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .section-title .count {
    font-size: 9px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .main-projects .project-card:first-child {
    grid-column: 1/-1;
  }
  .main-projects .project-card:first-child .card-link {
    min-height: 172px;
    padding: 19px 20px;
  }
  .main-projects .project-card:first-child h3 {
    font-size: 29px;
  }
  .main-projects .project-card:first-child .card-top {
    margin-bottom: 12px;
  }
  .main-projects .project-card:first-child .description {
    max-width: 35ch;
  }
  .main-projects .project-card:first-child .card-foot {
    margin-top: 17px;
  }
  .project-card .card-link {
    padding: 16px 14px 14px;
    min-height: 211px;
  }
  .project-card h3 {
    font-size: 23px;
    margin-bottom: 7px;
  }
  .card-top {
    margin-bottom: 15px;
  }
  .card-number {
    font-size: 9px;
    margin-right: 18px;
  }
  .project-card .description {
    font-size: 14px;
  }
  .card-foot {
    font-size: 11px;
    margin-top: 17px;
  }
  .card-foot .arrow {
    display: none;
  }
  .existing .card-link {
    min-height: 154px;
    padding: 16px 12px 13px;
  }
  .existing h3 {
    font-size: 21px;
    max-width: 13ch;
  }
  .existing .description {
    font-size: 13px;
    padding: 0;
  }
  .existing .card-foot {
    font-size: 10px;
    margin-top: 12px;
  }
  .existing .card-menu {
    top: -1px;
    right: -1px;
  }
  .existing .card-menu svg {
    width: 16px;
  }
  .existing .card-link h3 {
    padding-right: 15px;
  }
  .ideas .card-link {
    min-height: 158px;
    padding: 16px 14px;
  }
  .ideas h3 {
    font-size: 21px;
    max-width: 15ch;
  }
  .ideas .description {
    font-size: 13px;
  }
  .card-menu.icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
  .small-add span {
    display: none;
  }
  .section-title .icon {
    width: 36px;
    min-width: 36px;
  }
  .prototype {
    gap: 3px;
    font-size: 11px;
    flex-direction: column;
    align-items: center;
  }
  .project-top {
    margin: -14px -6px 15px;
  }
  .project-paper h1 {
    font-size: 43px;
    margin: 9px 0 10px;
  }
  .project-kicker {
    font-size: 9px;
  }
  .project-intro {
    font-size: 16px;
  }
  .tabs {
    margin: 20px 0 21px;
    gap: 25px;
  }
  .task-section {
    margin-bottom: 23px;
  }
  .collapse span {
    font-size: 22px;
  }
  .task-text {
    font-size: 17px;
    line-height: 1.4;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .check-wrap {
    width: 32px;
    min-width: 32px;
  }
  .task-row .task-menu {
    width: 32px;
    min-width: 32px;
    opacity: 0.7;
  }
  .task-menu svg {
    width: 17px;
  }
  .add-task > svg {
    margin: 0 8px;
  }
  .add-task input {
    font-size: 16px;
  }
  .note {
    padding: 18px;
  }
  .note h3 {
    font-size: 23px;
  }
  .note p {
    font-size: 16px;
  }
  .note-link {
    font-size: 13px;
  }
  .paper-end {
    margin-top: 28px;
  }
  .project-tools .icon {
    width: 42px;
    min-width: 42px;
  }
  .tabs .saved {
    font-size: 10px;
  }
  dialog {
    padding: 23px;
    margin: auto;
    max-height: calc(
      100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
  }
  dialog h2 {
    font-size: 26px;
  }
  .notes-heading .btn {
    font-size: 14px;
    padding: 0 12px;
  }
  .bottom-actions {
    justify-content: flex-start;
  }
  .task-section-heading,
  .collapse {
    min-height: 44px;
  }
  .card-menu.icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    top: 0;
    right: 0;
  }
  .task-row .task-menu {
    width: 44px;
    min-width: 44px;
  }
  .section-title .icon {
    width: 44px;
    min-width: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  #header,
  .prototype,
  .project-top,
  .heading-actions,
  .section-action,
  .card-menu,
  .task-menu,
  .add-task,
  .tabs,
  .completed-toggle,
  .notes-heading .btn,
  .note .icon,
  .bottom-actions {
    display: none !important;
  }
  body {
    background: white;
    color: #23313a;
  }
  #main {
    padding: 0;
    max-width: none;
  }
  .project-card,
  .note {
    break-inside: avoid;
  }
  .project-paper {
    max-width: none;
  }
  .project-card {
    box-shadow: none !important;
  }
  a {
    color: inherit;
  }
  .check-wrap input {
    print-color-adjust: exact;
  }
  .section {
    break-inside: avoid;
  }
  .paper-end {
    margin-top: 25px;
  }
  .project-paper h1 {
    font-size: 38px;
  }
  .task-text {
    font-size: 15px;
  }
  .task-section {
    margin-bottom: 18px;
  }
}
html[data-theme="dark"] {
  --bg: #142b24;
  --paper: #1f3d34;
  --ink: #f6f2e8;
  --forest: #f6f2e8;
  --muted: #c9d3cc;
  --line: #466052;
  --sage: #263f33;
  --idea: #233930;
  --claret: #d1b8bd;
  --soft-claret: #40363a;
  --danger: #f1b6b8;
  color-scheme: dark;
}
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .paper-end img {
  filter: brightness(0) invert(0.9);
}
html[data-theme="dark"] .btn {
  color: #142b24;
}
html[data-theme="dark"] .btn.quiet {
  color: var(--forest);
}
html[data-theme="dark"] .check-wrap input:checked:after {
  color: #142b24;
}
#main.project-view {
  padding-top: 28px;
}
.project-paper h1 {
  font-size: 48px;
  margin: 7px 0 9px;
}
.project-intro {
  font-size: 17px;
}
.tabs {
  margin: 16px 0 15px;
}
.task-section {
  margin-bottom: 18px;
}
.task-row {
  min-height: 40px;
  padding: 0;
}
.task-text {
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.check-wrap {
  height: 40px;
}
.task-row .task-menu {
  height: 40px;
}
.project-view .paper-end {
  margin-top: 24px;
}
.project-view .add-task {
  min-height: 40px;
}
.project-view .add-task input {
  min-height: 40px;
}
.assignee {
  font-size: 11px;
  color: var(--muted);
  padding-top: 14px;
}
.safe-preview {
  height: 59px;
  padding: 18px 24px 0;
  font: 600 12px Source;
  background: var(--paper);
}
@media (max-width: 600px) {
  #main.project-view {
    padding-top: 23px;
  }
  .project-paper h1 {
    font-size: 40px;
  }
  .project-intro {
    font-size: 16px;
  }
  .project-view .tabs {
    margin: 15px 0 15px;
  }
  .task-row,
  .task-text,
  .check-wrap,
  .task-row .task-menu,
  .project-view .add-task,
  .project-view .add-task input {
    min-height: 44px;
  }
  .task-text {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .check-wrap,
  .task-row .task-menu {
    height: 44px;
  }
  .project-view .paper-end {
    margin-top: 24px;
  }
  body:has(.project-view) #header {
    gap: 13px;
  }
  body:has(.project-view) .header-end {
    gap: 0;
  }
  body:has(.project-view) .header-end .icon {
    width: 44px;
    min-width: 44px;
  }
  body:has(.project-view) .topnav .back {
    gap: 2px;
  }
  body:has(.project-view) .topnav .back svg {
    display: block;
    width: 15px;
  }
  body:has(.project-view) .brand {
    font-size: 22px;
  }
  body:has(.project-view) .brand img {
    width: 23px;
  }
  body:has(.project-view) .brand i {
    display: none;
  }
  body:has(.project-view) #theme {
    display: none;
  }
}
@media (max-width: 600px) {
  #main.project-view {
    padding-top: 16px;
  }
  .project-paper h1 {
    font-size: 38px;
    margin: 5px 0 6px;
  }
  .project-view .tabs {
    margin: 10px 0 8px;
  }
  .task-section {
    margin-bottom: 10px;
  }
  .task-section-heading {
    margin-bottom: 0;
  }
  .project-view .paper-end {
    margin-top: 18px;
  }
  .notes-heading {
    gap: 10px;
  }
  .notes-heading h2 {
    font-size: 22px;
  }
}
@media (max-width: 360px) {
  .projects-grid,
  .existing .projects-grid,
  .ideas .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card .card-link,
  .main-projects .project-card:first-child .card-link {
    min-height: 150px;
  }
  .existing .card-link {
    min-height: 120px;
  }
  .ideas .card-link {
    min-height: 128px;
  }
  .existing h3,
  .ideas h3 {
    max-width: none;
  }
  .card-foot {
    margin-top: 13px;
  }
  .page-heading p {
    max-width: 21ch;
  }
  #header {
    gap: 14px;
  }
  .topnav {
    gap: 13px;
  }
  .project-paper h1 {
    font-size: 35px;
  }
}
/* Colour refinement: the sage, sand and terracotta layers in Ed's slide references. */
:root {
  --project-sand: #eee9dd;
  --project-sage: #dfeae3;
  --project-terracotta: #f3e1d7;
  --project-rust: #a84a2a;
}
html:not([data-theme="dark"]) {
  --sage: #dfeae3;
  --idea: #eee9dd;
}
html:not([data-theme="dark"]) body:has(.page-heading) {
  background: #f5f6f1;
}
.main-projects .project-card {
  background: var(--project-sand);
}
.existing .project-card {
  background: var(--project-sage);
  border-left-width: 4px;
}
.ideas .project-card {
  background: var(--project-terracotta);
  border-left: 3px solid var(--project-rust);
}
.ideas .card-stroke,
.ideas .section-title:before {
  background: var(--project-rust);
}
.ideas .section-title h2,
.ideas .section-title .count,
.ideas .section-action,
.ideas .card-menu {
  color: var(--project-rust);
}
.project-card h3 {
  color: var(--ink);
  font-weight: 600;
}
.ideas .project-card .description {
  color: #874d38;
}
.ideas .card-number {
  color: #925d47;
}
html:not([data-theme="dark"]) .page-heading h1 {
  color: #1d2523;
}
html:not([data-theme="dark"]) .main-projects .card-number {
  color: #7a7567;
}
html[data-theme="dark"] {
  --project-sand: #343e32;
  --project-sage: #29463a;
  --project-terracotta: #45352f;
  --project-rust: #e8b994;
}
html[data-theme="dark"] .ideas .project-card .description,
html[data-theme="dark"] .ideas .card-number {
  color: #e8c7b6;
}
/* Custom section palettes: fixed compact geometry, editable content and colour. */
.coloured-section {
  --section-fill: var(--section-bg);
  --section-rule: var(--section-accent);
}
html[data-theme="dark"] .coloured-section {
  --section-fill: var(--section-dark-bg);
  --section-rule: var(--section-dark-accent);
}
.coloured-section .project-card,
.section-preview .preview-card {
  background: var(--section-fill);
}
.coloured-section.existing .project-card,
.coloured-section.compact-section .project-card {
  border-left-color: var(--section-rule);
}
.coloured-section .section-title:before,
.coloured-section .card-stroke {
  background: var(--section-rule);
}
.coloured-section .section-title h2,
.coloured-section .section-title .count,
.coloured-section .section-action,
.coloured-section .card-menu,
.coloured-section .card-number {
  color: var(--section-rule);
}
.coloured-section .project-card .description,
html[data-theme="dark"] .coloured-section .project-card .description {
  color: var(--muted);
}
.bottom-actions {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bottom-actions .btn {
  font-weight: 400;
  font-size: 14px;
}
.colour-picker {
  border: 0;
  padding: 0;
  margin: 19px 0 0;
  min-width: 0;
}
.colour-picker legend {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.colour-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 8px;
}
.colour-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  min-height: 70px;
  padding: 5px 2px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
}
.colour-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  inset: 25px auto auto 50%;
  padding: 0;
}
.swatch {
  width: 42px;
  height: 34px;
  background: var(--swatch);
  color: var(--swatch-ink);
  border: 1px solid #23313a12;
  border-radius: 4px;
  display: grid;
  place-items: center;
  outline-offset: 3px;
}
.swatch svg {
  opacity: 0;
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.colour-option:has(input:checked) .swatch {
  outline: 2px solid var(--swatch-ink);
}
.colour-option:has(input:checked) .swatch svg {
  opacity: 1;
}
.colour-option:has(input:checked) {
  color: var(--ink);
}
.colour-option:has(input:focus-visible) {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}
.section-preview {
  margin-top: 19px;
}
.section-preview > .eyebrow {
  color: var(--section-rule);
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}
.preview-card {
  padding: 17px 19px;
  border-left: 3px solid var(--section-rule);
}
.preview-card .card-stroke {
  display: block;
  margin-bottom: 13px;
}
.preview-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.preview-card p {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .colour-options {
    gap: 7px;
  }
  .colour-option {
    min-height: 68px;
  }
  .bottom-actions {
    align-items: center;
  }
  .bottom-actions .text-btn {
    font-size: 12px;
  }
  .section-preview {
    margin-top: 16px;
  }
}
@media (max-width: 420px) {
  #group-form .actions {
    flex-wrap: wrap;
  }
  #group-form #remove-group {
    flex-basis: 100%;
    text-align: left;
    padding-left: 0;
  }
}
/* Reading-first project pages: one title, one text column, quiet editing. */
.refined-paper {
  max-width: 720px;
  --section-fill: var(--section-bg);
  --section-rule: var(--section-accent);
}
html[data-theme="dark"] .refined-paper {
  --section-fill: var(--section-dark-bg);
  --section-rule: var(--section-dark-accent);
}
#main.project-view {
  padding-top: 35px;
  padding-bottom: 60px;
}
.refined-paper .project-kicker {
  font: 11px Source;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
  gap: 7px;
}
.refined-paper .project-kicker:before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--section-rule);
}
.refined-paper h1 {
  font-size: 49px;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 8px 0 8px;
  font-weight: 500;
}
.refined-paper .project-intro {
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}
.refined-paper .tabs {
  gap: 25px;
  margin: 20px 0 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.refined-paper .tabs > a {
  min-height: 43px;
  font-size: 15px;
  gap: 7px;
}
.refined-paper .tabs > a.active:after {
  height: 2px;
  background: var(--section-rule);
}
.refined-paper .tab-count {
  font: 11px Source;
  border-radius: 8px;
  padding: 0 5px;
  background: var(--section-fill);
  color: var(--section-rule);
}
.page-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.task-edit-toggle {
  min-width: 44px;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
}
.save-indicator {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  opacity: 0.6;
}
.save-indicator svg {
  width: 13px;
  height: 13px;
}
.refined-paper .task-section {
  margin-bottom: 20px;
}
.refined-paper .task-section-heading {
  border: 0;
  margin: 0;
  min-height: 37px;
}
.refined-paper .collapse {
  width: 100%;
  padding-left: 36px;
  min-height: 37px;
  gap: 8px;
}
.refined-paper .collapse span {
  font: 600 18px/1.4 Source;
  color: var(--forest);
}
.refined-paper .collapse svg {
  order: 3;
  margin-left: auto;
  margin-right: 12px;
  width: 12px;
  color: var(--muted);
  opacity: 0.5;
}
.refined-paper .collapse small {
  display: none;
}
.refined-paper .collapse.closed small {
  display: inline;
  color: var(--muted);
}
.refined-paper .task-row {
  border-radius: 5px;
  gap: 0;
}
.refined-paper .task-row:hover {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}
.refined-paper .task-text {
  font-size: 17px;
  line-height: 1.45;
  padding: 8px 3px 8px 0;
  letter-spacing: 0.005em;
}
.refined-paper .check-wrap {
  width: 36px;
  min-width: 36px;
}
.refined-paper .check-wrap input {
  width: 18px;
  height: 18px;
  border-color: #8fa59a;
}
.refined-paper .task-menu {
  opacity: 0;
  pointer-events: none;
  width: 36px;
  min-width: 36px;
}
.refined-paper .task-row:hover .task-menu,
.refined-paper .task-row:focus-within .task-menu,
.refined-paper.editing-tasks .task-menu {
  opacity: 0.7;
  pointer-events: auto;
}
.refined-paper .task-row:has(.task-inline-editor) {
  background: var(--paper);
}
.task-inline-editor {
  font: 17px/1.45 Source;
  resize: none;
  overflow: hidden;
  min-height: 40px;
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 8px 3px 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
}
.refined-paper .add-task {
  opacity: 0.72;
}
.refined-paper .add-task:focus-within {
  opacity: 1;
}
.refined-paper .add-task input {
  font-size: 16px;
}
.refined-paper .add-task > svg {
  width: 15px;
  margin-left: 11px;
  margin-right: 10px;
}
.refined-paper .completed-toggle {
  font-size: 13px;
  padding-left: 36px;
}
.note-editor {
  position: relative;
  min-height: 52vh;
  font: 18px/1.65 Source;
  outline: none;
  overflow-wrap: anywhere;
  white-space: normal;
  caret-color: var(--forest);
  padding: 3px 0 45px;
}
.note-editor:focus-visible {
  outline: none;
}
.note-editor.is-empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
  opacity: 0.65;
  position: absolute;
  top: 3px;
  left: 0;
  pointer-events: none;
}
.note-editor p,
.note-editor > div {
  margin: 0 0 0.85em;
}
.note-editor h1 {
  font: 500 34px/1.2 Playfair;
  letter-spacing: -0.02em;
  margin: 19px 0 12px;
  color: var(--ink);
}
.note-editor h2 {
  font: 500 26px/1.3 Playfair;
  margin: 25px 0 10px;
  color: var(--forest);
}
.note-editor h3 {
  font: 600 20px/1.4 Source;
  margin: 20px 0 8px;
}
.note-editor > :first-child {
  margin-top: 0;
}
.note-editor ul,
.note-editor ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.note-editor li {
  padding-left: 3px;
}
.note-editor a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.note-editor blockquote {
  margin: 18px 0;
  padding-left: 19px;
  border-left: 2px solid var(--section-rule);
  color: var(--muted);
}
.note-format {
  position: relative;
}
.note-format summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font: 500 17px Playfair;
  color: var(--muted);
}
.note-format summary::-webkit-details-marker {
  display: none;
}
.format-options {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 43px;
  min-width: 158px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 7px;
}
.format-options button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 15px;
}
.format-options button:hover {
  background: var(--idea);
}
.note-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
  margin-top: -12px;
  margin-bottom: 10px;
}
.note-switch svg {
  width: 12px;
}
@media (max-width: 600px) {
  #main.project-view {
    padding-top: 24px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .refined-paper h1 {
    font-size: 40px;
    margin: 7px 0;
  }
  .refined-paper .project-intro {
    font-size: 15px;
  }
  .refined-paper .tabs {
    margin: 15px 0 13px;
  }
  .refined-paper .task-section {
    margin-bottom: 14px;
  }
  .refined-paper .task-section-heading,
  .refined-paper .collapse {
    min-height: 38px;
  }
  .refined-paper .collapse {
    padding-left: 33px;
  }
  .refined-paper .collapse span {
    font-size: 17px;
  }
  .refined-paper .task-text {
    font-size: 17px;
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .refined-paper .check-wrap {
    width: 33px;
    min-width: 33px;
  }
  .refined-paper .task-menu {
    width: 32px;
    min-width: 32px;
    opacity: 0;
    pointer-events: none;
  }
  .refined-paper .task-row:hover .task-menu {
    opacity: 0;
    pointer-events: none;
  }
  .refined-paper .task-row:focus-within .task-menu,
  .refined-paper.editing-tasks .task-menu {
    width: 44px;
    min-width: 44px;
    opacity: 0.7;
    pointer-events: auto;
  }
  .refined-paper .task-row:hover {
    background: transparent;
  }
  .refined-paper .add-task > svg {
    margin-left: 9px;
    margin-right: 9px;
  }
  .refined-paper .task-inline-editor {
    font-size: 17px;
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .note-editor {
    font-size: 17px;
    line-height: 1.62;
    min-height: 58vh;
    padding-top: 2px;
  }
  .note-editor h2 {
    font-size: 25px;
    margin-top: 23px;
  }
  .note-editor h1 {
    font-size: 31px;
  }
  .note-editor p,
  .note-editor > div {
    margin-bottom: 0.8em;
  }
  .save-indicator {
    display: none;
  }
  .page-tools {
    gap: 0;
  }
}
@media print {
  .page-tools,
  .note-switch,
  .prototype {
    display: none !important;
  }
  .refined-paper {
    max-width: none;
  }
  .note-editor {
    min-height: 0;
  }
  .note-editor p,
  .note-editor li {
    orphans: 3;
    widows: 3;
  }
  .note-editor h1,
  .note-editor h2,
  .note-editor h3 {
    break-after: avoid;
  }
  .refined-paper .task-menu {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .refined-paper .check-wrap {
    width: 44px;
    min-width: 44px;
  }
  .refined-paper .collapse {
    padding-left: 44px;
  }
  .refined-paper .task-menu {
    position: absolute;
    right: 0;
    top: 0;
  }
  .refined-paper.editing-tasks .task-menu,
  .refined-paper .task-row:focus-within .task-menu {
    position: static;
  }
  .refined-paper .add-task > svg {
    margin-left: 14px;
    margin-right: 15px;
  }
}
.refined-paper.editing-tasks .task-row .task-menu {
  opacity: 0.75;
  pointer-events: auto;
  position: static;
}

/* Card rhythm, calm feedback, and reachable mobile sheets. */
.project-card {
  border-radius: 3px;
  overflow: hidden;
  transition:
    box-shadow 0.16s,
    border-color 0.16s,
    background 0.16s;
}
.project-card:hover {
  transform: none;
  box-shadow: 0 3px 12px #23313a0a;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.project-card .card-link {
  height: 100%;
}
.project-card h3 {
  max-width: none;
}
.card-foot {
  margin-top: auto;
  padding-top: 18px;
  min-height: 34px;
}
.card-foot span {
  font-size: 12px;
}
.card-foot .arrow {
  opacity: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
  transform: translateX(-3px);
}
.project-card:focus-within {
  outline: 2px solid var(--section-rule);
  outline-offset: 3px;
}
.project-card:hover .arrow,
.project-card:focus-within .arrow {
  opacity: 1;
  transform: none;
}
.card-link:active {
  background: color-mix(in srgb, var(--section-rule) 8%, transparent);
}
.projects-grid {
  grid-auto-rows: 1fr;
}
.empty {
  border: 0;
  background: color-mix(in srgb, var(--section-fill) 60%, transparent);
  padding: 10px 18px;
}
.empty-add {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--section-rule);
}
.empty-add svg {
  width: 17px;
}
.search-empty {
  padding: 25px 0;
  background: none;
}
.search-empty h2 {
  font-size: 25px;
  margin-bottom: 6px;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
  font-size: 12px;
}
dialog {
  padding: 0;
  max-height: min(720px, calc(100dvh - 48px));
  border-radius: 14px;
  overflow: auto;
  overscroll-behavior: contain;
}
dialog .sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  padding: 23px 24px 15px;
  border-bottom: 1px solid var(--line);
}
dialog .sheet-head h2 {
  font-size: 25px;
  margin: 0 35px 0 0;
  line-height: 1.25;
}
dialog .dialog-caption {
  margin: 6px 22px 0 0;
  font-size: 14px;
}
dialog .dialog-close {
  top: 13px;
  right: 12px;
  border-radius: 50%;
}
dialog .sheet-body {
  padding: 8px 16px 14px;
}
dialog.form-sheet .sheet-body {
  padding: 0 24px 8px;
}
dialog .menu-list {
  margin: 0;
}
.menu-list button {
  min-height: 46px;
  padding: 10px 12px;
  line-height: 1.3;
}
.menu-list button:active {
  background: var(--idea);
}
.menu-list .separator {
  margin: 5px 10px;
}
.menu-list svg {
  opacity: 0.8;
}
dialog label.field {
  margin-top: 17px;
}
dialog input,
dialog select {
  min-height: 46px;
}
dialog textarea {
  min-height: 76px;
}
dialog .actions {
  position: sticky;
  bottom: -8px;
  background: var(--paper);
  padding: 13px 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
#toast {
  gap: 12px;
}
#toast #dismiss-toast {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 36px;
  padding: 0;
  text-decoration: none;
}
#dismiss-toast svg {
  width: 16px;
}
#save-warning {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--paper);
  color: var(--danger);
  border-top: 1px solid var(--danger);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 14px;
}
#save-warning button {
  min-height: 44px;
  text-decoration: underline;
}
@media (min-width: 951px) {
  .main-projects .card-link {
    padding: 22px;
    min-height: 206px;
  }
  .main-projects .description {
    min-height: 42px;
  }
  .existing .card-link {
    min-height: 158px;
  }
  .compact-section .card-link {
    min-height: 158px;
  }
  .project-card h3 {
    padding-right: 6px;
  }
  .existing .project-card h3 {
    padding-right: 18px;
  }
  .card-menu {
    background: transparent;
  }
}
@media (max-width: 600px) {
  dialog {
    position: fixed;
    inset: auto 0 auto;
    margin: 0;
    top: calc(var(--visible-top, 0px) + var(--visible-height, 100dvh));
    transform: translateY(-100%);
    width: 100%;
    max-width: none;
    max-height: calc(
      var(--visible-height, 100dvh) - 12px - env(safe-area-inset-top)
    );
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  dialog .sheet-head {
    padding: 23px 20px 14px;
  }
  dialog .sheet-head:before {
    content: "";
    position: absolute;
    top: 8px;
    left: calc(50% - 15px);
    height: 3px;
    width: 30px;
    background: var(--line);
    border-radius: 3px;
  }
  dialog .sheet-head h2 {
    font-size: 24px;
  }
  dialog .dialog-close {
    top: 14px;
    right: 12px;
  }
  dialog .sheet-body {
    padding: 7px 10px 12px;
  }
  dialog.form-sheet .sheet-body {
    padding: 0 20px 8px;
  }
  .menu-list button {
    min-height: 48px;
    padding: 12px;
  }
  .project-card .card-foot {
    min-height: 30px;
    padding-top: 12px;
    margin-top: auto;
  }
  .project-card .card-foot span {
    font-size: 11px;
  }
  .card-link:active {
    background: color-mix(in srgb, var(--section-rule) 11%, transparent);
  }
  .empty {
    padding: 9px 12px;
  }
  #save-warning {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 8px;
  }
  dialog .actions {
    flex-wrap: wrap;
  }
  dialog .actions .btn {
    min-height: 46px;
  }
  .task-section:only-child {
    margin-top: 0;
  }
}
@media (max-width: 600px) {
  .projects-grid {
    grid-auto-rows: auto;
  }
  .card-number {
    display: none;
  }
}

dialog .actions {
  bottom: 0;
}

#project-error {
  padding: 12px 20px;
  color: var(--danger);
  border: 1px solid var(--danger);
  margin: 15px 0;
}
#project-error button {
  text-decoration: underline;
  min-height: 44px;
  margin-left: 12px;
}
#project-status {
  font-size: 12px;
  color: var(--muted);
}
#gate {
  max-width: 360px;
  margin: 15vh auto;
  padding: 24px;
}
#gate input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 12px 0;
}
#gate h1 {
  font-size: 32px;
}
#gate button {
  margin: 12px 0;
}
button[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
