@charset "UTF-8";

.memento-screen {
  max-width: 780px;
  min-width: 0;
  color: #233c32;
}

.memento-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.memento-screen h1:focus,
.memento-screen h2:focus {
  outline: none;
}

.memento-btn,
.memento-screen button {
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  touch-action: manipulation;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.memento-btn:focus-visible,
.memento-screen button:focus-visible,
.memento-check input:focus-visible {
  outline: 3px solid #a55315;
  outline-offset: 4px;
}

.memento-status {
  border: 2px solid #9ab099;
  background: var(--cream, #fffdf5);
  color: #1f3a2e;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.memento-status.is-visible {
  border-color: var(--green, #245c48);
  background: #eef5ea;
  color: var(--green-dark, #173e30);
}

.memento-status.is-busy {
  border-color: #9e7432;
  background: #fff7e4;
  color: #5b3e11;
}

.memento-card-preview {
  border: 2px solid #b8c9b2;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf7 0%, #f3f7ee 100%);
  padding: 26px 24px;
  margin: 0 0 22px;
  box-shadow: 0 5px 0 #d7e1d1;
}

.memento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.memento-stage-chip {
  margin-bottom: 0;
  font-size: 0.85rem;
  padding: 6px 12px;
  border: 1px solid #8fa687;
  background: #ffffff;
  color: #1f442f;
}

.memento-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3f5247;
}

.memento-card-title {
  font-size: 1.4rem;
  line-height: 1.45;
  color: #173e30;
  margin: 0 0 8px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.memento-card-subtitle {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2f473c;
  margin: 0 0 18px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.memento-image-frame {
  background: #ffffff;
  border: 2px solid #c5d4bf;
  border-radius: 18px;
  padding: 12px;
  margin: 0 auto 16px;
  max-width: 480px;
}

.memento-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}

.memento-placeholder {
  border: 2px dashed #8da487;
  border-radius: 18px;
  background: #fffef9;
  padding: 28px 20px;
  text-align: center;
  margin: 0 0 16px;
}

.memento-ornament {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e6efe0;
  color: var(--green, #245c48);
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.memento-placeholder-note {
  margin: 0;
  color: #2c4438;
  font-size: 0.96rem;
  line-height: 1.75;
}

.memento-safe-promise {
  margin: 0;
  color: #2c4a3a;
  font-weight: 700;
}

.memento-options,
.memento-actions,
.memento-guide {
  border: 1px solid var(--line, #d8dfd6);
  border-radius: 18px;
  background: #ffffff;
  padding: 24px;
  margin: 20px 0;
}

.memento-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 58px;
  padding: 14px;
  margin: 10px 0;
  border: 2px solid #9eb19d;
  border-radius: 14px;
  background: var(--cream, #fffdf5);
  cursor: pointer;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.memento-check:hover {
  background: var(--soft, #edf3e7);
}

.memento-check input[type="checkbox"] {
  width: 26px;
  height: 26px;
  margin-top: 3px;
  accent-color: var(--green, #245c48);
  flex-shrink: 0;
}

.memento-check span {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  color: #1f392d;
}

.memento-check small {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.65;
  color: #42544b;
}

.memento-primary-actions {
  margin: 12px 0 14px;
}

.memento-secondary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.memento-secondary-actions .memento-btn {
  width: 100%;
  border: 2px solid #5f7462;
  color: #1d3c2d;
}

.memento-guide-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: #2a4035;
}

.memento-guide-list li {
  margin-bottom: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.memento-guide-list li:last-child {
  margin-bottom: 0;
}

html[data-size="2"] .memento-secondary-actions {
  grid-template-columns: 1fr;
}

html[data-size="2"] .memento-card-header {
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 720px) {
  .memento-secondary-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .memento-card-preview,
  .memento-options,
  .memento-actions,
  .memento-guide {
    padding: 18px 15px;
    border-radius: 16px;
  }

  .memento-card-title {
    font-size: 1.22rem;
  }

  .memento-check {
    padding: 12px;
    gap: 10px;
  }
}

@media (max-width: 350px) {
  .memento-card-preview,
  .memento-options,
  .memento-actions,
  .memento-guide {
    padding: 14px 12px;
  }

  .memento-btn,
  .memento-screen button {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .memento-image-frame {
    padding: 8px;
  }
}

html[data-motion="false"] .memento-screen *,
html[data-motion="false"] .memento-screen *::before,
html[data-motion="false"] .memento-screen *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .memento-screen *,
  .memento-screen *::before,
  .memento-screen *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .memento-card-preview,
  .memento-options,
  .memento-actions,
  .memento-guide,
  .memento-status,
  .memento-check,
  .memento-btn {
    border: 2px solid ButtonText;
  }
}
