:root {
  color-scheme: light;
  --paper: #f4efdf;
  --panel: #fff8e6;
  --panel-strong: #ffffff;
  --ink: #111111;
  --muted: #5c584f;
  --line: #111111;
  --accent: #24e06f;
  --accent-dark: #12b954;
  --amber: #f4c542;
  --danger: #f05252;
  --violet: #7bdcff;
  --shadow: 7px 7px 0 #111111;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16px 16px, rgba(17, 17, 17, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  display: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 320px;
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.sidebar,
.main-panel,
.insight-panel {
  min-width: 0;
}

.sidebar {
  display: flex;
  position: sticky;
  top: 18px;
  flex-direction: column;
  height: calc(100vh - 36px);
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  border: 2px solid var(--line);
  background: var(--accent);
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span:last-child {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.nav-item strong {
  display: grid;
  min-width: 28px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
  font-size: 13px;
}

.nav-item.is-active {
  border-color: var(--line);
  color: var(--ink);
  background: var(--accent);
}

.nav-item.is-active strong {
  color: var(--ink);
  background: var(--amber);
}

.side-tools {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tool-button,
.icon-button,
.complete-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-strong);
}

.tool-button:hover,
.icon-button:hover,
.complete-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tool-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.main-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 40vw);
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.quick-add,
.task-zone,
.focus-panel,
.repeat-panel,
.notification-panel,
.category-panel,
.nav-edit-panel,
.review-panel,
.metric-strip {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-add,
.task-zone {
  padding: 16px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.section-heading span {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.task-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 142px 112px 112px 136px 106px auto;
  gap: 10px;
  align-items: end;
}

.task-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.task-form input,
.task-form select,
.task-form textarea,
.repeat-form input,
.repeat-form select,
.profile-panel input,
.category-form input,
.category-name-input,
.task-schedule-edit input,
.task-schedule-edit select,
.task-notes,
.task-title-input {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  outline: 0;
}

.task-form input,
.task-form select,
.task-form textarea,
.repeat-form input,
.repeat-form select,
.task-schedule-edit input,
.task-schedule-edit select {
  height: 42px;
  padding: 0 11px;
}

.task-form input:focus,
.task-form select:focus,
.task-form textarea:focus,
.repeat-form input:focus,
.repeat-form select:focus,
.task-schedule-edit input:focus,
.task-schedule-edit select:focus,
.task-title-input:focus,
.task-notes:focus,
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 127, 116, 0.14);
}

.content-field {
  grid-column: 1 / -1;
}

.task-form textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  border: 2px solid var(--line);
  color: var(--ink);
  background: var(--accent);
  font-weight: 700;
}

.primary-button:hover {
  transform: translate(2px, 2px);
  background: var(--amber);
  box-shadow: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 32px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
}

.chip.is-active {
  color: var(--ink);
  background: var(--accent);
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--line);
}

.task-card.is-overdue {
  border-color: rgba(181, 74, 74, 0.45);
}

.task-card.is-done {
  opacity: 0.88;
}

.task-title-input {
  height: 36px;
  padding: 0 10px;
  border-color: transparent;
  font-weight: 700;
}

.task-title-input:hover {
  border-color: var(--line);
}

.task-mainline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  gap: 8px;
  align-items: center;
}

.priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}

.priority-dot[data-priority="high"] {
  background: var(--danger);
}

.priority-dot[data-priority="low"] {
  background: var(--violet);
}

.task-notes {
  min-height: 34px;
  margin-top: 4px;
  padding: 8px 10px;
  resize: vertical;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(116, 111, 102, 0.1);
  font-size: 13px;
}

.meta-pill.is-hot {
  color: var(--danger);
  background: rgba(181, 74, 74, 0.12);
}

.meta-pill.is-live {
  color: var(--accent-dark);
  background: rgba(47, 127, 116, 0.12);
}

.task-progress {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 44px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.progress-slider {
  accent-color: var(--accent);
}

.progress-label {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.task-actions {
  display: flex;
  gap: 6px;
}

.complete-button {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent);
}

.complete-button:hover {
  color: var(--ink);
  background: var(--amber);
}

.restore-button {
  display: none;
}

.task-card.is-done .complete-button,
.task-card.is-done .start-button,
.task-card.is-done .wait-button {
  display: none;
}

.task-card.is-done .restore-button {
  display: grid;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.insight-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric-strip div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip span {
  color: var(--muted);
  font-size: 13px;
}

.metric-strip strong {
  font-size: 26px;
}

.focus-panel,
.review-panel {
  padding: 16px;
}

.focus-list,
.category-bars {
  display: grid;
  gap: 10px;
}

.focus-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(47, 127, 116, 0.09);
}

.focus-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-item span {
  color: var(--muted);
  font-size: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 111, 102, 0.12);
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.mobile-tabs {
  display: none;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-screen[hidden],
.app-shell[hidden],
.mobile-tabs[hidden] {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-brand {
  padding-bottom: 10px;
}

.auth-card h1 {
  margin: 8px 0 20px;
  font-size: 26px;
  letter-spacing: 0;
}

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

.auth-form label,
.repeat-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 700;
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.wide-button {
  width: 100%;
}

.auth-message,
.auth-note,
.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-message {
  min-height: 20px;
  color: var(--danger);
}

.user-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.profile-toggle {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.profile-toggle span:last-child {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--accent);
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-weight: 900;
}

.profile-avatar-large {
  width: 74px;
  height: 74px;
  font-size: 28px;
}

.profile-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--line);
}

.profile-panel[hidden] {
  display: none;
}

.profile-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.profile-panel input {
  height: 40px;
  padding: 0 10px;
}

.avatar-picker {
  align-items: center;
  justify-items: start;
}

.avatar-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avatar-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--ink);
  font-weight: 700;
}

.avatar-controls {
  display: grid;
  gap: 8px;
}

.avatar-controls label {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.avatar-controls input {
  width: 100%;
  accent-color: var(--accent);
}

.notification-panel .wide-button + .wide-button {
  margin-top: 8px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.check-line input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.task-schedule-edit {
  display: grid;
  grid-template-columns: 142px 110px 110px 118px;
  gap: 8px;
  margin-top: 10px;
}

.calendar-toolbar {
  display: inline-grid;
  grid-template-columns: 38px minmax(120px, auto) 38px;
  gap: 8px;
  align-items: center;
}

.calendar-toolbar strong {
  text-align: center;
}

.holiday-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.holiday-toggles label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 13px;
}

.holiday-toggles input {
  accent-color: var(--accent);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 6px;
}

.calendar-weekday {
  padding: 6px 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.calendar-cell {
  min-height: 116px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
}

.calendar-cell.is-muted {
  background: rgba(255, 255, 255, 0.45);
}

.calendar-cell.is-today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(47, 127, 116, 0.12);
}

.calendar-cell strong {
  display: block;
  margin-bottom: 6px;
}

.calendar-items {
  display: grid;
  gap: 4px;
}

.calendar-task,
.calendar-holiday,
.calendar-more {
  display: block;
  width: 100%;
  min-height: 24px;
  overflow: hidden;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-task {
  color: var(--ink);
  background: rgba(47, 127, 116, 0.12);
}

.calendar-holiday-china {
  color: #8a4a10;
  background: rgba(199, 122, 43, 0.15);
}

.calendar-holiday-us {
  color: #2d5f9a;
  background: rgba(45, 95, 154, 0.14);
}

.calendar-holiday-europe {
  color: #5b4aa4;
  background: rgba(111, 91, 183, 0.14);
}

.calendar-more {
  color: var(--muted);
  background: rgba(116, 111, 102, 0.1);
}

.repeat-panel,
.notification-panel,
.category-panel,
.nav-edit-panel {
  padding: 16px;
}

.repeat-form {
  display: grid;
  gap: 8px;
}

.repeat-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 38px;
  gap: 8px;
}

.repeat-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.repeat-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
}

.collapse-button svg {
  transition: transform 160ms ease;
}

.collapse-button:not(.is-collapsed) svg {
  transform: rotate(90deg);
}

.category-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 38px;
  gap: 8px;
}

.category-form input {
  height: 42px;
  padding: 0 10px;
}

.category-form input[type="color"] {
  padding: 4px;
}

.category-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.nav-edit-list {
  display: grid;
  gap: 8px;
}

.nav-edit-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.switch-line {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.switch-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.nav-label-input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.category-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.category-color-input {
  height: 38px;
  padding: 4px;
}

.category-name-input {
  height: 38px;
  padding: 0 10px;
}

.field-flash {
  animation: fieldFlash 900ms ease;
}

@keyframes fieldFlash {
  0%,
  100% {
    background: white;
  }
  30% {
    background: var(--amber);
  }
}

.repeat-enabled {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.repeat-title-input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.repeat-title-input:hover,
.repeat-title-input:focus {
  border-color: var(--line);
  outline: 0;
}

.repeat-empty {
  color: var(--muted);
  font-size: 13px;
}

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

  .insight-panel {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
  }

  .metric-strip {
    grid-column: 1 / -1;
  }

  .task-form {
    grid-template-columns: minmax(220px, 1fr) 120px 142px;
  }

  .task-form .primary-button {
    grid-column: 1 / -1;
  }

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

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

  .app-shell {
    display: block;
    padding: 12px;
  }

  .sidebar {
    position: static;
    height: auto;
    margin-bottom: 12px;
    padding: 14px;
  }

  .nav-list {
    display: none;
  }

  .side-tools {
    display: flex;
  }

  .topbar {
    display: grid;
    align-items: start;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .search-box {
    width: 100%;
  }

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

  .task-form .title-field,
  .task-form .primary-button {
    grid-column: 1 / -1;
  }

  .task-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .task-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    gap: 4px;
  }

  .calendar-cell {
    min-height: 92px;
    padding: 5px;
  }

  .calendar-task,
  .calendar-holiday,
  .calendar-more {
    min-height: 22px;
    padding: 3px 4px;
    font-size: 11px;
  }

  .insight-panel {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .mobile-tabs {
    display: grid;
    position: fixed;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 10;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .mobile-tabs button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
  }

  .mobile-tabs button.is-active {
    color: white;
    background: var(--accent);
  }
}

@media (max-width: 440px) {
  .task-form {
    grid-template-columns: 1fr;
  }

  .task-form .title-field,
  .task-form .primary-button {
    grid-column: auto;
  }

  .quick-add,
  .task-zone,
  .focus-panel,
  .repeat-panel,
  .notification-panel,
  .nav-edit-panel,
  .review-panel {
    padding: 12px;
  }

  .auth-actions,
  .task-schedule-edit {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    display: block;
  }

  .calendar-weekday {
    display: none;
  }

  .calendar-cell {
    min-height: auto;
    margin-bottom: 6px;
  }

  .calendar-cell.is-muted {
    display: none;
  }
}

/* Softer visual pass: closer to the previous calm task-board version. */
:root {
  --paper: #f7f3eb;
  --panel: #fffdf8;
  --panel-strong: #ffffff;
  --ink: #272520;
  --muted: #746f66;
  --line: #ded5c8;
  --accent: #2f7f74;
  --accent-dark: #1f5f56;
  --amber: #c77a2b;
  --danger: #b54a4a;
  --violet: #6f5bb7;
  --shadow: 0 18px 45px rgba(38, 34, 28, 0.11);
}

body {
  background:
    linear-gradient(135deg, rgba(47, 127, 116, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(199, 122, 43, 0.12), transparent 34%),
    var(--paper);
}

.sidebar,
.quick-add,
.task-zone,
.focus-panel,
.repeat-panel,
.notification-panel,
.category-panel,
.nav-edit-panel,
.review-panel,
.metric-strip,
.auth-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.sidebar {
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark {
  color: white;
  border: 0;
  background: linear-gradient(145deg, var(--accent), var(--amber));
}

.nav-item {
  border: 1px solid transparent;
}

.nav-item strong {
  color: var(--muted);
  border: 0;
  background: rgba(116, 111, 102, 0.1);
}

.nav-item.is-active {
  border-color: rgba(47, 127, 116, 0.18);
  color: var(--ink);
  background: rgba(47, 127, 116, 0.11);
}

.nav-item.is-active strong {
  color: white;
  background: var(--accent);
}

.tool-button,
.icon-button,
.complete-button,
.secondary-button,
.check-line,
.user-strip,
.profile-panel,
.task-card,
.task-form input,
.task-form select,
.repeat-form input,
.repeat-form select,
.profile-panel input,
.category-form input,
.category-name-input,
.nav-label-input,
.task-schedule-edit input,
.task-schedule-edit select,
.task-notes,
.task-title-input,
.chip,
.holiday-toggles label,
.calendar-cell,
.repeat-card {
  border-width: 1px;
  box-shadow: none;
}

.task-card {
  background: white;
}

.primary-button {
  border: 0;
  color: white;
  background: var(--accent);
}

.primary-button:hover {
  transform: none;
  color: white;
  background: var(--accent-dark);
}

.chip.is-active {
  border-color: rgba(47, 127, 116, 0.3);
  color: var(--accent-dark);
  background: rgba(47, 127, 116, 0.12);
}

.complete-button {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

.complete-button:hover {
  color: white;
  background: var(--accent-dark);
}

.profile-avatar {
  border: 1px solid var(--line);
  background: var(--accent);
  color: white;
}
