:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f0f3f5;
  --text: #151719;
  --muted: #6f757c;
  --line: #dfe4e7;
  --blue: #1f6bea;
  --navy: #173b72;
  --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);
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 14px;
  font-size: 13px;
}

.legal-links a,
.legal-card a {
  color: var(--blue);
}

.legal-page {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 40px 0 80px;
}

.legal-card {
  margin-top: 18px;
  padding: 28px;
}

.legal-card h1 {
  margin: 4px 0 2px;
}

.legal-card h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.legal-card p {
  line-height: 1.55;
}

.legal-updated {
  color: var(--muted);
  font-size: 13px;
}

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 rgba(8, 29, 61, 0.42);
  background: linear-gradient(110deg, #2d5f9b 0%, #4178b6 58%, #356ba6 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(17, 50, 94, 0.18);
  backdrop-filter: blur(18px);
}

.app-chrome .brand span {
  color: rgba(255, 255, 255, 0.76);
}

.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 rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

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

.nav-item.is-active {
  background: rgba(25, 68, 139, 0.72);
  color: #dce7ff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(10, 35, 76, 0.2);
}

.nav-item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.app-chrome .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.app-chrome .secondary-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon .is-filled {
  fill: currentColor;
  stroke: none;
}

.nav-icon .settings-symbol path {
  fill: currentColor;
  stroke: none;
}

.nav-icon .settings-symbol circle {
  fill: none;
  stroke: rgba(25, 68, 139, 0.72);
  stroke-width: 1.8;
}

.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: #0a84ff;
}

.folder-symbol {
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.folder-symbol .is-filled {
  fill: currentColor;
  stroke: none;
}

.folder-symbol-complete {
  color: #2fc45b;
}

.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;
}

.app-shell.is-settings .workspace {
  padding: 34px 40px 96px;
}

.app-shell.is-settings .topbar {
  display: none;
}

.app-shell.is-settings #primaryPanel {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-shell.is-calendar #primaryPanel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

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

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

.goal-strip-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 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;
}

.folder-sidebar .panel-heading,
#primaryPanel > .panel-heading,
.side-panel .panel-heading,
.divider-heading,
.calendar-toolbar,
.calendar-day-panel > .panel-heading {
  border-color: rgba(8, 29, 61, 0.5);
  background: linear-gradient(110deg, #173b72 0%, #24558f 58%, #1d477f 100%);
  color: #fff;
}

.folder-sidebar .panel-heading span,
#primaryPanel > .panel-heading span,
.side-panel .panel-heading span,
.divider-heading span,
.calendar-toolbar .calendar-title span,
.calendar-day-panel > .panel-heading span {
  color: #fff;
}

.side-panel .panel-heading .alarm-sound-toggle {
  border-color: rgba(255, 255, 255, 0.28);
}

.task-section {
  padding: 0;
}

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

.divider-heading.is-drop-target {
  box-shadow: inset 0 -3px var(--red);
}

.task-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 12px minmax(0, 1fr) auto 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-row.is-dragging {
  opacity: 0.45;
  z-index: 3;
  transform: translateY(var(--drag-offset-y, 0));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.task-row.is-drop-before::before,
.task-row.is-drop-after::after {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 2;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  content: "";
  pointer-events: none;
}

.task-row.is-drop-before::before {
  top: -2px;
}

.task-row.is-drop-after::after {
  bottom: -2px;
}

.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;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.check-box.is-complete {
  border-color: var(--green);
  background: var(--green);
}

.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;
}

.task-drag-handle {
  display: none;
}

.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-progress-knob {
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 7px);
  z-index: 7;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 5px rgba(21, 23, 25, 0.28);
  transform: rotate(var(--hand-angle)) translateY(-78px);
}

.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: 6;
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 118px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transform: translateY(8px);
  transition: color 180ms ease;
  pointer-events: none;
}

.timer-copy strong {
  font-size: 62px;
  font-weight: 750;
  line-height: 0.78;
  letter-spacing: -0.065em;
}

.timer-copy .timer-unit {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.timer-copy .timer-remaining {
  width: 100%;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid currentColor;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.timer-copy.is-on-red {
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 2px 3px rgba(50, 3, 10, 0.68),
    0 5px 12px rgba(82, 9, 14, 0.48);
}

.timer-copy.is-on-red .timer-remaining {
  border-color: rgba(255, 255, 255, 0.42);
}

.timer-copy.is-on-light {
  color: #10294d;
  text-shadow: 0 2px 5px rgba(8, 29, 61, 0.12);
}

.timer-copy.is-on-light .timer-remaining {
  border-color: rgba(16, 41, 77, 0.18);
}

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

.calendar-month-panel,
.calendar-day-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.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-toolbar .calendar-nav-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.calendar-toolbar .calendar-nav-button:hover,
.calendar-toolbar .calendar-nav-button:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.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 strong {
  display: block;
  margin-bottom: 8px;
}

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

.calendar-day-panel {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

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

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

.goal-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background-color: #171326;
  background-image: url("./assets/goal-sunset.png");
  background-position: center;
  background-size: cover;
  color: white;
  font: inherit;
  text-align: left;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--goal-accent, #7c3aed) 18%, transparent);
}

.goal-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent 42%, rgba(0, 0, 0, 0.62));
  content: "";
}

.goal-strip .goal-card {
  aspect-ratio: 1;
  min-height: 0;
  padding: 14px;
  border-radius: 24px;
}

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

.goal-strip .goal-progress-block {
  gap: 5px;
}

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

.goal-strip .goal-progress-meta {
  gap: 6px;
  font-size: 9px;
}

.goal-strip .goal-countdown-grid {
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 14px;
}

.goal-strip .goal-countdown-cell strong {
  font-size: 30px;
}

.goal-strip .goal-countdown-cell small {
  margin-top: 2px;
  font-size: 10px;
}

.goal-card-title {
  overflow: hidden;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.62);
  white-space: nowrap;
}

.goal-progress-block {
  display: grid;
  gap: 8px;
  margin-top: auto;
  flex: 0 0 auto;
  transform: translateY(5px);
}

.goal-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.goal-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: white;
}

.goal-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.goal-countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: auto;
  padding-top: 24px;
}

.goal-countdown-cell {
  display: grid;
  place-items: center;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.72);
}

.goal-countdown-cell strong,
.goal-countdown-cell small {
  display: block;
}

.goal-countdown-cell strong {
  font-size: clamp(38px, 4vw, 52px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 0.95;
}

.goal-countdown-cell small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.goal-card:hover,
.goal-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 22px 46px color-mix(in srgb, var(--goal-accent, #7c3aed) 28%, transparent);
  outline: none;
  transform: translateY(-2px);
}

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

.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-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  align-items: stretch;
  gap: 44px;
  width: min(100%, 954px);
  min-height: calc(100vh - 174px);
  margin: 0 auto;
}

.settings-page {
  width: min(100%, 960px);
  min-height: 0;
  margin: 0 auto;
}

.settings-sidebar {
  position: static;
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 4px 24px 24px 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.settings-sidebar-heading span,
.settings-sidebar-heading strong,
.settings-sidebar-heading p {
  display: block;
}

.settings-sidebar-heading span,
.settings-eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-sidebar-heading strong {
  margin-top: 4px;
  font-size: 18px;
}

.settings-sidebar-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-menu {
  display: grid;
  gap: 6px;
}

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

.settings-menu-item:hover,
.settings-menu-item:focus-visible {
  background: #ecefed;
  outline: none;
}

.settings-menu-item.is-active {
  background: #e7e9e7;
  color: var(--text);
}

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

.settings-menu-item small {
  display: none;
}

.settings-menu-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.settings-menu-item.is-active .settings-menu-icon {
  background: transparent;
  color: var(--text);
}

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

.settings-content {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}

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

.settings-overview-hero {
  padding: 0 2px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-overview-hero h2 {
  margin: 0 0 6px;
  font-size: clamp(32px, 3.5vw, 36px);
  letter-spacing: -0.03em;
}

.settings-overview-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.settings-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-overview-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid #cfd4da;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.settings-overview-card:hover,
.settings-overview-card:focus-visible {
  background: var(--surface-2);
  box-shadow: 0 8px 22px rgba(25, 31, 38, 0.08);
  outline: none;
  transform: none;
}

.settings-overview-card strong,
.settings-overview-card small {
  display: block;
}

.settings-overview-card strong {
  font-size: 20px;
  font-weight: 650;
}

.settings-overview-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
}

.settings-overview-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.settings-tile-symbol {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-spaces-symbol {
  fill: currentColor;
  stroke: none;
}

.settings-goals-symbol {
  width: 32px;
  height: 32px;
}

.settings-overview-icon-spaces { background: #ef4444; color: #fff; }
.settings-overview-icon-folders { background: #ff8924; color: #fff; }
.settings-overview-icon-dividers { background: #d8f5e4; color: #279559; }
.settings-overview-icon-goals { background: #f0f1f2; color: #151719; }

.settings-overview-value {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef0f2;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.settings-overview-arrow {
  color: var(--muted);
  font-size: 30px;
  font-weight: 300;
}

.settings-sync-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid #cfd4da;
  border-radius: 12px;
  background: var(--surface);
}

.settings-account-actions strong {
  font-size: 20px;
  font-weight: 650;
}

.settings-account-actions p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.danger-button {
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
  background: color-mix(in srgb, var(--red) 8%, white);
  color: var(--red);
}

.settings-sync-note > span {
  color: var(--green);
  font-size: 24px;
}

.settings-sync-note strong,
.settings-sync-note p {
  display: block;
  margin: 0;
}

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

.settings-detail-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 0 2px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-detail-header strong {
  display: block;
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.settings-detail-header p {
  max-width: 680px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.settings-sync-badge {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf8f1;
  color: #08744d;
  font-size: 12px;
  font-weight: 900;
}

.settings-back-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
}

.settings-back-button:hover,
.settings-back-button:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.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: 14px;
  background: var(--surface);
}

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

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

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

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

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

.settings-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.settings-heading-actions .settings-add-button {
  min-width: 118px;
  height: 38px;
}

.settings-list {
  display: grid;
  border-top: 0;
}

.settings-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1fr) 72px 64px auto;
  gap: 14px;
  align-items: end;
  padding: 18px 20px;
  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: 13px;
  font-weight: 800;
}

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

.settings-row input[type="color"] {
  padding: 3px;
}

.settings-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.settings-row input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.settings-row input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 5px;
}

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

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

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

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

.settings-row[data-entity-type="space"] .setting-toggle {
  align-content: center;
  align-self: stretch;
}

.settings-row[data-entity-type="priority_divider"] .setting-toggle {
  align-content: center;
  align-self: stretch;
}

.settings-row[data-entity-type="folder"] .setting-toggle {
  align-content: center;
  align-self: stretch;
}

.setting-enabled-input {
  display: none;
}

.settings-remove-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--red) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--red) 7%, white);
  color: #bd3035;
}

.settings-remove-button svg {
  width: 18px;
  height: 18px;
}

.settings-remove-button:hover,
.settings-remove-button:focus-visible {
  border-color: color-mix(in srgb, var(--red) 48%, var(--line));
  background: color-mix(in srgb, var(--red) 13%, white);
  outline: none;
}

.settings-remove-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.settings-fixed-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 15px;
}

.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: 13px;
  font-weight: 800;
}

.folder-settings-kind {
  display: grid;
  place-items: center;
  align-self: end;
  height: 42px;
}

.folder-settings-kind .folder-icon {
  width: 28px;
}

.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);
}

.checklist-editor {
  display: grid;
  gap: 10px;
}

.checklist-editor-heading,
.checklist-editor-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-editor-heading {
  justify-content: space-between;
}

.checklist-editor-rows {
  display: grid;
  gap: 8px;
}

.checklist-editor-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.checklist-editor-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

.checklist-remove-button {
  flex: 0 0 auto;
}

.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: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 14px;
  }

  .chrome-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-content: flex-end;
  }

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

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

  .nav-list {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
  }

  .content-grid,
  .task-form,
  .editor-grid {
    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;
    transition: margin 180ms ease;
  }

  .app-shell.has-left-rail:not(.left-rail-unpinned) .workspace {
    margin-left: 280px;
  }

  .app-shell.has-right-rail:not(.right-rail-unpinned) .workspace {
    margin-right: 320px;
  }

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

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

  .app-shell.is-settings .workspace {
    padding: 28px 24px 72px;
  }
}

@media (max-width: 860px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }

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

  .settings-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@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;
  }

  .settings-menu,
  .settings-overview-grid {
    grid-template-columns: 1fr;
  }

  .settings-overview-hero h2 {
    font-size: 34px;
  }

  .settings-overview-hero p {
    font-size: 16px;
  }

  .settings-overview-card {
    grid-template-columns: 48px minmax(0, 1fr) auto 14px;
    gap: 10px;
    min-height: 82px;
    padding: 14px;
  }

  .settings-overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 22px;
  }

  .settings-overview-card strong {
    font-size: 18px;
  }

  .settings-overview-card small {
    font-size: 13px;
  }

  .settings-overview-value {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .settings-overview-arrow {
    font-size: 28px;
  }

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

  .settings-account-actions strong {
    font-size: 20px;
  }

  .settings-account-actions p {
    font-size: 14px;
  }

  .settings-account-break {
    display: none;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .settings-row[data-entity-type="space"] {
    grid-template-columns: 40px minmax(0, 1fr) 64px 72px;
  }

  .settings-row[data-entity-type="space"] .setting-toggle {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .settings-row[data-entity-type="space"] > label:nth-child(2) {
    grid-column: 2 / -1;
  }

  .settings-row[data-entity-type="space"] > label:nth-child(3) {
    grid-column: 2;
  }

  .settings-row[data-entity-type="space"] > label:nth-child(4) {
    grid-column: 3;
  }

  .settings-row[data-entity-type="space"] > .primary-button {
    grid-column: 4;
    min-width: 0;
    padding: 0 10px;
  }

  .settings-detail-header {
    align-items: flex-start;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .settings-detail-header .settings-sync-badge {
    grid-column: 2;
  }

}
