:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f0f3f5;
  --text: #151719;
  --muted: #6f757c;
  --line: #dfe4e7;
  --blue: #1f6bea;
  --blue-soft: #e8f0ff;
  --red: #ee3e43;
  --red-soft: #fff0f0;
  --green: #19a974;
  --purple: #8c5ad8;
  --shadow: 0 18px 45px rgba(25, 31, 38, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

textarea {
  resize: vertical;
  font: inherit;
}

body.is-busy .check-box {
  pointer-events: none;
}

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

.login-card {
  display: grid;
  gap: 20px;
  width: min(420px, 100%);
}

.app-shell {
  --left-column: 0px;
  --rail-peek: 12px;
  --right-column: 0px;
  display: grid;
  grid-template-columns: var(--left-column) minmax(0, 1fr) var(--right-column);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  overflow-x: clip;
}

.app-shell.has-left-rail {
  --left-column: 280px;
}

.app-shell.has-right-rail {
  --right-column: 320px;
}

.app-shell.has-left-rail.left-rail-unpinned {
  --left-column: var(--rail-peek);
}

.app-shell.has-right-rail.right-rail-unpinned {
  --right-column: var(--rail-peek);
}

.app-chrome {
  position: sticky;
  top: 0;
  z-index: 5;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(10, 42, 77, 0.22);
}

.brand strong,
.brand span {
  display: block;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.nav-item.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

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

.folder-sidebar {
  grid-column: 1;
  grid-row: 2;
  width: 280px;
  min-width: 0;
  height: calc(100vh - 71px);
  padding: 8px 18px 24px 24px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.layout-rail {
  position: sticky;
  top: 71px;
  z-index: 4;
  align-self: start;
  overflow-y: auto;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.left-rail-unpinned .folder-sidebar {
  transform: translateX(calc(-100% + var(--rail-peek)));
}

.left-rail-unpinned .folder-sidebar:hover,
.left-rail-unpinned .folder-sidebar:focus-within {
  transform: translateX(0);
  box-shadow: var(--shadow);
}

.rail-controls {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 34px;
  background: var(--bg);
}

.rail-controls-left {
  justify-content: flex-end;
}

.rail-controls-right {
  justify-content: flex-start;
}

.left-rail-unpinned .folder-sidebar:not(:hover):not(:focus-within) .rail-pin-button,
.right-rail-unpinned .side-panel:not(:hover):not(:focus-within) .rail-pin-button {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.left-rail-unpinned .folder-sidebar::after,
.right-rail-unpinned .side-panel::after {
  position: absolute;
  top: 44px;
  display: grid;
  place-items: center;
  width: var(--rail-peek);
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--blue) 32%, var(--line));
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.left-rail-unpinned .folder-sidebar::after {
  right: 0;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  content: "›";
}

.right-rail-unpinned .side-panel::after {
  left: 0;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  content: "‹";
}

.left-rail-unpinned .folder-sidebar:hover::after,
.left-rail-unpinned .folder-sidebar:focus-within::after,
.right-rail-unpinned .side-panel:hover::after,
.right-rail-unpinned .side-panel:focus-within::after {
  opacity: 0;
}

.rail-pin-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  transition: opacity 120ms ease;
}

.rail-pin-button:hover,
.rail-pin-button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}

.folder-list {
  display: grid;
  padding: 8px;
}

.folder-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.folder-row:hover,
.folder-row:focus-visible {
  background: #f8fafc;
  outline: none;
}

.folder-row.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.folder-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-row strong {
  color: var(--muted);
  font-size: 12px;
}

.folder-icon {
  display: grid;
  place-items: center;
  width: 24px;
  color: currentColor;
  font-size: 16px;
}

.connect-panel,
.panel,
.quick-add {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.connect-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.connect-panel h2,
.panel-heading h2,
.quick-add h2 {
  margin: 0;
  font-size: 14px;
}

.connect-panel label,
.task-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.connect-panel input,
.task-form input,
.task-form select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
}

.connect-panel p {
  margin: 0;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preset-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.preset-button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preset-button.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.icon-button,
.add-button {
  border: 0;
  border-radius: 8px;
}

.primary-button {
  height: 38px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.secondary-button {
  height: 38px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}

.workspace {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 24px 30px 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.goal-strip {
  display: grid;
  margin-bottom: 20px;
}

.goal-strip-list {
  display: grid;
  grid-auto-columns: minmax(360px, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.topbar-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.section-eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 700;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 46px;
}

.icon-button {
  width: 46px;
  height: 46px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 21px;
}

.icon-button.is-muted {
  position: relative;
}

.icon-button.is-muted::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 22px;
  height: 2px;
  background: var(--red);
  transform: rotate(-34deg);
}

.icon-button.is-enabled {
  border-color: color-mix(in srgb, var(--blue) 54%, var(--line));
  background: var(--blue-soft);
  color: var(--blue);
}

.add-button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 8;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.quick-add {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.quick-add-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.quick-add-header span {
  color: var(--muted);
  font-size: 12px;
}

.task-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  align-items: end;
}

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

.submit-button {
  min-width: 104px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.task-section {
  padding: 0;
}

.divider-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-row {
  display: grid;
  grid-template-columns: 28px 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.task-section .task-row:last-child {
  border-bottom: 1px solid var(--line);
}

.divider-heading + .task-row,
.task-section:first-of-type .task-row:first-child {
  border-top: 1px solid var(--line);
}

.task-row:hover,
.task-row:focus-visible {
  background: #fbfcfd;
  outline: none;
}

.check-box {
  width: 20px;
  height: 20px;
  border: 2px solid #87909a;
  border-radius: 5px;
  background: transparent;
}

.check-box:hover,
.check-box:focus-visible {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 169, 116, 0.16);
}

.space-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.space-dot.is-empty {
  border: 1px solid #c5cdd5;
  background: transparent;
}

.task-main {
  min-width: 0;
}

.task-title {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.alarm-badge {
  color: var(--red);
  font-size: 18px;
}

.space-filter-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 16px;
}

.top-space-filter-list {
  padding: 0;
  gap: 10px;
}

.space-filter-all {
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.space-filter-all.is-active {
  color: var(--text);
}

.space-filter {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--space-color) 46%, #ffffff);
  border-radius: 50%;
  background: var(--surface);
  color: var(--space-color);
  font-size: 14px;
  font-weight: 800;
}

.space-filter.is-active {
  border-color: var(--space-color);
  background: var(--space-color);
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.side-panel {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  align-content: start;
  gap: 18px;
  width: 320px;
  height: calc(100vh - 71px);
  padding: 8px 24px 24px 18px;
  border-left: 1px solid var(--line);
  background: var(--bg);
  justify-self: end;
}

.right-rail-unpinned .side-panel {
  transform: translateX(calc(100% - var(--rail-peek)));
}

.right-rail-unpinned .side-panel:hover,
.right-rail-unpinned .side-panel:focus-within {
  transform: translateX(0);
  box-shadow: var(--shadow);
}

.side-alarm-list {
  gap: 0;
  padding: 0;
}

.side-alarm-list .alarm-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.side-alarm-list .alarm-card:last-child {
  border-bottom: 0;
}

.side-alarm-list .empty-state {
  padding: 24px 16px;
}

.alarm-countdown {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.alarm-sound-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 15px;
}

.alarm-sound-toggle.is-enabled {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  background: var(--blue-soft);
  color: var(--blue);
}

.alarm-sound-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 2px;
}

.next-alarm {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.alarm-standby {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.alarm-standby-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 28px;
}

.alarm-standby strong,
.alarm-standby span,
.alarm-standby small {
  display: block;
}

.alarm-standby strong {
  font-size: 24px;
}

.alarm-standby span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.alarm-standby small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.timer-face {
  position: relative;
  display: grid;
  place-items: center;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, #000);
  border-radius: 22px;
  background: #fbfbf7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(25, 31, 38, 0.08);
}

.timer-dial {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    conic-gradient(#f2f2ef 0 var(--timer-elapsed), var(--red) var(--timer-elapsed) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.12),
    inset 0 0 18px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.timer-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 6px;
  background: rgba(0, 0, 0, 0.26);
  transform: rotate(var(--tick-angle)) translateY(-92px);
  transform-origin: 50% 0;
}

.timer-tick.is-major {
  width: 2px;
  height: 11px;
  background: rgba(0, 0, 0, 0.46);
}

.timer-hand {
  position: absolute;
  left: calc(50% - 1.5px);
  top: 8%;
  z-index: 4;
  width: 3px;
  height: 42%;
  border-radius: 999px;
  background: rgba(21, 23, 25, 0.82);
  transform: rotate(var(--hand-angle));
  transform-origin: 50% 100%;
}

.timer-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(21, 23, 25, 0.82);
  transform: translate(-50%, -50%);
}

.timer-marker {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  z-index: 3;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.timer-markers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.timer-copy {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding-top: 42px;
  text-align: center;
  pointer-events: none;
}

.timer-copy strong {
  font-size: 30px;
}

.timer-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.calendar-title {
  display: grid;
  gap: 3px;
}

.calendar-title h2 {
  margin: 0;
  font-size: 20px;
}

.calendar-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-nav-button {
  min-width: 42px;
  padding: 0 12px;
}

.calendar-day {
  min-height: 98px;
  padding: 9px;
  border: 0;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.calendar-day.is-outside-month {
  color: var(--muted);
  background: #f8fafc;
}

.calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.calendar-day.is-today strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}

.calendar-day strong {
  display: block;
  margin-bottom: 8px;
}

.calendar-day.is-today strong {
  display: inline-grid;
}

.day-dots {
  display: flex;
  gap: 4px;
}

.calendar-day-panel {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.goal-list,
.alarm-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.goal-card,
.alarm-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.goal-card {
  cursor: pointer;
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.goal-strip .goal-card {
  min-height: 118px;
  gap: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(25, 31, 38, 0.07);
}

.goal-strip .card-title-row strong {
  font-size: 18px;
}

.goal-strip .goal-days {
  font-size: 26px;
}

.goal-strip .progress-track {
  height: 12px;
}

.goal-card:hover,
.goal-card:focus-visible {
  background: #fbfcfd;
  outline: none;
}

.goal-card header,
.alarm-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.goal-days {
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.card-title-row {
  display: inline-grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.card-title-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress-bar {
  height: 100%;
  background: var(--green);
}

.empty-state {
  padding: 42px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.settings-grid {
  display: grid;
  gap: 18px;
}

.settings-menu {
  gap: 10px;
}

.settings-menu-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.settings-menu-item:hover,
.settings-menu-item:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: #fbfcff;
  outline: none;
}

.settings-menu-item strong,
.settings-menu-item small {
  display: block;
}

.settings-menu-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.settings-menu-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.settings-menu-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.settings-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 2px;
}

.settings-detail-header .secondary-button {
  padding: 0 14px;
}

.settings-detail-header strong,
.settings-detail-header span {
  display: block;
}

.settings-detail-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.settings-add-button {
  min-width: 96px;
  padding: 0 14px;
}

.settings-goal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 14px;
}

.settings-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

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

.settings-heading h2 {
  font-size: 15px;
}

.settings-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.settings-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-list {
  display: grid;
}

.settings-row {
  display: grid;
  grid-template-columns: 74px minmax(180px, 1fr) minmax(88px, 112px) minmax(88px, 112px) auto;
  gap: 12px;
  align-items: end;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
}

.settings-row:first-child {
  border-top: 0;
}

.settings-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-row input[type="text"],
.settings-row input[type="color"] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
}

.settings-row input[type="text"] {
  padding: 0 10px;
}

.settings-row input[readonly] {
  background: var(--surface-2);
  color: var(--muted);
}

.settings-row .primary-button {
  min-width: 82px;
  padding: 0 14px;
}

.setting-toggle {
  align-content: end;
  justify-items: start;
}

.setting-toggle input {
  width: 18px;
  height: 18px;
}

.settings-space-dot,
.settings-divider-mark {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.settings-space-dot {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

.settings-divider-mark {
  position: relative;
}

.settings-divider-mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 3px;
  border-radius: 999px;
  background: var(--muted);
}

.setting-kind {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.setting-wide {
  grid-column: span 2;
}

.task-dialog {
  width: min(720px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.add-task-dialog {
  width: min(680px, calc(100vw - 32px));
}

.task-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
}

.task-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.task-editor header,
.task-editor footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.task-editor header h2 {
  margin: 0 auto 0 0;
}

.task-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-space-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--blue);
}

.field-space-dot.is-empty {
  border: 1px solid #c5cdd5;
  background: transparent;
}

.task-editor input,
.task-editor select,
.task-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: var(--surface);
  color: var(--text);
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.notes-field {
  width: calc(50% - 5px);
}

.task-editor footer > span {
  display: none;
}

.task-editor footer .danger-button {
  margin-right: auto;
}

.danger-button {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .app-shell {
    --left-column: 0px !important;
    --right-column: 0px !important;
    grid-template-columns: 0 minmax(0, 1fr) 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .app-chrome {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .chrome-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .folder-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    padding-top: 210px;
  }

  .side-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    padding-top: 210px;
  }

  .nav-list {
    width: 100%;
    justify-content: space-between;
  }

  .content-grid,
  .task-form,
  .editor-grid,
  .settings-row {
    grid-template-columns: 1fr;
  }

  .setting-wide {
    grid-column: span 1;
  }

  .title-field {
    grid-column: span 1;
  }

  .notes-field {
    width: 100%;
  }

  .workspace {
    grid-column: 2;
    grid-row: 2;
    padding: 18px;
  }
}

@media (max-width: 680px) {
  .nav-item {
    justify-content: center;
    padding: 0 6px;
  }

  .nav-item span:last-child {
    display: none;
  }

  .topbar {
    align-items: flex-end;
  }

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

  .quick-add-header {
    display: grid;
  }

}
