.daoli-panel {
  padding: 24px;
}

.daoli-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 360px);
  gap: 20px;
}

.daoli-main,
.daoli-side {
  border: 1px solid #dfcdb6;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
  padding: 20px;
}

.daoli-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.daoli-nav,
.daoli-secondary,
.daoli-ghost {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.daoli-nav {
  background: linear-gradient(135deg, #8b5a2b 0%, #b9772f 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(139, 90, 43, 0.18);
}

.daoli-secondary {
  margin-left: auto;
  background: #f5ede2;
  color: #7a4d1d;
}

.daoli-ghost {
  background: #fbf4e7;
  color: #8c622d;
}

.daoli-nav:hover,
.daoli-secondary:hover,
.daoli-ghost:hover,
.daoli-day:hover {
  transform: translateY(-1px);
}

.daoli-month-title {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f7efe5;
  color: #74491f;
  text-align: center;
  font-weight: 700;
}

.daoli-tip {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7efe5;
  color: #85592d;
}

.daoli-tip.is-error {
  background: #fff1f2;
  color: #b42318;
}

.daoli-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #d8c3a8;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}

.daoli-weekday,
.daoli-day {
  min-width: 0;
  border-right: 1px solid #e7d9c7;
  border-bottom: 1px solid #e7d9c7;
}

.daoli-weekday:nth-child(7n),
.daoli-day:nth-child(7n) {
  border-right: 0;
}

.daoli-weekday {
  min-height: 46px;
  display: grid;
  place-items: center;
  background: #a4672e;
  color: #ffffff;
  font-weight: 700;
}

.daoli-day {
  position: relative;
  min-height: 108px;
  padding: 12px 10px 10px;
  background: #ffffff;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.daoli-day.is-other {
  background: #fcfaf7;
  color: #a89a8a;
}

.daoli-day.is-selected {
  background: #fff3dd;
  box-shadow: inset 0 0 0 2px #c3812c;
}

.daoli-day.is-today {
  background: #f7ede0;
}

.daoli-day.is-special::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #a4672e;
}

.daoli-day strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.daoli-day .lunar {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #71583d;
}

.daoli-day .badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.daoli-day .badge-line span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef6eb;
  color: #2e7a32;
  font-size: 11px;
  line-height: 1;
}

.daoli-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daoli-side-head h2,
.daoli-note-panel h2 {
  margin: 0;
  font-size: 20px;
  color: #5b3815;
}

.daoli-hero-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #8b5a2b 0%, #b9772f 100%);
  color: #ffffff;
}

.daoli-hero-card span,
.daoli-hero-card strong {
  display: block;
}

.daoli-hero-card strong {
  margin: 10px 0;
  font-size: 28px;
  line-height: 1.4;
}

.daoli-detail-list {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.daoli-detail-list div {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fbf6ef;
  border: 1px solid #eadbc8;
}

.daoli-detail-list dt {
  color: #8a6945;
  font-size: 12px;
}

.daoli-detail-list dd {
  margin: 6px 0 0;
  color: #4d3215;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.daoli-markers {
  margin-top: 18px;
}

.daoli-markers h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #5b3815;
}

.daoli-markers h3 + .pill-list {
  margin-bottom: 14px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f7efe5;
  color: #764a20;
  font-size: 12px;
}

.pill-list.warm span {
  background: #fff1d8;
  color: #9a5c00;
}

.daoli-note-panel .tool-note-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #8a5700;
  line-height: 1.85;
}

@media (max-width: 1180px) {
  .daoli-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .daoli-panel {
    padding: 16px;
  }

  .daoli-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .daoli-secondary {
    margin-left: 0;
  }

  .daoli-day {
    min-height: 92px;
    padding: 10px 8px 8px;
  }

  .daoli-day strong {
    font-size: 20px;
  }
}
