.application-memory-stack {
  display: grid;
}

.application-memory-panel,
.application-memory-notice-panel,
.application-learning-receipt-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.24);
  border-radius: 8px;
  background: color-mix(in srgb, var(--theme-primary-soft, #eaf4fa) 52%, #ffffff);
}

.application-memory-panel-head,
.application-memory-notice-panel > header,
.application-learning-receipt-panel > header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.application-memory-panel-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.12);
  color: var(--theme-primary-active, #255b7d);
  font-size: 16px;
}

.application-memory-panel-head > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.application-memory-panel-head strong,
.application-memory-notice-panel > header strong,
.application-learning-receipt-panel > header strong {
  color: #17324a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.application-memory-panel-head small {
  color: #52677a;
  font-size: 12px;
  line-height: 1.55;
}

.application-memory-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.application-memory-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #d7e4f2;
  border-radius: 6px;
  background: #ffffff;
}

.application-memory-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.application-memory-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--theme-primary-active, #255b7d);
  font-size: 11px;
  font-weight: 850;
}

.application-memory-copy > strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.application-memory-copy > small,
.application-memory-copy > em {
  color: #52677a;
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}

.application-memory-copy > em {
  color: #708196;
}

.application-memory-conflict-note {
  color: #8a5a12 !important;
}

.application-memory-forget-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(185, 28, 28, 0.24);
  border-radius: 6px;
  background: #fffafa;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.application-memory-forget-btn:hover:not(:disabled),
.application-memory-forget-btn:focus-visible {
  border-color: rgba(185, 28, 28, 0.48);
  background: #fef2f2;
  color: #7f1d1d;
  outline: none;
}

.application-memory-forget-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.14);
}

.application-memory-forget-btn:disabled {
  cursor: wait;
  opacity: 0.52;
}

.application-learning-receipt-panel {
  display: grid;
  gap: 8px;
  background: #f8fbff;
}

.application-memory-notice-panel {
  display: grid;
  gap: 8px;
  border-color: #ead7a2;
  background: #fffaf0;
}

.application-memory-notice-panel > header {
  align-items: center;
  color: #8a5a12;
}

.application-memory-notice-panel > header i {
  font-size: 17px;
}

.application-memory-notice {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-left: 3px solid #d6a12a;
  border-radius: 4px;
  background: #ffffff;
}

.application-memory-notice strong {
  color: #17324a;
  font-size: 12px;
  font-weight: 850;
}

.application-memory-notice span {
  color: #52677a;
  font-size: 11px;
  line-height: 1.5;
}

.application-learning-receipt-panel > header {
  align-items: center;
  color: var(--theme-primary-active, #255b7d);
}

.application-learning-receipt-panel > header i {
  font-size: 17px;
}

.application-learning-receipt {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-left: 3px solid #d6a12a;
  border-radius: 4px;
  background: #ffffff;
}

.application-learning-receipt.is-applied {
  border-left-color: var(--theme-primary, #3a7ca5);
}

.application-learning-receipt > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
}

.application-learning-receipt strong {
  color: #17324a;
  font-size: 12px;
  font-weight: 850;
}

.application-learning-receipt span,
.application-learning-receipt small {
  color: #52677a;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .application-memory-item {
    grid-template-columns: 1fr;
  }

  .application-memory-forget-btn {
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-memory-forget-btn {
    transition: none;
  }
}
