:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292d35;
  background: #fff;
  font-synthesis: none;
  --bg: #fff;
  --side: #f5f6f8;
  --text: #292d35;
  --muted: #848b96;
  --line: #e9ebef;
  --accent: #3479dc;
  --hover: #edf2fa;
  --selected: #e4ebf6;
  --red: #c75461;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1b1e23;
  --side: #17191e;
  --text: #e6e9ef;
  --muted: #8e96a4;
  --line: #2d323b;
  --accent: #76a8ff;
  --hover: #262d39;
  --selected: #26354c;
  --red: #ee8994;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 1px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.25;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 17px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 550;
}
.primary {
  background: var(--accent);
  color: white;
}
.secondary {
  background: var(--hover);
  color: var(--accent);
}
.danger {
  color: var(--red);
  padding: 12px;
}
.quiet {
  color: var(--muted);
  padding: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d7808b;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand span {
  font-size: 24px;
  color: var(--text);
}
.shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 244px;
  flex-shrink: 0;
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 32px 18px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 16px;
}
.sidebar-caption {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 15px 16px 24px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  width: 100%;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  min-height: 46px;
}
.nav-item:hover,
.project-nav:hover {
  background: var(--hover);
}
.nav-item.selected {
  background: var(--selected);
  color: var(--accent);
  font-weight: 600;
}
.nav-icon {
  font-size: 22px;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--accent);
}
.sidebar-projects {
  margin-top: 35px;
  overflow: auto;
}
.sidebar-projects .sidebar-caption {
  display: block;
  padding-bottom: 12px;
}
.project-nav {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  text-align: left;
  max-width: 100%;
  width: 100%;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.project-nav span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.sidebar-projects p {
  padding: 8px 16px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #dce6f7;
  color: #5878a9;
  font-size: 12px;
  font-weight: 600;
}
.theme {
  font-size: 12px;
  padding-left: 17px;
}
.workspace {
  margin-left: 244px;
  width: calc(100% - 244px);
}
.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
}
.sync {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.sync i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #5dab88;
}
.sync i.offline {
  background: #ccaa60;
}
.content {
  max-width: 870px;
  padding: 47px 58px 110px;
}
.page-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 29px;
}
.heading-icon {
  font-size: 31px;
  color: var(--accent);
  width: 34px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.filters {
  display: flex;
  gap: 5px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.filters button {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 6px;
  color: var(--muted);
}
.filters button.active {
  background: var(--hover);
  color: var(--accent);
  font-weight: 600;
}
.date-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 17px 0 8px;
  letter-spacing: 0.3px;
}
.todo {
  border-radius: 9px;
  padding: 0 5px;
}
.todo-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
}
.check {
  border: 1.5px solid #c9ced7;
  border-radius: 6px;
  width: 19px;
  height: 19px;
  min-width: 19px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  position: relative;
}
.check:before {
  content: "";
  position: absolute;
  inset: -12px;
}
.check.done {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.todo-title {
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
  min-height: 44px;
  word-break: break-word;
}
.completed {
  text-decoration: line-through;
  color: var(--muted);
}
.pill {
  font-size: 10px;
  padding: 4px 6px;
  background: var(--side);
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.todo-preview {
  font-size: 12px;
  color: var(--muted);
  padding: 0 30px 10px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-container {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.order-controls {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  opacity: 0.25;
  padding-bottom: 6px;
}
.order-controls:hover,
.task-container:focus-within .order-controls {
  opacity: 1;
}
.order-controls button {
  font-size: 11px;
  padding: 5px 8px;
  color: var(--muted);
}
.expanded {
  margin: 10px -12px;
  padding: 10px 17px 17px;
  border: 1px solid var(--line);
  box-shadow: 0 3px 15px #00000006;
}
.editor-body {
  padding: 7px 0 0 30px;
  display: grid;
  gap: 16px;
}
.editor-metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-dates {
  display: flex;
  gap: 8px;
}
.quick-dates button {
  padding: 6px 10px;
  background: var(--side);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.editor-footer label {
  font-size: 11px;
}
.editor-footer select {
  font-size: 12px;
}
.checklist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checklist-row input[type="text"],
.checklist-row input:not([type]) {
  flex: 1;
  border: 0;
  padding: 10px 5px;
  font-size: 13px;
  width: 0;
}
.checklist-row button {
  color: var(--muted);
  padding: 9px;
}
.checklist form {
  display: flex;
  gap: 8px;
}
.checklist form input {
  flex: 1;
  border: 0;
  background: var(--side);
  font-size: 13px;
}
.completed-toggle {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 22px 0;
}
.empty {
  text-align: center;
  padding: 58px 25px 64px;
}
.empty > span {
  font-size: 39px;
  color: #c4cedb;
  display: block;
  margin-bottom: 15px;
}
.empty h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.add-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 10px;
}
.add-bar button {
  font-size: 14px;
  color: var(--accent);
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
}
.add-bar button span {
  font-size: 23px;
}
.add-bar .muted {
  font-size: 11px;
}
.new-item {
  display: flex;
  gap: 8px;
  margin: 22px 0;
}
.new-item input {
  flex: 1;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--hover);
  color: var(--accent);
  font-size: 13px;
  margin: 20px 35px 0;
  padding: 13px 17px;
  border-radius: 8px;
  line-height: 1.5;
}
.notice button {
  text-decoration: underline;
}
.warning {
  color: #ab7b2b;
  background: #fff6df;
}
.settings-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  max-width: 510px;
}
.settings-section h2 {
  margin-bottom: 18px;
}
.settings-section label {
  margin-bottom: 12px;
}
.settings-section p {
  margin: 15px 0;
}
.settings-section button {
  margin-right: 7px;
}
.separator {
  color: var(--muted);
  font-size: 12px;
  margin: 23px 0;
}
.invite {
  padding: 15px;
  background: var(--side);
  margin-top: 16px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.invite button {
  margin-top: 12px;
}
.auth {
  max-width: 430px;
  margin: 10vh auto;
  padding: 32px;
}
.auth h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
}
.auth nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 28px;
}
.auth nav button {
  padding: 9px;
  font-size: 12px;
  color: var(--muted);
}
.auth form {
  display: grid;
  gap: 18px;
}
.auth form button,
.auth > button {
  background: var(--accent);
  color: white;
  padding: 12px;
  border-radius: 8px;
}
.auth label {
  font-size: 13px;
}
.error {
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0;
}
.message {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  margin: 15px 0;
}
.landing {
  max-width: 1200px;
  margin: auto;
  padding: 30px 45px;
}
.landing header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  padding: 100px 0 80px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 61px;
  letter-spacing: -3px;
  line-height: 1.07;
  font-weight: 650;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin: 25px 0;
}
.hero .primary {
  padding: 15px 20px;
}
.hero small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 18px;
}
.preview {
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 15px;
  box-shadow: 0 15px 70px #23324a0b;
  transform: rotate(-2deg);
}
.preview h2 {
  margin-bottom: 24px;
}
.preview .eyebrow {
  font-size: 9px;
  margin-bottom: 13px;
}
.sample-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.sample-row .pill {
  margin-left: auto;
}
.preview footer {
  font-size: 10px;
  color: var(--muted);
  padding-top: 27px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.principles b {
  font-size: 14px;
}
.principles p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 900px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  .topbar {
    padding: 0 25px;
  }
  .content {
    padding: 35px 30px 100px;
  }
  .hero {
    gap: 30px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .preview {
    padding: 20px;
  }
  .add-bar .muted {
    display: none;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 3;
    width: 100%;
    padding: 14px 12px 9px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .sidebar .brand {
    padding: 0 5px;
    font-size: 23px;
  }
  .sidebar .brand span {
    font-size: 21px;
  }
  .sidebar > .sidebar-caption,
  .sidebar-projects,
  .sidebar-bottom .theme {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    margin-top: 13px;
  }
  .nav-item {
    font-size: 12px;
    gap: 6px;
    padding: 9px 8px;
    min-height: 40px;
    justify-content: center;
  }
  .nav-icon {
    font-size: 18px;
    width: auto;
  }
  .sidebar-bottom {
    position: absolute;
    right: 12px;
    top: 11px;
    margin: 0;
    padding: 0;
  }
  .sidebar-bottom .nav-item {
    font-size: 0;
    padding: 0;
    width: 32px;
    min-height: 32px;
  }
  .sidebar-bottom .muted {
    display: none;
  }
  .avatar {
    width: 31px;
    height: 31px;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 43px;
    padding: 0 18px;
  }
  .topbar > .muted {
    font-size: 10px;
  }
  .sync {
    font-size: 10px;
  }
  .content {
    padding: 28px 20px 120px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 27px;
  }
  .heading-icon {
    font-size: 27px;
  }
  .filters {
    margin-bottom: 12px;
    gap: 3px;
  }
  .filters button {
    padding: 8px 12px;
  }
  .todo-title {
    font-size: 16px;
  }
  .pill {
    font-size: 9px;
  }
  .todo-main {
    gap: 12px;
    min-height: 52px;
  }
  .empty {
    padding: 45px 12px;
  }
  .add-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
    z-index: 2;
  }
  .add-bar button {
    font-size: 15px;
  }
  .editor-body {
    padding-left: 0;
  }
  .expanded {
    margin-left: -8px;
    margin-right: -8px;
    padding: 10px 12px 15px;
  }
  .editor-footer {
    flex-wrap: wrap;
  }
  .notice {
    margin: 15px 14px 0;
    font-size: 12px;
  }
  .new-item {
    flex-wrap: wrap;
  }
  .new-item input {
    flex-basis: 100%;
  }
  .settings-section {
    padding: 20px 0;
  }
  .order-controls {
    opacity: 0.6;
  }
  .auth {
    margin: 5vh auto;
    padding: 25px;
  }
  .landing {
    padding: 23px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 65px 0 45px;
    gap: 55px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .preview {
    transform: none;
    padding: 23px;
  }
  .principles {
    gap: 20px;
  }
  .principles p {
    line-height: 1.6;
  }
  .landing header > a:last-child {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
