.fengxinlou--summary {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
}

.fengxinlou--summary .fengxinlou-topbar {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  backdrop-filter: none;
}

.fengxinlou--summary .fengxinlou-topbar__title {
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 600;
}

.fengxinlou--summary .fengxinlou-topbar__eyebrow {
  display: none;
}

.fengxinlou--summary .fengxinlou-topbar__button {
  color: #1f1f1f;
}

.fengxinlou--summary .fengxinlou-topbar__button--icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e6e6e6;
  font-size: 18px;
  line-height: 1;
}

.fengxinlou--summary .fengxinlou-topbar__button--right {
  font-size: 20px;
  font-weight: 400;
}

.fengxinlou-summary-page {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f6f6f6;
}

.fengxinlou-summary-section {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #ededed;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.fengxinlou-summary-section__head {
  margin-bottom: 12px;
}

.fengxinlou-summary-section__head--records {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fengxinlou-summary-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
}

.fengxinlou-summary-section__sub,
.fengxinlou-summary-section__stats {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #666666;
}

.fengxinlou-summary-range__field,
.fengxinlou-summary-section__textarea-wrap,
.fengxinlou-summary-prompt-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fengxinlou-summary-range__field + .fengxinlou-summary-range__field,
.fengxinlou-summary-range__field + .fengxinlou-summary-section__textarea-wrap,
.fengxinlou-summary-section__textarea-wrap + .fengxinlou-summary-range__button-row,
.fengxinlou-summary-section__textarea-wrap + .fengxinlou-summary-section__actions {
  margin-top: 12px;
}

.fengxinlou-summary-range__label,
.fengxinlou-summary-section__textarea-label,
.fengxinlou-summary-prompt-modal__label {
  font-size: 12px;
  color: #555555;
}

.fengxinlou-summary-range__input,
.fengxinlou-summary-section__textarea,
.fengxinlou-summary-prompt-modal__textarea {
  width: 100%;
  border: 1px solid #e7e7e7;
  outline: none;
  background: #fafafa;
  color: #222222;
  font: inherit;
  font-size: 13px;
}

.fengxinlou-summary-range__input {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
}

.fengxinlou-summary-section__textarea,
.fengxinlou-summary-prompt-modal__textarea {
  resize: none;
  border-radius: 14px;
  padding: 12px;
  line-height: 1.75;
}

.fengxinlou-summary-section__textarea {
  min-height: 124px;
}

.fengxinlou-summary-section__textarea--editable {
  min-height: 150px;
}

.fengxinlou-summary-section__textarea::placeholder,
.fengxinlou-summary-range__input::placeholder,
.fengxinlou-summary-prompt-modal__textarea::placeholder {
  color: #a0a0a0;
}

.fengxinlou-summary-range__button-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fengxinlou-summary-range__button,
.fengxinlou-summary-section__primary,
.fengxinlou-summary-prompt-modal__button,
.fengxinlou-summary-prompt-modal__ghost,
.fengxinlou-summary-records__tool {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e5e5e5;
}

.fengxinlou-summary-range__button--dark,
.fengxinlou-summary-section__primary,
.fengxinlou-summary-prompt-modal__button {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: none;
}

.fengxinlou-summary-range__button--light,
.fengxinlou-summary-prompt-modal__ghost,
.fengxinlou-summary-records__tool {
  background: #ffffff;
  color: #222222;
  border-color: #dddddd;
  box-shadow: none;
}

.fengxinlou-summary-records__tool--danger {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.fengxinlou-summary-section__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.fengxinlou-summary-section__primary {
  min-width: 144px;
}

.fengxinlou-summary-records__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fengxinlou-summary-records__empty {
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  background: #fafafa;
  border: 1px solid #ededed;
  color: #888888;
  font-size: 13px;
}

.fengxinlou-summary-records__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fengxinlou-summary-record {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #ececec;
  text-align: left;
}

.fengxinlou-summary-record--selectable.is-selected {
  border-color: #111111;
  background: #f3f3f3;
}

.fengxinlou-summary-record__checkbox {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  position: relative;
  margin-top: 1px;
}

.fengxinlou-summary-record__checkbox.is-selected {
  background: #111111;
  border-color: #111111;
}

.fengxinlou-summary-record__checkbox.is-selected::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fengxinlou-summary-record__body {
  min-width: 0;
  flex: 1;
}

.fengxinlou-summary-record__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fengxinlou-summary-record__meta--detail {
  margin-bottom: 12px;
}

.fengxinlou-summary-record__index {
  font-size: 12px;
  color: #333333;
  font-weight: 600;
}

.fengxinlou-summary-record__time {
  font-size: 11px;
  color: #999999;
}

.fengxinlou-summary-record__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #222222;
  word-break: break-word;
}

.fengxinlou-summary-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fengxinlou-summary-prompt-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.28);
}

.fengxinlou-summary-prompt-modal__panel {
  position: relative;
  width: min(100%, 430px);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  border: 1px solid #ececec;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 14px 14px 18px;
}

.fengxinlou-summary-prompt-modal__panel--detail {
  max-height: min(90vh, 760px);
}

.fengxinlou-summary-prompt-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.fengxinlou-summary-prompt-modal__title {
  margin: 0;
  font-size: 15px;
  color: #222222;
  font-weight: 700;
}

.fengxinlou-summary-prompt-modal__close {
  width: 30px;
  height: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #ffffff;
  color: #333333;
  font: inherit;
  font-size: 18px;
  line-height: 1;
}

.fengxinlou-summary-prompt-modal__textarea {
  min-height: 140px;
}

.fengxinlou-summary-prompt-modal__textarea--detail {
  min-height: 220px;
}

.fengxinlou-summary-prompt-modal__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.fengxinlou-summary-detail__scroll {
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.fengxinlou-summary-detail__title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #1f1f1f;
  font-weight: 700;
  word-break: break-word;
}

.fengxinlou-summary-detail__content {
  white-space: pre-wrap;
  line-height: 1.8;
  word-break: break-word;
}

@media (max-width: 420px) {
  .fengxinlou-summary-page {
    padding: 10px;
  }

  .fengxinlou-summary-range__button-row {
    flex-direction: row;
  }

  .fengxinlou-summary-range__button,
  .fengxinlou-summary-records__tool {
    flex: 1 1 0;
    justify-content: center;
  }

  .fengxinlou-summary-section,
  .fengxinlou-summary-prompt-modal__panel {
    border-radius: 14px;
  }

  .fengxinlou-summary-prompt-modal__panel {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .fengxinlou-summary-section__head--records {
    flex-direction: column;
  }

  .fengxinlou-summary-records__toolbar {
    width: 100%;
    justify-content: stretch;
  }
}
