:root {
  --ink: #37352f;
  --muted: #85837c;
  --line: #e9e8e4;
  --paper: #fff;
  --sidebar: #f7f7f5;
  --accent: #587362;
  --soft: #f1f5f0;
  --blue: #eaf0f5;
  --radius: 5px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  border: 1px solid #deddd8;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 10px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9aafa2;
  outline-offset: 1px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #829989;
  outline-offset: 3px;
}
button {
  border: 0;
  background: transparent;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -1.7px;
  font-weight: 720;
  margin-bottom: 13px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
h3 {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 19px 0 8px;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.sidebar {
  width: 224px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid #efeeeb;
  padding: 22px 13px;
  display: flex;
  flex-direction: column;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 13px;
  padding: 0 5px;
  white-space: nowrap;
}
.workspace-icon {
  width: 25px;
  height: 25px;
  background: #e7e5df;
  border: 1px solid #dbd9d2;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 18px;
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #99958d;
  padding: 36px 10px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 5px;
  color: #77756d;
  margin: 2px 0;
}
.nav-item span {
  font-size: 18px;
}
.nav-item:hover,
.nav-item.active {
  background: #eae9e5;
  color: var(--ink);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 15px 10px;
  color: #98958b;
  font-size: 12px;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
}
.app-shell {
  margin-left: 224px;
  min-height: 100vh;
}
.topbar {
  height: 57px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb-separator {
  color: #c4c2bb;
}
.content {
  max-width: 940px;
  margin: auto;
  padding: 55px 65px 40px;
}
.page-icon {
  font-size: 45px;
  line-height: 1;
  margin-bottom: 24px;
  color: #77796a;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #908c81;
  font-weight: 650;
  margin-bottom: 13px;
}
.subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.callout {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #f7f7f2;
  border: 1px solid #eeeee5;
  border-radius: 6px;
  padding: 20px;
  margin: 30px 0 39px;
}
.callout > span {
  font-size: 25px;
  color: #a2966c;
}
.callout strong {
  font-size: 13px;
  font-weight: 600;
}
.callout p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.callout .primary {
  margin-left: auto;
  flex-shrink: 0;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.primary:hover {
  background: #504e46;
}
.secondary {
  background: #fff;
  border: 1px solid #deddd8;
}
.secondary:hover {
  background: var(--sidebar);
}
.small {
  padding: 7px 12px;
}
.quiet {
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 4px;
  color: #77746c;
  white-space: nowrap;
}
.quiet:hover {
  background: #f1f0ec;
  color: var(--ink);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.daily-pages .section-heading > span {
  font-size: 20px;
  color: #938d7c;
}
.table-wrapper {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 11px;
  color: #928f85;
  font-weight: 500;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid #f0efeb;
}
tbody tr:hover {
  background: #fafaf8;
}
.day-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 550;
}
.day-link:hover {
  text-decoration: underline;
}
.day-link > span:first-child {
  font-size: 16px;
  color: #969182;
}
.today-tag {
  font-size: 10px;
  background: var(--blue);
  color: #647d90;
  padding: 1px 6px;
  border-radius: 3px;
}
.progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #99958b;
  font-size: 10px;
}
progress {
  width: 70px;
  height: 4px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #eeeee9;
  accent-color: #8b9e89;
}
progress::-webkit-progress-bar {
  background: #eeeee9;
}
progress::-webkit-progress-value {
  background: #8b9e89;
}
progress::-moz-progress-bar {
  background: #8b9e89;
}
.status {
  font-size: 10px;
  border-radius: 3px;
  background: #f3f2ee;
  color: #8b867c;
  padding: 3px 7px;
}
.status.finished {
  background: #eaf1e8;
  color: #637d60;
}
.date-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  font-size: 11px;
  color: var(--muted);
}
.date-picker input {
  font-size: 11px;
  padding: 4px 7px;
  border-color: var(--line);
}
.broader-heading {
  margin: 44px 0 27px;
}
.broader-heading .eyebrow {
  margin-bottom: 6px;
}
.broader-heading > p:last-child {
  font-size: 12px;
  color: var(--muted);
}
.checklist {
  margin-bottom: 35px;
  scroll-margin-top: 20px;
}
.section-symbol {
  width: 27px;
  height: 27px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.section-symbol.day {
  background: #f8f1df;
  color: #b39b50;
}
.section-symbol.week {
  background: #edf2e9;
  color: #879674;
}
.section-symbol.month {
  background: #edf0f7;
  color: #8a92ae;
}
.countdown {
  font-size: 10px;
  color: #85816f;
  background: #f5f4ef;
  padding: 3px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.completion-count {
  font-size: 11px;
  color: #99958b;
}
.section-note {
  font-size: 10px;
  color: #98948b;
  margin-top: 9px;
}
.category-dot {
  height: 6px;
  width: 6px;
  background: #aca590;
  border-radius: 50%;
}
.category-group:nth-of-type(3n) .category-dot {
  background: #8b9f90;
}
.category-group:nth-of-type(3n + 1) .category-dot {
  background: #a09daf;
}
.category-count {
  color: #aaa69c;
  font-size: 10px;
  font-weight: 400;
}
.tasks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.task {
  padding: 2px 0;
}
.task-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-radius: 4px;
  padding: 3px 5px;
  margin: 0 -5px;
}
.task-line:hover {
  background: #fafaf8;
}
.completion-form {
  padding-top: 4px;
  flex-shrink: 0;
}
.checkbox {
  border: 1.5px solid #bcbab1;
  border-radius: 3px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 12px;
}
.checkbox:hover {
  border-color: var(--accent);
  background: var(--soft);
}
.is-complete .checkbox {
  background: #899c8b;
  border-color: #899c8b;
  color: white;
}
.task-editor {
  flex: 1;
  min-width: 0;
}
.task-editor > summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0;
  cursor: text;
  font-size: 13px;
  min-height: 24px;
}
.task-editor > summary::-webkit-details-marker {
  display: none;
}
.task-title {
  overflow-wrap: anywhere;
}
.is-complete .task-title {
  color: #a7a297;
  text-decoration: line-through;
}
.edit-hint {
  margin-left: auto;
  color: #aaa59b;
  font-size: 10px;
  opacity: 0;
}
.task-line:hover .edit-hint,
.task-editor:focus-within .edit-hint {
  opacity: 1;
}
.edit-panel {
  background: #f7f7f4;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 15px;
  margin: 9px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #7c786e;
}
.field input,
.field select,
.field textarea {
  font-size: 12px;
  color: var(--ink);
  width: 100%;
}
.field textarea {
  resize: vertical;
  min-height: 76px;
}
.task-description {
  margin: -1px 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.task-description summary {
  cursor: pointer;
  width: fit-content;
  font-size: 10px;
  color: #817c71;
}
.task-description > div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 7px 0 2px;
}
.assignment-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.edit-caption {
  font-size: 11px;
  font-weight: 600;
  margin: 15px 0 9px;
}
.edit-help {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.delete-form {
  margin-top: 9px;
}
.danger {
  color: #a15d51;
}
.empty-state {
  font-size: 12px;
  color: #9e998f;
  padding: 24px 0 13px;
}
.add-task {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-top: 10px;
  padding: 5px 0;
}
.add-task:focus-within {
  border-color: var(--line);
  background: #fafaf8;
}
.add-symbol {
  font-size: 19px;
  color: #a29d93;
  padding-left: 3px;
}
.add-task input {
  flex: 1;
  width: 100px;
  border: 0;
  font-size: 12px;
  background: transparent;
  padding: 6px;
}
.add-task input::placeholder {
  color: #a49f95;
}
.add-task select {
  max-width: 140px;
  font-size: 10px;
  border: 0;
  background: transparent;
  color: #8c877c;
  padding: 6px 3px;
}
.add-task .quiet {
  font-size: 11px;
}
.category-manager {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 40px;
  color: #888276;
  font-size: 12px;
}
.category-manager > summary {
  cursor: pointer;
}
.category-manager > summary > span {
  font-size: 10px;
  color: #aaa499;
  margin-left: 8px;
}
.category-settings {
  padding-top: 15px;
}
.category-setting,
.category-setting form,
.new-category {
  display: flex;
  align-items: center;
  gap: 7px;
}
.category-setting {
  margin-bottom: 8px;
}
.category-setting form:first-child {
  flex: 1;
}
.category-setting input {
  flex: 1;
  width: 100px;
}
.category-settings input {
  font-size: 12px;
  padding: 7px 9px;
}
.new-category {
  margin-top: 13px;
}
.new-category input {
  flex: 1;
}
.day-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 28px 0 32px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.day-navigation form {
  display: flex;
  gap: 5px;
  align-items: center;
}
.day-navigation input {
  font-size: 11px;
  padding: 5px 7px;
  border-color: var(--line);
}
.history-note,
.notice {
  font-size: 12px;
  padding: 15px;
  background: #f8f5ec;
  border: 1px solid #eee8d9;
  border-radius: 5px;
  margin-bottom: 25px;
  color: #8a7a59;
}
.history-note a {
  text-decoration: underline;
}
.page-footer {
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 65px 35px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #b0aa9e;
  display: flex;
  gap: 12px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #fafaf7;
}
.login-card {
  width: 100%;
  max-width: 390px;
}
.login-card h1 {
  font-size: 38px;
}
.login-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-form label {
  font-size: 12px;
}
.login-form input {
  padding: 12px;
}
.login-form .primary {
  margin-top: 4px;
  padding: 12px;
}
.login-note {
  font-size: 11px;
  color: #aaa396;
  margin-top: 22px;
  text-align: center;
}
.form-error {
  font-size: 12px;
  color: #aa5549;
}
.error-card .primary {
  margin-top: 22px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 75px;
  }
  .sidebar {
    width: 240px;
  }
  .app-shell {
    margin-left: 240px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 190px;
  }
  .workspace {
    font-size: 11px;
  }
  .app-shell {
    margin-left: 190px;
  }
  .content {
    padding: 38px 32px;
  }
  .page-footer {
    padding-left: 32px;
    padding-right: 32px;
  }
  .callout {
    flex-wrap: wrap;
  }
  .callout .primary {
    margin-left: 40px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
  }
  .content {
    padding: 32px 20px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .page-icon {
    font-size: 37px;
    margin-bottom: 20px;
  }
  .callout {
    padding: 16px;
    margin-top: 24px;
  }
  .section-heading {
    gap: 7px;
  }
  h2 {
    font-size: 18px;
  }
  .countdown {
    font-size: 9px;
  }
  .assignment-fields {
    grid-template-columns: 1fr;
  }
  .add-task {
    flex-wrap: wrap;
  }
  .add-task select {
    max-width: 105px;
  }
  .add-task .quiet {
    padding: 6px;
  }
  .category-manager > summary > span {
    display: block;
    margin: 5px 0 0 15px;
  }
  .date-picker {
    flex-wrap: wrap;
  }
  .day-navigation {
    gap: 3px;
  }
  .day-navigation .quiet {
    padding: 6px;
    font-size: 11px;
  }
  .day-navigation input {
    max-width: 133px;
  }
  .day-link {
    gap: 5px;
  }
  .progress-cell progress {
    width: 35px;
  }
  td,
  th {
    padding-left: 6px;
    padding-right: 6px;
  }
  .page-footer {
    padding: 0 20px 25px;
    font-size: 8px;
  }
  .edit-hint {
    opacity: 1;
  }
  .category-setting {
    flex-wrap: wrap;
  }
  .category-setting form:first-child {
    min-width: 190px;
  }
  .section-note {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition: background-color 0.12s ease;
  }
}
