@font-face {
  font-family: Pretendard;
  src: url("./fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Caveat;
  src: url("./fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #43372d;
  --wood: #63472f;
  --brown: #795639;
  --soft: #ad9277;
  --sand: #d8c9b5;
  --cream: #ede3d4;
  --olive: #607653;
  --paper: #f7f1e6;
  --line: #d7cbb9;
  --muted: #786c5e;
  --shadow: 0 5px 18px #60442a08;
  font-family:
    Pretendard,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  color: var(--ink);
  background: #eee5d6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
a {
  color: inherit;
}
button,
select,
input,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
:focus-visible {
  outline: 2px solid #597349;
}
input,
textarea,
select {
  max-width: 100%;
}
textarea {
  resize: vertical;
}
h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  word-break: keep-all;
}
h1 {
  font-weight: 660;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 16px;
}
button svg,
.row svg {
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.top {
  background: #f5eee2;
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 1220px;
  margin: auto;
  height: 80px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand,
.footer-brand {
  font:
    600 40px/0.95 Caveat,
    "Bradley Hand",
    cursive;
  color: var(--wood);
  white-space: nowrap;
  letter-spacing: -1.8px;
}
.brand span {
  color: var(--olive);
}
nav {
  display: flex;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  color: #786a5a;
  font-size: 15px;
  font-weight: 560;
  border-radius: 10px;
}
nav button.active {
  background: #e8ddca;
  color: var(--wood);
  font-weight: 720;
}
.profile,
.icon-btn,
.remove-line {
  display: inline-grid;
  place-items: center;
  flex: none;
}
.profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #c6b79f;
  background: #e8dfce;
  color: var(--wood);
}
.icon-btn {
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
}
.icon-btn:hover,
.remove-line:hover {
  background: #e5d9c8;
}
main {
  max-width: 1150px;
  margin: auto;
  padding: 52px 4.5% 32px;
}
.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(270px, 1fr);
  column-gap: 30px;
  row-gap: 28px;
}
.intro {
  grid-column: 1;
  grid-row: 1;
}
.dateline,
.verse-label {
  font-size: 11px;
  font-weight: 670;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dateline {
  color: var(--wood);
}
.dateline i,
.verse-label i {
  height: 1px;
  width: 20px;
  background: currentColor;
  opacity: 0.65;
}
.intro h1 {
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 1.16;
  margin: 17px 0 12px;
  color: var(--wood);
}
.intro em {
  font-style: normal;
  color: #566c4b;
}
.intro p,
.page-title p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.journal-slot {
  grid-column: 1;
  grid-row: 2;
}
.side {
  grid-column: 2;
  grid-row: 1/3;
  align-self: end;
  display: grid;
  gap: 18px;
}
.card,
.verse {
  border-radius: 18px;
}
.card {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 26px;
}
.journal {
  padding: 25px 28px;
}
.section-head,
.row,
.journal-bottom,
.sharing,
.primary,
.secondary,
.text-btn,
.saved,
.chip,
.add-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spread,
.journal-bottom {
  justify-content: space-between;
}
.section-head {
  margin-bottom: 18px;
  gap: 10px;
}
.section-icon {
  display: grid;
  place-items: center;
  color: var(--brown);
}
.count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 650;
  color: var(--brown);
}
.count small {
  color: var(--muted);
  font-weight: 450;
}
.entry-lines {
  display: grid;
  gap: 9px;
}
.entry-line {
  border: 1px solid #d9cbb6;
  background: #efe6d7;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 9px 12px 14px;
}
.entry-line:focus-within {
  border-color: var(--soft);
  box-shadow: 0 0 0 2px #ad92771c;
}
.line-num {
  font:
    italic 16px/1.6 Georgia,
    serif;
  color: #886c4e;
}
.entry-line textarea {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  line-height: 1.6;
  font-size: 15px;
  padding: 0;
  resize: none;
  field-sizing: content;
  max-height: 180px;
  min-height: 25px;
}
.entry-line textarea::placeholder {
  color: #867b6b;
}
.remove-line {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  color: #8d7d6b;
}
.add-line {
  justify-content: center;
  border: 1px dashed #bbae98;
  border-radius: 9px;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  color: var(--brown);
  font-weight: 590;
  font-size: 14px;
}
.journal-bottom {
  margin: 17px 0 12px;
}
.sharing {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.sharing select {
  border: none;
  background: transparent;
  font-weight: 540;
  padding: 4px 0;
  width: auto;
}
.saved {
  color: var(--olive);
  font-size: 12px;
}
.primary,
.secondary,
.text-btn {
  justify-content: center;
  font-weight: 620;
  border-radius: 9px;
}
.primary,
.secondary {
  padding: 12px 17px;
  min-height: 42px;
}
.primary {
  background: var(--brown);
  color: #fff8eb;
  border: 1px solid #704e33;
}
.primary:hover {
  background: var(--wood);
}
.secondary {
  background: #eee5d7;
  color: var(--wood);
  border: 1px solid var(--line);
}
.text-btn {
  padding: 6px;
  color: var(--olive);
  font-size: 13px;
}
.wide {
  width: 100%;
}
.verse {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f9f1dc;
  background: #596d50;
  min-height: 211px;
  padding: 25px 25px 28px;
  border: 1px solid #51644a;
}
.verse-label {
  font-size: 10px;
  color: #e1e3c9;
  gap: 9px;
  position: relative;
  z-index: 1;
}
.verse-label i {
  width: 19px;
}
.verse-quote {
  display: block;
  font:
    italic 50px/0.75 Georgia,
    serif;
  margin-top: 28px;
  color: #c8cba7;
  height: 22px;
}
.verse blockquote {
  font-size: 27px;
  font-weight: 580;
  letter-spacing: -0.06em;
  position: relative;
  z-index: 1;
}
.verse p {
  font-size: 12px;
  color: #e1e2cf;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.verse-art {
  position: absolute;
  right: -13px;
  bottom: -5px;
  width: 51%;
  max-width: 174px;
  color: #d0d1af;
  opacity: 0.42;
  transform: rotate(-9deg);
  z-index: -1;
}
.week-card {
  padding: 19px 23px;
}
.week-card h2 {
  font-size: 18px;
}
.week-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 14px -5px 12px;
}
.week-dots button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
}
.week-dots small {
  font-size: 11px;
  color: var(--muted);
}
.week-dots b {
  font-size: 13px;
  font-weight: 550;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.week-dots .current b {
  background: var(--wood);
  color: #fff9ed;
}
.week-dots .has:not(.current b) {
  box-shadow: inset 0 -2px var(--brown);
}
.week-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.week-dots .filled {
  background: var(--olive);
}
.mini-stats {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  gap: 20px;
}
.mini-stats div {
  flex: 1;
  display: grid;
  gap: 5px;
}
.mini-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
}
.mini-stats strong {
  font-weight: 650;
  color: var(--wood);
  font-size: 18px;
}
.mini-stats div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
footer {
  max-width: 1040px;
  padding: 17px 0 27px;
  margin: 10px auto 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
  color: #83725e;
  font-size: 12px;
}
.footer-brand {
  font-size: 23px;
}
.footer-brand + p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
}
footer > span:last-child {
  margin-left: auto;
}
.page-title {
  margin-bottom: 25px;
}
.page-title h1 {
  font-size: clamp(31px, 4vw, 43px);
  color: var(--wood);
  margin-bottom: 7px;
}
.empty {
  text-align: center;
  padding: 32px 12px;
  color: var(--muted);
  font-size: 14px;
}
.empty svg {
  color: var(--soft);
  margin-bottom: 8px;
}
.error {
  color: #9b472f;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
}
.muted {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.staging {
  min-height: 270px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: 90vw;
  width: max-content;
  padding: 12px 20px;
  border-radius: 10px;
  background: #443a30;
  color: #fff9eb;
  font-size: 14px;
  z-index: 50;
  box-shadow: 0 6px 24px #31241630;
}
dialog {
  padding: 22px 25px 25px;
  border: 1px solid #c4b39b;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  width: min(490px, calc(100% - 28px));
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 18px 70px #38261335;
}
dialog::backdrop {
  background: #382c235e;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dialog-head h2 {
  font-size: 22px;
}
dialog form {
  display: grid;
  gap: 14px;
}
dialog label,
.form-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 580;
}
dialog input:not([type="radio"]),
dialog textarea,
dialog select,
.filter-field {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fcf7ee;
  width: 100%;
  line-height: 1.5;
}
dialog textarea {
  min-height: 62px;
}
dialog .sharing {
  display: flex;
}
dialog .sharing select {
  width: auto;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (min-width: 1250px) {
  main {
    padding-left: 35px;
    padding-right: 35px;
  }
}
@media (max-width: 1150px) {
  footer {
    margin-left: 4.5%;
    margin-right: 4.5%;
  }
}
@media (max-width: 850px) {
  .bar {
    padding: 0 24px;
  }
  nav {
    gap: 1px;
  }
  nav button {
    padding: 10px;
  }
  .today-layout {
    column-gap: 18px;
    grid-template-columns: minmax(0, 1.48fr) minmax(235px, 1fr);
  }
  .journal,
  .week-card,
  .verse {
    padding: 20px;
  }
  main {
    padding-top: 35px;
  }
}
@media (max-width: 700px) {
  .bar {
    height: 64px;
    padding: 0 20px;
  }
  .brand {
    font-size: 36px;
  }
  .profile {
    width: 34px;
    height: 34px;
  }
  nav {
    position: fixed;
    z-index: 15;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: space-around;
    background: #f6eee1;
    border-top: 1px solid #cdbfa9;
    box-shadow: 0 -4px 18px #60442a0a;
    gap: 0;
    padding: 5px 6px max(6px, env(safe-area-inset-bottom));
  }
  nav button {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    border-radius: 8px;
    padding: 7px 2px;
    min-width: 0;
  }
  nav button.active {
    background: transparent;
    color: var(--wood);
  }
  nav button.active svg {
    stroke-width: 2.35;
  }
  nav button.active span {
    font-weight: 760;
  }
  .today-layout {
    display: flex;
    flex-direction: column;
    gap: 19px;
  }
  .side {
    align-self: stretch;
    gap: 14px;
  }
  .intro h1 {
    font-size: 39px;
    line-height: 1.15;
    margin: 11px 0 7px;
  }
  .intro p {
    font-size: 14px;
  }
  .dateline {
    font-size: 10px;
  }
  .journal {
    padding: 19px 17px;
  }
  .section-head {
    margin-bottom: 13px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .verse {
    min-height: 153px;
    padding: 20px 22px;
  }
  .verse-quote {
    margin-top: 18px;
    height: 15px;
    font-size: 38px;
  }
  .verse blockquote {
    font-size: 24px;
  }
  .verse-art {
    width: 38%;
  }
  .entry-line {
    padding: 11px 7px 10px 12px;
    gap: 10px;
  }
  .entry-line textarea {
    font-size: 16px;
  }
  .journal-bottom {
    margin: 12px 0 8px;
  }
  .week-card {
    padding: 17px 20px;
  }
  .toast {
    bottom: 82px;
  }
  main {
    padding: 26px 17px 15px;
  }
  footer {
    margin: 10px 18px 78px;
    padding: 12px 0;
    gap: 7px;
    flex-wrap: wrap;
  }
  footer > span:last-child {
    font-size: 10px;
  }
  .footer-brand {
    font-size: 19px;
  }
  .footer-brand + p {
    font-size: 11px;
  }
  .card,
  .verse {
    border-radius: 14px;
  }
  dialog {
    padding: 18px;
    max-height: 88dvh;
  }
  .page-title {
    margin-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Calendar, forms and dated records */
.page-head,
.cal-tools,
.feed-tools,
.record-tools,
.actions,
.fields,
.confirm-row,
.legend,
.cal-totals {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-head,
.cal-tools,
.record-tools {
  justify-content: space-between;
}
.page-head {
  align-items: center;
  margin-bottom: 22px;
}
.page-head .page-title {
  margin: 0;
}
.page-head .primary,
.page-head .secondary {
  white-space: nowrap;
  font-size: 14px;
}
.calendar-card {
  padding: 0;
  overflow: hidden;
}
.cal-tools {
  padding: 15px 18px;
  flex-wrap: wrap;
}
.cal-tools b {
  font-size: 15px;
}
.cal-tools .row {
  flex-wrap: wrap;
}
.small-btn,
.date-control,
.date-filter input,
.group-side select {
  border: 1px solid var(--line);
  background: #f8f2e8;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 13px;
}
.segments {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  background: #e5daca;
  padding: 3px;
  border-radius: 9px;
  width: fit-content;
}
.segments button {
  font-size: 13px;
  font-weight: 570;
  color: #756650;
  border-radius: 7px;
  padding: 7px 12px;
}
.segments button[aria-pressed="true"] {
  background: #fbf5e9;
  color: var(--wood);
  box-shadow: 0 1px 3px #4f351929;
}
.standalone {
  margin-bottom: 15px;
}
.cal-totals {
  flex-wrap: wrap;
  padding: 10px 20px;
  background: #ece6d8;
  font-size: 12px;
  color: #665f52;
  gap: 18px;
}
.cal-totals span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-totals b {
  color: #4a6341;
}
.cal-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  max-height: clamp(340px, 56vh, 680px);
  position: relative;
  background: #f8f3ea;
  scrollbar-color: #bfaf98 #ece3d6;
}
.cal-sheet {
  min-width: 100%;
  padding-bottom: 12px;
}
.cal-sheet.is-week {
  min-width: 560px;
}
.cal-heading,
.cal-body {
  display: grid;
  grid-template-columns: 55px 1fr;
}
.cal-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f2eadd;
  border-bottom: 1px solid var(--line);
  height: 38px;
  grid-template-columns: 55px repeat(var(--days), minmax(0, 1fr));
  text-align: center;
}
.cal-heading > div {
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted);
  background: #f2eadd;
  position: sticky;
  left: 0;
  z-index: 2;
}
.cal-heading button {
  font-weight: 600;
  font-size: 14px;
  border-left: 1px solid var(--line);
}
.cal-heading button small {
  font-weight: 450;
}
.cal-heading .selected {
  background: #dce2d0;
  color: #42593b;
}
.cal-body {
  position: relative;
}
.time-axis {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f5eee3;
  pointer-events: none;
}
.time-axis span {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  font-size: 10px;
  color: #817565;
  font-variant-numeric: tabular-nums;
}
.time-axis span:first-child {
  transform: none;
}
.lanes {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(0, 1fr));
  height: 1632px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.lane {
  position: relative;
  border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to bottom,
    #cfbfa5 0px,
    #cfbfa5 1px,
    transparent 1px,
    transparent 34px,
    #e1d6c5 34px,
    #e1d6c5 35px,
    transparent 35px,
    transparent 68px
  );
  cursor: crosshair;
}
.event,
.ghost {
  position: absolute;
  overflow: hidden;
  text-align: left;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1px;
  padding: 6px 5px;
  line-height: 1.12;
  min-width: 0;
}
.event {
  background: color-mix(in srgb, var(--event) 17%, #fcf6e9);
  border-left: 3px solid var(--event);
  border-bottom: 1px solid var(--event);
  color: #312d25;
  cursor: grab;
  -webkit-touch-callout: none;
}
.event b,
.event small,
.event em {
  white-space: nowrap;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
}
.event b {
  font-size: 12px;
}
.event small {
  font-size: 10px;
}
.event em {
  font-size: 11px;
  font-style: normal;
  margin-top: 3px;
}
.event.short {
  padding: 3px 4px;
}
.handle {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
  z-index: 1;
}
.handle:after {
  content: "";
  display: block;
  background: var(--event);
  width: 16px;
  margin: 2px auto;
  height: 2px;
  border-radius: 3px;
  opacity: 0.5;
}
.upper {
  top: 0;
}
.lower {
  bottom: 0;
}
.event.short .handle:after {
  opacity: 0;
}
.event:hover .handle:after {
  opacity: 0.9;
}
.ghost {
  pointer-events: none;
  left: 1px;
  right: 1px;
  color: #354d2f;
  background: #c4d4ade0;
  border: 2px dashed #637e51;
  z-index: 3;
  min-height: 22px;
}
.ghost b {
  font-size: 11px;
}
.cal-instruction {
  padding: 11px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}
.fields {
  gap: 9px;
  align-items: flex-start;
}
.fields > label {
  min-width: 0;
  flex: 1;
}
.fields.three > label:first-child {
  flex: 1.5;
}
.total-pill,
.notice,
.answer {
  background: #e4e9da;
  color: #41583b;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
  font-size: 13px;
}
.total-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}
.total-pill b {
  margin-left: auto;
}
.notice {
  background: #eee1cc;
  color: var(--wood);
}
.palette {
  padding: 0;
  border: 0;
  margin: 0;
  display: flex;
  gap: 9px;
}
.palette legend {
  font-weight: 580;
  font-size: 13px;
  margin-bottom: 8px;
}
.palette label {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.palette input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
}
.palette label:focus-within {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
}
.actions {
  justify-content: flex-end;
  margin-top: 10px;
}
.danger {
  background: #f0dfd5;
  padding: 10px 13px;
  color: #873f2d;
  border: 1px solid #d8b8a7;
  border-radius: 7px;
}
.actions .danger {
  margin-right: auto;
}
.danger-text {
  color: #8a513b;
}
.confirm-row {
  flex-wrap: wrap;
  background: #efe2d2;
  border-radius: 8px;
  padding: 10px;
  justify-content: flex-end;
}
.confirm-row p {
  margin-right: auto;
  font-size: 13px;
}
.list-stack {
  display: grid;
  gap: 12px;
}
.record-item {
  padding: 20px 23px;
}
.record-item h2 {
  margin: 9px 0;
  font-size: 20px;
}
.content-text,
.answer p,
.record-item li {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.meta,
.legend,
.date-filter {
  font-size: 12px;
  color: var(--muted);
}
.meta {
  margin: 8px 0;
}
.tag,
.sample,
.mine {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 11px;
  background: #e1e7d7;
  color: #475f3e;
  border-radius: 5px;
  font-weight: 590;
}
.tag.wood,
.sample {
  color: var(--wood);
  background: #eaddc9;
}
.mine {
  background: #e8dfce;
}
.reaction {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 11px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
.reaction.on {
  background: #e0e7d5;
  color: #435c3c;
  border-color: #a5b398;
}
.answer {
  margin: 10px 0;
}
.community-grid,
.archive-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(215px, 0.85fr) minmax(0, 1.8fr);
  gap: 20px;
}
.group-side select {
  width: 100%;
  margin-bottom: 14px;
}
.group-side h2 {
  margin-bottom: 7px;
}
.group-side .wide {
  margin: 15px 0;
}
.group-side h3,
.stats-card h3 {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin: 8px 0 10px;
}
.members {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.members li,
.post-meta,
.legend span,
.date-filter {
  display: flex;
  align-items: center;
  gap: 7px;
}
.members small {
  color: var(--muted);
  font-size: 11px;
  margin-left: auto;
}
.avatar {
  background: #e7dcc9;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
}
.post-meta {
  flex-wrap: wrap;
}
.feed-tools,
.record-tools {
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.date-filter {
  margin-left: auto;
}
.invite-code {
  border: 1px dashed #ac967b;
  padding: 16px;
  text-align: center;
  margin: 12px 0;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.archive-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 15px 0 10px;
  gap: 2px;
  text-align: center;
}
.month-grid > small {
  font-size: 12px;
  color: var(--muted);
  padding: 5px;
}
.month-grid button {
  padding: 4px 0;
  min-height: 41px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 14px;
}
.month-grid .outside {
  color: #a49987;
}
.month-grid button.now span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.month-grid .selected {
  background: #e3d6bf;
  color: var(--wood);
  font-weight: 700;
}
.month-grid button i {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-height: 5px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.brown {
  background: var(--brown);
}
.green {
  background: var(--olive);
}
.plum {
  background: #896c80;
}
.legend {
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  gap: 16px;
}
.stats-card .mini-stats {
  border: 0;
  padding: 0 0 10px;
}
.category-stat {
  font-size: 13px;
  margin: 12px 0;
}
.category-stat > div + div {
  height: 4px;
  background: #e0d7c7;
  margin-top: 5px;
  border-radius: 3px;
  overflow: hidden;
}
.category-stat i {
  display: block;
  height: 100%;
  background: var(--olive);
}
.record-tools {
  margin-top: 22px;
}
.record-item ol {
  padding-left: 22px;
  margin: 10px 0 0;
}
.dialog-head + .journal {
  box-shadow: none;
  border: 0;
  padding: 0;
}
.dialog-head + .journal .section-head {
  display: none;
}
.record-item h2,
.group-side h2 {
  overflow-wrap: anywhere;
}
@media (max-width: 750px) {
  .page-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cal-tools {
    padding: 9px;
  }
  .community-grid,
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .group-side {
    padding: 18px;
  }
  .members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-side h3 {
    font-size: 14px;
  }
  .group-side .wide {
    margin: 8px 0;
  }
  .record-tools {
    align-items: flex-start;
  }
  .stats-card,
  .month-card {
    padding: 18px;
  }
  .cal-tools .row {
    gap: 4px;
  }
  .cal-tools b {
    font-size: 13px;
  }
  .segments button {
    padding: 7px 9px;
  }
  .record-item {
    padding: 16px;
  }
  .cal-totals {
    padding: 8px 12px;
    gap: 10px;
  }
  .cal-scroll {
    max-height: 52dvh;
  }
  .date-filter {
    margin-left: 0;
  }
  .fields.three {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fields.three label:first-child {
    grid-column: 1/-1;
  }
  .page-head .primary,
  .page-head .secondary {
    min-height: 38px;
    padding: 9px 12px;
  }
  .event b {
    font-size: 11px;
  }
  .cal-sheet.is-week {
    min-width: 630px;
  }
  .handle {
    height: 8px;
  }
  .record-tools h2 {
    font-size: 19px;
  }
  .group-side,
  .stats-card {
    min-width: 0;
  }
}
