:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --panel: #ffffff;
  --ink: #151713;
  --muted: #696d66;
  --line: #daddd4;
  --line-strong: #b9bfb2;
  --accent: #087a62;
  --accent-soft: #e2f2ed;
  --danger: #9f3b31;
  --shadow: 0 18px 55px rgba(21, 23, 19, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input,
select,
output {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.shell {
  min-height: 100svh;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  overflow: visible;
}

.quiet-row button,
.subtle,
.stepper button,
.option-actions button {
  min-height: 38px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav button:hover {
  background: rgba(21, 23, 19, 0.06);
}

.nav button[aria-current="page"] {
  background: var(--ink);
  color: white;
}

.nav button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: max-content;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.nav button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav:hover button:focus-visible::after {
  opacity: 0;
  transform: translate(-50%, -3px);
}

.nav button:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.apps-launcher-shell {
  position: relative;
}

.apps-launcher-toggle {
  position: relative;
  overflow: visible;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.apps-launcher-toggle:hover,
.apps-launcher-toggle:focus-visible,
.apps-launcher-toggle.is-active {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(21, 23, 19, 0.12);
}

.apps-launcher-icon {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
}

.apps-launcher-icon span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.86;
}

.apps-launcher-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: max-content;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.apps-launcher-toggle:hover .apps-launcher-tooltip,
.apps-launcher-toggle:focus-visible .apps-launcher-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.apps-launcher-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 225;
  width: min(344px, calc(100vw - 36px));
  max-height: min(72vh, 620px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(218, 224, 236, 0.94);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(246, 248, 253, 0.98), rgba(237, 242, 250, 0.98));
  box-shadow: 0 26px 60px rgba(40, 48, 73, 0.2);
  backdrop-filter: blur(18px);
}

.apps-launcher-menu__title {
  display: block;
  color: #24324a;
  font-size: 1.02rem;
  font-weight: 700;
}

.apps-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(223, 229, 240, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.apps-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 96px;
  padding: 10px 6px 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #233047;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.apps-tile:hover,
.apps-tile:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.apps-tile__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  color: #2f4b7c;
  box-shadow: inset 0 0 0 1px rgba(214, 221, 234, 0.9), 0 8px 20px rgba(83, 103, 139, 0.12);
}

.apps-tile__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.apps-tile__label {
  width: 100%;
  color: #2a3445;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-wrap: balance;
}

.icon-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}

.icon-control::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: max-content;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.icon-control:hover::after,
.icon-control:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.control-icon circle {
  fill: currentColor;
  stroke: none;
}

.stage {
  flex: 1;
  display: grid;
  place-items: stretch;
  padding: clamp(22px, 5vw, 54px) 0 12px;
}

.screen {
  display: none;
  min-height: calc(100svh - 150px);
}

.screen.is-active {
  display: grid;
  animation: screenIn 220ms ease both;
}

.compose,
.map,
.choice-wrap,
.focus,
.reputation,
.public-profile,
.account {
  width: min(100%, 760px);
  margin: 0 auto;
}

.compose,
.choice-wrap {
  align-self: center;
}

.section-head,
.map-head,
.focus-head,
.rep-head,
.action-row,
.quiet-row,
.focus-actions,
.option-actions {
  display: flex;
  align-items: center;
}

.section-head,
.map-head,
.focus-head,
.rep-head,
.action-row,
.quiet-row,
.focus-actions {
  justify-content: space-between;
  gap: 14px;
}

.action-row {
  justify-content: flex-end;
}

.compose-controls,
.compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.compose-controls {
  margin: 14px 0 0;
}

.compose-actions {
  justify-content: flex-end;
}

.compose-actions .subtle,
.compose-actions .primary {
  flex: 0 0 auto;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.center {
  text-align: center;
}

#draftCount,
#objectiveCount,
#proofCount,
#repStatus {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.profile-status {
  display: block;
  min-height: 20px;
  margin-top: 10px;
}

#taskInput {
  width: 100%;
  min-height: min(50svh, 440px);
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  resize: vertical;
  padding: clamp(16px, 3vw, 26px);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

#taskInput::placeholder {
  color: #8a8f86;
}

.map {
  align-self: start;
  width: min(100%, 820px);
}

.map.is-mindmap-view {
  position: relative;
  width: 100%;
}

.map.is-mindmap-view .map-head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.map.has-objectives:not(.is-mindmap-view) .map-head {
  display: none;
}

.map-head {
  align-items: flex-end;
  margin-bottom: clamp(18px, 4vw, 28px);
}

.map h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.map-meta {
  display: grid;
  gap: 3px;
  text-align: right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.map-head:hover .map-meta,
.map-head:focus-within .map-meta {
  opacity: 1;
}

.map-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.objective-selection-bar,
.objective-bottleneck-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 5px;
  box-shadow: 0 12px 34px rgba(21, 23, 19, 0.11);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.objective-bottleneck-bar {
  padding-left: 12px;
}

.objective-selection-bar output {
  min-width: 28px;
  padding: 0 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.objective-bottleneck-bar span {
  font-size: 0.82rem;
  font-weight: 750;
}

.objective-selection-bar .icon-control,
.objective-bottleneck-bar .icon-control {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
}

.objective-selection-bar .icon-control:hover,
.objective-selection-bar .icon-control:focus-visible,
.objective-bottleneck-bar .icon-control:hover,
.objective-bottleneck-bar .icon-control:focus-visible {
  background: rgba(21, 23, 19, 0.06);
}

.map.is-mindmap-view .map-tools {
  position: absolute;
  top: 10px;
  left: calc(50% - 50vw + clamp(12px, 2vw, 32px));
  z-index: 30;
  flex-direction: row-reverse;
  gap: 6px;
  opacity: 0.38;
  transition: opacity 140ms ease;
}

.map.is-mindmap-view .map-tools:hover,
.map.is-mindmap-view .map-tools:focus-within {
  opacity: 1;
}

.map-add-trigger,
.map-view-trigger,
.map-bottleneck-trigger {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 0;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.map.is-mindmap-view .map-add-trigger,
.map.is-mindmap-view .map-view-trigger,
.map.is-mindmap-view .map-bottleneck-trigger {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.map.is-mindmap-view .map-add-trigger {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
}

.map.is-mindmap-view .map-tools:hover .map-add-trigger,
.map.is-mindmap-view .map-add-trigger:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.map-add-trigger:hover,
.map-view-trigger:hover,
.map-bottleneck-trigger:hover,
.map-view-trigger[aria-pressed="true"],
.map-bottleneck-trigger[aria-pressed="true"] {
  background: var(--panel);
  color: var(--ink);
  transform: translateY(-1px);
}

.map-add-trigger::after,
.map-view-trigger::after,
.map-bottleneck-trigger::after,
.objective-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: max-content;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.map-add-trigger:hover::after,
.map-add-trigger:focus-visible::after,
.map-view-trigger:hover::after,
.map-view-trigger:focus-visible::after,
.map-bottleneck-trigger:hover::after,
.map-bottleneck-trigger:focus-visible::after,
.objective-action[data-tooltip]:hover::after,
.objective-action[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-add-trigger::after,
.map-view-trigger::after,
.map-bottleneck-trigger::after {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 3px);
}

.map-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}

.map.is-mindmap-view .map-form:not(.is-hidden) {
  position: absolute;
  top: 10px;
  left: calc(50% - 50vw + clamp(12px, 2vw, 32px));
  z-index: 35;
  width: min(520px, calc(100vw - (clamp(12px, 2vw, 32px) * 2)));
  margin: 0;
  background: rgba(247, 248, 244, 0.72);
  backdrop-filter: blur(14px);
}

.map-form input,
.objective-child-form input,
.objective-rename-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
}

.map-canvas {
  margin-top: 18px;
  overflow: visible;
  border-top: 1px solid var(--line);
}

.map-canvas.is-mindmap {
  --mindmap-edge: clamp(12px, 2vw, 32px);
  width: calc(100vw - (var(--mindmap-edge) * 2));
  height: clamp(360px, 58svh, 620px);
  margin-left: calc(50% - 50vw + var(--mindmap-edge));
  overflow: auto;
  border-top: 0;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.map.is-mindmap-view .map-canvas.is-mindmap {
  height: calc(100svh - 112px);
  min-height: 420px;
  max-height: 760px;
  margin-top: 0;
}

.map-canvas.is-mindmap::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.objective-list {
  min-width: min(100%, 620px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mindmap-canvas {
  position: relative;
  min-height: min(58svh, 620px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background-image: radial-gradient(color-mix(in srgb, var(--line-strong) 44%, transparent) 0.75px, transparent 0.75px);
  background-size: 22px 22px;
  cursor: grab;
  touch-action: none;
}

.mindmap-empty {
  padding: 22px 0;
  color: var(--muted);
  font-weight: 650;
}

.mindmap-links {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.mindmap-links path {
  fill: none;
  stroke: var(--line-strong);
  stroke-linecap: round;
  stroke-width: 2;
}

.mindmap-links path.is-muted {
  opacity: 0.22;
}

.mindmap-links path.is-focus-path {
  opacity: 1;
  stroke: color-mix(in srgb, var(--accent) 56%, var(--line-strong));
  stroke-width: 3;
}

.mindmap-node {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 184px;
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  cursor: grab;
  box-shadow: 0 6px 18px rgba(21, 23, 19, 0.06);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  touch-action: none;
}

.mindmap-node:hover,
.mindmap-node:focus-visible,
.mindmap-node.is-selected {
  border-color: var(--line-strong);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 23, 19, 0.09);
}

.mindmap-node.is-root {
  font-weight: 650;
}

.mindmap-node.is-task {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.mindmap-node.is-focus-side {
  opacity: 0.32;
}

.mindmap-node.is-focus-target {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 10px 26px rgba(0, 128, 109, 0.12);
}

.mindmap-node.is-masked {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.36);
}

.mindmap-node.is-masked span {
  opacity: 0.24;
  filter: blur(8px);
}

.mindmap-node.is-dragging,
body.is-mindmap-dragging .mindmap-node {
  cursor: grabbing;
}

body.is-mindmap-panning,
body.is-mindmap-panning .mindmap-canvas {
  cursor: grabbing;
  user-select: none;
}

.mindmap-title {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.25;
}

.mindmap-node.is-root .mindmap-title {
  font-weight: 650;
}

.mindmap-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
}

.objective-list .objective-list {
  margin-left: 22px;
  padding-left: 18px;
}

.objective-branch {
  position: relative;
  transform-origin: top left;
  will-change: opacity, transform;
}

.objective-branch::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
  transform-origin: top;
}

.objective-branch.is-opening {
  animation: branchOpenMotion 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.objective-branch.is-opening::before {
  animation: branchLineOpenMotion 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.objective-branch.is-closing {
  pointer-events: none;
  animation: branchCloseMotion 190ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.objective-branch.is-closing::before {
  animation: branchLineCloseMotion 190ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.objective-item {
  position: relative;
}

.objective-list .objective-list .objective-item::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -16px;
  width: 16px;
  border-top: 1px solid var(--line);
}

.objective-node {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 4px;
  align-items: center;
  min-height: 40px;
  margin: 2px 0;
  transition: transform 140ms ease;
}

.objective-toggle,
.objective-toggle-spacer {
  width: 24px;
  height: 34px;
  align-self: center;
}

.objective-toggle {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.objective-toggle:hover,
.objective-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.objective-toggle .control-icon {
  width: 16px;
  height: 16px;
  transition: transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.objective-item.is-collapsed > .objective-node .objective-toggle .control-icon {
  transform: rotate(-90deg);
}

.objective-pick {
  position: relative;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  display: block;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 7px 8px;
  text-align: left;
  touch-action: pan-y;
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.objective-pick:hover {
  background: rgba(255, 255, 255, 0.72);
}

.objective-pick[aria-current="true"] {
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
}

.objective-item.is-selected > .objective-node .objective-pick {
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
}

.objective-list.is-bottleneck-mode .objective-item:not(.is-bottleneck-candidate) > .objective-node .objective-pick {
  opacity: 0.34;
}

.objective-list.is-focus-path-view .objective-item.is-focus-target > .objective-node .objective-pick,
.objective-list.is-focus-path-view .objective-item.is-focus-target > .objective-node .objective-pick[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}

.objective-item.needs-next-action > .objective-node .objective-pick {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
}

.objective-list.is-bottleneck-mode .objective-branch-actions {
  display: none !important;
}

.objective-list.is-bottleneck-mode .objective-item.is-bottleneck-candidate > .objective-node .objective-pick {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, var(--line));
}

.objective-list.is-bottleneck-mode .objective-item.is-bottleneck-candidate > .objective-node .objective-pick::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  transform: translateY(-50%);
}

.objective-list.is-bottleneck-mode .objective-item.is-bottleneck-candidate > .objective-node .objective-pick:hover,
.objective-list.is-bottleneck-mode .objective-item.is-bottleneck-candidate > .objective-node .objective-pick:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.objective-item.is-bottleneck-chosen > .objective-node .objective-pick,
.objective-item.is-bottleneck-chosen > .objective-node .objective-pick[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.objective-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.objective-title {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.32;
}

.objective-item.is-root > .objective-node .objective-title {
  font-weight: 650;
}

.objective-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.objective-pick[aria-current="true"] .objective-title,
.objective-pick[aria-current="true"] .objective-meta {
  color: inherit;
}

.objective-item.is-masked .objective-node .objective-pick,
.objective-item.is-masked .objective-node .objective-pick[aria-current="true"],
.objective-item.is-masked .objective-node .objective-pick:hover {
  background: rgba(255, 255, 255, 0.38);
  color: var(--muted);
}

.objective-item.is-masked .objective-node .objective-main {
  opacity: 0.28;
  filter: blur(8px);
  user-select: none;
  transition: opacity 140ms ease, filter 140ms ease;
}

.objective-item.is-masked .objective-node .objective-title,
.objective-item.is-masked .objective-node .objective-meta {
  color: var(--muted);
}

body.is-objective-dragging {
  cursor: grabbing;
  user-select: none;
}

body.is-objective-dragging .objective-branch-actions {
  display: none !important;
}

body.is-objective-dragging button,
body.is-objective-dragging .objective-pick {
  cursor: grabbing;
}

.objective-item.is-dragging > .objective-node {
  z-index: 6;
  opacity: 0.28;
}

.objective-item.is-dragging > .objective-node .objective-pick {
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.objective-item.is-drop-before > .objective-node::before,
.objective-item.is-drop-after > .objective-node::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 8px;
  z-index: 7;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.58;
  pointer-events: none;
}

.objective-item.is-drop-before > .objective-node::before {
  top: -3px;
}

.objective-item.is-drop-after > .objective-node::after {
  bottom: -3px;
}

.objective-item.is-drop-inside > .objective-node .objective-pick {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.objective-drag-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: grid;
  gap: 2px;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 10px;
  box-shadow: 0 14px 32px rgba(21, 23, 19, 0.14);
  opacity: 0.96;
  will-change: transform;
}

.objective-state {
  display: none;
}

.objective-branch-actions {
  display: none;
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
}

.objective-item:not(.is-task-item) > .objective-node:hover > .objective-branch-actions,
.objective-item:not(.is-task-item) > .objective-node:focus-within > .objective-branch-actions,
.objective-list.has-single-selection .objective-item.is-selected:not(.is-task-item) > .objective-node > .objective-branch-actions,
.objective-item.is-menu-open > .objective-node > .objective-branch-actions {
  display: flex;
}

.objective-branch-actions.is-task-actions {
  display: none;
}

.objective-item.is-task-item > .objective-node:hover > .objective-branch-actions.is-task-actions,
.objective-item.is-task-item > .objective-node:focus-within > .objective-branch-actions.is-task-actions,
.objective-list.has-single-selection .objective-item.is-selected.is-task-item > .objective-node > .objective-branch-actions.is-task-actions,
.objective-item.is-menu-open > .objective-node > .objective-branch-actions.is-task-actions {
  display: flex;
}

.objective-list:has(.objective-item.is-menu-open) .objective-item:not(.is-menu-open) > .objective-node > .objective-branch-actions,
.objective-list:has(.objective-node:hover) .objective-item:not(.is-menu-open):not(:has(> .objective-node:hover)) > .objective-node > .objective-branch-actions,
.objective-list:not(:has(.objective-node:hover)):has(.objective-node:focus-within) .objective-item:not(.is-menu-open):not(:has(> .objective-node:focus-within)) > .objective-node > .objective-branch-actions {
  display: none;
}

.objective-action {
  position: relative;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.objective-action.icon-action {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
}

.objective-action .control-icon {
  width: 18px;
  height: 18px;
}

.objective-action.icon-action .control-icon {
  width: 19px;
  height: 19px;
}

.objective-action.is-danger {
  color: var(--danger);
}

.objective-more-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.objective-more-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 112px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(21, 23, 19, 0.12);
}

.objective-more-menu button {
  min-height: 32px;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  padding: 0 9px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 650;
}

.objective-more-menu button:hover,
.objective-more-menu button:focus-visible {
  background: rgba(21, 23, 19, 0.06);
}

.objective-branch-actions.is-task-actions .objective-action.is-danger {
  min-height: 42px;
  background: var(--panel);
}

.objective-action[data-tooltip]::after {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 3px);
}

.objective-action[data-tooltip]:hover::after,
.objective-action[data-tooltip]:focus-visible::after {
  transform: translate(-50%, 0);
}

.objective-item:has(> .objective-child-form) > .objective-node > .objective-branch-actions,
.objective-item:has(> .objective-rename-form) > .objective-node > .objective-branch-actions {
  display: none;
}

.objective-child-form,
.objective-rename-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin: 0 0 10px 36px;
  padding: 0;
}

.primary {
  min-height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.primary:hover,
.choice-card:hover,
.objective-action:hover,
.subtle:hover,
.quiet-row button:hover,
.stepper button:hover,
.option-actions button:hover {
  transform: translateY(-1px);
}

.primary:active,
.choice-card:active,
.objective-action:active,
.subtle:active,
.quiet-row button:active,
.stepper button:active,
.option-actions button:active {
  transform: translateY(0) scale(0.99);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none !important;
}

.subtle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.primary.icon-control,
.subtle.icon-control,
.row-action.icon-control {
  padding: 0;
}

.day-timer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin-bottom: clamp(14px, 3vw, 22px);
  cursor: help;
}

.day-timer output {
  min-width: 78px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.day-timer:focus-visible {
  outline: 0;
}

.day-timer-hint {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  z-index: 30;
  min-width: max-content;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.day-timer.is-explaining .day-timer-hint {
  opacity: 1;
  transform: translateY(0);
}

.meter {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.meter span {
  position: absolute;
  inset: 0;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  background: var(--accent);
  transition: transform 300ms linear;
}

#dayEndInput {
  width: 82px;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 750;
}

#dayEndInput:hover,
#dayEndInput:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.choice-stack {
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto minmax(150px, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.choice-card {
  width: 100%;
  min-height: clamp(150px, 27svh, 255px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(20px, 5vw, 42px);
  text-align: left;
  transition: border 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-card:hover {
  border-color: var(--accent);
  box-shadow: 0 22px 65px rgba(8, 122, 98, 0.14);
}

.choice-card span {
  display: block;
  max-width: 30ch;
  overflow-wrap: anywhere;
  font-size: clamp(1.18rem, 3.2vw, 2rem);
  font-weight: 650;
  line-height: 1.24;
}

.divider-word {
  min-height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.quiet-row {
  margin-top: 14px;
}

.quiet-row button {
  flex: 1;
}

.focus {
  align-self: start;
}

.focus-head,
.rep-head {
  margin-bottom: clamp(18px, 4vw, 30px);
}

.focus-head {
  position: relative;
  outline: none;
}

.focus-head .stepper {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.focus-head.is-adjusting .stepper,
.focus-head:has(.stepper:focus-within) .stepper {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

h1,
#repScore,
#publicScore,
#accountName {
  margin: 4px 0 0;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

h2 {
  margin: 22px 0 10px;
  font-size: 0.9rem;
}

.avatar {
  width: clamp(58px, 10vw, 84px);
  height: clamp(58px, 10vw, 84px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  background-position: center;
  background-size: cover;
}

.profile-handle,
.profile-bio {
  margin: -16px 0 18px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-weight: 650;
}

.profile-bio {
  max-width: 52ch;
  margin-top: -8px;
  line-height: 1.45;
}

.stepper {
  display: grid;
  grid-template-columns: 40px 46px 40px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.stepper button {
  min-height: 40px;
  padding: 0;
  font-size: 1.1rem;
}

.stepper output {
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.top-list,
.all-list,
.done-list,
.proof-list,
.supporter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border-top: 1px solid var(--line);
  animation: rowIn 240ms ease both;
}

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

.top-list.is-single-visible .task-row {
  border-top: 0;
  border-bottom: 0;
}

.top-list.has-focus-task .task-row:not(.is-primary-bottleneck) {
  opacity: 0.42;
  transition: opacity 140ms ease;
}

.top-list.has-focus-task .task-row:not(.is-primary-bottleneck):hover,
.top-list.has-focus-task .task-row:not(.is-primary-bottleneck):focus-within {
  opacity: 1;
}

.rank {
  color: var(--accent);
  font-weight: 800;
}

.task-main {
  min-width: 0;
  display: grid;
  gap: 0;
}

.task-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.34;
}

.focus-path {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
  margin-top: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 1px 2px 4px 1px;
}

.focus-path-node {
  position: relative;
  flex: 0 0 auto;
  max-width: 180px;
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  padding: 6px 9px;
}

.focus-path-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 5px);
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--line-strong);
  transform: translateY(-50%);
}

.focus-path-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  width: 5px;
  height: 5px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}

.focus-path-node.is-root {
  border-color: var(--line-strong);
}

.focus-path-node.is-task {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.focus-path-role {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.focus-path-node.is-task .focus-path-role {
  color: currentColor;
}

.focus-path-label {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.18;
}

.task-row.done .task-text {
  color: var(--muted);
  text-decoration: line-through;
}

.row-action {
  min-width: 64px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.row-action.icon-control {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}

.task-row .row-action.icon-control::after {
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 120;
  transform: translate(-50%, 3px);
}

.task-row .row-action.icon-control:hover::after,
.task-row .row-action.icon-control:focus-visible::after {
  transform: translate(-50%, 0);
}

.task-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.top-list .task-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.top-list .task-row:hover .task-actions,
.top-list .task-row:has(.task-actions :focus-visible) .task-actions,
.top-list .task-row:has(.why-wrap:hover) .task-actions {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.why-wrap {
  position: relative;
  display: grid;
}

.why-wrap:hover {
  z-index: 110;
}

.why-wrap::after {
  content: "";
  position: absolute;
  left: -760px;
  right: 0;
  top: 100%;
  z-index: 89;
  display: none;
  height: 12px;
}

.why-wrap:hover::after {
  display: block;
}

.row-meta {
  display: none;
  place-items: center;
  min-width: 54px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.task-row:hover .row-meta,
.task-row:has(.row-meta:focus-visible) .row-meta {
  display: grid;
}

.row-meta.is-set {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.why-map-preview {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: min(760px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 18px 45px rgba(21, 23, 19, 0.12);
  padding: 10px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  transition: opacity 140ms ease, transform 140ms ease;
  backdrop-filter: blur(14px);
}

.why-wrap:hover .why-map-preview {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.why-map-path {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: max-content;
  overflow: visible;
  padding: 1px 2px 3px 1px;
}

.why-map-node {
  position: relative;
  flex: 0 0 118px;
  width: 118px;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
}

.why-map-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 7px);
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--line-strong);
  transform: translateY(-50%);
}

.why-map-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}

.why-map-node.is-root {
  flex-basis: 128px;
  border-color: var(--line-strong);
}

.why-map-node.is-task {
  flex-basis: 132px;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.why-map-role {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.why-map-node.is-task .why-map-role {
  color: currentColor;
}

.why-map-label {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 650;
}

.focus-actions {
  margin-top: 18px;
}

.focus > .focus-actions {
  justify-content: flex-end;
  gap: 8px;
}

.focus > .focus-actions,
.focus > .options {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: max-height 160ms ease, margin-top 160ms ease, opacity 140ms ease, transform 140ms ease;
}

.focus:hover > .focus-actions,
.focus:focus-within > .focus-actions {
  max-height: 52px;
  margin-top: 18px;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.focus:hover > .options,
.focus:focus-within > .options,
.focus > .options[open] {
  max-height: 720px;
  margin-top: 28px;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.focus-actions button {
  flex: 1;
}

.focus-actions button.icon-control {
  flex: 0 0 42px;
}

.options {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.focus > .options {
  border-top: 0;
}

.options summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.options > summary.icon-control {
  width: 42px;
  min-width: 42px;
  list-style: none;
}

.options > summary.icon-control::-webkit-details-marker {
  display: none;
}

.option-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.option-actions button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.option-actions #clearAll {
  color: var(--danger);
}

.done-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.list-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.all-list .task-row,
.done-list .task-row {
  min-height: 50px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  font-size: 0.9rem;
}

.all-list .rank,
.done-list .rank {
  color: var(--muted);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-metric-strip {
  grid-template-columns: minmax(0, 1fr);
}

.public-metric-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-strip span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.metric-strip span + span {
  border-left: 1px solid var(--line);
  padding-left: clamp(14px, 3vw, 24px);
}

.metric-strip strong {
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  line-height: 1;
}

.metric-strip small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.proof-block {
  margin-top: 28px;
}

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

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
}

.text-action {
  justify-self: start;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.account-note {
  display: block;
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.privacy-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.privacy-list label {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}

.privacy-list select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 10px;
}

.toggle-row input {
  justify-self: end;
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.is-hidden {
  display: none !important;
}

.account-actions {
  justify-content: flex-end;
}

.account-actions button {
  flex: 0 1 220px;
}

.proof-list {
  margin-top: 10px;
}

.proof-row,
.supporter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  border-top: 1px solid var(--line);
  animation: rowIn 240ms ease both;
}

.proof-row:last-child,
.supporter-row:last-child {
  border-bottom: 1px solid var(--line);
}

.proof-main,
.supporter-main {
  min-width: 0;
}

.proof-title,
.supporter-name {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.3;
}

.proof-meta,
.supporter-meta {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.proof-link {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.supporter-tag {
  min-width: 70px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.modal {
  width: min(calc(100% - 28px), 480px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 24px);
}

.modal::backdrop {
  background: rgba(21, 23, 19, 0.28);
}

.modal h2 {
  margin: 8px 0 16px;
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.25;
}

.modal form {
  position: relative;
  display: grid;
  gap: 12px;
}

.modal-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 0;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--ink);
  background: #fff;
}

.modal-close .control-icon {
  width: 16px;
  height: 16px;
}

.modal-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.modal textarea {
  min-height: 140px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes branchOpenMotion {
  0% {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.99);
  }
  62% {
    opacity: 0.86;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes branchCloseMotion {
  0% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
  42% {
    opacity: 0.74;
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.99);
  }
}

@keyframes branchLineOpenMotion {
  0% {
    opacity: 0;
    transform: scaleY(0.08);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes branchLineCloseMotion {
  0% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .objective-branch.is-opening,
  .objective-branch.is-closing {
    animation: none;
  }

  .objective-toggle .control-icon {
    transition: none;
  }

  .objective-branch.is-opening::before,
  .objective-branch.is-closing::before {
    animation: none;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 12px;
  }

  .topbar {
    top: 12px;
    right: 12px;
  }

  .nav button {
    flex: 0 0 auto;
  }

  .compose-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .map-form,
  .objective-child-form,
  .objective-rename-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .objective-state {
    grid-column: 2;
    justify-self: start;
  }

  .objective-child-form,
  .objective-rename-form {
    margin-left: 28px;
  }

  .compose-actions {
    width: 100%;
  }

  .compose-actions .subtle,
  .compose-actions .primary {
    flex: 1;
  }

  .screen {
    min-height: calc(100svh - 174px);
  }

  .choice-card {
    min-height: clamp(130px, 25svh, 210px);
  }

  .task-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .task-actions {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 4px;
  }

  .proof-row,
  .supporter-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0;
  }

  .proof-link,
  .supporter-tag {
    justify-self: start;
    text-align: left;
  }

  .privacy-list label {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 0;
  }

  .toggle-row input {
    justify-self: start;
  }
}
