:root {
  color-scheme: light;
  --bg: #f6f5f0;
  --ink: #283e35;
  --muted: #748078;
  --line: #dce0d7;
  --accent: #dce7bc;
  --paper: #fffef9;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #738e48;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
header,
footer {
  max-width: 1264px;
  margin: auto;
  padding: 28px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header {
  border-bottom: 1px solid var(--line);
}
.logo {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}
.logo img {
  display: block;
  width: clamp(80px, 12vw, 104px);
  height: auto;
  opacity: 0;
}
.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--desk-accent, #ffb020);
  -webkit-mask: url("../images/logo-nodi-main.png") center / contain no-repeat;
  mask: url("../images/logo-nodi-main.png") center / contain no-repeat;
  pointer-events: none;
}
.tagline,
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
.tagline {
  margin-right: auto;
  margin-left: 28px;
  color: var(--muted);
}
main {
  max-width: 1088px;
  margin: 0 auto;
  padding: 38px 44px 0;
}
.dayline {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 20px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 450px;
  margin: 35px 0 50px;
  font-size: 11px;
  color: #939b93;
}
.steps i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.steps .active {
  color: var(--ink);
  font-weight: bold;
}
.intro h1,
#done h1 {
  font-size: clamp(44px, 6vw, 68px);
  letter-spacing: -3px;
  font-weight: 500;
  margin: 14px 0 20px;
}
.intro > p:last-child,
#done > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.eyebrow {
  color: #7a886c;
}
.workspace {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  margin-top: 40px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: 16px;
  margin: 0;
}
.section-title > span {
  font-size: 12px;
  color: var(--muted);
}
.task {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.task.selected {
  border-color: #80935f;
}
.task input[type="checkbox"] {
  accent-color: var(--ink);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.task-choice {
  flex: 1;
  text-align: left;
  min-width: 0;
  padding: 0;
}
.task-choice strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.task-choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.task.completed strong {
  text-decoration: line-through;
  color: var(--muted);
}
.remove {
  color: var(--muted);
  font-size: 21px;
  padding: 8px;
}
.task-number {
  font-size: 10px;
  color: var(--muted);
}
input:not([type="checkbox"]):not([type="file"]):not([type="radio"]),
textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  border-radius: 8px;
  width: 100%;
  min-width: 0;
}
#taskForm {
  margin-top: 18px;
  border: 1px dashed #c7cfc1;
  border-radius: 10px;
  padding: 16px;
}
#taskForm input {
  border: 0;
  background: transparent;
  padding: 3px 0 14px;
  outline-offset: 3px;
}
.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.form-bottom select {
  border: 0;
  background: transparent;
}
.quiet,
.file-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 12px;
  background: transparent;
}
.primary {
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 16px 23px;
  font-size: 14px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.primary:hover {
  background: #3d5748;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.start-panel {
  background: #e9eddf;
  border-radius: 16px;
  padding: 34px;
  align-self: start;
  min-height: 290px;
  position: relative;
}
.start-panel:before {
  content: "✳";
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 45px;
  color: #abb894;
  font-weight: normal;
}
.start-panel h2 {
  font-weight: 500;
  font-size: 27px;
  line-height: 1.5;
  margin: 32px 0 10px;
  overflow-wrap: anywhere;
}
.start-panel > p:not(.hint) {
  font-size: 12px;
  color: #69775f;
}
.start-panel .primary {
  width: 100%;
  margin-top: 15px;
}
.start-panel .hint {
  margin-bottom: 0;
  font-size: 10px;
}
.text-button {
  font-size: 12px;
  padding: 12px 0;
  color: var(--muted);
}
#finishDay {
  margin-top: 16px;
}
.daily-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 45px;
  font-size: 12px;
}
.daily-strip > span {
  color: var(--muted);
}
.daily-strip strong {
  font-weight: 500;
}
.daily-strip button {
  margin-left: auto;
}
footer {
  font-size: 10px;
  color: var(--muted);
  padding-top: 30px;
  padding-bottom: 30px;
}
#focus {
  text-align: center;
  padding: 30px 0 55px;
  min-height: 440px;
}
#focus h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 500;
  overflow-wrap: anywhere;
}
#timer {
  font-size: clamp(80px, 16vw, 164px);
  font-weight: 400;
  letter-spacing: -7px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
#focusHint {
  color: var(--muted);
  font-size: 13px;
}
.timer-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 30px 0 14px;
}
#focusMemo {
  margin-top: 15px;
}
body.is-focusing .dayline,
body.is-focusing footer,
body.is-focusing .daily-strip,
body.is-focusing .tagline {
  visibility: hidden;
}
body.is-focusing #settingsButton {
  visibility: hidden;
}
#done {
  text-align: center;
  padding: 35px 0;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 45px 0;
}
.stat strong {
  display: block;
  font-size: 42px;
  font-weight: 500;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  color: var(--ink);
  padding: 30px;
  width: min(490px, calc(100% - 28px));
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #23382d55;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-head h2,
dialog h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 0;
}
.dialog-head button {
  font-size: 25px;
  padding: 7px;
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 14px 0;
}
dialog label input {
  margin-top: 8px;
}
dialog .check {
  display: flex;
  gap: 10px;
  align-items: center;
}
dialog .check input {
  margin: 0;
}
dialog textarea {
  height: 125px;
  resize: vertical;
  margin-bottom: 15px;
}
dialog hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
dialog h3 {
  font-size: 14px;
}
dialog .primary {
  padding: 13px 20px;
}
.backup-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.file-button {
  position: relative;
  cursor: pointer;
  margin: 0;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid #738e48;
}
.memo-item {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 18px;
  display: flex;
  gap: 12px;
}
.memo-item p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.memo-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
}
#notice,
.banner {
  position: relative;
  max-width: 1000px;
  margin: 16px auto 0;
  background: #e4eaca;
  padding: 14px 20px;
  font-size: 13px;
  line-height: 1.7;
  border-radius: 7px;
}
#notice.error {
  background: #f0dfd2;
}
#news {
  margin-top: 28px;
}
#newsLinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
#newsLinks a:hover {
  text-decoration: underline;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  display: block;
  padding: 10px;
}
.empty {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
  line-height: 1.9;
}
.carry {
  padding: 8px;
  font-size: 12px;
  text-align: left;
  color: var(--muted);
}
@media (max-width: 700px) {
  header,
  footer {
    padding: 22px;
  }
  .tagline {
    display: none;
  }
  main {
    padding: 28px 22px 0;
  }
  .steps {
    margin: 28px 0 35px;
    gap: 10px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .intro h1 {
    font-size: 48px;
  }
  .start-panel {
    min-height: auto;
    padding: 25px;
  }
  .start-panel h2 {
    margin-top: 24px;
    font-size: 24px;
  }
  .daily-strip {
    gap: 12px;
    flex-wrap: wrap;
  }
  .stats {
    gap: 24px;
  }
  .stat strong {
    font-size: 34px;
  }
  #focus {
    padding-top: 45px;
    min-height: 410px;
  }
  #timer {
    letter-spacing: -4px;
  }
  dialog {
    padding: 22px;
  }
  .dayline {
    font-size: 11px;
  }
  .logo {
    font-size: 34px;
  }
  #notice,
  .banner {
    margin: 12px 18px 0;
  }
  .primary,
  .quiet {
    min-height: 44px;
  }
}
.edit-task {
  font-size: 10px;
  color: var(--muted);
  padding: 10px 4px;
}
.task .remove {
  padding: 8px 4px;
}
.task {
  gap: 10px;
}

/* A compact notebook: the work and its next action share one surface. */
:root {
  --muted: #626f65;
  --line: #d9ded2;
}
header,
footer {
  max-width: 880px;
  padding: 22px 32px;
}
header {
  border: 0;
  gap: 20px;
}
.logo {
  font-size: 32px;
}
.header-date {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
main {
  max-width: 800px;
  padding: 24px 32px 0;
}
.intro {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.intro h1 {
  font-size: 30px;
  letter-spacing: -1.3px;
  margin: 0;
  font-weight: 500;
}
.intro #welcomeHint {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
#ddayDetails {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
#ddayDetails summary {
  cursor: pointer;
  padding: 10px 0;
}
#ddayLabel {
  display: block;
  max-width: 220px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.workspace {
  display: block;
  margin: 0;
}
.tasks-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 3px 14px #283e3505;
}
.section-title {
  margin-bottom: 18px;
}
.section-title h2 {
  font-size: 14px;
  font-weight: 600;
}
.task {
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 8px;
  padding: 12px 10px;
  min-height: 78px;
  margin: 4px 0;
}
.task.selected {
  background: #edf1e3;
  border-color: #a4b38c;
  box-shadow: inset 3px 0 #718458;
}
.task-choice {
  min-height: 44px;
}
.task-choice strong {
  font-size: 15px;
  line-height: 1.5;
}
.task-choice small {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 3px;
}
.task.completed .task-choice {
  opacity: 1;
}
.task .remove,
.edit-task {
  min-height: 44px;
  min-width: 32px;
  font-size: 12px;
}
.task .remove {
  font-size: 20px;
}
#taskForm {
  margin-top: 16px;
  border-style: solid;
  background: #f8f9f4;
  padding: 14px 16px;
}
#taskForm input {
  font-size: 14px;
  padding-bottom: 10px;
}
.form-bottom select {
  min-height: 36px;
}
.start-panel {
  border-top: 1px solid var(--line);
  background: none;
  border-radius: 0;
  padding: 18px 0 0;
  min-height: 0;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.start-panel::before {
  content: none;
}
.start-panel > p:not(.hint) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.start-panel .primary {
  width: auto;
  margin: 0 0 0 auto;
  min-width: 160px;
  flex-shrink: 0;
}
.primary {
  min-height: 48px;
  justify-content: center;
}
.primary:disabled {
  background: #dfe3d8;
  color: #596451;
  opacity: 1;
}
.primary:disabled:hover {
  background: #dfe3d8;
}
.quiet:hover:not(:disabled),
.text-button:hover {
  background: #e9eddf;
}
.text-button {
  border-radius: 5px;
  padding: 12px 8px;
}
#finishDay {
  display: block;
  margin: 8px 0 0 auto;
}
.daily-strip {
  margin-top: 22px;
  padding: 12px 0;
  font-size: 12px;
}
footer {
  max-width: 800px;
  padding-top: 22px;
}
.empty {
  margin: 0;
  padding: 14px 0 4px;
  font-size: 13px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
}
#focus {
  padding: 55px 0 28px;
  min-height: 440px;
}
#focus h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 20px 0 10px;
}
#timer {
  font-size: clamp(84px, 15vw, 144px);
}
#done {
  padding: 32px 0;
}
#done h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
}
body.is-focusing .header-date {
  visibility: hidden;
}
#notice,
.banner {
  max-width: 736px;
}
@media (max-width: 700px) {
  header {
    padding: 18px 20px;
    gap: 14px;
  }
  .logo {
    font-size: 29px;
  }
  .header-date {
    font-size: 11px;
  }
  #settingsButton {
    padding: 9px 11px;
  }
  main {
    padding: 18px 16px 0;
  }
  .intro {
    margin: 0 4px 18px;
    gap: 8px 14px;
  }
  .intro h1 {
    font-size: 27px;
  }
  .intro #welcomeHint {
    flex-basis: 100%;
    order: 2;
  }
  .tasks-panel {
    padding: 18px 14px;
  }
  .task {
    gap: 8px;
    padding: 9px 7px;
    min-height: 74px;
  }
  .task-choice strong {
    font-size: 14px;
  }
  .task-choice small {
    font-size: 10px;
  }
  .task .remove,
  .edit-task {
    min-width: 28px;
  }
  #taskForm {
    margin-top: 12px;
    padding: 12px;
  }
  .start-panel {
    padding-top: 15px;
    margin-top: 16px;
    flex-direction: column;
    gap: 12px;
  }
  .start-panel .primary {
    width: 100%;
    margin: 0;
  }
  .daily-strip {
    margin-top: 14px;
    gap: 10px;
  }
  .daily-strip > span {
    font-size: 11px;
  }
  footer {
    padding: 20px;
  }
  #focus {
    padding: 48px 0 16px;
    min-height: 390px;
  }
  #done h1 {
    font-size: 34px;
  }
}
@media (max-width: 360px) {
  .header-date {
    font-size: 10px;
  }
  header {
    gap: 9px;
  }
  .task {
    gap: 5px;
  }
}
