/* Memory screen — identity fields, summary row, reset.
   Rides on the existing .settings-modal-overlay / .settings-modal shell so it
   inherits open/close behavior and backdrop styling. */

.memory-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.memory-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #6b6b6b);
}

.memory-field input[type="text"],
.memory-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: var(--surface, #fff);
  color: var(--text-primary, #1a1a1a);
  box-sizing: border-box;
}

.memory-field textarea {
  min-height: 96px;
  resize: vertical;
}

.memory-field input[type="text"]:focus,
.memory-field textarea:focus {
  outline: none;
  border-color: var(--accent, #1a1a1a);
}

/* The toggle sits on one line rather than stacking like the text fields. */
.memory-field-inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.memory-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  margin: 8px 0 18px;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  background: var(--surface, #fff);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.memory-summary-row:hover { background: var(--surface-hover, #fafafa); }

.memory-summary-title {
  display: block;
  font-size: 14px;
  color: var(--text-primary, #1a1a1a);
}

.memory-summary-sub {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary, #9b9b9b);
  margin-top: 2px;
}

.memory-summary-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary, #1a1a1a);
  white-space: pre-wrap;
}

.memory-section {
  padding: 12px 0;
  border-top: 1px solid var(--border, #e5e5e5);
}

.memory-section:first-child { margin-top: 12px; }

.memory-section-name {
  font-size: 12px;
  color: var(--text-secondary, #6b6b6b);
  margin-bottom: 4px;
}

.memory-note-bar {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.memory-note-bar input { flex: 1; }

.memory-disabled { opacity: 0.4; pointer-events: none; }

.memory-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.memory-msg.error { color: var(--danger, #c0392b); }
.memory-msg.ok { color: var(--text-secondary, #6b6b6b); }
