* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #e6e4d6;
  color: #38472c;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #839640;
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
.board-head,
.board {
  max-width: 1440px;
  margin: auto;
  padding: 0 48px;
}
.board-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font:
    30px Georgia,
    serif;
}
.brand img {
  width: 48px;
  height: 48px;
}
.version {
  font-size: 12px;
  color: #676f59;
}
.quiet-link {
  margin-left: auto;
  font-size: 12px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 50px 0 32px;
  gap: 32px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #66773b;
  margin: 0 0 14px;
}
h1 {
  font:
    42px/1.16 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 0;
  color: #304824;
}
.intro > p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.intro > p span {
  color: #657052;
  font-size: 12px;
}
.workspace,
.mini {
  --paper: #f7f4e9;
  --panel: #eeeddd;
  --ink: #46533a;
  --strong: #2f4922;
  --meta: #697057;
  --accent: #5b7420;
  --leaf: #a9b74c;
  --line: #b7c48a;
  --ochre: #a56e31;
  --cloud: #5e7184;
  --focus: #839640;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
.theme-dark {
  --paper: #293626;
  --panel: #33412e;
  --ink: #d7dfc5;
  --strong: #eff1d7;
  --meta: #b3c1a1;
  --accent: #d0dc8a;
  --leaf: #b7cb64;
  --line: #718957;
  --ochre: #deba7d;
  --cloud: #a8bdcc;
  --focus: #d0dc8a;
}
.workspace {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 45px #34432408;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 30px;
  gap: 20px;
  background: var(--panel);
}
.app-wordmark {
  font:
    27px Georgia,
    serif;
  min-width: 150px;
  color: var(--strong);
}
.seed {
  font: 10px sans-serif;
  vertical-align: top;
  margin-left: 5px;
  color: var(--accent);
}
.workspace button,
.mini button {
  border: 0;
  background: transparent;
  padding: 0;
}
.mode-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mode-switch button {
  font-size: 14px;
  min-height: 44px;
  padding: 0 23px;
  border-radius: 24px;
  color: var(--meta);
}
.mode-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--paper);
}
.bar-end {
  display: flex;
  gap: 20px;
  align-items: center;
}
.history-btn {
  font-size: 13px;
  min-height: 44px;
  color: var(--meta);
}
.theme-button {
  width: 44px;
  height: 44px;
  font-size: 24px;
  color: var(--accent);
}
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 36px 12px;
  gap: 24px;
}
.view-kicker {
  margin: 0 0 3px;
  font-size: 12px;
  color: var(--meta);
}
.view-head h2 {
  font:
    29px Georgia,
    serif;
  margin: 0;
  color: var(--strong);
}
.view-tools {
  display: flex;
  align-items: center;
  gap: 26px;
}
.view-tools > span {
  font-size: 11px;
  color: var(--meta);
}
.add-root {
  font-size: 14px;
  color: var(--accent);
  min-height: 44px;
}
.view {
  height: 560px;
  overflow: auto;
  position: relative;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.view.map-view {
  cursor: grab;
  touch-action: none;
}
.view.map-view.panning {
  cursor: grabbing;
}
.map-stage {
  position: relative;
  transform-origin: 0 0;
}
.map-stage svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.map-stage path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.6;
}
.map-node {
  position: absolute;
  width: 200px;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: default;
}
.map-node .node-title {
  min-height: 36px;
  padding: 4px 8px;
  display: block;
  width: 100%;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.map-node.root .node-title {
  font-size: 18px;
  color: var(--accent);
}
.map-node.selected .node-title {
  color: var(--strong);
}
.map-node .node-date {
  font-size: 11px;
  color: var(--meta);
}
.map-node.done .node-title {
  color: var(--cloud);
  text-decoration: line-through;
}
.map-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  height: 44px;
  position: absolute;
  top: 100%;
  width: 100%;
}
.map-actions button {
  width: 44px;
  height: 44px;
  font-size: 23px;
  color: var(--accent);
}
.map-center {
  position: absolute;
  width: 100px;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--strong);
  font:
    24px Georgia,
    serif;
}
.map-center img {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
}
.app-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 30px;
  font-size: 11px;
  color: var(--meta);
  background: var(--panel);
}
.app-footer button {
  min-height: 44px;
}
.zoom {
  display: flex;
  gap: 15px;
  align-items: center;
}
.zoom button {
  min-width: 36px;
  font-size: 18px;
}
.zoom #zoom-fit {
  font-size: 11px;
  padding: 0 5px;
}
.zoom span {
  min-width: 32px;
  text-align: center;
}
.notice {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  background: var(--panel);
  color: var(--ochre);
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 13px;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.notice.show {
  opacity: 1;
}
.outline,
.day-list,
.history-view {
  max-width: 790px;
  margin: auto;
  padding: 14px 32px 50px;
}
.task-row {
  position: relative;
  padding-left: calc(var(--depth, 0) * 26px);
  min-height: 48px;
  display: flex;
  align-items: start;
  gap: 5px;
  transition:
    opacity 0.2s,
    color 0.2s,
    transform 0.2s;
}
.task-row.root-row:not(:first-child) {
  margin-top: 16px;
}
.bullet-space {
  flex: 0 0 30px;
  height: 44px;
  display: grid;
  place-items: center;
}
.bullet {
  width: 5px;
  height: 5px;
  background: var(--leaf);
  border-radius: 50%;
}
.task-row .check {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  margin-right: -7px;
}
.check i {
  width: 19px;
  height: 19px;
  border: 1.4px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-style: normal;
  color: var(--paper);
}
.done .check i {
  background: var(--cloud);
  border-color: var(--cloud);
}
.task-content {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
}
.task-title {
  line-height: 24px;
  overflow-wrap: anywhere;
  cursor: default;
  color: var(--ink);
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
.task-row.selected .task-title {
  color: var(--strong);
}
.task-row.root-row .task-title {
  color: var(--accent);
}
.task-row.done .task-title {
  color: var(--cloud);
  text-decoration: line-through;
}
.task-row.done .task-path {
  color: var(--cloud);
}
.task-path {
  font-size: 11px;
  line-height: 17px;
  color: var(--meta);
  margin-top: 2px;
}
.task-date {
  font-size: 11px;
  color: var(--meta);
  min-width: 57px;
  min-height: 44px;
  padding: 0 3px !important;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  align-items: center;
}
.row-actions .plus {
  width: 36px;
  height: 44px;
  font-size: 23px;
  color: var(--accent);
}
.inline-edit {
  font: inherit;
  line-height: 24px;
  color: var(--strong);
  width: 100%;
  border: 0;
  background: transparent;
  outline-offset: 3px;
  padding: 0;
}
.edit-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  padding: 8px 0;
  color: var(--accent);
  flex-wrap: wrap;
}
.edit-tools input {
  max-width: 135px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px;
}
.task-row.nudge .task-title,
.map-node.nudge .node-title {
  color: var(--ochre);
}
.day-section {
  padding-bottom: 27px;
}
.day-heading {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: 10px 0 15px;
  color: var(--strong);
}
.day-heading h3 {
  font:
    23px Georgia,
    serif;
  margin: 0;
}
.day-heading span {
  font-size: 12px;
  color: var(--meta);
}
.day-section.today .day-heading h3 {
  color: var(--accent);
  font-size: 29px;
}
.day-section.today .day-heading h3:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  margin: 0 10px 4px 0;
}
.day-list .task-row {
  padding-left: 0;
  min-height: 65px;
}
.day-list .bullet {
  display: none;
}
.day-empty {
  color: var(--meta);
  font-size: 13px;
  margin: 0 0 0 30px;
}
.demo-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #687157;
  margin: 14px 0 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin: 72px 0 28px;
}
.section-title h2 {
  font:
    30px/1.2 Georgia,
    serif;
  margin: 0;
}
.section-title > p {
  font-size: 13px;
  margin: 0;
  color: #626e51;
}
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.phone-wrap {
  min-width: 0;
}
.phone-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #5f6c4b;
  margin-bottom: 13px;
}
.mini {
  height: 640px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 390px;
  margin: auto;
  box-shadow: 0 0 0 1px #72795b33;
}
.mini-status {
  display: flex;
  justify-content: space-between;
  padding: 16px 23px 10px;
  font-size: 11px;
  color: var(--strong);
}
.mini-head {
  padding: 22px 22px 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.mini-head h3 {
  font:
    29px Georgia,
    serif;
  margin: 0;
  color: var(--strong);
}
.mini-head p {
  font-size: 11px;
  color: var(--meta);
  margin: 6px 0 0;
}
.mini-head > span {
  font-size: 12px;
  color: var(--meta);
}
.mini-content {
  flex: 1;
  overflow: hidden;
  padding: 0 15px;
}
.mini .task-title {
  font-size: 15px;
}
.mini .task-row {
  --depth-step: 18px;
  padding-left: calc(var(--depth, 0) * 18px);
}
.mini .task-date {
  font-size: 10px;
  min-width: 46px;
}
.mini .bullet-space {
  flex-basis: 23px;
}
.mini .task-path {
  font-size: 10px;
}
.mini .day-heading {
  margin: 5px 0 10px;
}
.mini .day-heading h3 {
  font-size: 23px;
}
.mini .day-section {
  padding-bottom: 14px;
}
.mini .day-list {
  padding: 0;
}
.mini .day-list .task-row {
  min-height: 65px;
}
.mini-nav {
  display: flex;
  justify-content: space-around;
  padding: 14px 12px 22px;
  background: var(--paper);
  font-size: 12px;
  color: var(--meta);
}
.mini-nav .active {
  color: var(--accent);
  position: relative;
}
.mini-nav .active:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.mini-map {
  padding: 0;
  position: relative;
}
.mini-map svg {
  width: 650px;
  height: 420px;
  position: absolute;
  left: -85px;
  top: 0;
}
.mini-map path {
  stroke: var(--line);
  stroke-width: 1.5;
  fill: none;
}
.mini-map text {
  font:
    14px -apple-system,
    sans-serif;
  fill: var(--ink);
}
.mini-map text.strong {
  fill: var(--accent);
  font-size: 17px;
}
.mini-map text.small {
  font-size: 10px;
  fill: var(--meta);
}
.map-pan-note {
  position: absolute;
  bottom: 18px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: var(--meta);
}
.phone-footnote {
  font-size: 12px;
  color: #647052;
  margin-top: 16px;
  max-width: 360px;
}
.section-note {
  font-size: 12px;
  color: #647052;
  max-width: 840px;
  margin-top: 28px;
}
.theme-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.palette {
  padding: 28px 30px;
  border-radius: 18px;
}
.palette h3 {
  font:
    24px Georgia,
    serif;
  margin: 0 0 24px;
}
.light-palette {
  background: #f7f4e9;
}
.dark-palette {
  background: #293626;
  color: #e4eacd;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.swatches span {
  font-size: 11px;
}
.swatches span:before {
  content: "";
  display: block;
  height: 50px;
  border-radius: 8px;
  background: var(--sw);
  margin-bottom: 9px;
  box-shadow: inset 0 0 0 1px #80876a33;
}
.empty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.empty-grid article {
  padding: 30px;
  background: #f7f4e9;
  border-radius: 18px;
  min-height: 240px;
}
.empty-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #6c775a;
}
.empty-grid h3 {
  font:
    25px Georgia,
    serif;
  margin: 28px 0 12px;
}
.empty-grid p {
  font-size: 13px;
  color: #667155;
}
.empty-action {
  font-size: 13px;
  color: #5b7420;
  display: inline-block;
  margin-top: 12px;
}
.empty-grid .night-empty {
  background: #293626;
  color: #e4eacd;
}
.night-empty p,
.night-empty .empty-label {
  color: #b3c1a1;
}
.board-footer {
  font-size: 12px;
  color: #627052;
  padding: 45px 0 60px;
  max-width: 920px;
}
.history-view h3 {
  font:
    23px Georgia,
    serif;
}
.history-view p {
  font-size: 13px;
  color: var(--meta);
}
.history-view .history-task {
  color: var(--cloud);
  padding: 10px 0;
}
.new-row {
  animation: new-row 0.22s ease-out;
}
@keyframes new-row {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}
@media (hover: hover) {
  .task-row:hover .task-title,
  .map-node .node-title:hover {
    color: var(--strong);
  }
  button:hover {
    filter: brightness(1.08);
  }
}
@media (max-width: 1050px) {
  .board-head,
  .board {
    padding-left: 24px;
    padding-right: 24px;
  }
  .view-tools > span {
    display: none;
  }
  .phones {
    gap: 20px;
  }
  .mini .task-title {
    font-size: 14px;
  }
  .mini .task-row {
    padding-left: calc(var(--depth, 0) * 12px);
  }
  .intro h1 {
    font-size: 35px;
  }
  .section-title h2 {
    font-size: 27px;
  }
}
@media (max-width: 760px) {
  .board-head,
  .board {
    padding-left: 16px;
    padding-right: 16px;
  }
  .board-head {
    gap: 12px;
    padding-top: 20px;
  }
  .brand {
    font-size: 25px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .version {
    font-size: 10px;
  }
  .quiet-link {
    display: none;
  }
  .intro {
    display: block;
    margin: 32px 0 24px;
  }
  .intro h1 {
    font-size: 32px;
  }
  .intro > p {
    margin-top: 20px;
  }
  .workspace {
    border-radius: 16px;
  }
  .app-bar {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .app-wordmark {
    min-width: 0;
    flex: 1;
    font-size: 23px;
  }
  .bar-end {
    gap: 10px;
  }
  .mode-switch {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 5px;
  }
  .mode-switch button {
    padding: 0 20px;
    flex: 1;
  }
  .view-head {
    padding: 22px 18px 10px;
    gap: 8px;
  }
  .view-head h2 {
    font-size: 26px;
  }
  .view-kicker {
    font-size: 10px;
  }
  .view {
    height: 530px;
  }
  .outline,
  .day-list,
  .history-view {
    padding: 10px 10px 30px;
  }
  .task-row {
    padding-left: calc(var(--depth, 0) * 16px);
    gap: 0;
  }
  .task-title {
    font-size: 15px;
  }
  .task-date {
    font-size: 10px;
    min-width: 48px;
  }
  .bullet-space {
    flex-basis: 25px;
  }
  .row-actions .plus {
    width: 30px;
  }
  .app-footer {
    padding: 6px 12px;
    gap: 10px;
  }
  .app-footer > span {
    display: none;
  }
  .demo-caption {
    display: block;
    font-size: 10px;
  }
  .demo-caption span {
    display: block;
    margin-top: 5px;
  }
  .section-title {
    display: block;
    margin-top: 48px;
  }
  .section-title > p {
    margin-top: 16px;
  }
  .phones,
  .empty-grid,
  .theme-pair {
    grid-template-columns: 1fr;
  }
  .phone-wrap {
    max-width: 390px;
    width: 100%;
    margin: auto;
  }
  .mini .task-row {
    padding-left: calc(var(--depth, 0) * 18px);
  }
  .mini .task-title {
    font-size: 15px;
  }
  .palette {
    padding: 24px;
  }
  .swatches {
    gap: 8px;
  }
  .empty-grid article {
    min-height: 220px;
  }
  .notice {
    width: 90%;
    font-size: 12px;
  }
  .task-path {
    font-size: 10px;
  }
  .zoom {
    gap: 8px;
  }
  .history-btn {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Refinement: framed map nodes, brown connections, direct date picker. */
.workspace,
.mini {
  --branch: #93704e;
  --node-border: #a3ad7b;
}
.theme-dark {
  --branch: #b7956d;
  --node-border: #7f9563;
}
.map-stage path,
.mini-map path {
  stroke: var(--branch);
}
.map-sizer {
  margin: 0 auto;
}
.map-node {
  width: 190px;
  border: 1px solid var(--node-border);
  border-radius: 13px;
  background: var(--paper);
  padding: 6px 8px;
}
.map-node .node-title {
  padding: 3px 2px;
  min-height: 30px;
}
.map-node .node-date {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
}
.map-node .map-actions {
  position: static;
  gap: 4px;
  height: 36px;
}
.map-node .map-actions button {
  height: 36px;
  width: 40px;
  display: grid;
  place-items: center;
}
.map-center {
  padding: 10px 0;
  border: 1px solid var(--node-border);
  border-radius: 16px;
  background: var(--paper);
}
.date-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.date-control:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 5px;
}
.date-picker {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  margin: 0;
  padding: 0;
  color-scheme: light;
}
.theme-dark .date-picker {
  color-scheme: dark;
}
.date-picker::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.mini-node-borders rect {
  fill: var(--paper);
  stroke: var(--node-border);
  stroke-width: 1;
}
/* Application shell: the approved board becomes a full-height PWA. */
[hidden] {
  display: none !important;
}
body {
  background: #f7f4e9;
  overflow: hidden;
}
html,
body {
  height: 100%;
  overscroll-behavior: none;
}
.workspace {
  height: 100dvh;
  min-height: 400px;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.app-bar,
.view-head,
.app-footer {
  flex-shrink: 0;
}
.view {
  height: auto;
  flex: 1;
  min-height: 0;
}
.app-wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.app-wordmark img {
  width: 32px;
  height: 32px;
}
.view-head h1 {
  font:
    29px Georgia,
    serif;
  letter-spacing: normal;
  color: var(--strong);
  margin: 0;
}
.account-button {
  width: 44px;
  height: 44px;
  font-size: 26px;
}
.theme-button {
  font-size: 26px;
}
.app-footer {
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.task-row .task-title {
  min-height: 24px;
}
.task-row .edit-tools button {
  min-height: 30px;
  padding: 4px;
}
.task-row.selected .task-title {
  font-weight: 400;
}
.outline {
  max-width: 850px;
}
.outline .root-row .task-title {
  font-size: 18px;
}
.task-row.root-row:not(:first-child) {
  margin-top: 16px;
}
.map-node .node-title {
  font: inherit;
  font-size: 15px;
  line-height: 24px;
  min-height: 32px;
  white-space: normal;
}
.map-node.root .node-title {
  font-size: 18px;
}
.map-node .map-actions {
  height: 44px;
}
.map-node .map-actions button {
  height: 44px;
  width: 44px;
}
.node-date.date-control {
  min-height: 36px;
}
.map-node {
  padding: 8px 10px;
}
.map-center img {
  margin: auto auto 6px;
}
.map-node .inline-edit {
  font-size: 15px;
  min-height: 30px;
  resize: vertical;
}
.task-content textarea {
  resize: none;
  min-height: 24px;
  overflow: hidden;
}
.date-picker {
  min-width: 0;
}
.task-date {
  min-width: 60px;
}
.row-actions .plus {
  width: 44px;
}
.task-row .check {
  min-width: 44px;
}
.task-path {
  overflow-wrap: anywhere;
}
.order-tools {
  display: flex;
  gap: 8px;
}
.order-tools button {
  min-height: 36px;
  min-width: 44px;
  color: var(--accent);
  font-size: 13px;
}
.day-heading .day-date {
  font-size: 12px;
  color: var(--meta);
}
.day-section {
  scroll-margin-top: 14px;
}
.day-section .root-row {
  margin-top: 0;
}
.task-row.leaving {
  opacity: 0;
  transform: translateX(30px);
}
.task-row.lifted {
  z-index: 20;
  transform: scale(1.015);
  background: var(--paper);
  box-shadow: 0 14px 28px -12px #29362666;
  border-radius: 10px;
  cursor: grabbing;
  touch-action: none;
}
.task-row.drop-target:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 25px;
  right: 0;
  background: var(--leaf);
}
.day-list .task-row {
  touch-action: pan-y;
}
.task-row.drag-source {
  opacity: 0.35;
}
.drag-clone {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--strong);
  border-radius: 12px;
  box-shadow: 0 12px 30px #1f321a33;
  font-size: 16px;
  max-width: 90vw;
}
.history-view .history-task {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: baseline;
}
.history-task small {
  font-size: 11px;
  color: var(--meta);
  white-space: nowrap;
}
.history-task .task-path {
  margin-top: 5px;
}
.empty-state {
  padding: 70px 25px;
  text-align: center;
  color: var(--meta);
}
.empty-state h2 {
  font:
    30px Georgia,
    serif;
  color: var(--strong);
  margin: 0 0 14px;
}
.empty-state p {
  font-size: 14px;
}
.empty-state button {
  color: var(--accent);
  min-height: 44px;
  margin-top: 12px;
}
.loading {
  color: #697057;
  text-align: center;
  padding: 80px;
}
.auth-screen {
  height: 100dvh;
  overflow: auto;
  background: #f7f4e9;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  max-width: 380px;
  width: 100%;
  color: #46533a;
}
.auth-card img {
  display: block;
  margin: 0 0 24px;
}
.auth-card h1 {
  font:
    32px/1.2 Georgia,
    serif;
  letter-spacing: 0;
}
.auth-card p {
  font-size: 14px;
  color: #697057;
}
.auth-card label {
  display: block;
  font-size: 13px;
  margin: 22px 0 0;
}
.auth-card input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  background: #fcfaf3;
  border: 1px solid #a3ad7b;
  border-radius: 10px;
  padding: 10px 12px;
  color: #2f4922;
}
.primary {
  background: #5b7420;
  border: 0;
  border-radius: 20px;
  padding: 12px 24px;
  color: #f7f4e9;
  min-height: 44px;
}
.auth-card .primary {
  width: 100%;
  margin: 16px 0 4px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #5b7420;
  min-height: 44px;
  padding: 10px 0;
}
.auth-card .text-button {
  display: block;
  margin: auto;
}
.auth-card #auth-error {
  color: #8d4f23;
  min-height: 20px;
}
.auth-card #auth-note {
  font-size: 11px;
  margin-top: 24px;
}
dialog {
  max-width: 560px;
  width: calc(100% - 36px);
  border: 1px solid #a3ad7b;
  background: #f7f4e9;
  color: #46533a;
  border-radius: 20px;
  padding: 28px;
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #23331f55;
}
dialog h2 {
  font:
    28px Georgia,
    serif;
}
dialog .dialog-close {
  float: right;
  background: none;
  border: 0;
  font-size: 24px;
  width: 44px;
  height: 44px;
  color: inherit;
}
dialog > .primary,
dialog > .text-button {
  display: block;
  margin-top: 12px;
}
dialog p {
  font-size: 14px;
}
body.dark {
  background: #293626;
}
body.dark dialog {
  background: #293626;
  color: #d7dfc5;
  border-color: #7f9563;
}
body.dark dialog .primary {
  background: #d0dc8a;
  color: #293626;
}
body.dark dialog .text-button {
  color: #d0dc8a;
}
.conflict-item {
  padding: 15px 0;
  border-top: 1px solid #9ba77c;
}
.conflict-item pre {
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.6 inherit;
}
.conflict-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
#jump-label {
  color: var(--meta);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#jump-day {
  font-size: 12px;
  border: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 7px;
  border-radius: 7px;
  min-height: 44px;
  max-width: 150px;
}
.theme-dark input[type="date"] {
  color-scheme: dark;
}
.map-node.done .node-title {
  color: var(--cloud);
}
.task-row.done:hover .task-title {
  color: var(--cloud);
}
.task-row:focus-visible,
.map-node:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.map-node:focus-within {
  outline-offset: 4px;
}
.workspace button:focus-visible {
  outline-color: var(--focus);
}
.day-heading {
  padding-left: 26px;
}
#sync-status {
  font-size: 11px;
  color: var(--meta);
  text-align: left;
}
.map-actions .check i {
  width: 20px;
  height: 20px;
}
.map-stage {
  user-select: none;
}
.map-stage input,
.map-stage textarea {
  user-select: text;
}
.row-draft {
  animation: new-row 0.2s ease-out;
}
@media (max-width: 760px) {
  .app-bar {
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .app-wordmark {
    font-size: 23px;
  }
  .bar-end {
    gap: 3px;
  }
  .account-button {
    width: 36px;
  }
  .view-head {
    padding: 20px 16px 8px;
  }
  .view-head h1 {
    font-size: 26px;
  }
  .view {
    height: auto;
  }
  .app-footer {
    min-height: 52px;
  }
  .outline,
  .day-list {
    padding-left: 12px;
    padding-right: 12px;
  }
  .task-row {
    padding-left: calc(var(--depth, 0) * 18px);
  }
  .task-content {
    padding-top: 10px;
  }
  .task-title {
    font-size: 16px;
  }
  .task-date {
    font-size: 11px;
    min-width: 53px;
  }
  .row-actions .plus {
    width: 38px;
  }
  .task-row .bullet-space {
    flex-basis: 28px;
  }
  .day-heading {
    padding-left: 28px;
  }
  .zoom {
    gap: 4px;
  }
  .zoom #zoom-fit {
    display: none;
  }
  .zoom button {
    min-width: 32px;
  }
  .app-footer > span {
    display: none;
  }
  .view-tools {
    gap: 8px;
  }
  #jump-label {
    font-size: 0;
  }
  #jump-day {
    max-width: 124px;
    font-size: 12px;
  }
  .notice {
    bottom: 66px;
  }
  .history-view {
    padding: 20px;
  }
  .history-view .history-task {
    display: block;
  }
  .history-task small {
    display: block;
    margin: 5px 0 0;
  }
  .map-node .node-title {
    font-size: 16px;
  }
}
.day-heading h2 {
  font:
    23px Georgia,
    serif;
  color: var(--strong);
  margin: 0;
}
.day-section.today .day-heading h2 {
  font-size: 29px;
  color: var(--accent);
}
.day-section.today .day-heading h2:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  margin: 0 10px 4px 0;
}
