:root {
  --bg: #f6f7f3;
  --paper: #fff;
  --ink: #253d35;
  --muted: #6b786e;
  --line: #e5e9e1;
  --green: #17634d;
  --deep: #134c3d;
  --mint: #e9f1e9;
  --accent: #c9df9e;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
input:focus,
textarea:focus {
  outline: 2px solid #83ad91;
  outline-offset: 1px;
}
button,
input,
textarea {
  touch-action: manipulation;
}
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
button {
  font-size: 13px;
  font-weight: 500;
}
input,
textarea {
  min-width: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 12px;
  font-size: 15px;
}
input::placeholder,
textarea::placeholder {
  color: #8c938b;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  width: 100%;
  min-height: 150px;
}
label {
  font-size: 13px;
  font-weight: 500;
  display: block;
}
label input {
  display: block;
  margin-top: 8px;
  width: 100%;
  min-height: 46px;
}
.header {
  height: 89px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand > span:not(.brand-mark):not(.brand-dot) {
  font-weight: 400;
}
.brand-dot {
  color: var(--green);
}
.brand-mark {
  display: flex;
  align-items: end;
  gap: 3px;
  margin-right: 10px;
  height: 23px;
}
.brand-mark i {
  display: block;
  width: 5px;
  background: var(--green);
  border-radius: 2px;
}
.brand-mark i:nth-child(1) {
  height: 10px;
}
.brand-mark i:nth-child(2) {
  height: 16px;
}
.brand-mark i:nth-child(3) {
  height: 23px;
  background: #8daf74;
}
.desktop-nav {
  display: flex;
  gap: 6px;
  align-self: stretch;
  align-items: center;
}
.desktop-nav button {
  padding: 12px 20px;
  color: var(--muted);
  border-radius: 9px;
}
.desktop-nav button.active {
  background: var(--mint);
  color: var(--green);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.status-button {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #8dab7c;
  border-radius: 50%;
}
.icon-button {
  min-width: 38px;
  min-height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
}
.icon-button:hover {
  background: var(--mint);
}
main {
  max-width: 1660px;
  padding: 0 4%;
  margin: auto;
  outline: none;
}
.page-intro {
  padding: 44px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 43px;
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin-top: 12px;
}
.intro-copy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.intro-right {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.progress-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) var(--progress), var(--line) 0);
}
.progress-ring:before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--green);
}
.intro-right strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 5px;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.planner {
  overflow: hidden;
  min-height: 595px;
  display: flex;
  flex-direction: column;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.planner > .panel-head {
  padding: 18px 20px;
}
.week-heading {
  display: flex;
  align-items: center;
  gap: 3px;
}
.week-heading h2 {
  font-size: 15px;
  min-width: 130px;
  text-align: center;
}
.planner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quiet-button {
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
  min-height: 40px;
}
.quiet-button:hover {
  border-color: #b9c6b4;
}
.segmented {
  padding: 3px;
  display: flex;
  border-radius: 8px;
  background: var(--bg);
}
.segmented button {
  padding: 7px 12px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 6px;
}
.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #253d3510;
}
.date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 15px;
  gap: 6px;
}
.date-chip {
  border-radius: 12px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  position: relative;
}
.date-chip span {
  font-size: 10px;
}
.date-chip strong {
  font-weight: 500;
  font-size: 19px;
}
.date-chip.today strong {
  color: var(--green);
}
.date-chip.active {
  background: var(--green);
  color: #fff;
}
.date-chip.active strong {
  color: #fff;
}
.date-chip i {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
}
.day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 28px 17px;
  gap: 10px;
}
.day-summary h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.text-button {
  font-size: 12px;
  color: var(--green);
  padding: 8px 0;
  min-height: 36px;
  white-space: nowrap;
}
.task-composer {
  margin: 0 28px 20px;
  padding: 5px 5px 5px 13px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  gap: 9px;
  background: var(--bg);
}
.task-composer:focus-within {
  border-color: #8caf90;
  box-shadow: 0 0 0 2px #8caf9025;
}
.task-composer input {
  border: 0;
  padding: 10px 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  flex: 1;
}
.composer-plus {
  color: var(--muted);
  font-size: 21px;
}
.primary {
  padding: 12px 17px;
  background: var(--green);
  color: white;
  border-radius: 8px;
  min-height: 42px;
  white-space: nowrap;
}
.primary:hover {
  background: var(--deep);
}
.primary span {
  margin-left: 10px;
  opacity: 0.7;
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 0 28px;
}
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  min-height: 62px;
  padding: 9px 0;
}
.check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  padding: 0;
}
.check span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1.5px solid #cad3c8;
  border-radius: 6px;
  color: transparent;
  font-size: 12px;
}
.task.done .check span {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--green);
}
.task-main {
  flex: 1;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
  min-width: 0;
  padding: 7px 0;
}
.task.done .task-main {
  text-decoration: line-through;
  color: #92988e;
}
.task-time {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}
.task-menu {
  color: #90998f;
  font-size: 19px;
  letter-spacing: 1px;
}
.conflict-tag {
  font-size: 10px;
  color: #8d662a;
  display: block;
}
.planner-bottom {
  margin-top: auto;
  padding: 24px 28px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #939b90;
}
.side-stack {
  display: grid;
  gap: 20px;
}
.focus-card {
  background: var(--deep);
  color: #f7faf1;
  border-radius: var(--radius);
}
#focus-mini {
  padding: 20px 24px 23px;
}
.focus-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.focus-card .eyebrow {
  color: #bad0bb;
  font-size: 9px;
}
.focus-top .icon-button {
  color: #b6cdbb;
  font-size: 20px;
  min-width: 30px;
  min-height: 30px;
}
.focus-card .icon-button:hover {
  background: #ffffff12;
}
#mini-focus-title {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  margin-top: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-timer {
  font-size: 53px;
  font-weight: 300;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  margin-top: 19px;
}
.mini-timer span {
  opacity: 0.45;
}
.focus-mini-bottom {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.focus-mini-bottom > span {
  color: #b3c8b6;
  font-size: 11px;
}
.light-button {
  background: #e1eccc;
  color: #244d35;
  padding: 12px 16px;
  border-radius: 8px;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.light-button:hover {
  background: #eff5e0;
}
.calendar-card {
  padding: 20px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.cal-head h2 {
  font-size: 14px;
}
.cal-head .icon-button {
  font-size: 21px;
  min-width: 28px;
  min-height: 32px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}
.cal-weekday {
  font-size: 9px;
  color: #959c92;
  padding: 6px 0;
}
.cal-day {
  border-radius: 9px;
  aspect-ratio: 1;
  font-size: 11px;
  position: relative;
  padding: 0;
  min-width: 0;
}
.cal-day.today {
  background: var(--mint);
  color: var(--green);
}
.cal-day.journal:after {
  content: "✓";
  position: absolute;
  font-size: 9px;
  right: 0;
  bottom: 0;
  color: var(--green);
}
.cal-day.selected {
  outline: 1px solid #87aa7f;
  outline-offset: -2px;
}
.cal-day:hover {
  background: var(--bg);
}
.cal-legend {
  font-size: 10px;
  color: var(--muted);
  padding-top: 15px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.cal-legend span {
  color: var(--green);
}
.reflection-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.small-card {
  padding: 20px 24px;
}
.small-card h2 {
  font-size: 14px;
}
.inline-capture {
  display: flex;
  align-items: center;
  margin-top: 15px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.inline-capture input {
  border: 0;
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  width: 100%;
}
.inline-capture .icon-button {
  font-size: 20px;
  color: var(--green);
}
.journal-preview {
  font-size: 13px;
  margin-top: 22px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.footer {
  padding: 30px 2px 27px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #8c958a;
}
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty-symbol {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #97ac88;
  font-size: 19px;
}
.empty p {
  margin-top: 6px;
  font-size: 12px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0 12px;
  flex: 1;
}
.week-column {
  border-right: 1px solid var(--line);
  min-height: 255px;
  padding: 0 7px;
  min-width: 0;
}
.week-column:last-child {
  border-right: 0;
}
.week-column.drag-over {
  background: var(--mint);
}
.week-column .task-list {
  margin: 0;
}
.week-column .task {
  align-items: start;
  gap: 3px;
  padding: 11px 0;
  min-height: 0;
  position: relative;
  flex-wrap: wrap;
}
.week-column .check {
  width: 24px;
  height: 29px;
}
.week-column .check span {
  width: 16px;
  height: 16px;
  border-radius: 5px;
}
.week-column .task-main {
  font-size: 12px;
  padding: 4px 0;
  flex-basis: calc(100% - 29px);
}
.week-column .task-menu {
  display: none;
}
.column-add {
  font-size: 11px;
  color: #88977f;
  width: 100%;
  padding: 13px 0;
  text-align: left;
}
.week-empty {
  font-size: 11px;
  color: #a7afa2;
  margin-top: 12px;
}
.week-mode .day-summary {
  padding-top: 16px;
  padding-bottom: 12px;
}
.week-mode .day-summary h3 {
  font-size: 14px;
}
.week-mode .task-composer {
  margin-bottom: 12px;
}
.week-mode .planner-bottom {
  padding-top: 15px;
}
.focus-layout {
  max-width: 740px;
  margin: 0 auto;
}
.focus-full {
  text-align: center;
  padding: 48px 40px 35px;
}
.focus-full .eyebrow {
  margin-bottom: 25px;
}
.focus-full input#focus-title {
  width: 100%;
  max-width: 510px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ffffff35;
  border-radius: 0;
  color: white;
  text-align: center;
  font-size: 22px;
  padding: 12px 0;
}
.focus-full input#focus-title::placeholder {
  color: #adc3b2;
}
#focus-intention {
  font-size: 23px;
  overflow-wrap: anywhere;
}
.full-timer {
  font-size: 112px;
  letter-spacing: -6px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  margin: 26px 0;
}
.duration-options {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.duration-options button {
  padding: 8px 12px;
  color: #b7cdbb;
  border-radius: 8px;
}
.duration-options button.active {
  background: #ffffff15;
  color: white;
}
.custom-duration {
  font-size: 12px;
  color: #b7cdbb;
  display: flex;
  align-items: center;
  gap: 6px;
}
.custom-duration input {
  margin: 0;
  padding: 6px;
  width: 54px;
  min-height: 30px;
  font-size: 12px;
  background: transparent;
  color: white;
  border-color: #ffffff35;
}
.focus-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 25px;
}
.focus-controls .light-button {
  min-width: 155px;
  justify-content: center;
}
.focus-reset {
  padding: 12px 20px;
  color: #c1d3c0;
}
#focus-hint {
  font-size: 11px;
  color: #afc5b1;
}
.focus-footnote {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
  margin-top: 23px;
}
.writing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  max-width: 1150px;
  margin: auto;
}
.writing-card {
  padding: 26px;
}
.writing-card input[type="date"] {
  font-size: 12px;
  padding: 8px;
  max-width: 155px;
}
.writing-card textarea {
  border: 0;
  background: transparent;
  padding: 18px 0;
  min-height: 180px;
  outline-offset: 6px;
  margin: 9px 0;
}
.writing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.journal-calendar {
  align-self: start;
  padding: 23px;
}
.calendar-note {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.entries-heading {
  margin: 30px 4px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.entries-heading h2 {
  font-size: 14px;
}
.entries {
  max-height: 650px;
  overflow-y: auto;
  scrollbar-width: thin;
  scroll-padding: 12px;
  padding: 2px;
}
.entry {
  padding: 23px 26px;
  margin-bottom: 12px;
}
.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.entry-date {
  font-size: 11px;
  color: var(--muted);
}
.entry-text {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.entry-edit {
  font-size: 18px;
  color: var(--muted);
  min-width: 36px;
  min-height: 32px;
}
.ideas-wrap {
  max-width: 1000px;
  margin: auto;
}
.field-title {
  font-size: 17px;
  font-family: Georgia, serif;
}
.idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.idea-grid .entry {
  margin: 0;
  align-self: start;
}
.mobile-nav {
  display: none;
}
.sheet {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 490px;
  max-height: 88dvh;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px #163d3025;
}
.sheet::backdrop {
  background: #15271d55;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}
.sheet label {
  margin-bottom: 17px;
}
.sheet p {
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--muted);
}
.sheet textarea {
  margin-top: 8px;
  min-height: 190px;
}
.sheet .hint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
}
.dialog-actions .danger {
  margin-right: auto;
}
.danger {
  color: #a34e43;
}
.full-width {
  width: 100%;
  margin-bottom: 14px;
}
.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
details {
  margin-top: 15px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  min-height: 38px;
  padding: 10px 0;
}
.settings-section {
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.settings-section h3 {
  margin-bottom: 12px;
}
.settings-section .quiet-button {
  margin-bottom: 8px;
}
.version {
  font-size: 11px !important;
  margin-bottom: 0 !important;
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}
.link-row a {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.link-row button {
  font-size: 20px;
}
.notice {
  border: 1px solid #d2ddc7;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eef3e7;
  color: #4f6747;
  font-size: 12px;
  line-height: 1.6;
}
#storage-warning {
  padding: 16px;
  background: #fff2e9;
  border: 1px solid #d59f7e;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: #253d35;
  color: white;
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: 0 8px 30px #243b3525;
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 50;
  font-size: 13px;
}
#toast-text {
  max-width: 550px;
  line-height: 1.5;
}
#toast button {
  color: #d0e6b4;
  font-size: 13px;
  padding: 5px;
}
#toast-close {
  font-size: 22px !important;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px;
  background: #fff;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
@media (min-width: 1700px) {
  .header {
    padding-left: max(4%, calc((100% - 1530px) / 2));
    padding-right: max(4%, calc((100% - 1530px) / 2));
  }
  .week-column .task-main {
    font-size: 13px;
  }
}
@media (max-width: 1199px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .header {
    padding: 0 3%;
  }
  .desktop-nav button {
    padding: 12px 14px;
  }
  main {
    padding: 0 3%;
  }
  .week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 20px;
  }
  .week-column {
    min-height: 150px;
  }
  .week-column:before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin: 8px 0;
  }
  .week-column:nth-child(4) {
    border-right: 0;
  }
  .week-column:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }
  .week-mode .planner-bottom > span {
    display: none;
  }
  .week-heading h2 {
    min-width: 110px;
  }
  .planner > .panel-head {
    padding: 16px 10px;
  }
  .planner-actions {
    gap: 8px;
  }
  .planner-actions .quiet-button {
    padding: 8px 10px;
  }
  .planner {
    min-height: 580px;
  }
  .full-timer {
    font-size: 100px;
  }
}
@media (max-width: 899px) {
  .desktop-nav {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .header {
    height: 75px;
  }
  .header-actions {
    gap: 12px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fafbf8f5;
    backdrop-filter: blur(18px);
    padding: 8px max(12px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    z-index: 10;
    justify-content: space-around;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    min-width: 65px;
    color: #929b8d;
    font-size: 10px;
  }
  .mobile-nav button.active {
    color: var(--green);
  }
  .mobile-nav button.active svg {
    stroke-width: 2;
  }
  .footer {
    padding-bottom: 95px;
  }
  .writing-layout {
    grid-template-columns: 1fr 240px;
    gap: 20px;
  }
  #toast {
    bottom: 95px;
  }
  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .week-column:nth-child(2n) {
    border-right: 0;
  }
  .week-column:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 679px) {
  .header {
    height: 73px;
    padding: env(safe-area-inset-top) 21px 0;
    gap: 8px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    margin-right: 8px;
    height: 20px;
  }
  .brand-mark i {
    width: 4px;
  }
  .brand-mark i:nth-child(3) {
    height: 20px;
  }
  .header-actions {
    gap: 5px;
  }
  .status-button {
    font-size: 10px;
    gap: 5px;
    padding: 6px;
  }
  .header-actions > .icon-button {
    min-width: 34px;
  }
  .header-actions svg {
    width: 19px;
  }
  .page-intro {
    padding: 29px 3px 25px;
    gap: 12px;
    align-items: flex-end;
  }
  main {
    padding: 0 18px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1px;
    margin-top: 10px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .intro-copy {
    font-size: 12px;
    max-width: 230px;
    line-height: 1.6;
    margin-top: 10px;
  }
  .intro-right {
    gap: 0;
    flex-shrink: 0;
    padding-bottom: 3px;
  }
  .intro-right > div:last-child {
    display: none;
  }
  .progress-ring {
    width: 33px;
    height: 33px;
  }
  .progress-ring:before {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }
  .workspace {
    display: block;
  }
  .side-stack,
  .reflection-row {
    display: none;
  }
  .planner {
    min-height: 410px;
    border-radius: 15px;
  }
  .planner > .panel-head {
    padding: 14px 10px;
    gap: 3px;
  }
  .week-heading {
    gap: 0;
  }
  .week-heading h2 {
    font-size: 13px;
    min-width: 112px;
  }
  .week-heading .icon-button {
    min-width: 28px;
    min-height: 32px;
    font-size: 22px;
  }
  .planner-actions {
    gap: 7px;
  }
  .planner-actions .quiet-button {
    border: 0;
    padding: 8px 7px;
    font-size: 11px;
    min-height: 32px;
  }
  .segmented {
    display: none;
  }
  .date-strip {
    padding: 7px 9px;
    gap: 2px;
  }
  .date-chip {
    min-height: 66px;
    border-radius: 10px;
    gap: 7px;
  }
  .date-chip span {
    font-size: 9px;
  }
  .date-chip strong {
    font-size: 17px;
  }
  .day-summary {
    padding: 23px 18px 15px;
  }
  .day-summary h3 {
    font-size: 16px;
  }
  .day-summary .text-button {
    font-size: 11px;
  }
  .muted {
    font-size: 11px;
  }
  .task-composer {
    margin: 0 15px 10px;
    padding: 5px 5px 5px 10px;
    gap: 6px;
  }
  .task-composer input {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
    letter-spacing: -0.4px;
  }
  .task-composer input::placeholder {
    font-size: 13px;
    letter-spacing: 0;
  }
  .task-composer .primary {
    padding: 10px 13px;
    font-size: 12px;
  }
  .task-composer .primary span {
    display: none;
  }
  .composer-plus {
    font-size: 20px;
  }
  .task-list {
    margin: 0 15px;
  }
  .task {
    min-height: 66px;
    gap: 8px;
  }
  .task-main {
    font-size: 14px;
    line-height: 1.65;
  }
  .task-menu {
    min-width: 30px;
  }
  .check {
    width: 29px;
    min-height: 44px;
  }
  .check span {
    width: 20px;
    height: 20px;
  }
  .planner-bottom {
    padding: 20px 18px 14px;
    font-size: 10px;
  }
  .planner-bottom .text-button {
    font-size: 10px;
  }
  .footer {
    padding: 24px 3px 100px;
    font-size: 9px;
    line-height: 1.6;
    gap: 20px;
  }
  .footer > span:first-child {
    max-width: 135px;
  }
  .footer > span:last-child {
    text-align: right;
  }
  .focus-full {
    padding: 33px 18px 27px;
    border-radius: 16px;
  }
  .focus-full input#focus-title {
    font-size: 18px;
  }
  .full-timer {
    font-size: 87px;
    margin: 31px 0;
    letter-spacing: -5px;
  }
  .duration-options {
    gap: 2px;
  }
  .duration-options button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .custom-duration {
    font-size: 10px;
  }
  .custom-duration input {
    font-size: 16px;
    width: 47px;
    padding: 4px;
  }
  .focus-controls {
    gap: 5px;
  }
  .focus-full .eyebrow {
    font-size: 8px;
  }
  .focus-footnote {
    font-size: 11px;
    line-height: 1.8;
    margin-top: 20px;
  }
  .writing-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
  }
  .journal-calendar {
    width: 100%;
    padding: 12px 17px;
  }
  .journal-calendar .cal-grid {
    gap: 1px;
  }
  .journal-calendar .cal-day {
    aspect-ratio: auto;
    height: 31px;
    font-size: 12px;
  }
  .journal-calendar .cal-day.journal:after {
    right: 7px;
    bottom: 1px;
  }
  .journal-calendar .cal-legend {
    padding-top: 8px;
    font-size: 9px;
  }
  .calendar-note {
    display: none;
  }
  .journal-calendar .cal-head {
    margin-bottom: 3px;
  }
  .writing-card {
    padding: 20px 18px;
  }
  .writing-card .panel-head {
    gap: 8px;
  }
  .writing-card h2 {
    font-size: 13px;
  }
  .writing-card input[type="date"] {
    font-size: 12px;
    padding: 7px;
    max-width: 130px;
  }
  .writing-card textarea {
    font-size: 16px;
    min-height: 150px;
  }
  .writing-footer .primary {
    font-size: 12px;
    padding: 11px 13px;
  }
  .writing-footer .muted {
    max-width: 150px;
    font-size: 10px;
  }
  .entries {
    max-height: none;
    overflow: visible;
  }
  .entry {
    padding: 20px 18px;
  }
  .entry-text {
    font-size: 14px;
  }
  .idea-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sheet {
    border-radius: 22px 22px 0 0;
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    padding: 23px 23px max(24px, env(safe-area-inset-bottom));
    border-bottom: 0;
  }
  .sheet input,
  .sheet textarea {
    font-size: 16px;
  }
  .sheet input[type="date"],
  .sheet input[type="time"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
  .dialog-actions {
    gap: 10px;
  }
  .dialog-actions button {
    font-size: 12px;
  }
  .notice {
    font-size: 11px;
  }
  .empty {
    padding: 35px 20px;
  }
  .status-button #account-label {
    max-width: 81px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      color 0.15s;
  }
  .view.active {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.4;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 359px) {
  .status-button #account-label {
    display: none;
  }
  .header-actions {
    gap: 2px;
  }
  .brand {
    font-size: 20px;
  }
  .planner-bottom {
    gap: 5px;
  }
  .planner-bottom > span {
    max-width: 85px;
  }
}

.mobile-calendar-toggle {
  display: none;
}
@media (max-width: 679px) {
  .mobile-calendar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    color: var(--green);
    font-size: 12px;
    padding: 0;
  }
  .journal-calendar:not(.expanded) #journal-calendar {
    display: none;
  }
  .journal-calendar.expanded #journal-calendar {
    margin-top: 10px;
  }
  .journal-calendar {
    padding: 6px 17px;
  }
  .intro-copy {
    max-width: 280px;
  }
}

/* 1.0.1 — the day heading and its tasks form one continuous column. */
.page-intro {
  padding-top: 32px;
  padding-bottom: 26px;
}
#page-title {
  font-size: 36px;
  letter-spacing: -0.8px;
}
.footer {
  justify-content: flex-end;
}
.planner-instructions {
  margin: 0 28px 18px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.week-mode #date-strip,
.week-mode .day-summary {
  display: none;
}
.week-mode .task-composer {
  margin-top: 0;
  margin-bottom: 9px;
}
.week-mode #task-content {
  flex: 1;
}
.week-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  padding: 0 18px 8px;
  align-items: stretch;
}
.week-column,
.week-column:nth-child(n) {
  border: 1px solid #e4e9df;
  border-radius: 12px;
  background: #f8f9f5;
  min-height: 315px;
  padding: 0 9px 8px;
  overflow: hidden;
}
.week-column:nth-child(even) {
  background: #edf2e9;
  border-color: #e1e7dc;
}
.week-column:before {
  display: none;
}
.week-column.selected-column {
  border-color: #91ac8e;
}
.week-column.drag-over {
  background: #dce8d6;
  border-color: var(--green);
}
.column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
  width: calc(100% + 18px);
  margin: 0 -9px 4px;
  padding: 15px 10px 13px;
  border-bottom: 1px solid #dfe5d9;
  text-align: left;
  min-height: 69px;
}
.column-heading span {
  font-size: 12px;
  font-weight: 600;
}
.column-heading strong {
  font-size: 20px;
  font-weight: 400;
}
.column-heading i {
  font-size: 9px;
  font-style: normal;
  color: var(--green);
  width: 100%;
}
.today-column .column-heading {
  color: var(--green);
}
.selected-column .column-heading {
  background: #dfebd8;
}
.column-heading:hover {
  background: #e3eadf;
}
.week-column .task {
  border-bottom-color: #dce3d6;
  padding: 10px 0;
}
.week-column .task-main {
  font-size: 13px;
  line-height: 1.6;
}
.week-column .column-add {
  color: var(--green);
  min-height: 40px;
  font-size: 11px;
  padding-top: 14px;
}
.week-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 0;
  margin: 0;
}
.week-mode .planner-bottom {
  padding-top: 4px;
  justify-content: flex-end;
}
.week-mode .planner-bottom > span {
  display: none;
}
.focus-prompt {
  font-size: 18px;
  font-weight: 400;
  color: #d4e1d2;
  margin-bottom: 18px;
  line-height: 1.5;
}
#focus-hint:empty,
#mini-focus-state:empty,
#journal-draft-state:empty {
  display: none;
}
.writing-footer {
  justify-content: flex-end;
}
.writing-footer .muted:not(:empty) {
  margin-right: auto;
}
#mini-focus-title {
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
}
@media (min-width: 900px) and (max-width: 1399px) {
  .workspace:has(.week-mode) {
    grid-template-columns: 1fr;
  }
  .workspace:has(.week-mode) .side-stack {
    grid-template-columns: 1fr 1fr;
  }
  .week-column .task-main {
    font-size: 13px;
  }
}
@media (max-width: 899px) and (min-width: 680px) {
  .workspace:has(.week-mode) {
    grid-template-columns: 1fr;
  }
  .week-mode .week-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    padding: 0 10px 8px;
  }
  .week-mode .side-stack {
    display: none;
  }
  .week-column .task-main {
    font-size: 12px;
  }
}
@media (max-width: 679px) {
  #page-title {
    font-size: 32px;
  }
  .page-intro {
    padding-top: 24px;
    padding-bottom: 22px;
  }
  .planner-instructions {
    margin: 0 17px 10px;
    font-size: 10px;
  }
  .task-composer input::placeholder {
    font-size: 14px;
  }
  .planner-bottom {
    justify-content: flex-end;
  }
  .planner-bottom > span {
    display: none;
  }
  .focus-prompt {
    font-size: 16px;
  }
}

/* v1.0.2 archive controls */
.planner-bottom { flex-wrap: wrap; gap: 12px; }
#archive-completed { min-height: 44px; }
#archive-completed:disabled { opacity: .45; cursor: default; }
.archived-entry h3 { font-size: 1rem; margin: 14px 0; }
.archived-tasks { list-style: none; margin: 0; padding: 0; }
.archived-tasks li { display: grid; grid-template-columns: 20px minmax(0, 1fr) 44px; align-items: start; gap: 8px; padding: 8px 0; }
.archived-tasks li > span:nth-child(2) { white-space: pre-wrap; overflow-wrap: anywhere; }
.archived-tasks .entry-edit { min-height: 44px; min-width: 44px; }

/* v1.0.3 compact journal and in-app archive confirmation */
.archive-tray { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.archive-chip { display: inline-block; max-width: 100%; border: 0; border-radius: 9px; background: #edf3ee; color: #305a4c; padding: 10px 12px; font: inherit; font-size: .82rem; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
button.archive-chip { min-height: 44px; cursor: pointer; }
.archive-chip:focus-visible { outline: 2px solid #17634f; outline-offset: 2px; }
#archive-preview { max-height: 24vh; overflow-y: auto; }
#archive-note { width: 100%; min-height: 110px; margin-top: 8px; }
#archive-error:empty { display: none; }
.journal-note + .journal-note { border-top: 1px solid #e2e7e0; margin-top: 18px; padding-top: 10px; }
.journal-note .entry-top { margin-top: 8px; }

/* v1.0.4 task editor movement */
#task-tomorrow { margin: 12px 0 18px; min-height: 44px; }
#task-tomorrow:disabled { opacity: .45; }
#task-date-day { display: block; margin-top: 7px; font-weight: 400; }
#task-dialog .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#task-dialog .form-grid label { min-width: 0; }
#task-dialog .form-grid input { min-width: 0; max-width: 100%; }
#task-date-day { overflow-wrap: anywhere; }
@media (max-width: 360px) { #task-dialog .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* v1.0.5 weekly carry-forward */
#nudge-week { min-height: 44px; }
#nudge-week:disabled { opacity: .45; cursor: default; }
#nudge-error:empty { display: none; }
