@import url('./inner-overview.css');
.te-memory { max-width: 780px; margin: 0 auto; }
.te-memory-heading { text-align: center; padding: 18px 0 0; }
.te-memory-eyebrow { font: .59rem/1.4 var(--te-font-display); letter-spacing: .25em; color: var(--te-champagne); margin: 0 0 11px; }
.te-memory-heading h1 { font: 400 clamp(2rem, 8vw, 2.8rem)/1.3 var(--te-font-display); letter-spacing: .15em; margin: 0; }
.te-memory-divider { display: block; max-width: 270px; width: 65%; height: auto; aspect-ratio: 768 / 60; object-fit: contain; margin: 23px auto 25px; opacity: .5; }
.te-memory-tabs { display: flex; align-items: center; justify-content: center; gap: 3px; overflow-x: auto; padding: 4px; margin: 0 auto 22px; width: fit-content; max-width: 100%; border: 1px solid var(--te-line-bright); border-radius: 18px; background: var(--te-glass-soft); backdrop-filter: blur(var(--te-glass-blur)); -webkit-backdrop-filter: blur(var(--te-glass-blur)); }
.te-memory-button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--te-touch); border: none; padding: 9px 12px; border-radius: 12px; color: var(--te-accent-strong); background: transparent; cursor: pointer; font-size: .79rem; text-align: center; }
.te-memory-button:disabled { opacity: .48; cursor: default; }
.te-memory-button:active { background: var(--te-wash-blue); }
.te-memory-tab { flex: 0 0 auto; white-space: nowrap; padding: 10px 14px; color: var(--te-muted); font-size: .79rem; }
.te-memory-tab[aria-selected="true"] { color: var(--te-accent-strong); background: var(--te-glass); box-shadow: 0 3px 12px rgb(63 94 110 / 6%); }
.te-memory-description { margin: 0 0 16px; color: var(--te-muted); font: .82rem/1.9 var(--te-font-display); }
.te-memory-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.te-memory-toolbar > .te-memory-button { margin-left: auto; }
.te-memory-window { font-size: .68rem; color: var(--te-faint); padding: 0 5px; }
.te-memory-select { min-height: var(--te-touch); min-width: 0; max-width: 100%; border: 1px solid var(--te-line); border-radius: 12px; padding: 9px 30px 9px 12px; color: var(--te-ink); background: var(--te-glass); font: .79rem/1.5 var(--te-font-body); }
.te-memory-search { display: flex; align-items: center; gap: 5px; padding: 3px 5px 3px 14px; margin: 0 0 13px; border: 1px solid var(--te-line); border-radius: 16px; background: var(--te-glass-soft); }
.te-memory-search input { flex: 1; width: 100%; min-width: 0; min-height: var(--te-touch); background: transparent; border: 0; outline: none; color: var(--te-ink); font: .85rem/1.5 var(--te-font-body); }
.te-memory-search input::placeholder { color: var(--te-faint); }
.te-memory-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.te-memory-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; text-align: left; padding: 20px 21px 16px; border: 1px solid var(--te-line-bright); border-radius: 20px; background: var(--te-glass); box-shadow: var(--te-shadow); color: var(--te-ink); position: relative; overflow: hidden; }
.te-memory-card::before { content: ""; position: absolute; left: 0; top: 26px; width: 2px; height: 28px; background: var(--te-champagne); opacity: .65; }
.te-memory-card__eyebrow { font-size: .62rem; letter-spacing: .04em; color: var(--te-faint); margin-bottom: 10px; }
.te-memory-card__title { font: 400 1.08rem/1.5 var(--te-font-display); color: var(--te-ink); margin-bottom: 9px; }
.te-memory-card__excerpt { font: .84rem/1.9 var(--te-font-body); color: var(--te-muted); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.te-memory-card__date { font: .64rem/1.5 var(--te-font-display); letter-spacing: .04em; color: var(--te-faint); margin-top: 16px; }
.te-memory-notice { color: var(--te-muted); font-size: .77rem; line-height: 1.8; margin: 10px 0 16px; }
.te-memory-empty { text-align: center; color: var(--te-faint); padding: 42px 24px; font: .87rem/1.9 var(--te-font-display); }
.te-memory-paging { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 6px; }
.te-memory-record-title { font: 400 1.35rem/1.5 var(--te-font-display); color: var(--te-ink); margin: 4px 0 9px; }
.te-memory-detail-tabs { display: flex; gap: 8px; padding: 6px 0 14px; border-bottom: 1px solid var(--te-line); margin-bottom: 18px; }
.te-memory-detail-tabs .te-memory-button[aria-pressed="true"] { background: var(--te-wash-blue); }
.te-memory-original-section { margin-top: 8px; }
.te-memory-meta { color: var(--te-muted); font-size: .67rem; line-height: 1.7; letter-spacing: .025em; margin: 0 0 16px; }
.te-memory-original { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--te-ink); font: .95rem/1.95 var(--te-font-display); user-select: text; -webkit-user-select: text; }
.te-memory-date { color: var(--te-faint); font-size: .69rem; line-height: 1.7; margin: 13px 0 10px; }
.te-memory-reason { margin: 15px 0; padding: 11px 14px; border-left: 1px solid var(--te-champagne); color: var(--te-muted); font-size: .79rem; line-height: 1.8; white-space: pre-wrap; }
.te-memory-sources { display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 14px 0; }
.te-memory-source { border: 1px solid var(--te-line); border-radius: 12px; font-size: .71rem; max-width: 100%; overflow-wrap: anywhere; }
.te-memory-tags { font-size: .76rem; color: var(--te-muted); }
.te-memory-version { padding: 5px 0 12px; border-bottom: 1px solid var(--te-line); }
.te-memory-version > summary { cursor: pointer; min-height: var(--te-touch); padding: 10px 4px; color: var(--te-muted); font-size: .78rem; }
.te-memory-feedback-form { padding: 15px; border: 1px solid var(--te-line); border-radius: 17px; background: var(--te-glass-soft); margin: 0 0 22px; }
.te-memory-feedback-title { font: 400 1rem/1.5 var(--te-font-display); margin: 0 0 6px; }
.te-memory-feedback-input { display: block; width: 100%; min-height: 104px; max-height: 320px; resize: vertical; border: 1px solid var(--te-line); border-radius: 12px; background: var(--te-surface); color: var(--te-ink); font: .88rem/1.8 var(--te-font-body); padding: 12px; margin-top: 12px; }
.te-memory-feedback-input::placeholder { color: var(--te-faint); }
.te-memory-submit { background: var(--te-accent-strong); color: var(--te-bg); border-radius: 13px; padding-inline: 18px; }
.te-memory-submit:active { background: var(--te-accent); }
.te-memory-feedback-entry { border-left: 1px solid var(--te-champagne); padding: 2px 0 2px 15px; margin: 20px 0; }
.te-memory-inner-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.te-memory-inner-current { text-align: right; font-size: .67rem; color: var(--te-muted); line-height: 1.7; font-variant-numeric: tabular-nums; }
.te-memory-chart { border: 1px solid var(--te-line-bright); border-radius: 21px; background: var(--te-glass); box-shadow: var(--te-shadow); padding: 12px 7px 9px; min-height: 150px; }
.te-memory-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.te-memory-chart-grid { stroke: var(--te-line); stroke-width: .7; vector-effect: non-scaling-stroke; }
.te-memory-chart-axis { fill: var(--te-muted); font: 18px var(--te-font-body); }
.te-memory-chart-line { fill: none; stroke: var(--te-accent-strong); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.te-memory-chart-baseline { fill: none; stroke: var(--te-champagne); stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; opacity: .75; }
.te-memory-chart-point { fill: var(--te-accent-strong); }
.te-memory-point-select { width: 100%; }
.te-memory-inner-selected { color: var(--te-ink); font-size: .76rem; line-height: 1.9; }
.te-memory-chart-note { color: var(--te-faint); font-size: .67rem; line-height: 1.8; margin-top: 7px; }
.te-memory-subtle { justify-self: start; color: var(--te-muted); font-size: .73rem; }
.te-memory-legacy { padding: 10px 0 15px; border-bottom: 1px solid var(--te-line); }
:root[data-te-theme="dark"] .te-memory-divider { filter: brightness(2.2) saturate(.55); opacity: .6; }
@media (prefers-color-scheme: dark) { :root:not([data-te-theme="light"]):not([data-te-theme="dark"]) .te-memory-divider { filter: brightness(2.2) saturate(.55); opacity: .6; } }
@media (min-width: 740px) { .te-memory-panel:not([id="te-memory-panel-inner"]) .te-memory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .te-memory-description { text-align: center; } .te-memory-heading { padding-top: 28px; } }
