.memo-detail-dialog {
  width: min(556px, calc(100vw - 32px));
  height: min(556px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 40px 44px;
  border: 0;
  border-radius: 24px;
  color: var(--white00);
  box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
}

.memo-detail-dialog::backdrop {
  background-color: rgb(0 27 81 / 50%);
}
.memo-detail-dialog--delete-confirmation::backdrop {
  background-color: transparent;
}

.memo-detail-content {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.memo-detail-header {
  display: flex;
  width: 100%;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.memo-detail-header h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: var(--font-size-heading-large);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading-large);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memo-detail-close-button,
.memo-detail-action-button {
  display: flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--white00);
  cursor: pointer;
}
.memo-detail-close-button {
  width: 32px;
  height: 32px;
}
.memo-detail-close-button img {
  width: 32px;
  height: 32px;
}
.memo-detail-main {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}
.memo-detail-meta {
  display: flex;
  margin-top: 32px;
  gap: 24px;
  align-items: center;
}

.memo-detail-category {
  display: inline-flex;
  width: 116px;
  height: 36px;
  padding: 4px 24px 4px 12px;
  align-items: center;
  justify-content: space-between;
  border-radius: 28px;
  background-color: var(--white00);
  color: var(--Blue-blue07);
  font-size: var(--font-size-action-small);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-action-small);
}
.memo-detail-category::before {
  width: 20px;
  height: 20px;
  content: '';
  border-radius: 50%;
  background-color: currentColor;
}
.memo-detail-category--daily {
  color: var(--Blue-blue04);
}
.memo-detail-category--work {
  color: var(--Blue-blue06);
}
.memo-detail-category--others {
  color: var(--Gray-gray03);
}
.memo-detail-divider {
  width: 3px;
  height: 52px;
  flex: 0 0 auto;
}
.memo-detail-date {
  color: var(--white00);
  font-size: var(--font-size-heading-small);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading-small);
}
.memo-detail-body {
  min-height: 0;
  flex: 1;
  margin: 32px 0 0;
  overflow-y: auto;
  color: var(--white00);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body-large);
  white-space: pre-wrap;
}
.memo-detail-actions {
  display: flex;
  padding: 4px;
  gap: 12px;
  align-items: center;
}
.memo-detail-action-button {
  width: 32px;
  height: 32px;
  padding: 1px;
}
.memo-detail-action-button img {
  width: 30px;
  height: 30px;
}
.memo-detail-dialog--daily {
  background-color: var(--color-memo-daily);
}
.memo-detail-dialog--work {
  background-color: var(--Blue-blue06);
}
.memo-detail-dialog--others {
  background-color: var(--Gray-gray02);
}

.memo-delete-dialog {
  width: min(480px, calc(100vw - 32px));
  height: min(240px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 48px 32px 24px;
  border: 0;
  border-radius: 24px;
  background-color: var(--white00);
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
}
#memo-delete-dialog::backdrop,
#memo-delete-success-dialog::backdrop,
#memo-create-success-dialog::backdrop,
#memo-create-exit-dialog::backdrop {
  background-color: rgb(0 27 81 / 50%);
}
.memo-delete-content {
  display: flex;
  height: 100%;
  overflow-y: auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.memo-delete-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.memo-delete-copy h2 {
  margin: 0;
  color: var(--Blue-blue07);
  font-size: var(--font-size-heading-medium);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading-medium);
  text-align: center;
}
.memo-delete-copy p {
  margin: 0;
  color: var(--Gray-gray04);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body-small);
  text-align: center;
}
.memo-delete-actions {
  display: flex;
  width: 100%;
  gap: 12px;
}
.memo-delete-button {
  display: flex;
  height: 56px;
  padding: 12px 24px;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  font-size: var(--font-size-action-small);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-action-small);
}
.memo-delete-button--cancel {
  color: var(--Gray-gray03);
  background-color: var(--Gray-gray01);
}
.memo-delete-button--confirm {
  color: var(--white00);
  background-color: var(--Blue-blue05);
}

.memo-editor-dialog {
  width: 100dvw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
  background-color: var(--white00);
}
.memo-editor-dialog::backdrop {
  background-color: var(--white00);
}
.memo-editor-form {
  min-height: 100%;
}
.memo-editor-page {
  position: relative;
  display: flex;
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 82px 160px;
  flex-direction: column;
}
.memo-editor-back-button {
  position: absolute;
  top: 82px;
  left: 160px;
  width: 14.192px;
  height: 28.124px;
  padding: 3px 1px;
  cursor: pointer;
}
.memo-editor-back-button img {
  width: 12.192px;
  height: 22.124px;
}
.memo-editor-layout {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.memo-editor-card {
  display: flex;
  width: min(600px, 100%);
  height: clamp(420px, calc(100dvh - 184px), 600px);
  padding: 44px 40px 40px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  border-radius: 24px;
  box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
}
.memo-editor-card--daily {
  background-color: var(--Blue-blue04);
}
.memo-editor-card--work {
  background-color: var(--Blue-blue06);
}
.memo-editor-card--others {
  background-color: var(--Gray-gray02);
}
.memo-editor-card--empty {
  background-color: var(--Blue-blue01);
}
.memo-editor-card--empty .memo-editor-title,
.memo-editor-card--empty .memo-editor-content {
  color: var(--Blue-blue04);
}
.memo-editor-card--empty .memo-editor-title::placeholder,
.memo-editor-card--empty .memo-editor-content::placeholder {
  color: var(--color-memo-daily);
}
.memo-editor-title,
.memo-editor-date,
.memo-editor-content {
  border: 0;
  outline: 0;
  color: var(--white00);
  background-color: transparent;
  font-family: inherit;
}
.memo-editor-title {
  width: 100%;
  align-self: stretch;
  padding: 0;
  font-size: var(--font-size-heading-large);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading-large);
}
.memo-editor-title::placeholder,
.memo-editor-content::placeholder {
  color: var(--Blue-blue02);
}
.memo-editor-meta {
  display: flex;
  align-self: stretch;
  gap: 24px;
  align-items: center;
}
.memo-editor-category {
  display: flex;
  width: 116px;
  height: 36px;
  padding: 4px 12px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background-color: var(--Blue-blue01);
  color: var(--Blue-blue04);
  cursor: pointer;
  font-size: var(--font-size-action-small);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-action-small);
}
.memo-editor-category-dot {
  width: 20px;
  height: 20px;
  content: '';
  border-radius: 50%;
  background-color: currentColor;
}
.memo-editor-category-arrow {
  width: 13px;
  height: 16px;
}
.memo-editor-category-arrow[hidden] {
  display: none;
}
.memo-editor-category-selector {
  position: relative;
  flex: 0 0 auto;
}
.memo-editor-category-menu {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  width: 116px;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  background-color: var(--white00);
  box-shadow: 0 8px 24px rgb(0 27 81 / 16%);
}
.memo-editor-category-menu[hidden] {
  display: none;
}
.memo-editor-category-menu button {
  padding: 8px;
  border-radius: 8px;
  color: var(--Blue-blue07);
  cursor: pointer;
  font-size: var(--font-size-body-small);
  text-align: left;
}
.memo-editor-category-menu button:hover {
  background-color: var(--Blue-blue01);
}
.memo-editor-category--work {
  color: var(--Blue-blue06);
}
.memo-editor-category--others {
  color: var(--Gray-gray03);
}
.memo-editor-category--work,
.memo-editor-category--others {
  background-color: var(--white00);
}
.memo-editor-category--empty {
  background-color: var(--Blue-blue02);
  color: var(--Blue-blue07);
}
.memo-editor-date {
  width: 152px;
  padding: 0;
  color-scheme: dark;
  cursor: pointer;
  font-size: var(--font-size-heading-small);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading-small);
}
.memo-editor-divider {
  width: 3px;
  height: 52px;
}
.memo-editor-content {
  width: 100%;
  min-height: 0;
  flex: 1;
  align-self: stretch;
  margin: 0;
  padding: 0;
  resize: none;
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body-large);
}
.memo-editor-actions {
  display: flex;
  width: min(600px, 100%);
  gap: 16px;
}
.memo-editor-button {
  width: 292px;
  height: 56px;
  flex: 1;
  padding: 12px 20px;
  border-radius: 18px;
  cursor: pointer;
  font-size: var(--font-size-action-small);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-action-small);
}
.memo-editor-button--cancel {
  color: var(--Gray-gray03);
  background-color: var(--color-memo-star);
}
.memo-editor-button--submit {
  color: var(--white00);
  background-color: var(--Blue-blue05);
}
.memo-editor-button--submit:disabled {
  cursor: not-allowed;
  background-color: var(--color-memo-daily);
}
