.memory-important { padding: 3px 8px; border-radius: 5px; color: #73500f; background: #fff3cd; }
.memory-sync { margin: 12px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; color: #66786b; }
.memory-sync-ready { color: #365e4b; }
.memory-sync-error { color: #963d2f; }
.memory-provenance { font-size: 12px; color: #66786b; line-height: 1.7; margin-top: 4px; overflow-wrap: anywhere; }
.memory-provenance summary { cursor: pointer; padding: 4px 0; }
.memory-provenance p { margin: 5px 0; }
.memory-dialog .memory-pin[aria-pressed="true"] { color: #73500f; border-color: #dbc27e; background: #fffae9; }
.memory-dialog [hidden] { display: none !important; }
.memory-page { height: auto; min-height: 100dvh; width: 100%; overflow: auto; background: #f4f7f0; color: #263b33; }
.memory-page [hidden] { display: none !important; }
.memory-shell { max-width: 980px; margin: 0 auto; padding: 28px 32px; }
.memory-page a { color: #365e4b; text-underline-offset: 4px; }
.memory-page-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #dce5dc; }
.memory-brand { font-size: 20px; font-weight: 700; text-decoration: none; }
.memory-brand span { display: block; margin-top: 5px; font-size: 12px; font-weight: 400; }
.memory-page .account-bar { position: static; max-width: 55%; background: transparent; border: 0; padding: 0; }
.memory-intro { padding: 48px 0 32px; }
.memory-eyebrow { color: #48684f; font-size: 13px; letter-spacing: .08em; }
.memory-intro h1 { margin: 12px 0; font-size: 36px; letter-spacing: -.04em; }
.memory-intro > p:last-child { font-size: 15px; color: #66786b; line-height: 1.9; }
.memory-page .memory-content { display: block; width: 100%; max-height: none; padding: 24px; margin: 0; overflow: visible; border-radius: 16px; box-shadow: none; }
.memory-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.memory-page-toolbar > div { min-width: 0; }
.memory-summary { font-size: 17px; line-height: 1.6; font-weight: 600; }
.memory-job-status { margin-top: 5px; font-size: 13px; color: #66786b; line-height: 1.6; overflow-wrap: anywhere; }
.memory-page-toolbar button { flex-shrink: 0; }
.memory-tip { margin: 18px 0 22px; font-size: 13px; color: #66786b; line-height: 1.7; }
.memory-content .memory-error { margin: 12px 0; }
.memory-page-footer { margin: 24px 0; font-size: 12px; color: #66786b; text-align: center; }
.memory-page :focus-visible { outline: 2px solid #4f765b; outline-offset: 3px; }
@media (max-width: 600px) {
    .memory-event-fields { grid-template-columns: minmax(0, 1fr); }
    .memory-shell { padding: 20px 16px; }
    .memory-page-nav { gap: 12px; }
    .memory-page .account-bar { font-size: 13px; gap: 10px; }
    .memory-intro { padding: 32px 0 24px; }
    .memory-intro h1 { font-size: 30px; }
    .memory-page .memory-content { padding: 18px 14px; }
    .memory-summary { font-size: 15px; }
    .memory-page-toolbar { align-items: flex-start; gap: 10px; }
}
.memory-group { display: grid; gap: 12px; min-width: 0; margin-top: 12px; }
.memory-group h3 { margin: 0; font-size: 18px; }
.memory-layer-description { margin: 0 0 4px; color: #66786b; font-size: 13px; line-height: 1.7; }
.memory-event-info { margin: 12px 0; font-size: 13px; line-height: 1.7; color: #526958; overflow-wrap: anywhere; }
.memory-event-info p { margin: 3px 0; }
.memory-event-expired { color: #88652c; }
.memory-event-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.memory-event-fields input, .memory-event-fields select { box-sizing: border-box; width: 100%; min-width: 0; margin-top: 8px; padding: 10px; border: 1px solid #bdcebf; border-radius: 8px; background: #fff; color: inherit; font: inherit; font-size: 16px; }
.memory-event-fields label { min-width: 0; }
.memory-history { margin-top: 18px; padding-top: 14px; border-top: 1px solid #dce5dc; min-width: 0; }
.memory-history h4 { margin: 0; font-size: 16px; }
.memory-history-list { display: grid; gap: 14px; margin: 12px 0; }
.memory-history-entry { min-width: 0; border-left: 3px solid #bdcebf; padding: 0 0 0 12px; font-size: 12px; line-height: 1.7; color: #526958; overflow-wrap: anywhere; }
.memory-history-entry > p { margin: 5px 0; }
.memory-history-heading { font-weight: 600; color: #365e4b; }
.memory-history-snapshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.memory-history-snapshot { min-width: 0; padding: 10px; border-radius: 8px; background: #f4f7f0; }
.memory-history-snapshot h5 { margin: 0; font-size: 12px; }
.memory-history-snapshot p { margin: 5px 0; }
.memory-history-snapshot .memory-text { font-size: 14px; }
@media (max-width: 480px) {
    .memory-history-snapshots { grid-template-columns: minmax(0, 1fr); }
}
