* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--color-scroll-thumb) var(--color-background);
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-track {
  background: var(--color-background);
}
*::-webkit-scrollbar-thumb {
  background: var(--color-scroll-thumb);
  border-radius: 9px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}
*::-webkit-scrollbar-thumb:active {
  background: var(--color-ink);
}
html {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-ink);
  font: 15px/1.8 var(--font-body);
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:active {
  transform: translateY(1px);
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}
button {
  transition:
    background 0.15s,
    color 0.15s;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: var(--color-muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: fixed;
  top: -80px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.sidebar {
  width: 240px;
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  padding: 36px 22px 20px;
  border-inline-end: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font: bold 32px var(--font-display);
}
.brand-mark {
  background: var(--color-primary);
  color: var(--color-surface);
  width: 46px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px 16px 5px 16px;
  font-size: 34px;
}
.brand-caption {
  display: block;
  font: 11px var(--font-body);
  color: var(--color-muted);
  margin-top: 5px;
}
.nav-label {
  font-size: 11px;
  color: var(--color-muted);
  margin: 55px 12px 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 12px 14px;
  margin: 6px 0;
  color: var(--color-muted);
  text-align: start;
}
.nav-item > span:first-child {
  font-size: 22px;
  line-height: 1;
}
.nav-item:hover {
  background: var(--color-background);
}
.nav-item.active {
  background: var(--color-soft);
  color: var(--color-primary);
  font-weight: bold;
}
.count {
  margin-inline-start: auto;
  font-size: 12px;
}
.side-note {
  margin-top: auto;
  padding: 24px 15px 30px;
}
.note-symbol {
  font-size: 32px;
  color: var(--color-primary);
}
.side-note p {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 10px;
}
.local-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 12px;
}
.local-user small {
  display: block;
  font-size: 10px;
  color: var(--color-muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--color-soft);
  border-radius: 50%;
  color: var(--color-primary);
}
.online {
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  margin-inline-start: auto;
}
.workspace {
  margin-inline-start: 240px;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  font-size: 12px;
  background: var(--color-surface);
}
.crumb {
  color: var(--color-border);
  margin: 0 14px;
}
.date {
  color: var(--color-muted);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 40px 44px 20px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 8px;
}
h1 {
  font: 700 35px/1.65 var(--font-display);
  letter-spacing: -1px;
}
h1 span {
  color: var(--color-primary);
}
.heading .muted {
  font-size: 13px;
  margin-top: 6px;
}
.button {
  min-height: 42px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 8px 18px;
  border-radius: 8px;
  white-space: nowrap;
}
.button:hover {
  background: var(--color-soft);
}
.button.primary {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}
.button.primary:hover {
  background: var(--color-primary-hover);
}
.button.primary span {
  font-size: 21px;
  vertical-align: middle;
  margin-inline-end: 5px;
}
.overview {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
.focus-card {
  background: var(--color-primary);
  color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  min-height: 228px;
  position: relative;
  overflow: hidden;
}
.focus-card > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 72%;
}
.pill {
  font-size: 11px;
  border: 1px solid #ffffff55;
  background: #ffffff12;
  border-radius: 20px;
  padding: 5px 12px;
  display: inline-block;
}
.focus-card h2 {
  font-size: 23px;
  line-height: 1.7;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.focus-card p {
  font-size: 12px;
  color: #eef2ff;
  margin: 6px 0 16px;
}
.focus-button {
  padding: 5px 0;
  background: transparent;
  border: 0;
  color: white;
  font-size: 12px;
}
.focus-button:hover {
  text-decoration: underline;
}
.focus-button span {
  margin-inline-start: 16px;
}
.orbit-art {
  position: absolute;
  width: 210px;
  height: 210px;
  inset-inline-end: -30px;
  top: 26px;
  transform: rotate(-22deg);
}
.orbit {
  position: absolute;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  width: 160px;
  height: 200px;
  inset: 0;
}
.o2 {
  transform: rotate(60deg);
}
.o3 {
  transform: rotate(120deg);
}
.spark {
  position: absolute;
  inset: 40px 40px;
  font-size: 85px;
  color: var(--color-lime);
  line-height: 1.3;
}
.orbit-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-lime);
  left: 20px;
  top: 15px;
}
.progress-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title h2 {
  font-size: 14px;
}
.section-title > span {
  color: var(--color-muted);
}
.progress-body {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}
.ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-primary) var(--progress, 0%),
    var(--color-soft) 0
  );
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ring strong {
  width: 74px;
  height: 74px;
  background: var(--color-surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.completed {
  font-size: 25px;
}
.progress-body p {
  font-size: 11px;
}
.progress-note {
  margin-top: 15px;
  color: var(--color-muted);
  font-size: 11px;
}
.tasks-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 26px 18px;
}
.list-heading h2 {
  font-size: 20px;
}
.list-heading p {
  font-size: 11px;
  min-height: 20px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 12px;
  height: 42px;
  gap: 8px;
  max-width: 270px;
}
.search > span {
  font-size: 25px;
  color: var(--color-muted);
}
.search input {
  border: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  font-size: 12px;
  padding: 6px;
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search button {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--color-muted);
  min-width: 28px;
}
.filters {
  display: flex;
  gap: 25px;
  padding: 0 26px;
  border-bottom: 1px solid var(--color-border);
}
.filters button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  padding: 10px 0;
  font-size: 12px;
}
.filters button:hover {
  color: var(--color-primary);
}
.filters button[aria-pressed="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: bold;
}
.filters span {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--color-background);
  border-radius: 5px;
  margin-inline-start: 5px;
}
.list-labels {
  display: grid;
  grid-template-columns: 1fr 110px 64px;
  gap: 16px;
  background: var(--color-background);
  padding: 10px 26px;
  font-size: 10px;
  color: var(--color-muted);
}
.task-list {
  padding: 0;
  margin: 0;
  list-style: none;
  min-height: 200px;
}
.task-row {
  display: grid;
  grid-template-columns: 1fr 110px 64px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding: 18px 26px;
}
.task-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.task-title {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.task-meta {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 2px;
}
.check {
  appearance: none;
  width: 21px;
  height: 21px;
  border: 1.5px solid var(--color-scroll-thumb);
  border-radius: 7px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
  display: grid;
  place-items: center;
}
.check:hover {
  border-color: var(--color-primary);
  background: var(--color-soft);
}
.check:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.check:checked:after {
  content: "✓";
  font-size: 13px;
  color: white;
}
.done .task-title {
  text-decoration: line-through;
  color: var(--color-muted);
}
.badge {
  font-size: 10px;
  width: max-content;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--color-background);
  color: var(--color-muted);
}
.badge.high {
  color: var(--color-warning);
  background: var(--color-warning-soft);
}
.edit-button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 11px;
  padding: 8px 5px;
  border-radius: 5px;
}
.edit-button:hover {
  color: var(--color-primary);
  background: var(--color-soft);
}
.list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  color: var(--color-muted);
  font-size: 10px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-muted);
  padding-top: 22px;
}
.empty {
  text-align: center;
  padding: 38px 20px;
}
.empty > span {
  font-size: 40px;
  color: var(--color-primary);
}
.empty p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 8px 0 16px;
}
.error-banner {
  padding: 15px 26px;
  background: var(--color-warning-soft);
  color: var(--color-danger);
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-ink);
  color: var(--color-surface);
  padding: 12px 22px;
  border-radius: 10px;
  z-index: 5;
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.toast.visible {
  opacity: 1;
}
dialog {
  width: min(480px, calc(100% - 30px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 28px;
  color: var(--color-ink);
  background: var(--color-surface);
}
dialog::backdrop {
  background: #17244180;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.icon-button {
  border: 0;
  background: var(--color-background);
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.icon-button:hover {
  background: var(--color-soft);
}
dialog .muted {
  font-size: 12px;
}
form > label {
  display: block;
  margin: 23px 0 8px;
  font-size: 13px;
}
#task-title {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px;
  background: var(--color-surface);
  color: var(--color-ink);
}
#task-title[aria-invalid="true"] {
  border-color: var(--color-danger);
}
.field-error {
  min-height: 24px;
  font-size: 12px;
  color: var(--color-danger);
  padding-top: 3px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 12px 0;
}
legend {
  font-size: 13px;
  margin-bottom: 10px;
}
.priority-options {
  display: flex;
  gap: 16px;
}
.priority-options label {
  flex: 1;
  border: 1px solid var(--color-border);
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.priority-options input {
  accent-color: var(--color-primary);
}
.dialog-actions {
  display: flex;
  gap: 10px;
}
.dialog-actions .primary {
  min-width: 140px;
}
.discard {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}
.discard p {
  margin-bottom: 10px;
}
.danger {
  color: var(--color-danger);
}
[hidden] {
  display: none;
}
@media (min-width: 1500px) {
  main {
    padding-top: 60px;
  }
  .focus-card {
    min-height: 250px;
  }
  .task-row {
    padding-block: 22px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding-inline: 15px;
  }
  .workspace {
    margin-inline-start: 200px;
  }
  main {
    padding: 30px 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .overview {
    grid-template-columns: 1.4fr 1fr;
    gap: 15px;
  }
  .focus-card {
    padding: 23px;
  }
  .focus-card h2 {
    font-size: 20px;
  }
  .progress-card {
    padding: 20px;
  }
  .progress-body {
    gap: 14px;
  }
  .ring {
    width: 80px;
    height: 80px;
  }
  .ring strong {
    width: 65px;
    height: 65px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 15px 22px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
  }
  .brand {
    font-size: 26px;
  }
  .brand-mark {
    width: 38px;
    height: 40px;
  }
  .brand-caption {
    font-size: 9px;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
  }
  .nav-item {
    width: auto;
    font-size: 11px;
    padding: 9px;
  }
  .nav-item > span:first-child,
  .nav-label,
  .side-note,
  .local-user,
  .count {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 55px;
  }
  .overview {
    grid-template-columns: 1.5fr 1fr;
  }
  h1 {
    font-size: 30px;
  }
}
@media (max-width: 620px) {
  main {
    padding: 26px 16px 18px;
  }
  .topbar {
    padding-inline: 18px;
  }
  .date {
    font-size: 10px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  h1 {
    font-size: 29px;
  }
  .heading .button {
    align-self: stretch;
  }
  .overview {
    grid-template-columns: 1fr;
  }
  .focus-card {
    min-height: 220px;
  }
  .progress-body {
    margin: 14px 0;
  }
  .progress-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .progress-card .section-title {
    align-items: start;
  }
  .section-title > span {
    display: none;
  }
  .progress-body {
    grid-row: span 2;
    justify-content: end;
    gap: 12px;
  }
  .progress-note {
    margin: 0;
  }
  .list-heading {
    padding: 20px 18px;
    align-items: stretch;
    flex-direction: column;
  }
  .search {
    max-width: none;
  }
  .filters {
    padding-inline: 18px;
    gap: 22px;
  }
  .task-row,
  .list-labels {
    padding-inline: 18px;
    grid-template-columns: 1fr 65px 40px;
    gap: 8px;
  }
  .task-main {
    gap: 10px;
  }
  .task-title {
    font-size: 12px;
  }
  .badge {
    font-size: 9px;
    padding: 3px 6px;
  }
  .list-footer {
    padding-inline: 18px;
    flex-wrap: wrap;
  }
  .sidebar {
    padding-inline: 16px;
  }
  .sidebar .nav-item {
    font-size: 10px;
    padding: 7px;
  }
  .sidebar nav {
    gap: 2px;
  }
  .page-footer {
    font-size: 9px;
  }
  .toast {
    width: max-content;
    max-width: 90%;
  }
}
@media (max-width: 620px) {
  .progress-card {
    display: block;
  }
  .progress-card .section-title {
    align-items: center;
  }
  .progress-body {
    justify-content: flex-start;
    gap: 22px;
    margin: 18px 0;
  }
  .completed {
    white-space: nowrap;
  }
  .progress-note {
    margin-top: 10px;
  }
  .focus-card > div:first-child {
    max-width: 100%;
  }
  .focus-card h2 {
    max-width: 90%;
  }
  .orbit-art {
    opacity: 0.25;
    top: 60px;
    inset-inline-end: -70px;
  }
  .task-title {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .toast,
  *::before,
  *::after {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .check {
    appearance: auto;
  }
  .ring {
    border: 2px solid CanvasText;
  }
  .button,
  .badge {
    border: 1px solid ButtonText;
  }
  .focus-card {
    border: 1px solid CanvasText;
  }
}
:root {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
#theme-toggle {
  font-size: 12px;
  min-width: 120px;
}
.focus-card {
  background: var(--color-hero);
  color: var(--color-hero-text);
}
.focus-button {
  color: var(--color-hero-text);
}
.check:checked:after {
  color: var(--color-surface);
}
.skip {
  background: var(--color-surface);
}
input {
  color: var(--color-ink);
}
@media (max-width: 620px) {
  .topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 12px;
  }
  .topbar-actions {
    gap: 10px;
  }
  #theme-toggle {
    min-width: 108px;
  }
}
