/* Purposeful key setup with the same controls in light and dark themes. */
.private-memory-setup { max-width: 1188px; margin: 0 46px 24px; padding: 22px; }
.private-memory-setup h2 { margin: 0 0 10px; }
.private-memory-setup p { color: var(--muted); line-height: 1.6; font-size: .87rem; }
.private-memory-setup a, .privacy-link { color: var(--blue); }
.memory-key-step { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.memory-key-step h3 { font-size: 1rem; margin: 0 0 8px; }
.memory-key-step details { margin: 14px 0; }
.memory-key-step summary { color: var(--text); font-weight: 650; }
.memory-key-step pre { overflow: auto; padding: 14px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); color: var(--text); font-size: .8rem; }
.memory-key-warning { border-left: 3px solid var(--amber); padding-left: 12px; }
.memory-file-choice { display: inline-flex; position: relative; align-items: center; min-height: 40px; padding: 9px 14px; margin: 5px 8px 5px 0; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface2); color: var(--text); font-size: .8rem; font-weight: 700; cursor: pointer; }
.memory-file-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.memory-file-choice:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.memory-file-choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.memory-file-name { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.memory-key-fingerprint { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .76rem !important; }
.memory-upload-progress { display: grid; gap: 7px; margin: 12px 0; color: var(--text); font-size: .83rem; }
.memory-upload-progress progress { width: min(480px, 100%); accent-color: var(--purple); }
.memory-export-format { display: grid; gap: 7px; width: min(480px, 100%); color: var(--muted); font-size: .85rem; margin: 10px 0; }
.memory-export-format select { width: 100%; padding: 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface2); color: var(--text); }
.memory-download-link { display: inline-flex; align-items: center; text-decoration: none; }
#generatedMemoryKey small { display: block; margin-top: 8px; }
.memory-action-status { border: 1px solid var(--line2); border-radius: 9px; padding: 13px; background: var(--surface2); color: var(--text) !important; }
.memory-action-status[data-state="success"] { border-color: var(--green, #2e9d70); }
.memory-action-status[data-state="error"] { border-color: var(--red, #d65757); color: var(--red, #d65757) !important; }
.memory-key-change { border-left: 3px solid var(--amber); padding: 0 14px 12px; margin-top: 14px; }
.memory-key-change button { margin: 5px 6px 0 0; }
.memory-key-help { margin: 20px 0; }
.memory-key-help pre { overflow: auto; padding: 12px; background: var(--bg); }
.memory-tier-status { font-size: .8rem !important; }
.privacy-link { display: block; padding: 10px; font-size: .76rem; text-decoration: none; }
@media (max-width: 850px) { .private-memory-setup { margin: 0 20px 20px; padding: 16px; } }
@media (max-width: 560px) { .private-memory-setup { margin: 0 12px 16px; } .memory-file-choice { display: flex; width: 100%; } }
