:root {
  --black: #000;
  --white: #fff;
  --paper: #f5f5f5;
  --line: #e0e0e0;
  --muted: #888;
  --text: #333;
  --highlight: #e0e0e0;
  --font-default: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-times: "Times New Roman", Times, serif;
  --font-verdana: Verdana, Geneva, sans-serif;
  --font-special-elite: "Special Elite", "Courier New", monospace;
  --font-dm-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-ui: var(--font-default);
  --app-font-size: 16px;
  --app-background: var(--white);
  --sidebar-background: var(--paper);
  --sidebar-width: 280px;
  --subtask-indent: 52px;
  font-family: var(--font-ui);
  font-size: var(--app-font-size);
  color: var(--text);
  background: var(--white);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --black: #fff;
  --white: #000;
  --paper: #333;
  --line: #333;
  --muted: #888;
  --text: #e0e0e0;
  --highlight: #333;
  color-scheme: dark;
}

:root[data-theme="blue"] {
  --black: #b7dcff;
  --white: #061b31;
  --paper: #09233d;
  --line: #164568;
  --muted: #78a8d8;
  --text: #9fc9f2;
  --highlight: #09233d;
  color-scheme: dark;
}

:root[data-theme="orange-delight"] {
  --black: #fff;
  --white: #a94723;
  --paper: #bc592e;
  --line: rgb(255 255 255 / 28%);
  --muted: #ffe0cf;
  --text: #fff;
  --highlight: rgb(255 255 255 / 14%);
  --app-background: linear-gradient(180deg, #f2b279 0%, #e89041 100%);
  --sidebar-background: linear-gradient(180deg, #f2b279 0%, #e89041 100%);
  color-scheme: dark;
}

:root[data-font="times"] {
  --font-ui: var(--font-times);
  font-size-adjust: 0.52;
}

:root[data-font="verdana"] {
  --font-ui: var(--font-verdana);
}

:root[data-font="special-elite"] {
  --font-ui: var(--font-special-elite);
}

:root[data-font="dm-sans"] {
  --font-ui: var(--font-dm-sans);
}

:root[data-font="custom"] {
  --font-ui: var(--font-custom, var(--font-default));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--app-background);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--sidebar-background);
  padding: 20px 14px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 6px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.sidebar-add-task {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--black);
  padding: 6px 10px;
  font-weight: 700;
  text-align: left;
}

.sidebar-add-task:hover {
  background: var(--line);
}

.sidebar-add-icon {
  display: inline-grid;
  place-items: center;
  color: var(--black);
}

.sidebar-add-icon .svg-icon {
  width: 24px;
  height: 24px;
}

.brand {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.brand strong {
  color: var(--black);
  font-size: 1.125rem;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-section {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}

.nav-button,
.project-link,
.section-toggle,
.plain-link,
.icon-button {
  border: 0;
  background: transparent;
}

.nav-button,
.project-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 38px;
  gap: 8px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  padding: 8px 10px 8px 8px;
  color: var(--text);
  text-align: left;
}

.nav-button:hover,
.icon-button:hover,
.plain-link:hover,
.section-toggle:hover {
  background: var(--line);
}

.nav-button.is-active,
.project-row.is-active {
  background: var(--white);
  color: var(--black);
}

.nav-button.is-project-drop-target,
.project-row.is-project-drop-target,
.project-link.is-project-drop-target {
  background: var(--line);
  color: var(--black);
}

.nav-button.is-active,
.nav-button.is-project-drop-target,
.project-link.is-active,
.project-link.is-project-drop-target,
.project-row.is-active .project-link,
.project-row.is-project-drop-target .project-link {
  border-left-color: var(--black);
}

.project-row.is-project-drop-target .project-link {
  background: transparent;
}

.nav-icon,
.project-dot,
.checkbox {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nav-icon {
  color: var(--muted);
}

.nav-button.is-active .nav-icon,
.project-row.is-active .project-dot {
  color: var(--black);
}

.svg-icon {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
}

.nav-icon .svg-icon {
  width: 21px;
  height: 21px;
}

.icon-button .svg-icon,
.plain-link .svg-icon,
.section-toggle .svg-icon,
.task-toggle .svg-icon {
  width: 17px;
  height: 17px;
}

.icon-button .svg-filled-icon {
  width: 20px;
  height: 20px;
}

.count {
  color: var(--muted);
  font-size: 0.75rem;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 6px;
}

.section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--black);
  font-weight: 700;
  text-align: left;
}

.section-toggle span {
  color: var(--muted);
  font-weight: 500;
}

.project-list {
  display: grid;
  gap: 2px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 6px;
}

.project-row:hover {
  background: var(--line);
}

.project-link {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  padding-right: 8px;
}

.project-row .project-link:hover {
  background: transparent;
}

.project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dot {
  border: 0;
  color: var(--muted);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
}

.project-row:hover .project-actions,
.project-row:focus-within .project-actions {
  opacity: 1;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--muted);
  line-height: 1;
}

.icon-button:hover {
  color: var(--black);
}

.plain-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border-radius: 6px;
  padding: 5px 6px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
}

.plain-link:hover {
  color: var(--black);
}

.project-form {
  display: grid;
  gap: 8px;
  padding: 8px 4px 0;
}

.project-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 9px 10px;
  outline: none;
}

.auth-sidebar-note,
.auth-sidebar {
  margin-top: 22px;
  padding: 10px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-sidebar {
  display: grid;
  gap: 8px;
}

.auth-sidebar strong,
.auth-sidebar span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-sidebar strong {
  color: var(--text);
  font-size: 0.8125rem;
}

.auth-sidebar .text-button {
  justify-self: start;
}

.auth-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.settings-open-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.settings-open-button span {
  display: inline;
}

.settings-open-button .svg-icon {
  width: 15px;
  height: 15px;
}

.project-form input:focus,
.task-form input:focus,
.task-form textarea:focus,
.task-form select:focus,
.filter-control select:focus,
.edit-form input:focus,
.edit-form textarea:focus,
.edit-form select:focus,
.profile-form input:focus,
.password-form input:focus {
  border-color: var(--black);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.text-button,
.solid-button {
  min-height: 32px;
  border-radius: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 0.875rem;
}

.solid-button {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.text-button:hover {
  border-color: var(--black);
}

.solid-button:hover {
  background: var(--text);
  border-color: var(--text);
}

.main {
  min-width: 0;
  padding: 54px min(6vw, 64px) 70px;
  background: var(--app-background);
}

.main-inner {
  width: min(100%, 820px);
  margin: 0 auto;
}

.is-auth-screen .app-shell {
  display: block;
  min-height: 100vh;
}

.is-auth-screen .sidebar {
  display: none;
}

.is-auth-screen .main {
  min-height: 100vh;
  padding: 0;
}

.landing-page {
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 14px 7vw;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--black);
  padding: 0;
  font-size: 1.125rem;
  font-weight: 800;
}

.landing-actions,
.landing-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-content {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  gap: 42px;
  padding: 84px 0 70px;
  text-align: center;
}

.landing-hero-copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}

.landing-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--black);
  font-size: 3.5rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

.landing-app-preview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: min(100%, 920px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: left;
}

.landing-preview-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  padding: 20px 16px;
}

.landing-preview-sidebar strong {
  margin-bottom: 10px;
  color: var(--black);
  font-size: 1.125rem;
}

.landing-preview-sidebar span {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  color: var(--muted);
  padding: 8px;
  font-size: 0.875rem;
}

.landing-preview-sidebar span.is-active {
  background: var(--white);
  color: var(--black);
}

.landing-preview-sidebar .svg-icon {
  width: 17px;
  height: 17px;
}

.landing-preview-main {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 390px;
  padding: 28px 34px;
}

.landing-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.landing-preview-header strong {
  color: var(--black);
  font-size: 1.375rem;
}

.landing-preview-header span {
  color: var(--muted);
  font-size: 0.8125rem;
}

.landing-preview-task,
.landing-preview-subtask {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.landing-preview-task.is-highlighted {
  border-radius: 6px;
  background: var(--highlight);
  margin: 0 -10px;
  padding: 12px 10px;
}

.landing-preview-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.landing-preview-task strong {
  display: block;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
}

.landing-preview-task small,
.landing-preview-subtask {
  color: var(--muted);
  font-size: 0.8125rem;
}

.landing-preview-task small span,
.landing-tag-strip span {
  color: var(--black);
}

.landing-preview-subtask {
  margin-left: 36px;
}

.landing-preview-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.landing-preview-add .svg-icon,
.landing-preview-subtask .svg-icon {
  width: 15px;
  height: 15px;
}

.landing-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 42px;
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.landing-feature-row h2 {
  margin: 0 0 9px;
  color: var(--black);
  font-size: 1.625rem;
  line-height: 1.15;
}

.landing-feature-row p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.landing-mini-list,
.landing-tag-strip,
.landing-theme-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.landing-mini-list span,
.landing-tag-strip span,
.landing-theme-preview span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  padding: 6px 11px;
  font-size: 0.875rem;
}

.landing-mini-list .svg-icon {
  width: 15px;
  height: 15px;
}

.landing-theme-preview span:nth-child(2) {
  background: var(--black);
  color: var(--white);
}

.landing-theme-preview span:nth-child(3) {
  border-color: #164568;
  background: #061b31;
  color: #b7dcff;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 24px 34px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.landing-footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.landing-footer button:hover,
.landing-contact a:hover {
  color: var(--black);
  text-decoration: underline;
}

.landing-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-contact a {
  color: var(--text);
  text-decoration: none;
}

.legal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.legal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(0 0 0 / 45%);
}

.legal-modal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 640px);
  min-height: 340px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.legal-modal h2 {
  margin: 0;
  color: var(--black);
  font-size: 1.375rem;
}

.legal-content {
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.55;
}

.legal-content h3,
.legal-content h4,
.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content h3 {
  margin-top: 22px;
  color: var(--black);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content h4 {
  margin-top: 16px;
  color: var(--black);
  font-size: 0.875rem;
  line-height: 1.35;
}

.legal-content p {
  margin-top: 9px;
}

.legal-content ul {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  padding-left: 22px;
}

.legal-meta {
  color: var(--muted);
  font-weight: 700;
}

.auth-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 88px 24px 56px;
  background: var(--white);
}

.auth-brand {
  position: absolute;
  top: 28px;
  left: 32px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--black);
  font-size: 1.125rem;
  font-weight: 800;
}

.auth-panel {
  display: grid;
  gap: 18px;
  width: min(100%, 360px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  padding: 0;
  text-align: center;
}

.auth-panel h1 {
  margin: 0;
  color: var(--black);
  font-size: 1.75rem;
  line-height: 1.1;
}

.auth-panel p {
  margin: 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 12px 13px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--black);
}

.auth-form .solid-button {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
}

.auth-switch {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: center;
}

.auth-switch:hover {
  color: var(--black);
  text-decoration: underline;
}

.auth-message {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.8125rem;
}

.auth-message.is-error {
  border-color: var(--black);
}

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.view-title {
  margin: 0;
  color: var(--black);
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.view-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.tag-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  padding: 4px 8px;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.tag-filter-chip:hover {
  border-color: var(--black);
  background: var(--paper);
  color: var(--black);
}

.tag-filter-chip .svg-icon {
  width: 12px;
  height: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-history-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  padding: 6px 10px;
  font-size: 0.8125rem;
}

.clear-history-button:hover {
  border-color: var(--black);
  color: var(--black);
  background: var(--paper);
}

.clear-history-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.clear-history-button:disabled:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--white);
}

.clear-history-button .svg-icon {
  width: 14px;
  height: 14px;
}

.date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  gap: 6px;
  overflow-x: auto;
  padding: 18px 0 2px;
  scrollbar-width: thin;
}

.date-chip {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 8px;
  text-align: center;
}

.date-chip:hover,
.date-chip.is-active {
  background: var(--paper);
  border-color: var(--black);
}

.date-chip.is-upcoming-date-drop-target {
  background: var(--paper);
  border-color: var(--black);
}

.date-chip span {
  color: var(--muted);
  font-size: 0.75rem;
}

.date-chip strong {
  color: var(--black);
  font-size: 1.25rem;
  line-height: 1;
}

.date-chip small {
  color: var(--muted);
  font-size: 0.6875rem;
}

.content-stack {
  display: grid;
  gap: 26px;
  padding-top: 22px;
}

.task-section {
  display: grid;
  gap: 9px;
  border-radius: 8px;
  transition: background 120ms ease;
}

.task-section.is-upcoming-date-drop-target {
  background: var(--paper);
  outline: 1px solid var(--line);
  outline-offset: 8px;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.section-heading {
  margin: 0;
  color: var(--black);
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.section-subtle {
  color: var(--muted);
  font-size: 0.75rem;
}

.task-list,
.subtask-list {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
}

.task-list.is-empty-drop-list {
  min-height: 0;
  padding-bottom: 0;
}

.drop-slot {
  position: relative;
  min-height: var(--drop-slot-height, 52px);
  margin-left: var(--drop-slot-indent, 0px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  pointer-events: none;
  transition: margin-left 120ms ease;
}

.drop-indicator {
  position: absolute;
  top: -3px;
  left: 5px;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--black);
  pointer-events: none;
}

.drop-indicator::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--white);
  transform: translateY(-50%);
}

.subtask-list {
  margin-left: 34px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.task-item {
  min-width: 0;
  max-height: 600px;
}

.task-item.is-dragging {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.task-item.is-dragging .task-row {
  opacity: 0;
}

.task-item.is-removing {
  overflow: hidden;
  pointer-events: none;
  animation: task-disappear 240ms ease-in forwards;
}

.task-row {
  display: grid;
  grid-template-columns: 22px 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
  min-height: 38px;
  border-radius: 6px;
  padding: 6px 4px;
}

.task-row:hover {
  background: var(--paper);
}

.task-item.is-highlighted .task-row,
.task-item.is-highlighted .task-row:hover {
  background: var(--highlight);
}

.task-item.is-completed .task-row:hover,
.task-item.is-completing .task-row:hover {
  background: transparent;
}

.task-item.is-completed.is-highlighted .task-row,
.task-item.is-completed.is-highlighted .task-row:hover,
.task-item.is-completing.is-highlighted .task-row,
.task-item.is-completing.is-highlighted .task-row:hover {
  background: var(--highlight);
}

[data-task-list].is-drag-over .task-item:not(.is-dragging) .task-row:hover {
  background: transparent;
}

.task-row[data-drag-zone] {
  cursor: grab;
  user-select: none;
}

.task-row[data-drag-zone]:active {
  cursor: grabbing;
}

.task-row[data-drag-zone] button,
.task-row[data-drag-zone] .task-actions {
  cursor: pointer;
}

.task-toggle {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.task-toggle:hover {
  background: var(--line);
  color: var(--black);
}

.task-toggle.is-placeholder {
  pointer-events: none;
  opacity: 0;
}

.checkbox {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: var(--white);
}

.checkbox:hover {
  border-color: var(--black);
}

.task-item.is-completed .checkbox {
  background: var(--black);
  border-color: var(--black);
}

.task-item.is-completing .checkbox {
  background: var(--black);
  border-color: var(--black);
  animation: checkbox-pop 280ms ease-out;
}

.task-item.is-completed .checkbox::after,
.task-item.is-completing .checkbox::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  opacity: 1;
  transform: rotate(-45deg);
}

.task-item.is-completing .checkbox::after {
  animation: checkmark-in 260ms ease-out;
}

.task-item.is-completing .task-row {
  animation: completion-row 620ms ease-out;
}

.task-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.drag-preview {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  opacity: 0.94;
}

.drag-preview.is-floating {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  will-change: transform;
}

.task-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.task-title {
  position: relative;
  display: inline-block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.35;
}

.task-item.is-completed .task-title {
  color: var(--muted);
}

.task-title::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 52%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: rotate(-1deg) scaleX(0);
  transform-origin: left center;
}

.task-item.is-completed .task-title::after {
  opacity: 1;
  transform: rotate(-1deg) scaleX(1);
}

.task-item.is-completing .task-title::after {
  animation: task-strike 520ms cubic-bezier(0.2, 0.85, 0.24, 1) 90ms both;
}

.task-tag-button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  padding: 0 1px;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  cursor: pointer;
}

.task-tag-button:hover,
.task-tag-button.is-active {
  background: var(--paper);
  color: var(--black);
}

.task-item.is-completed .task-tag-button {
  color: var(--muted);
}

.task-item.is-completed .task-tag-button:hover,
.task-item.is-completed .task-tag-button.is-active {
  color: var(--black);
}

.task-notes {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.6875rem;
}

.task-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}

.deadline-distance {
  color: var(--muted);
}

.subtask-count .svg-icon {
  width: 15px;
  height: 15px;
}

.priority-label {
  font-weight: 600;
}

.priority-1 {
  color: var(--black);
}

.priority-2 {
  color: var(--text);
}

.priority-3 {
  color: var(--muted);
}

.priority-4 {
  color: var(--muted);
  font-weight: 500;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
}

.highlight-button.is-active {
  color: var(--black);
}

.highlight-button.is-active .svg-icon,
.highlight-button.is-active .svg-icon path {
  fill: currentColor;
}

.task-row:hover .task-actions,
.task-row:focus-within .task-actions {
  opacity: 1;
}

.task-more-menu {
  position: relative;
}

.task-more-menu summary {
  list-style: none;
  cursor: pointer;
}

.task-more-menu summary::-webkit-details-marker {
  display: none;
}

.task-more-menu[open] summary {
  background: var(--paper);
  color: var(--black);
}

.task-menu-popover {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 4px;
}

.task-menu-popover button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  padding: 7px 8px;
  text-align: left;
  font-size: 0.8125rem;
  cursor: pointer;
}

.task-menu-popover button:hover {
  background: var(--paper);
  color: var(--black);
}

.task-menu-popover .svg-icon {
  width: 15px;
  height: 15px;
}

.task-menu-popover .is-danger {
  color: var(--muted);
}

.task-menu-divider {
  height: 1px;
  margin: 4px;
  background: var(--line);
}

.task-item.is-completed .task-row:hover .task-actions,
.task-item.is-completing .task-row:hover .task-actions {
  opacity: 0;
}

.empty-state {
  display: grid;
  gap: 4px;
  padding: 14px 4px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.task-form,
.edit-form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.task-form {
  margin-top: 4px;
}

.edit-form {
  margin: 6px 0 10px 58px;
}

.task-form input,
.task-form textarea,
.task-form select,
.edit-form input,
.edit-form textarea,
.edit-form select,
.filter-control select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 7px 9px;
  outline: none;
}

.task-form input::placeholder,
.task-form textarea::placeholder {
  font-size: 82%;
}

.task-form textarea,
.edit-form textarea {
  min-height: 54px;
  resize: vertical;
}

.quick-add-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.quick-add-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
  pointer-events: auto;
}

.quick-task-form {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 48px));
  margin: 92px auto 0;
  gap: 0;
  padding: 0;
  overflow: visible;
  pointer-events: auto;
}

.quick-task-main {
  display: grid;
  gap: 8px;
  padding: 18px 20px 16px;
}

.quick-task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
}

.quick-task-project {
  min-width: 0;
}

.quick-task-form input[name="title"],
.quick-task-form textarea {
  border: 0;
  border-radius: 0;
  padding: 0;
}

.quick-task-form input[name="title"] {
  min-height: 30px;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 700;
}

.quick-task-form textarea {
  min-height: 26px;
  color: var(--text);
  font-size: 0.9375rem;
  resize: none;
}

.quick-task-form input[name="title"]::placeholder,
.quick-task-form textarea::placeholder {
  font-size: 100%;
}

.quick-task-form .task-option-row {
  margin-top: 8px;
}

.task-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.settings-layer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 28px;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #000;
  opacity: 0.42;
  cursor: default;
}

.settings-modal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  width: min(820px, calc(100vw - 48px));
  min-height: 470px;
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.settings-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  padding: 18px 12px;
}

.settings-title {
  color: var(--black);
  font-size: 1.125rem;
  font-weight: 800;
  padding: 0 8px 8px;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px 8px 8px;
  text-align: left;
}

.settings-tab:hover,
.settings-tab.is-active {
  background: var(--white);
  color: var(--black);
}

.settings-tab.is-active {
  border-left-color: var(--black);
}

.settings-tab .svg-icon {
  width: 19px;
  height: 19px;
}

.settings-content {
  min-width: 0;
  overflow-y: auto;
  padding: 22px 26px;
}

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

.settings-content-header h2,
.settings-row h3 {
  margin: 0;
  color: var(--black);
  letter-spacing: 0;
}

.settings-content-header h2 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.settings-content-header p,
.settings-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.settings-section {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.font-size-stepper {
  display: inline-flex;
  align-items: stretch;
  width: 112px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.font-size-value {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  padding-left: 10px;
  color: var(--text);
}

.font-size-value input {
  width: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-align: right;
  appearance: textfield;
}

.font-size-value input::-webkit-inner-spin-button,
.font-size-value input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.font-size-value > span:last-child {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.font-size-stepper-buttons {
  display: grid;
  width: 30px;
  border-left: 1px solid var(--line);
}

.font-size-stepper-buttons button {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.font-size-stepper-buttons button + button {
  border-top: 1px solid var(--line);
}

.font-size-stepper-buttons button:hover {
  background: var(--paper);
  color: var(--black);
}

.font-size-stepper-buttons .svg-icon {
  width: 12px;
  height: 12px;
}

.task-detail-settings {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-subsection-heading h3,
.settings-subsection-heading p {
  margin: 0;
}

.settings-subsection-heading h3 {
  color: var(--black);
  font-size: 0.9375rem;
}

.settings-subsection-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.task-detail-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.8125rem;
  cursor: pointer;
}

.task-detail-option:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.project-completion-settings {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.clock-format-settings {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.clock-format-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 390px);
  cursor: pointer;
}

.clock-format-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.clock-format-label:first-child {
  text-align: right;
}

.clock-format-label.is-active {
  color: var(--black);
}

.project-completion-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  cursor: pointer;
}

.project-completion-option strong,
.project-completion-option small {
  display: block;
}

.project-completion-option strong {
  color: var(--text);
  font-size: 0.8125rem;
}

.project-completion-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.switch-control {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 20px;
  flex: 0 0 36px;
}

.switch-control input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  width: 36px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: background 150ms ease, border-color 150ms ease;
}

.switch-track::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 150ms ease, background 150ms ease;
}

.switch-control input:checked + .switch-track {
  border-color: var(--black);
  background: var(--black);
}

.switch-control input:checked + .switch-track::after {
  background: var(--white);
  transform: translateX(16px);
}

.switch-control input:focus-visible + .switch-track {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.profile-form,
.password-form {
  display: grid;
  gap: 10px;
  width: min(100%, 420px);
}

.profile-form input,
.password-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 10px 11px;
  outline: none;
}

.profile-form p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.settings-message {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  padding: 9px 10px;
  font-size: 0.8125rem;
}

.settings-message.is-error {
  border-color: var(--black);
}

.theme-menu {
  position: relative;
  width: min(100%, 210px);
}

.theme-menu summary {
  list-style: none;
}

.theme-menu summary::-webkit-details-marker {
  display: none;
}

.theme-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  padding: 5px 7px;
  cursor: pointer;
}

.theme-trigger:hover {
  border-color: var(--black);
}

.theme-trigger .svg-icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.theme-trigger-preview,
.theme-preview,
.font-trigger-preview,
.font-preview {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
}

.theme-trigger-preview,
.font-trigger-preview {
  flex: 1;
  min-height: 28px;
  font-size: 0.8125rem;
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 7px;
  width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.font-dropdown {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(420px, calc(100vw - 64px));
}

.theme-card,
.font-card {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  text-align: center;
}

.theme-card:focus-visible,
.font-card:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.theme-preview,
.font-preview {
  min-height: 44px;
  font-size: 0.9375rem;
}

.font-trigger-preview,
.font-preview {
  background: var(--white);
  color: var(--black);
  border-color: var(--line);
  overflow: hidden;
  padding: 0 8px;
  font-size-adjust: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.font-trigger-preview {
  font-size: 13px;
}

.font-preview {
  font-size: 15px;
}

.font-preview-default {
  font-family: var(--font-default);
}

.font-preview-times {
  font-family: var(--font-times);
}

.font-preview-verdana {
  font-family: var(--font-verdana);
}

.font-preview-special-elite {
  font-family: var(--font-special-elite);
}

.font-preview-dm-sans {
  font-family: var(--font-dm-sans);
}

.font-preview-custom {
  font-family: var(--font-custom, var(--font-default));
}

.font-card.is-active .font-preview {
  border-width: 2px;
  border-color: var(--black);
}

.theme-trigger-preview.theme-card-light,
.theme-card-light .theme-preview {
  background: #fff;
  color: #000;
  border-color: #888;
}

.theme-card-light.is-active .theme-preview {
  border-width: 2px;
  border-color: #888;
}

.theme-trigger-preview.theme-card-dark,
.theme-card-dark .theme-preview {
  background: #000;
  color: #fff;
  border-color: #000;
}

.theme-card-dark.is-active .theme-preview {
  border-width: 2px;
  border-color: #888;
}

.theme-trigger-preview.theme-card-blue,
.theme-card-blue .theme-preview {
  background: #061b31;
  color: #b7dcff;
  border-color: #164568;
}

.theme-card-blue.is-active .theme-preview {
  border-width: 2px;
  border-color: #78a8d8;
}

.theme-trigger-preview.theme-card-orange-delight,
.theme-card-orange-delight .theme-preview {
  background: linear-gradient(180deg, #f2b279 0%, #e89041 100%);
  color: #fff;
  border-color: #f0aa82;
}

.theme-card-orange-delight.is-active .theme-preview {
  border-width: 2px;
  border-color: #fff;
}

.option-menu {
  position: relative;
}

.option-menu summary {
  list-style: none;
}

.option-menu summary::-webkit-details-marker {
  display: none;
}

.option-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  padding: 5px 9px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8125rem;
}

.option-button:hover,
.option-menu[open] .option-button {
  border-color: var(--black);
  color: var(--black);
  background: var(--paper);
}

.option-button .svg-icon {
  width: 15px;
  height: 15px;
}

.option-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.compact-popover {
  width: min(270px, calc(100vw - 48px));
  padding: 6px;
}

.date-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr) auto;
  width: min(360px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  transform: translate(-50%, -50%);
}

.date-input-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.task-form .menu-date-input,
.edit-form .menu-date-input {
  padding: 8px 9px;
}

.quick-date-list {
  display: grid;
  padding: 6px;
  border-bottom: 1px solid var(--line);
}

.menu-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.875rem;
}

button.menu-choice {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.menu-choice:hover {
  background: var(--paper);
}

.menu-choice-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.menu-choice-main > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-choice-main .svg-icon,
.menu-check .svg-icon {
  width: 17px;
  height: 17px;
}

.menu-choice-meta,
.menu-check {
  color: var(--muted);
  flex: 0 0 auto;
}

.option-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.calendar-stack {
  display: grid;
  gap: 14px;
  max-height: 360px;
  overflow-y: auto;
  padding: 14px 18px 18px;
}

.date-popover-footer {
  display: grid;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
}

.date-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-weight: 650;
}

.date-footer-button:hover {
  background: var(--paper);
  border-color: var(--muted);
}

.date-footer-button .svg-icon {
  width: 17px;
  height: 17px;
}

.time-popover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto auto minmax(120px, 1fr) auto;
  min-height: 0;
  background: var(--white);
}

.time-popover[hidden] {
  display: none;
}

.time-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.time-popover-header h4 {
  margin: 0;
  color: var(--black);
  font-size: 1rem;
}

.time-entry-wrap {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 14px 14px 8px;
}

.time-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}

.time-entry:focus-within,
.time-entry.is-complete {
  border-color: var(--muted);
}

.time-entry.is-invalid {
  border-color: var(--black);
}

.task-form .time-entry input,
.edit-form .time-entry input {
  width: 2.5ch;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  outline: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.time-entry input::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

.time-colon {
  color: var(--muted);
  font-weight: 700;
  opacity: 0.55;
}

.time-entry.is-complete .time-colon {
  color: var(--black);
  opacity: 1;
}

.time-period-control {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-width: 116px;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.time-period-control button {
  border: 0;
  background: var(--white);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.time-period-control button + button {
  border-left: 1px solid var(--line);
}

.time-period-control button:hover,
.time-period-control button.is-active {
  background: var(--paper);
  color: var(--black);
}

.time-entry-error {
  margin: 0;
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.time-entry-error[hidden] {
  display: none;
}

.time-options {
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 6px;
}

.time-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 7px 12px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.time-option:hover,
.time-option.is-selected {
  background: var(--paper);
  color: var(--black);
}

.time-popover > .time-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
}

.time-clear-button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}

.calendar-month {
  display: grid;
  gap: 10px;
}

.calendar-month-heading {
  color: var(--black);
  font-weight: 700;
  font-size: 0.9375rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}

.calendar-weekdays {
  color: var(--muted);
  font-size: 0.6875rem;
}

.calendar-empty,
.calendar-day {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 30px;
}

.calendar-day {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 0.8125rem;
}

.calendar-day:hover {
  background: var(--paper);
}

.calendar-day.is-weekend {
  color: var(--muted);
}

.calendar-day.is-today,
.calendar-day.is-selected {
  border-color: var(--black);
  color: var(--black);
}

.calendar-day.is-selected {
  background: var(--black);
  color: var(--white);
}

.priority-flag {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: 0 0 auto;
}

.priority-flag .svg-icon {
  width: 17px;
  height: 17px;
}

.priority-flag-shape {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.priority-flag-1 .priority-flag-shape {
  fill: var(--black);
  color: var(--black);
}

.priority-flag-2 .priority-flag-shape {
  fill: var(--text);
  color: var(--text);
}

.priority-flag-3 .priority-flag-shape {
  fill: var(--line);
  color: var(--muted);
}

.priority-flag-4 .priority-flag-shape {
  fill: var(--white);
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.form-grid label,
.filter-control label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weekday-picker[hidden] {
  display: none;
}

.weekday-picker label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.weekday-picker input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.weekday-picker label:has(input:checked) {
  border-color: var(--black);
  color: var(--black);
  background: var(--paper);
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.filter-results {
  padding-top: 4px;
}

.mobile-sidebar-toggle {
  display: none;
}

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

.toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: min(430px, calc(100vw - 32px));
  height: 0;
  pointer-events: none;
}

.toast {
  --stack-index: 0;
  position: absolute;
  right: 0;
  bottom: calc(var(--stack-index) * 66px);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: var(--white);
  padding: 10px 10px 10px 18px;
  pointer-events: auto;
  transition: bottom 220ms ease, opacity 180ms ease, transform 240ms ease;
  animation: toast-in 170ms ease-out;
}

.toast.is-dismissing {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 32px));
}

.toast-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.toast-copy strong {
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
}

.toast-copy span {
  min-width: 0;
  overflow: hidden;
  color: var(--line);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-action,
.toast-close {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--white);
}

.toast-action {
  min-height: 36px;
  padding: 7px 9px;
  font-weight: 700;
}

.toast-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
}

.toast-action:hover,
.toast-close:hover {
  background: var(--black);
}

.toast-close .svg-icon {
  width: 20px;
  height: 20px;
  color: var(--line);
}

@keyframes checkbox-pop {
  0% {
    transform: scale(0.85);
  }
  55% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes checkmark-in {
  0% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.4);
  }
  100% {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
  }
}

@keyframes task-strike {
  0% {
    opacity: 0;
    transform: rotate(-1deg) scaleX(0);
  }
  12% {
    opacity: 1;
  }
  78% {
    transform: rotate(-1deg) scaleX(1.02);
  }
  100% {
    opacity: 1;
    transform: rotate(-1deg) scaleX(1);
  }
}

@keyframes completion-row {
  0% {
    background: var(--white);
  }
  28% {
    background: var(--paper);
  }
  100% {
    background: var(--white);
  }
}

@keyframes task-disappear {
  0% {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 840px) {
  :root {
    --subtask-indent: 14px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main {
    padding: 30px 20px 56px;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 22px;
  }

  .landing-actions {
    width: 100%;
  }

  .landing-actions .text-button,
  .landing-actions .solid-button {
    flex: 1;
  }

  .landing-content {
    width: min(100% - 32px, 620px);
  }

  .landing-hero {
    gap: 30px;
    padding: 54px 0 44px;
    text-align: left;
  }

  .landing-hero-copy {
    justify-items: start;
  }

  .landing-hero h1 {
    font-size: 2.375rem;
  }

  .landing-hero p {
    font-size: 1rem;
  }

  .landing-app-preview,
  .landing-feature-row {
    grid-template-columns: 1fr;
  }

  .landing-preview-sidebar {
    display: none;
  }

  .landing-preview-main {
    min-height: 0;
    padding: 22px 18px;
  }

  .landing-preview-subtask {
    margin-left: 18px;
  }

  .landing-feature-row {
    gap: 20px;
    padding: 34px 0;
  }

  .landing-mini-list,
  .landing-tag-strip,
  .landing-theme-preview {
    justify-content: flex-start;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .view-header {
    display: grid;
    gap: 12px;
  }

  .form-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

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

  .task-actions {
    grid-column: 3;
    opacity: 1;
    justify-content: flex-start;
  }

  .project-actions {
    opacity: 1;
  }

  .subtask-list {
    margin-left: 9px;
    padding-left: 5px;
  }

  .edit-form {
    margin-left: 0;
  }

  .quick-task-form {
    width: min(100% - 32px, 620px);
    margin-top: 24px;
  }

  .quick-task-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-task-footer .form-actions {
    justify-content: flex-end;
  }

  .settings-layer {
    padding: 16px;
  }

  .settings-modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(100%, 620px);
    min-height: 0;
    max-height: calc(100vh - 32px);
  }

  .settings-tabs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .settings-row {
    align-items: stretch;
    flex-direction: column;
  }

  .clock-format-option {
    width: 100%;
  }

  .font-size-stepper {
    align-self: flex-start;
  }

  .task-detail-grid {
    grid-template-columns: 1fr;
  }

  .task-detail-option:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .font-dropdown {
    right: auto;
    left: 0;
  }

  .toast-root {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .time-entry-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 10px;
  }

  .time-entry {
    min-width: 0;
  }

  .time-period-control {
    min-width: 104px;
  }

  .time-popover > .time-popover-footer {
    padding-inline: 10px;
  }
}
