/* Self Made King 1.1 — visual system and calendar interactions. */
:root {
  --bg: #f6f6f4;
  --card: #fff;
  --ink: #242a39;
  --muted: #697587;
  --sub: #637081;
  --line: #eeefee;
  --blue: #5a64b6;
  --blue-soft: #eff0f9;
  --green: #557a65;
  --gold: #a9936b;
  --red: #a15e68;
  --radius: 22px;
  --shadow: 0 5px 20px -12px #30323d0c, 0 1px 3px #30323d02;
}
body {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button:disabled {
  cursor: default;
}
.eyebrow {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.13em;
}
kbd {
  font:
    10px "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "tnum";
}
.card {
  border-color: #e9ebe9;
  box-shadow: var(--shadow);
  animation: none;
}
.sidebar {
  width: 246px;
  padding: 37px 24px 23px;
  background: #fdfdfb;
  border-color: #e8eae6;
}
.brand {
  gap: 11px;
  margin-bottom: 48px;
}
.brand img {
  width: 37px;
  height: 42px;
  object-fit: contain;
}
.brand strong {
  font:
    550 17px "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.8px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-top: 4px;
  color: #5b687b;
}
.nav-section-label {
  margin: 0 13px 15px;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: #5b687b;
}
.nav {
  gap: 5px;
}
.nav button {
  padding: 12px 13px;
  border-radius: 10px;
  font-size: 14px;
  color: #46536a;
  position: relative;
}
.nav button .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.nav button:hover {
  background: #f1f2ef;
  color: #414a57;
}
.nav button.active {
  color: #515b9d;
  background: #edeff5;
  box-shadow: none;
  font-weight: 550;
}
.nav button.active::before {
  content: "";
  width: 3px;
  height: 17px;
  border-radius: 3px;
  background: #7f89b7;
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
}
.nav button.active .nav-badge,
.nav .nav-badge {
  background: #fff9;
  color: #46536a;
  border: 1px solid #dfe3ee;
  font-size: 10px;
  padding: 0 5px;
}
.sidebar-command {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 11px 12px;
  text-align: left;
  color: #5b687b;
  border: 1px solid #edeeeb;
  border-radius: 9px;
  font-size: 11px;
}
.sidebar-command:hover {
  color: #46536a;
  background: #f6f7f3;
}
.sidebar-command .icon {
  width: 13px;
  height: 13px;
}
.sidebar-command kbd {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
}
.sidebar-fill {
  min-height: 24px;
}
.side-advisor {
  border: 0;
  border-radius: 16px;
  padding: 25px 17px 20px;
  margin: 20px 0 25px;
  background: #f1f2ed;
  position: relative;
}
.advisor-orbit {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe3d8;
  border-radius: 11px;
  background: #f8f9f4;
  margin-bottom: 18px;
}
.advisor-orbit .icon {
  width: 17px;
  height: 17px;
  color: #5b687b;
}
.side-advisor .eyebrow {
  font-size: 10px;
  letter-spacing: 0.11em;
  margin-bottom: 5px;
  color: #5b687b;
}
.side-advisor > strong {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.25px;
}
.side-advisor p {
  font-size: 12px;
  line-height: 1.9;
  margin: 13px 0 18px;
  color: #5b687b;
}
.side-advisor .text-button {
  color: #46536a;
  font-size: 12px;
}
.side-advisor .text-button .icon {
  color: inherit;
  width: 13px;
}
.profile {
  border-color: #e8eae3;
  padding-top: 21px;
}
.avatar {
  width: 33px;
  height: 33px;
  border: 1px solid #e7e6df;
  background: #eeede7;
  color: #5b687b;
  font:
    500 10px "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}
.profile strong {
  font-size: 13px;
  letter-spacing: -0.15px;
}
.profile small {
  font-size: 10px;
  margin-top: 3px;
  color: #5b687b;
}
.workspace {
  margin-left: 246px;
  padding: 38px 40px 28px;
  max-width: 1840px;
}
.topbar {
  margin-bottom: 29px;
  align-items: center;
  gap: 24px;
}
.top-eyebrow {
  margin: 0 0 8px !important;
  font-size: 11px !important;
  letter-spacing: 0.055em;
  color: #5b687b !important;
}
.topbar h1 {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.6px;
  line-height: 1.08;
  margin: 0 0 8px;
}
.heading-dot {
  color: #5b687b;
}
.topbar .top-subtitle {
  font-size: 12px;
  line-height: 1.4;
  color: #5b687b;
}
.top-subtitle::first-letter {
  text-transform: uppercase;
}
.top-actions {
  gap: 11px;
}
.search-launch {
  border: 1px solid #e6e8e2;
  border-radius: 10px;
  background: #fff8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  color: #5b687b;
  font-size: 12px;
  min-height: 42px;
}
.search-launch:hover {
  background: #fff;
  border-color: #d5d9d5;
  color: #46536a;
}
.search-launch .icon {
  width: 15px;
  height: 15px;
}
.search-launch kbd {
  font-size: 10px;
  padding: 2px 4px;
  margin-left: 25px;
  border: 1px solid #e9ebe6;
  border-radius: 4px;
  color: #5b687b;
}
.date-pill {
  height: 42px;
  background: transparent;
  border: 1px solid #e3e6df;
  color: #5b687b;
  font-size: 12px;
  gap: 8px;
  padding: 0 12px;
}
.date-pill .icon {
  width: 15px;
}
.btn {
  min-height: 42px;
  border-radius: 10px;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.05px;
  box-shadow: 0 4px 10px -5px #5964a33b;
}
.btn:hover {
  background: #4f5b9e;
  transform: translateY(-1px);
  box-shadow: 0 7px 15px -8px #5964a35c;
}
.btn.secondary {
  border-color: #e7e9e4;
  color: #46536a;
  background: #fff;
}
.btn.secondary:hover {
  background: #f5f6f2;
  border-color: #d4d9ce;
  color: #46536a;
}
.btn.small {
  min-height: 32px;
  font-size: 11px;
  padding: 7px 11px;
}
.btn .icon {
  width: 15px;
  height: 15px;
}
.icon-button {
  border-color: #e7e9e4;
  border-radius: 9px;
  color: #5b687b;
  background: transparent;
}
.icon-button:hover {
  color: #46536a;
  background: #f0f1f8;
  border-color: #e0e3f0;
  transform: translateY(-1px);
}
.icon-button.flat:hover {
  background: #f1f3ed;
  color: #46536a;
}
.text-button {
  color: #46536a;
  font-weight: 450;
  font-size: 12px;
  gap: 8px;
}
.text-button:hover {
  color: #46536a;
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.panel-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(294px, 1fr);
  gap: 21px;
}
.central {
  gap: 21px;
}
.card-head {
  padding: 25px 26px 20px;
}
.card-head .eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
}
.card-head h2 {
  font-size: 18px;
  letter-spacing: -0.65px;
  font-weight: 550;
  line-height: 1.35;
}
.calendar .card-head h2::first-letter {
  text-transform: uppercase;
}
.calendar-controls {
  gap: 5px;
}
.calendar-controls .btn {
  margin-right: 6px;
}
.calendar-controls .icon-button {
  width: 29px;
  height: 29px;
  border-color: transparent;
}
.calendar-controls .icon-button:hover {
  border-color: #e9ebe3;
}
.calendar-inner {
  padding: 0 23px 20px;
}
.weekdays {
  margin: 2px 0 11px;
}
.weekdays span {
  font-size: 10px;
  font-weight: 500;
  color: #5b687b;
  text-transform: uppercase;
}
.weekdays span:nth-child(n + 6) {
  color: #636e7f;
}
.calendar-grid {
  gap: 5px;
}
.cal-day {
  border: 1px solid #f0f1ed;
  min-height: 56px;
  padding: 8px 0 7px;
  gap: 3px;
  border-radius: 9px;
  font-size: 14px;
  color: #46536a;
  font-weight: 450;
}
.cal-day:hover {
  transform: translateY(-2px);
  border-color: #d6dace;
  box-shadow: 0 5px 9px -6px #626d4c28;
}
.cal-day .cal-number {
  line-height: 1.3;
}
.cal-day.out {
  background: #fafbf8;
  border-color: #f1f2ed;
  color: #636e7f;
  opacity: 0.55;
}
.cal-day.future {
  background: #f5f6fa;
  color: #5b687b;
  border-color: #eceff5;
}
.cal-day.red {
  background: #faf0ef;
  color: #5b687b;
  border-color: #f5e6e4;
}
.cal-day.orange {
  background: #fbf3e9;
  color: #5b687b;
  border-color: #f7ecdb;
}
.cal-day.yellow {
  background: #faf7e8;
  color: #5b687b;
  border-color: #f5efcf;
}
.cal-day.lime {
  background: #f0f5e8;
  color: #5b687b;
  border-color: #e5eddb;
}
.cal-day.green {
  background: #eaf3e9;
  color: #5b687b;
  border-color: #dfebdc;
}
.cal-day.selected {
  background: #626eb8 !important;
  color: #fff !important;
  border-color: #626eb8 !important;
  box-shadow: 0 6px 13px -5px #626eb854;
}
.cal-day.today::after {
  width: 3px;
  height: 3px;
  right: 6px;
  top: 6px;
  background: #838fba;
}
.cal-day.today.selected::after {
  background: #e2e6ff;
}
.cal-load {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 8px;
  line-height: 1;
  font-size: 9px;
  opacity: 0.75;
}
.cal-load .cal-dot {
  width: 2px;
  height: 2px;
  background: currentColor;
}
.cal-free {
  opacity: 0.3;
}
.cal-completion {
  position: absolute;
  left: 27%;
  right: 27%;
  height: 2px;
  bottom: 4px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.45;
  overflow: hidden;
}
.cal-completion i {
  width: 0;
  max-width: 100%;
  height: 100%;
  display: block;
  background: currentColor;
  filter: brightness(0.8);
  transition: width 0.6s var(--ease);
}
.calendar-foot {
  margin-top: 16px;
  padding-top: 14px;
  font-size: 10px;
  border-color: #eef0e8;
  color: #5b687b;
}
.legend {
  gap: 3px;
}
.legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.day-heading {
  padding-bottom: 19px;
}
.day-label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.day-numeral {
  font-size: 40px;
  font-weight: 450;
  letter-spacing: -2px;
  line-height: 1;
  color: #48515f;
  font-variant-numeric: tabular-nums;
}
.day-label .eyebrow {
  font-size: 10px;
  margin-bottom: 4px;
}
.day-label h2 {
  font-size: 16px;
  letter-spacing: -0.5px;
}
.day-score {
  text-align: right;
  display: grid;
  gap: 2px;
  flex-shrink: 0;
}
.day-score > strong {
  font-size: 23px;
  font-weight: 450;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #46536a;
  font-variant-numeric: tabular-nums;
}
.day-score > strong span {
  font-size: 11px;
  font-weight: 400;
  margin-left: 2px;
  letter-spacing: 0;
  color: #636e7f;
}
.day-score small {
  font-size: 10px;
  color: #5b687b;
}
.day-progress {
  height: 2px;
  margin: 0 26px;
  background: #eff1e9;
}
.day-progress span {
  background: #9faac6;
}
.day-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 26px 7px;
}
.segmented {
  display: flex;
  gap: 2px;
  background: #f5f6f2;
  border: 1px solid #eff1e9;
  border-radius: 8px;
  padding: 3px;
}
.segmented button {
  padding: 6px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #5b687b;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.segmented button span {
  font-size: 10px;
  color: #636e7f;
}
.segmented button:hover {
  color: #46536a;
  background: #ecefe5;
}
.segmented button.active {
  color: #46536a;
  background: #fff;
  box-shadow: 0 1px 3px #3238200c;
}
.segmented button.active span {
  color: #5b687b;
}
.task-list {
  padding: 0 26px 5px;
}
.task-item {
  gap: 12px;
  min-height: 67px;
  animation: none;
  border-color: #eff1e9;
  transition:
    opacity 0.22s,
    background 0.2s;
}
.task-item:hover {
  background: #fafbf8;
}
.task-item.saving {
  opacity: 0.65;
}
.task-check {
  width: 19px;
  height: 19px;
  border: 1.3px solid #d9dfcf;
  border-radius: 6px;
  box-shadow: none;
}
.task-check:hover {
  background: #f0f1fa;
  border-color: #a3acd3;
}
.task-check .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.task-item.done .task-check {
  background: #8d9a7d;
  border-color: #8d9a7d;
  box-shadow: 0 2px 5px #586b330c;
}
.task-item.failed .task-check {
  border-color: #e9ceca;
  background: #faf3f1;
  color: #5b687b;
}
.task-item.done .task-title {
  color: #636e7f;
  text-decoration-color: #cbd2c2;
}
.task-grip,
.task-item[draggable="true"] .task-grip {
  width: 10px;
  flex: 0 0 10px;
  display: block;
  opacity: 0;
  margin-left: -18px;
  margin-right: -4px;
  transition: opacity 0.2s;
  color: #636e7f;
}
.task-grip .icon {
  width: 10px;
  height: 18px;
}
.task-item:hover .task-grip {
  opacity: 1;
}
.task-main {
  padding: 13px 0;
}
.task-title {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.14px;
  line-height: 1.7;
  color: #46536a;
}
.task-meta {
  margin-top: 5px;
  gap: 6px;
  font-size: 10px;
  color: #5b687b;
}
.tag {
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #5b687b;
  background: #f2f4f9;
  font-weight: 450;
}
.tag.habit {
  color: #5b687b;
  background: #f1f6eb;
}
.tag.ban {
  color: #5b687b;
  background: #fbf5e9;
}
.tag.extra {
  color: #5b687b;
  background: #f6f1f9;
}
.task-goal {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.priority-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5ab87;
  display: inline-block;
}
.recurrence-mark {
  display: inline-flex;
}
.recurrence-mark .icon {
  width: 8px;
  height: 8px;
  color: #636e7f;
}
.task-time {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  color: #636e7f;
  font-size: 10px;
}
.task-time .icon {
  width: 9px;
  height: 9px;
}
.task-more {
  width: 26px;
  height: 28px;
  color: #636e7f;
  opacity: 0.65;
}
.task-item:hover .task-more {
  opacity: 1;
}
.quick-add {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 26px 20px;
  border: 1px solid #e9ede1;
  border-radius: 10px;
  padding: 7px 9px 7px 12px;
  background: #fcfdf9;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.quick-add:focus-within {
  border-color: #bdc8aa;
  box-shadow: 0 0 0 3px #93a46a09;
}
.quick-add-icon {
  color: #5b687b;
  display: flex;
}
.quick-add-icon .icon {
  width: 13px;
  height: 13px;
}
.quick-add input[name="title"] {
  width: 100%;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: #46536a;
  padding: 4px 0;
}
.quick-add input::placeholder {
  color: #636e7f;
}
.quick-add input[type="time"] {
  font-size: 10px;
  color: #636e7f;
  border: 0;
  background: transparent;
  padding: 0;
  width: 65px;
  flex-shrink: 0;
}
.quick-add input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.35;
}
.quick-add > button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: #edf1e5;
  color: #5b687b;
  flex-shrink: 0;
}
.quick-add > button:hover {
  background: #e3ead7;
  color: #46536a;
}
.quick-add > button .icon {
  width: 13px;
}
.day-footer {
  padding: 14px 26px 19px;
  border-color: #f0f2e9;
}
.day-save-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #636e7f;
}
.day-save-note .icon {
  width: 9px;
  height: 9px;
}
.day-footer .text-button {
  font-size: 10px;
}
.day-footer .btn {
  font-size: 10px;
  min-height: 28px;
  padding: 7px 9px;
}
.empty {
  padding: 32px 15px;
}
.empty .empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #f4f6f0;
  color: #5b687b;
}
.empty strong {
  font-size: 14px;
  font-weight: 500;
  color: #5b687b;
}
.empty p {
  font-size: 11px;
  line-height: 1.9;
  color: #636e7f;
}
.goals-card {
  position: relative;
}
.goals-card .card-head {
  padding-bottom: 22px;
}
.goals-count {
  font-size: 23px;
  letter-spacing: -0.9px;
  color: #5b687b;
  font-weight: 400;
  white-space: nowrap;
}
.goals-count small {
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 3px;
  color: #636e7f;
}
.goal-list {
  padding: 0 25px;
}
.goal-item {
  padding: 25px 0 24px;
  gap: 13px;
  border-color: #edf0e7;
}
.goal-symbol {
  width: 31px;
  height: 33px;
  border-radius: 11px;
  background: #f0f2f6;
  color: #5b687b;
  margin-top: 16px;
  border: 1px solid #e9edf2;
}
.goal-symbol .icon {
  width: 15px;
  height: 15px;
}
.goal-symbol.c1 {
  color: #5b687b;
  background: #f3f6ee;
  border-color: #eaf0e1;
}
.goal-symbol.c2 {
  color: #5b687b;
  background: #f6f1fa;
  border-color: #f0e8f5;
}
.goal-symbol.c3 {
  color: #5b687b;
  background: #faf6ed;
  border-color: #f0eadc;
}
.goal-symbol.c4 {
  color: #5b687b;
  background: #faf2f2;
  border-color: #f1e7e7;
}
.goal-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.goal-category {
  font-size: 10px;
  color: #636e7f;
  line-height: 1.4;
}
.goal-percent {
  font-size: 20px;
  line-height: 1.2;
  color: #5b687b;
  font-weight: 400;
  letter-spacing: -0.8px;
}
.goal-percent small {
  font-size: 10px;
  color: #636e7f;
  margin-left: 1px;
  letter-spacing: 0;
}
.c1 .goal-percent {
  color: #5b687b;
}
.c2 .goal-percent {
  color: #5b687b;
}
.c3 .goal-percent {
  color: #5b687b;
}
.c4 .goal-percent {
  color: #5b687b;
}
.goal-name {
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: -0.2px;
  line-height: 1.65;
  color: #46536a;
}
.progress-track {
  height: 3px;
  border-radius: 4px;
  background: #eff2e9;
  margin: 13px 0 8px;
}
.progress-fill {
  height: 3px;
  background: #a6b3cd;
}
.c1 .progress-fill {
  background: #b0c09d;
}
.c2 .progress-fill {
  background: #c0b0cc;
}
.c3 .progress-fill {
  background: #cbbd9e;
}
.c4 .progress-fill {
  background: #cfb7ba;
}
.goal-progress-label {
  margin-top: 0;
  font-size: 10px;
  color: #636e7f;
}
.goal-pace {
  margin-top: 8px;
  font-size: 9px;
  color: #636e7f;
}
.goal-item > .icon {
  width: 11px;
  height: 11px;
  color: #636e7f;
  margin-top: 28px;
}
.goals-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 25px 22px;
  border-color: #f0f3e9;
}
.goals-foot .text-button {
  font-size: 11px;
}
.goals-foot .icon-button {
  width: 27px;
  height: 27px;
}
.metrics-grid {
  margin-top: 21px;
  gap: 20px;
}
.metric {
  padding: 22px 25px 16px;
}
.metric-title {
  font-size: 14px;
  font-weight: 500;
  color: #5b687b;
}
.metric > .spread > .icon-button {
  width: 21px;
  height: 21px;
  color: #636e7f;
}
.metric > .spread > .icon-button .icon {
  width: 12px;
}
.metric-content {
  gap: 17px;
  margin-top: 19px;
}
.gauge {
  width: 72px;
  height: 72px;
}
.gauge circle {
  stroke-width: 4;
}
.gauge .track {
  stroke: #f0f3e9;
}
.gauge .arc {
  stroke: #b3c29d;
}
.gauge.blue .arc {
  stroke: #b0bad5;
}
.gauge.rose .arc {
  stroke: #d2c0a4;
}
.gauge strong {
  color: #5b687b;
  font-weight: 450;
  font-size: 20px;
  letter-spacing: -0.9px;
}
.gauge.blue strong {
  color: #5b687b;
}
.gauge.rose strong {
  color: #5b687b;
}
.gauge strong small {
  font-size: 10px;
  color: #636e7f;
}
.metric-description {
  font-size: 10px;
  color: #636e7f;
  line-height: 1.9;
}
.metric-description b {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 450;
  color: #5b687b;
  margin-bottom: 4px;
}
.metric-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f0f4e8;
  margin-top: 17px;
  padding-top: 10px;
  min-height: 32px;
}
.metric-bottom > span:last-child {
  text-align: right;
  font-size: 9px;
  color: #636e7f;
  line-height: 1.7;
  flex-shrink: 0;
}
.metric-bottom > span > small {
  display: block;
  font-size: 9px;
  opacity: 0.8;
}
.metric-sparkline {
  width: 90px;
  height: 24px;
  color: #636e7f;
}
.metric-state .metric-sparkline {
  color: #636e7f;
}
.metric-risk .metric-sparkline {
  color: #636e7f;
}
.metric-history-empty {
  color: #636e7f;
  font-size: 9px;
  max-width: 120px;
  line-height: 1.7;
}
.bottom-note {
  margin-top: 25px;
  color: #636e7f;
  font-size: 10px;
}
.footer-dot {
  margin: 0 5px;
  color: #636e7f;
}
.foot-button {
  font-size: 10px;
  color: #636e7f;
}
.footer-links {
  gap: 15px;
}
.mobile-dock {
  display: none;
}
.modal-head {
  border-color: #edf0e6;
  padding: 25px 29px 21px;
}
.modal-title-wrap .eyebrow {
  display: block;
  font-size: 10px;
  margin-bottom: 8px;
  color: #636e7f;
}
.modal-head h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.8px;
  color: #46536a;
}
dialog {
  border-color: #e3ead9;
  border-radius: 23px;
  box-shadow: 0 30px 100px #343e251f;
}
dialog::backdrop {
  background: #3a41302b;
  backdrop-filter: blur(7px);
}
.modal-body {
  padding: 23px 29px 29px;
}
.modal-sub {
  font-size: 12px;
  line-height: 1.8;
  color: #5b687b;
}
.input {
  border-color: #e4ebd9;
  background: #fcfdf9;
  font-size: 13px;
  border-radius: 9px;
  padding: 11px 12px;
  color: #46536a;
}
.input:focus {
  border-color: #adbc99;
  box-shadow: 0 0 0 3px #8fa5700b;
}
.input::placeholder {
  color: #636e7f;
}
.field > span {
  font-size: 11px;
  font-weight: 450;
  color: #5b687b;
}
.check-label {
  font-size: 12px;
  color: #5b687b;
}
.form-actions {
  border-color: #edf3e2;
}
.form-actions .btn {
  min-height: 40px;
}
.section-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.55px;
}
.section-content {
  padding: 26px;
}
.state-section {
  border-top: 1px solid #eef3e3;
}
.sleep-checkin {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7eedb;
  border-radius: 12px;
  background: #fafcf5;
}
.state-symbol {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #eff4e4;
  color: #5b687b;
  flex-shrink: 0;
}
.state-symbol .icon {
  width: 16px;
}
.sleep-checkin > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.sleep-checkin strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5b687b;
}
.sleep-checkin small {
  display: block;
  font-size: 10px;
  color: #636e7f;
  margin-top: 4px;
}
.sleep-input {
  position: relative;
  width: 70px;
  flex-shrink: 0;
}
.sleep-input .input {
  font-size: 18px;
  border-radius: 9px;
  padding: 8px 21px 8px 11px;
  color: #5b687b;
  font-weight: 450;
}
.sleep-input > small {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 10px;
  pointer-events: none;
}
.checkin-sliders {
  display: grid;
  gap: 24px;
  margin: 26px 2px 5px;
}
.checkin-range {
  display: grid;
  gap: 9px;
}
.checkin-range .row {
  color: #636e7f;
  font-size: 12px;
  gap: 8px;
}
.checkin-range .row > .icon {
  width: 13px;
  height: 13px;
  color: #636e7f;
}
.checkin-range output {
  font-size: 17px;
  color: #5b687b;
  letter-spacing: -0.6px;
}
.checkin-range output small {
  margin-left: 3px;
  font-size: 10px;
  color: #636e7f;
  letter-spacing: 0;
}
.checkin-range input[type="range"] {
  accent-color: #a3b88c;
  width: 100%;
  height: 14px;
  margin: 0;
  cursor: pointer;
  background: transparent;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.range-labels small {
  color: #636e7f;
  font-size: 10px;
}
.state-private {
  font-size: 10px;
  color: #636e7f;
  flex: 1;
  align-self: center;
}
.task-action-summary {
  padding: 0 0 20px;
}
.task-action-summary .tag {
  font-size: 10px;
}
.task-action-summary h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.7;
  margin: 12px 0 7px;
  overflow-wrap: anywhere;
  color: #5b687b;
}
.task-action-summary p {
  color: #636e7f;
  font-size: 12px;
  margin: 0;
}
.action-list {
  display: grid;
  gap: 3px;
}
.action-list button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
  color: #636e7f;
}
.action-list button:hover {
  background: #f5f9ee;
}
.action-list button > .icon {
  width: 16px;
  height: 16px;
  color: #636e7f;
}
.action-list button > span {
  flex: 1;
}
.action-list button > .icon:last-child {
  width: 12px;
}
.action-list button small {
  color: #636e7f;
  font-size: 10px;
}
.action-list .action-delete {
  color: #5b687b;
  margin-top: 10px;
  border-top: 1px solid #f0e8df;
  border-radius: 0;
}
.action-list .action-delete > .icon {
  color: #636e7f;
}
.toast {
  display: flex;
  align-items: center;
  gap: 20px;
  left: calc(50% + 123px);
  background: #4a5740;
  border: 1px solid #ffffff1a;
  box-shadow: 0 10px 35px #26301f1a;
  font-size: 12px;
  border-radius: 11px;
  padding: 13px 18px;
}
.toast > button {
  color: #d8e6be;
  font-weight: 550;
  font-size: 12px;
  padding: 0 0 0 15px;
  border-left: 1px solid #ffffff26;
}
.toast.error {
  background: #9b7970;
}
.tasks-toolbar {
  align-items: flex-end;
}
.task-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 180px;
  flex: 1;
}
.search-field > .icon {
  position: absolute;
  left: 12px;
  color: #636e7f;
  width: 15px;
  height: 15px;
}
.search-field .input {
  padding-left: 35px;
}
.date-filter {
  max-width: 130px;
  font-size: 11px;
}
.date-separator {
  font-size: 12px;
}
.tasks-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  color: #636e7f;
  font-size: 11px;
}
.task-table {
  padding: 0 26px 20px;
}
.task-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: #636e7f;
  font-weight: 450;
  padding-top: 24px;
  border-color: #edf3e4;
}
.task-group-label button {
  text-align: left;
  padding: 0;
}
.task-group-label > span {
  color: #636e7f;
  font-size: 10px;
  flex-shrink: 0;
}
.task-table .task-title {
  font-size: 14px;
}
.goal-cards .card {
  border-radius: 19px;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
  text-align: left;
}
.goal-cards .card:hover {
  transform: translateY(-3px);
  border-color: #d8e5c9;
  box-shadow: 0 10px 30px -18px #748d5326;
}
.goal-cards h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.65px;
  line-height: 1.5;
}
.goal-cards .goal-symbol {
  margin-top: 0;
}
.goal-cards .goal-pace {
  font-size: 10px;
}
.modal-stat {
  font-size: 47px;
  font-weight: 450;
  letter-spacing: -2.5px;
  color: #636e7f;
}
.modal-tabs {
  border-color: #edf4e3;
  gap: 24px;
}
.modal-tabs button {
  font-size: 12px;
  color: #636e7f;
  padding-bottom: 14px;
}
.modal-tabs button.active {
  color: #5b687b;
  border-color: #9dbb7f;
}
.entry {
  border-color: #eef4e4;
}
.entry strong {
  font-size: 13px;
  font-weight: 500;
  color: #636e7f;
}
.entry-date {
  color: #636e7f;
  font-size: 10px;
}
.entry p {
  color: #636e7f;
  font-size: 12px;
}
.entry .delta {
  color: #636e7f;
}
.number-card strong {
  font-size: 31px;
  font-weight: 450;
  letter-spacing: -1.25px;
}
.number-card .eyebrow {
  font-size: 10px;
}
.week-column {
  border-radius: 16px;
  padding: 20px 15px;
}
.week-column .week-date {
  font-size: 29px;
  font-weight: 450;
  letter-spacing: -1.2px;
}
.week-column .week-task {
  font-size: 12px;
  line-height: 1.8;
}
.week-column.today-col {
  border-color: #c8d5b6;
  box-shadow: 0 4px 16px -9px #9fb88226;
}
.week-task:hover {
  color: #5b687b;
}
.chart-bar {
  background: #c8d8b8;
  border-radius: 6px 6px 2px 2px;
}
.chart-col.today-bar .chart-bar {
  background: #b2c899;
}
.mobile-menu-close {
  display: none;
}
.palette-search {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 0 18px;
  border-bottom: 1px solid #ecf3df;
  color: #636e7f;
}
.palette-search .input {
  border: 0;
  box-shadow: none;
  padding: 7px 0;
  font-size: 17px;
  background: transparent;
  color: #5b687b;
}
.palette-results {
  display: grid;
  gap: 3px;
  max-height: 390px;
  overflow-y: auto;
  padding: 5px 0;
}
.palette-label {
  display: block;
  color: #636e7f;
  font-size: 10px;
  margin: 16px 10px 6px;
  letter-spacing: 0.07em;
}
.palette-results > button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px;
  text-align: left;
  border-radius: 10px;
  color: #636e7f;
  font-size: 13px;
}
.palette-results > button:hover,
.palette-results > button:focus-visible {
  background: #f5faed;
  color: #5b687b;
}
.palette-results > button > .icon {
  width: 16px;
  height: 16px;
  color: #636e7f;
}
.palette-results > button > .icon:last-child {
  width: 12px;
}
.palette-results > button > span {
  flex: 1;
  overflow-wrap: anywhere;
}
.palette-results small,
.palette-results kbd {
  font-size: 10px;
  color: #636e7f;
  flex-shrink: 0;
}
.palette-hint,
.palette-empty {
  font-size: 11px;
  color: #636e7f;
  padding: 15px 10px 0;
  margin: 0;
  line-height: 1.8;
}
.palette-hint {
  border-top: 1px solid #f0f5e7;
  margin-top: 15px;
}
.shortcut-list {
  display: grid;
  gap: 18px;
  font-size: 13px;
  color: #636e7f;
}
.shortcut-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.shortcut-list kbd {
  background: #f8fbf2;
  border: 1px solid #e7f0d9;
  padding: 6px 8px;
  border-radius: 7px;
  color: #636e7f;
  font-size: 11px;
}
.auth-shell {
  background: #fcfdf8;
}
.auth-art {
  background: #f0f2ea;
  padding: 52px 64px;
}
.auth-art .brand {
  margin-bottom: 95px;
}
.auth-art h1 {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 57px;
  line-height: 1.12;
  font-weight: 450;
  letter-spacing: -3.2px;
  max-width: 420px;
  color: #5b687b;
  margin-top: 22px;
}
.auth-art > div > p {
  max-width: 290px;
  color: #636e7f;
  font-size: 13px;
  line-height: 2;
}
.auth-art::before {
  width: 720px;
  height: 720px;
  right: -340px;
  bottom: -350px;
  border-color: #dae5ca;
}
.auth-art::after {
  width: 550px;
  height: 550px;
  right: -255px;
  bottom: -265px;
  border-color: #dde7ce;
}
.auth-art .auth-foot {
  color: #636e7f;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.auth-art .orbit {
  right: 10%;
  bottom: 20%;
  width: 110px;
  height: 110px;
  border-color: #e1ebd5;
  background: #fbfdf6b3;
  box-shadow: 0 20px 55px -15px #96b36f0c;
}
.orbit .icon {
  color: #636e7f;
  width: 41px;
}
.auth-panel {
  padding: 65px;
}
.auth-panel h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: #5b687b;
}
.auth-panel > .sub {
  color: #636e7f;
  font-size: 13px;
  line-height: 1.9;
}
.auth-panel .auth-privacy {
  font-size: 10px;
  color: #636e7f;
  line-height: 2;
}
.auth-panel .btn {
  min-height: 46px;
}
.auth-panel .field > span {
  font-size: 12px;
}
.installer {
  border-color: #e0ebd4;
}
.install-shell {
  background:
    radial-gradient(ellipse at 20% 0, #f0f5e7, transparent 55%), var(--bg);
}
@media (min-width: 1550px) {
  .workspace {
    padding: 45px 48px 30px;
  }
  .cal-day {
    min-height: 62px;
  }
  .task-item {
    min-height: 71px;
  }
  .goal-item {
    padding-top: 29px;
    padding-bottom: 28px;
  }
}
@media (max-width: 1280px) {
  .sidebar {
    width: 218px;
    padding: 33px 18px 22px;
  }
  .brand {
    gap: 8px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand img {
    width: 32px;
  }
  .workspace {
    margin-left: 218px;
    padding: 31px 27px;
  }
  .search-launch {
    padding: 10px;
  }
  .search-launch > span {
    display: none;
  }
  .search-launch kbd {
    margin-left: 0;
  }
  .panel-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
    gap: 18px;
  }
  .central {
    gap: 18px;
  }
  .card-head {
    padding: 23px 22px 18px;
  }
  .calendar-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .cal-day {
    min-height: 53px;
  }
  .task-list {
    padding-left: 22px;
    padding-right: 22px;
  }
  .day-toolbar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .day-progress {
    margin-left: 22px;
    margin-right: 22px;
  }
  .quick-add {
    margin-left: 22px;
    margin-right: 22px;
  }
  .day-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .goal-list {
    padding-left: 20px;
    padding-right: 20px;
  }
  .goal-item {
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .goal-symbol {
    width: 28px;
    height: 30px;
  }
  .goal-name {
    font-size: 12px;
  }
  .goal-percent {
    font-size: 19px;
  }
  .metric {
    padding: 20px 20px 14px;
  }
  .metric-content {
    gap: 12px;
  }
  .gauge {
    width: 63px;
    height: 63px;
  }
  .metric-description b {
    font-size: 10px;
  }
  .metric-description {
    font-size: 9px;
  }
  .toast {
    left: calc(50% + 109px);
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 198px;
    padding: 30px 15px 20px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand img {
    width: 29px;
  }
  .workspace {
    margin-left: 198px;
    padding: 29px 23px;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .goals-card .goal-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 27px;
  }
  .goals-card .goal-item:last-child {
    border-bottom: 1px solid var(--line);
  }
  .goals-foot {
    border-top: 0;
  }
  .goal-name {
    font-size: 13px;
  }
  .goal-symbol {
    width: 32px;
    height: 33px;
  }
  .sidebar-command {
    padding: 10px;
    font-size: 10px;
  }
  .sidebar-command kbd {
    font-size: 9px;
  }
  .metrics-grid {
    gap: 13px;
  }
  .metric {
    padding: 18px 15px 13px;
  }
  .metric-content {
    gap: 9px;
  }
  .gauge {
    width: 54px;
    height: 54px;
  }
  .gauge strong {
    font-size: 18px;
  }
  .metric-description b {
    font-size: 10px;
  }
  .metric-bottom {
    margin-top: 13px;
    gap: 5px;
  }
  .metric-bottom > span:last-child {
    font-size: 9px;
  }
  .metric-sparkline {
    width: 65px;
  }
  .metric-history-empty {
    max-width: 80px;
    font-size: 9px;
  }
  .toast {
    left: calc(50% + 99px);
  }
  .auth-art {
    padding: 40px;
  }
  .auth-art h1 {
    font-size: 46px;
  }
  .auth-panel {
    padding: 40px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    width: 260px;
    padding: 35px 25px 25px;
    background: #fdfef9;
  }
  .sidebar .brand strong {
    font-size: 18px;
  }
  .sidebar .brand img {
    width: 36px;
  }
  .sidebar .brand small {
    font-size: 10px;
  }
  .sidebar .nav button {
    font-size: 14px;
    min-height: 45px;
  }
  .sidebar-command {
    min-height: 45px;
    font-size: 12px;
  }
  .sidebar-command kbd {
    font-size: 10px;
  }
  .workspace {
    margin-left: 0;
    padding: 25px 17px 110px;
  }
  .topbar {
    margin-bottom: 24px;
    gap: 12px;
    align-items: center;
  }
  .mobile-toggle {
    display: none;
  }
  .top-title {
    flex: 1;
  }
  .top-eyebrow {
    font-size: 10px !important;
    margin-bottom: 7px !important;
  }
  .topbar h1 {
    font-size: 30px;
    letter-spacing: -1.3px;
    margin-bottom: 7px;
  }
  .topbar .top-subtitle {
    font-size: 11px;
  }
  .top-actions {
    gap: 8px;
  }
  .search-launch {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 11px;
  }
  .search-launch kbd {
    display: none;
  }
  .date-pill {
    height: 36px;
    min-height: 36px;
    font-size: 11px;
    padding: 0 10px;
  }
  .date-pill > .icon {
    display: none;
  }
  .panel-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .central {
    display: contents;
  }
  .day-card {
    order: 1;
  }
  .calendar {
    order: 2;
  }
  .goals-card {
    order: 3;
  }
  .card-head {
    padding: 24px 21px 20px;
  }
  .card-head h2 {
    font-size: 18px;
  }
  .card-head .eyebrow {
    font-size: 10px;
  }
  .day-numeral {
    font-size: 38px;
  }
  .day-label {
    gap: 13px;
  }
  .day-label h2 {
    font-size: 17px;
  }
  .day-label .eyebrow {
    font-size: 10px;
  }
  .day-score > strong {
    font-size: 24px;
  }
  .day-score small {
    font-size: 10px;
  }
  .day-progress {
    margin-left: 21px;
    margin-right: 21px;
  }
  .day-toolbar {
    padding: 17px 21px 7px;
  }
  .day-toolbar > .icon-button {
    min-height: 36px;
    min-width: 36px;
  }
  .segmented button {
    font-size: 11px;
    padding: 8px 9px;
    min-height: 32px;
  }
  .segmented button span {
    font-size: 10px;
  }
  .task-list {
    padding-left: 21px;
    padding-right: 21px;
  }
  .task-item {
    gap: 10px;
    min-height: 74px;
  }
  .task-item[draggable="true"] .task-grip {
    display: none;
  }
  .task-check {
    min-width: 22px;
    min-height: 22px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    position: relative;
  }
  .task-check::after {
    content: "";
    position: absolute;
    inset: -10px;
  }
  .task-title {
    font-size: 14px;
    line-height: 1.65;
  }
  .task-meta {
    font-size: 10px;
    gap: 5px;
  }
  .tag {
    font-size: 10px;
    padding: 3px 5px;
  }
  .task-time {
    font-size: 11px;
  }
  .task-time .icon {
    display: none;
  }
  .task-more,
  .task-item .icon-button.flat {
    opacity: 1;
    min-height: 42px;
    min-width: 27px;
  }
  .task-goal {
    max-width: 140px;
  }
  .quick-add {
    margin: 12px 21px 19px;
    padding: 9px 9px 9px 12px;
    gap: 7px;
    min-height: 45px;
  }
  .quick-add input[name="title"] {
    font-size: 13px;
  }
  .quick-add input[type="time"] {
    width: 57px;
    font-size: 10px;
  }
  .quick-add > button {
    width: 29px;
    height: 29px;
  }
  .day-footer {
    padding: 15px 21px 20px;
    gap: 10px;
  }
  .day-save-note {
    font-size: 9px;
  }
  .day-footer .text-button {
    font-size: 10px;
    min-height: 30px;
  }
  .day-footer .btn {
    font-size: 10px;
    min-height: 31px;
  }
  .calendar-inner {
    padding: 0 16px 19px;
  }
  .cal-day {
    min-height: 57px;
    font-size: 14px;
  }
  .cal-load {
    font-size: 10px;
  }
  .calendar-controls .icon-button {
    min-width: 29px;
    height: 33px;
  }
  .calendar-controls .btn {
    font-size: 10px;
    min-height: 30px;
    padding: 6px 8px;
    margin-right: 2px;
  }
  .calendar .card-head {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .calendar-foot {
    font-size: 10px;
  }
  .goals-card .goal-list {
    display: block;
    padding: 0 21px;
  }
  .goal-item {
    gap: 13px;
    padding: 24px 0;
  }
  .goal-symbol {
    width: 35px;
    height: 37px;
    margin-top: 13px;
  }
  .goal-name {
    font-size: 14px;
  }
  .goal-percent {
    font-size: 24px;
  }
  .goal-category {
    font-size: 10px;
  }
  .goal-progress-label {
    font-size: 10px;
  }
  .goal-pace {
    font-size: 10px;
    margin-top: 10px;
  }
  .goals-foot {
    padding: 17px 21px 22px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }
  .metric {
    padding: 22px 24px 17px;
  }
  .metric-title {
    font-size: 14px;
  }
  .metric-content {
    gap: 23px;
    margin-top: 17px;
  }
  .gauge {
    width: 75px;
    height: 75px;
  }
  .gauge strong {
    font-size: 23px;
  }
  .gauge strong small {
    font-size: 10px;
  }
  .metric-description {
    font-size: 11px;
  }
  .metric-description b {
    font-size: 13px;
  }
  .metric-bottom {
    margin-top: 16px;
  }
  .metric-sparkline {
    width: 115px;
    height: 28px;
  }
  .metric-history-empty {
    max-width: 180px;
    font-size: 10px;
  }
  .metric-bottom > span:last-child {
    font-size: 10px;
  }
  .metric-bottom > span > small {
    font-size: 9px;
  }
  .metric > .spread > .icon-button {
    width: 30px;
    height: 30px;
  }
  .mobile-advisor {
    padding: 25px;
    background: #f0f4e8;
    border-color: #e3ebd8;
  }
  .mobile-advisor p {
    color: #5b687b;
    font-size: 13px;
    line-height: 1.95;
  }
  .mobile-advisor .icon {
    color: #5b687b;
  }
  .mobile-dock {
    display: flex;
    position: fixed;
    bottom: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    height: 64px;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
    padding: 0 8px;
    z-index: 30;
    border: 1px solid #e5eddbe6;
    border-radius: 19px;
    background: #fffffff2;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 25px #5d78400f;
  }
  .mobile-dock > button {
    display: grid;
    gap: 4px;
    place-items: center;
    min-width: 43px;
    min-height: 45px;
    color: #636e7f;
    font-size: 10px;
  }
  .mobile-dock > button > .icon {
    width: 18px;
    height: 18px;
  }
  .mobile-dock > button.active {
    color: #5b687b;
  }
  .mobile-dock .dock-add {
    background: #5a64b6;
    color: #fff;
    width: 43px;
    height: 43px;
    min-height: 43px;
    border-radius: 14px;
    box-shadow: 0 5px 12px #7f9c5d26;
  }
  .mobile-dock .dock-add > .icon {
    width: 22px;
    height: 22px;
  }
  .bottom-note {
    margin-top: 25px;
    font-size: 9px;
  }
  .foot-button {
    font-size: 9px;
    min-height: 30px;
  }
  .footer-links {
    gap: 12px;
  }
  .toast {
    left: 50%;
    bottom: 94px;
    max-width: calc(100vw - 32px);
    font-size: 12px;
    padding: 13px 15px;
    gap: 13px;
  }
  .toast > button {
    white-space: nowrap;
    font-size: 12px;
  }
  .modal-head {
    padding: 23px 23px 19px;
  }
  .modal-head h2 {
    font-size: 21px;
  }
  .modal-body {
    padding: 22px 23px 25px;
  }
  .modal-title-wrap .eyebrow {
    font-size: 9px;
  }
  dialog {
    border-radius: 21px;
    max-height: 91dvh;
  }
  .modal-body .form-grid {
    gap: 17px;
  }
  .field > span {
    font-size: 12px;
  }
  .input {
    font-size: 14px;
    min-height: 44px;
  }
  .form-actions .btn {
    font-size: 13px;
  }
  .modal-sub {
    font-size: 12px;
  }
  .modal-tabs {
    gap: 20px;
  }
  .modal-tabs button {
    font-size: 12px;
  }
  .btn {
    min-height: 42px;
  }
  .tasks-toolbar > .btn {
    display: none;
  }
  .task-search-form {
    gap: 7px;
  }
  .search-field {
    flex: 1 1 100%;
  }
  .date-filter {
    width: 0;
    max-width: none;
    flex: 1;
    font-size: 12px;
    min-height: 38px;
  }
  .task-search-form .btn {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 12px;
  }
  .tasks-results-bar {
    align-items: flex-start;
    font-size: 10px;
    flex-direction: column;
  }
  .task-table {
    padding-left: 20px;
    padding-right: 20px;
  }
  .task-group-label {
    font-size: 11px;
  }
  .task-group-label > span {
    font-size: 9px;
  }
  .task-table .task-title {
    font-size: 14px;
  }
  .sleep-checkin {
    padding: 13px;
    gap: 10px;
  }
  .sleep-checkin strong {
    font-size: 13px;
  }
  .sleep-checkin small {
    font-size: 10px;
  }
  .checkin-range .row {
    font-size: 13px;
  }
  .range-labels small {
    font-size: 10px;
  }
  .checkin-range input[type="range"] {
    height: 24px;
  }
  .state-private {
    font-size: 10px;
    flex: 0 0 100%;
  }
  .checkin-range output {
    font-size: 19px;
  }
  .section-content {
    padding: 23px;
  }
  .palette-search .input {
    font-size: 14px;
  }
  .palette-results > button {
    min-height: 46px;
    font-size: 13px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .palette-results > button small {
    font-size: 10px;
  }
  .palette-results {
    max-height: 45dvh;
  }
  .auth-panel {
    padding: 45px 28px;
  }
  .auth-panel h2 {
    font-size: 29px;
  }
  .auth-mobile-brand {
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.7px;
  }
  .auth-panel .input {
    min-height: 47px;
    font-size: 16px;
  }
  .auth-panel > .sub {
    font-size: 13px;
  }
  .auth-panel .auth-privacy {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  dialog::backdrop,
  .mobile-dock {
    backdrop-filter: none;
  }
}

/* Strong text and measured colour. Tiny labels are kept readable. */
.topbar .top-subtitle {
  color: #737d8b;
}
.nav button {
  color: #687485;
}
.nav button.active {
  color: #505b9c;
}
.goal-name,
.task-title {
  color: #46536a;
}
.goal-category,
.goal-pace,
.task-meta {
  color: #6b7786;
}
.day-save-note {
  color: #6e7d71;
}
.metric-title {
  color: #535f72;
}
.metric-description b {
  color: #46536a;
}
.metric-description {
  color: #6c7888;
}
.gauge strong {
  color: #557a65;
}
.gauge.blue strong {
  color: #5a64b6;
}
.gauge.rose strong {
  color: #8a7050;
}
.auth-art h1 {
  color: #39465e;
}
.auth-panel h2 {
  color: #39465e;
}
.auth-art > div > p {
  color: #6b788b;
}
.auth-panel .auth-privacy {
  color: #6d7887;
}
.cal-day.out {
  opacity: 1;
  color: #78838f;
}
.cal-day.future {
  color: #74829a;
}
.cal-day.red {
  color: #a2676a;
}
.cal-day.orange {
  color: #92764d;
}
.cal-day.yellow {
  color: #8a7e3e;
}
.cal-day.lime {
  color: #768a56;
}
.cal-day.green {
  color: #5e8158;
}
.cal-completion {
  background: #22304812;
  opacity: 0.55;
}
.cal-completion i {
  background: currentColor;
}
.task-item.done .task-title {
  color: #788391;
}
.task-item.failed .task-check {
  color: #ab6b71;
}
.tag {
  color: #74839f;
}
.tag.habit {
  color: #6b865d;
}
.tag.ban {
  color: #8a7651;
}
.tag.extra {
  color: #857195;
}
.progress-fill {
  background: #9faecc;
}
.mobile-dock > button.active {
  color: #5a64b6;
}
.sleep-checkin,
.state-symbol,
.quick-add {
  background: #fafbf7;
}
.checkin-range input[type="range"] {
  accent-color: #8998bb;
}
.mobile-advisor {
  background: #f0f2ef;
}
.mobile-advisor p {
  color: #697867;
}
.auth-art .auth-foot {
  color: #7c8871;
}
.sidebar-command {
  border-color: #e4e7e0;
}
.task-time {
  font-variant-numeric: tabular-nums;
}
.mobile-menu-close {
  display: none;
}
@media (max-width: 700px) {
  .sidebar .mobile-menu-close {
    display: grid;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
  }
  .topbar .top-subtitle {
    font-size: 11px;
  }
  .cal-day {
    font-size: 14px;
  }
  .day-footer {
    flex-wrap: wrap;
  }
  .day-save-note {
    font-size: 10px;
  }
  .day-footer .btn {
    font-size: 10px;
  }
  .task-title {
    font-size: 14px;
  }
  .tag,
  .task-meta {
    font-size: 10px;
  }
  .day-score small {
    font-size: 9px;
  }
  .goal-name {
    font-size: 14px;
  }
  .goal-progress-label {
    font-size: 11px;
  }
  .goal-category,
  .goal-pace {
    font-size: 10px;
  }
  .quick-add input[name="title"] {
    font-size: 13px;
  }
  .quick-add input[type="time"] {
    font-size: 10px;
    width: 68px;
  }
  .quick-add {
    margin-left: 18px;
    margin-right: 18px;
  }
  .tasks-results-bar {
    font-size: 11px;
  }
  .mobile-dock > button {
    font-size: 10px;
  }
  .toast {
    font-size: 12px;
  }
  .toast > button {
    font-size: 12px;
  }
  .search-launch .icon {
    width: 17px;
    height: 17px;
  }
  .date-pill {
    font-size: 12px;
  }
  body.menu-open {
    overflow: hidden;
  }
}
/* Completion feedback stays on the touched row. */
.task-item.saving.done .task-check {
  animation: check-settle 0.3s var(--ease) both;
}
.task-item.saving.done .task-check .icon path {
  stroke-dasharray: 24;
  animation: check-draw 0.27s var(--ease) both;
}
.inline-error,
.error-message {
  color: #9b5c67;
}
.help {
  color: #657182;
}
.help.warning {
  color: #917447;
}
.help.success {
  color: #557a65;
}
.admin-table {
  font-size: 12px;
}
.admin-table th {
  color: #6d7787;
}
.admin-table small {
  color: #748091;
}
.status-badge {
  font-size: 10px;
}
.palette-results button {
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.palette-results button:hover {
  transform: translateX(2px);
}
@keyframes check-settle {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes check-draw {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .task-item.saving.done .task-check,
  .task-item.saving.done .task-check .icon path {
    animation: none !important;
  }
  .palette-results button:hover {
    transform: none;
  }
}

/* v1.2 · Personal data portability */
.export-actions {
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.export-actions .btn {
  text-decoration: none;
  justify-content: center;
  min-height: 42px;
}
.export-actions .btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
@media(max-width: 520px) {
  .export-actions { flex-direction: column; align-items: stretch; }
  .export-actions .btn { width: 100%; white-space: normal; }
}

/* 1.4.0 — legible premium type scale across all application sections. */
body { font-size: 16px; line-height: 1.52; }
.small, .muted.small, .sub.small { font-size: 13px; }
.eyebrow, .nav-section-label { font-size: 12px; }
.nav button { font-size: 16px; }
.btn { font-size: 14px; }
.input, input, select, textarea { font-size: 15px; }
.field > span { font-size: 13px; }
.data-row, .task-title, .goal-item strong { font-size: 15px; }
.task-meta, .tag, .task-time { font-size: 12px; }
.section-title { line-height: 1.17; }
.icon { display: inline-block; vertical-align: middle; }
.btn > .icon, .text-button > .icon { width: 17px; height: 17px; }
.icon-button > .icon { width: 18px; height: 18px; }
@media (max-width:700px) {
 body { font-size: 15px; }
 .nav button { font-size: 16px; }
}
