* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f5f0;
  color: #282f2b;
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans KR",
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  background: #fff;
  border-bottom: 1px solid #e5e9e1;
}
.top {
  max-width: 1160px;
  min-height: 74px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
}
.logo {
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
nav button {
  padding: 8px 4px;
}
#auth-button,
#gate-auth {
  background: #f9e780;
  border-radius: 8px;
  padding: 9px 14px;
}
#identity {
  color: #667465;
}
.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 43px 24px 60px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.3px;
  margin: 10px 0;
}
p {
  font-size: 14px;
  line-height: 1.8;
  color: #697568;
  margin: 4px 0;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #64846b;
}
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.card {
  background: #fff;
  border: 1px solid #e5e9e0;
  border-radius: 19px;
  box-shadow: 0 5px 20px #334d2c08;
}
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}
.sidebar {
  padding: 24px;
}
.month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.month h2 {
  font-size: 17px;
}
.month button {
  font-size: 24px;
  padding: 5px 10px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px 1px;
  text-align: center;
}
.weekday {
  font-size: 11px;
  color: #667465;
  padding-bottom: 8px;
}
.day {
  position: relative;
  height: 34px;
  width: 32px;
  margin: auto;
  border-radius: 50%;
  font-size: 12px;
}
.level-0 {
  background: #f2f4ef;
  color: #596854;
}
.level-1 {
  background: #e1eee0;
  color: #38563c;
}
.level-2 {
  background: #b5d0b2;
  color: #244a2e;
}
.level-3 {
  background: #628c6a;
  color: #fff;
}
.day.active {
  outline: 2px solid #305f40;
  outline-offset: 2px;
  font-weight: 800;
}
.day.today {
  box-shadow: inset 0 0 0 1px #6e8e70;
}
.day.flash:after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  background: #b57426;
  border-radius: 50%;
}
.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 18px -8px 0;
  font-size: 9px;
  color: #61735f;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
hr {
  border: 0;
  border-top: 1px solid #edf0e9;
  margin: 24px 0;
}
.small-heading {
  font-size: 14px;
  margin: 0 0 8px;
}
.upcoming-list {
  max-height: 400px;
  overflow: auto;
}
.upcoming {
  display: flex;
  gap: 12px;
  text-align: left;
  width: 100%;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1ed;
}
.upcoming:hover {
  background: #f5f8f2;
}
.datebox {
  border-radius: 10px;
  background: #f2f6ef;
  color: #54745c;
  padding: 9px;
  min-width: 48px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.upcoming strong {
  display: block;
  font-size: 13px;
}
.upcoming small {
  display: block;
  margin-top: 4px;
  color: #677664;
  font-size: 11px;
}
.main {
  padding: 28px 30px;
  min-height: 440px;
}
.event-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip,
.tag {
  font-size: 12px;
  padding: 7px 11px;
  border: 1px solid #e0e9df;
  background: #f4f7f2;
  border-radius: 9px;
}
.chip.selected {
  background: #e5f0e3;
  border-color: #799a7e;
  font-weight: 700;
}
.tag {
  display: inline-block;
  background: #eef5eb;
  color: #4b7052;
  border: 0;
  border-radius: 20px;
}
.main h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 16px 0 8px;
}
.details {
  color: #6c7869;
  font-size: 13px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-title h3 {
  font-size: 16px;
  margin: 0;
}
.count {
  font-size: 20px;
  font-weight: 800;
  color: #446f51;
}
.count span {
  font-size: 14px;
  font-weight: 500;
  color: #687964;
}
.meeples {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 16px 0;
  font-size: 27px;
  line-height: 1;
  color: #dae4d7;
}
.meeple.full {
  color: #6e9674;
}
.meeple {
  width: 30px;
  height: 34px;
  fill: currentColor;
}
.meeple.me {
  color: #b26b24;
}
.hint {
  font-size: 12px;
  color: #677563;
}
.action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.primary,
.secondary,
.danger {
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 650;
  font-size: 13px;
  min-height: 42px;
}
.primary {
  background: #476f52;
  color: white;
}
.secondary {
  background: #f5f7f3;
  border: 1px solid #e0e7dc;
  color: #4e674e;
}
.danger {
  background: #fff1ef;
  color: #983d32;
  border: 1px solid #f0d8d1;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.list-title {
  font-size: 14px;
  font-weight: 700;
}
.person {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 17px;
  overflow-wrap: anywhere;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf1e7;
  color: #4a714d;
  font-size: 12px;
  font-weight: 700;
}
.person .name {
  font-size: 13px;
  font-weight: 650;
}
.person small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #6b7667;
}
.person .promote {
  margin-left: auto;
  border: 1px solid #d9e6d7;
  border-radius: 7px;
  padding: 7px;
  color: #476d49;
  font-size: 11px;
}
.note {
  background: #faf8f1;
  border: 1px solid #f1eee3;
  border-radius: 12px;
  padding: 15px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.7;
  color: #736850;
}
.empty {
  color: #6a7867;
  font-size: 13px;
  padding: 15px 0;
}
.history {
  padding: 0;
  list-style: none;
}
.history li {
  padding: 10px 0;
  border-bottom: 1px solid #edf0e9;
  font-size: 12px;
  line-height: 1.8;
}
.history time {
  color: #72816d;
  display: block;
  font-size: 11px;
}
.panel,
.gate {
  padding: 34px;
  max-width: 850px;
  margin: 0 auto;
}
.gate {
  text-align: center;
  padding: 64px 24px;
}
.gate h1 {
  margin: 18px 0;
}
.gate .privacy {
  max-width: 340px;
  margin: 24px auto;
  font-size: 12px;
}
.panel h1 {
  margin-bottom: 20px;
}
.notice-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0 26px;
  line-height: 1.9;
}
.member-row {
  padding: 18px 0;
  border-bottom: 1px solid #edf0e9;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.member-row small {
  display: block;
  font-size: 12px;
  color: #687564;
  margin-top: 5px;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 26px;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #1b2e22aa;
}
dialog h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
label {
  display: block;
  font-size: 13px;
  color: #536a52;
  margin: 16px 0 6px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #cad6c5;
  border-radius: 9px;
  padding: 11px;
  background: #fff;
  color: #283c2c;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
#editor-error {
  font-size: 12px;
  color: #a53e31;
}
dialog .action {
  justify-content: end;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #283d2f;
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  max-width: calc(100% - 32px);
  z-index: 10;
}
footer {
  margin-top: 26px;
  text-align: center;
  font-size: 11px;
  color: #75816f;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .top {
    padding: 12px 16px;
    align-items: flex-start;
  }
  .brand {
    font-size: 18px;
    white-space: nowrap;
  }
  .top nav {
    justify-content: flex-end;
    gap: 7px;
    font-size: 12px;
  }
  #identity {
    width: 100%;
    text-align: right;
  }
  .wrap {
    padding: 28px 16px 50px;
  }
  h1 {
    font-size: 25px;
  }
  .title {
    align-items: flex-start;
  }
  .title p:not(.eyebrow) {
    max-width: 225px;
    font-size: 12px;
  }
  .primary,
  .secondary,
  .danger {
    padding: 11px 13px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 20px;
  }
  .day {
    width: 36px;
    height: 36px;
  }
  .upcoming-list {
    max-height: 180px;
  }
  .main {
    padding: 24px 20px;
  }
  .columns {
    gap: 16px;
  }
  .main h2 {
    font-size: 22px;
  }
  .panel {
    padding: 24px 20px;
  }
  .member-row {
    align-items: flex-start;
  }
  .member-row button {
    font-size: 11px;
  }
  .legend {
    font-size: 10px;
  }
}
.member-id {
  overflow-wrap: anywhere;
  font-size: 10px !important;
  max-width: 300px;
}
