.chat-memory{box-sizing:border-box;border:1px solid var(--line,#dce5ed);background:var(--chat-surface,#fff);width:min(520px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--ink);border-radius:24px;padding:24px;font-family:inherit;font-size:14px;line-height:1.6;overflow:auto;box-shadow:0 20px 90px #14355433}.chat-memory::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#10213966}.chat-memory header,.chat-memory footer,.chat-memory form>div{justify-content:space-between;align-items:center;gap:8px;display:flex}.chat-memory h2{margin:0;font-size:20px}.chat-memory p{margin:16px 0}.chat-memory-hint,.chat-memory-empty{color:var(--muted);font-size:13px}.chat-memory button:not(.btn){corner-shape:round;min-width:36px;min-height:36px;color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:999px;flex-shrink:0;padding:6px 12px}.chat-memory header button,.chat-memory li button{place-items:center;width:36px;padding:8px;display:grid}@media (hover:hover) and (pointer:fine){.chat-memory button:not(.btn):hover:not(:disabled){background:var(--surface-soft)}}.chat-memory button:disabled{opacity:.5;cursor:wait}.chat-memory button:focus-visible,.chat-memory textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.chat-memory ul{margin:20px 0;padding:0;list-style:none}.chat-memory li{border-bottom:1px solid var(--line);align-items:center;gap:4px;padding:10px 0;display:flex}.chat-memory li span{overflow-wrap:anywhere;flex:1;min-width:0}.chat-memory label{margin-bottom:8px;display:block}.chat-memory textarea{box-sizing:border-box;resize:vertical;width:100%;color:inherit;font:inherit;padding:12px var(--field-text-padding);border:1px solid var(--line);background:0 0;border-radius:14px}.chat-memory form>div{justify-content:flex-start;margin-top:8px}.chat-memory form>div span{color:var(--muted);margin-left:auto}.chat-memory footer{border-top:1px solid var(--line);color:var(--muted);margin-top:20px;padding-top:12px}.chat-memory-status{align-items:center;gap:10px;display:flex}.chat-memory .chat-loader{border-width:2px;flex-shrink:0;width:16px;height:16px;display:inline-block}:root[data-appearance=dark] .chat-memory:not(.chat-memory-embedded){background:var(--surface-raised);color:var(--ink)}@media (pointer:coarse){.chat-memory button:not(.btn){min-width:44px;min-height:44px}.chat-memory header button,.chat-memory li button{width:44px}}@media (width<=400px){.chat-memory{padding:18px}}@media (width<=700px),(pointer:coarse){.chat-memory.account-page{padding:0 max(20px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}.chat-memory.account-page>header{z-index:1;background:var(--page-top-bg);grid-template-columns:44px minmax(0,1fr) 44px;margin-inline:-20px;padding-inline:12px;display:grid;position:sticky;top:0}.chat-memory.account-page>header>button{grid-area:1/1}.chat-memory.account-page>header>h2{text-align:center;color:var(--ink);grid-area:1/2;font-size:18px;font-weight:700}.chat-memory.account-page :is(p,textarea,label,li){font-size:16px;line-height:1.7}.chat-memory.account-page :is(.chat-memory-hint,.chat-memory-empty,form>div,footer){font-size:14px}.chat-memory.account-page button{min-width:44px;min-height:44px}}.chat-memory.chat-memory-embedded{width:100%;max-height:none;box-shadow:none;font:inherit;color:inherit;background:0 0;border:0;border-radius:0;padding:0;overflow:visible}.chat-memory .chat-memory-intro{color:var(--muted);margin:0 0 20px;line-height:1.8}.chat-memory .account-field-label{gap:10px;font-weight:700;display:flex}.chat-memory form>.account-button-pair{align-items:stretch;gap:8px;margin-top:16px}.chat-memory .account-button-pair>.btn{white-space:nowrap;flex:1;min-width:0;min-height:48px;padding:10px 8px;font-size:13px}.chat-memory .chat-memory-meta{color:var(--muted);justify-content:flex-end;align-items:center;gap:8px;font-size:12px;display:flex}.account-page .chat-memory-embedded :is(p,textarea,label,li){font-size:16px;line-height:1.7}.account-page .chat-memory-embedded :is(.chat-memory-empty,.chat-memory-meta){font-size:14px}.account-page .chat-memory-embedded .account-button-pair>.btn{font-size:16px}.chat-memory .site-tip,.chat-memory.chat-memory-embedded .site-tip,.chat-memory.account-page .site-tip{margin:16px 0;font-size:13px;line-height:1.6}
