.team-memory-dialog{background:var(--panel,#121a2b);color:var(--text,#e8edf7);border:1px solid #586176;border-radius:18px;width:min(780px,94vw);max-height:90vh;overflow:auto;padding:22px;box-shadow:0 28px 85px #0009}
.team-memory-dialog::backdrop{background:#050a14bb}
.team-memory-dialog .team-memory-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.team-memory-dialog .team-memory-header h2{font-size:1.2rem;line-height:1.5;margin:0}
.team-memory-dialog .team-memory-header button{border:1px solid #667085;background:transparent;color:inherit;border-radius:9px;padding:8px 12px;cursor:pointer}
.team-memory-dialog #tmBody{display:grid;gap:13px}
.team-memory-dialog label{display:grid;gap:7px;font-size:.94rem;font-weight:600}
.team-memory-dialog select,.team-memory-dialog textarea{background:var(--input-bg,#161d2c);color:var(--text,#e8edf7);border:1px solid #768099;border-radius:11px;padding:11px;font:inherit;width:100%;box-sizing:border-box}
.team-memory-dialog textarea{min-height:140px;line-height:1.65;resize:vertical}
.team-memory-dialog .team-memory-actions{display:flex;gap:10px;flex-wrap:wrap}
.team-memory-dialog pre{max-height:200px;overflow:auto;white-space:pre-wrap;font-size:.82rem}
.team-memory-card,.team-chief-card{font-size:.78rem!important}
@media(prefers-color-scheme:light){.team-memory-dialog{background:#fff;color:#101828}.team-memory-dialog select,.team-memory-dialog textarea{background:#fff;color:#101828;border-color:#98a2b3}}
