.memo-layout-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
}

.memo-layout-page__splitter,
.memo-layout-page__splitter .ant-splitter-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.memo-layout-page__pane {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px;
  box-sizing: border-box;
}

.memo-layout-page__pane--title {
  align-items: stretch;
}

.memo-layout-page__title-input.ant-input {
  align-self: stretch;
  width: 100%;
  height: 100%;
  padding: 24px 26px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.memo-layout-page__title-input.ant-input::placeholder {
  color: rgba(100, 116, 139, 0.7);
}

.memo-layout-page__pane--memo {
  flex-direction: column;
  gap: 12px;
}

.memo-layout-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.memo-layout-page__toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.memo-layout-page__toolbar .ant-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 12px;
  color: #475569;
}

.memo-layout-page__toolbar .ant-btn:not(:disabled):hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
}

.memo-layout-page__body {
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
}

.memo-layout-page__body--list-open .memo-layout-page__editor {
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
}

.memo-layout-page__list-shell {
  flex: 0 0 260px;
  min-width: 220px;
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.memo-layout-page__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.memo-layout-page__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 10px;
  overflow: auto;
  box-sizing: border-box;
}

.memo-layout-page__list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.96);
  text-align: left;
  cursor: pointer;
}

.memo-layout-page__list-item:hover {
  background: rgba(241, 245, 249, 1);
}

.memo-layout-page__list-item--active {
  background: rgba(254, 240, 138, 0.42);
}

.memo-layout-page__list-time {
  color: rgba(100, 116, 139, 0.94);
  font-size: 12px;
}

.memo-layout-page__list-preview {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memo-layout-page__editor {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 248, 216, 0.98) 0,
      rgba(255, 248, 216, 0.98) 37px,
      rgba(236, 221, 177, 0.78) 37px,
      rgba(236, 221, 177, 0.78) 38px
    );
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.memo-layout-page__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 14px 18px 0;
  color: rgba(100, 116, 139, 0.92);
  font-size: 12px;
}

.memo-layout-page__meta > :first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memo-layout-page__textarea.ant-input {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 18px 32px;
  color: #3f3a2f;
  font-size: 16px;
  line-height: 38px;
  background: transparent;
  resize: none;
}

.memo-layout-page__textarea.ant-input::placeholder {
  color: rgba(120, 113, 91, 0.72);
}

@media (max-width: 768px) {
  .memo-layout-page__pane {
    padding: 12px;
  }

  .memo-layout-page__body {
    flex-direction: column;
  }

  .memo-layout-page__list-shell {
    flex: 0 0 180px;
    min-width: 0;
  }

  .memo-layout-page__title-input.ant-input {
    padding: 18px 20px;
    border-radius: 22px;
    font-size: 24px;
  }

  .memo-layout-page__editor {
    border-radius: 22px;
  }
}
