/* ReadexMemoryOptionsPopover.swift: width 360, outer 18, main gap 14;
   row gap 12, row inset 12x10, icon frame 24, rounded 15/13 typography. */
.chat-ipad-popover-layer .chat-ipad-popover-memory{width:360px!important;padding:0}
.memory-panel{display:flex;flex-direction:column;gap:14px;padding:18px;color:#252529;min-width:0;box-sizing:border-box;font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif}
.memory-panel h3,.memory-panel h4,.memory-panel p{margin:0}.memory-panel p{font-size:13px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.memory-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.memory-title-line{display:flex;align-items:center;gap:8px}.memory-panel-heading h3{font-size:18px;line-height:1.35;font-weight:900}.memory-experimental-badge{padding:4px 8px;border-radius:999px;background:rgba(116,116,128,.1);color:#77777e;font-size:12px;font-weight:700;line-height:1.3}
.memory-refresh-button{display:grid;place-items:center;width:26px;height:26px;min-width:26px;padding:0;border-radius:50%;color:#85858b;background:transparent}.memory-refresh-button:disabled{opacity:.5}
.memory-option-list{display:flex;flex-direction:column;gap:8px}.memory-option-divider{width:100%;margin:0;border:0;border-top:1px solid rgba(60,60,67,.14)}
.memory-option-row{display:flex;align-items:center;gap:12px;padding:10px 12px;min-width:0;width:100%;text-align:left;box-sizing:border-box;border-radius:16px;background:transparent;color:inherit}.memory-option-icon{width:24px;height:24px;min-width:24px;display:grid;place-items:center;color:#7b7b82}.memory-option-icon>svg{width:18px;height:18px;stroke-width:2.5}
.memory-option-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.memory-option-copy strong{font-size:15px;font-weight:900;line-height:1.3;overflow-wrap:anywhere}.memory-option-copy small{font-size:13px;font-weight:500;line-height:1.35;color:#77777e;overflow-wrap:anywhere}.memory-option-chevron{width:12px;height:14px;flex:none;color:#8e8e95;stroke-width:2.5}
.memory-enhanced-row{display:flex;align-items:center;gap:0;min-width:0}.memory-enhanced-browse{display:flex;align-items:center;gap:12px;min-width:0;flex:1;padding:10px 0 10px 12px;text-align:left;color:inherit;border-radius:16px;background:transparent}.memory-enhanced-browse>.memory-option-copy{flex:1}.memory-browse-label{font:600 13px/1.35 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;color:#007aff;flex:none}.memory-enhanced-row>.memory-native-switch-wrap{margin:10px 12px}.memory-enhanced-browse:disabled{opacity:.55}
.memory-native-switch-wrap{position:relative;display:inline-block;flex:none;width:51px;height:31px}.memory-native-switch-wrap input{position:absolute;inset:0;margin:0;width:51px;height:31px;opacity:0}.memory-native-switch{display:block;width:51px;height:31px;border-radius:999px;background:#dedee3;box-shadow:inset 0 0 0 .5px #00000005}.memory-native-switch>span{display:block;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transform:translate(2px,2px)}.memory-native-switch.is-on{background:#34c759}.memory-native-switch.is-on>span{transform:translate(22px,2px)}.memory-native-switch-wrap:has(input:disabled){opacity:.55}.memory-native-switch.is-unknown{background:#e3e3e8}.memory-unavailable-row>.memory-option-icon,.memory-unavailable-row>.memory-option-chevron{opacity:.65}
.memory-reset-trigger>.memory-option-icon,.memory-reset-trigger strong{color:rgba(255,59,48,.92)}.memory-reset-trigger:disabled{opacity:.45}.memory-reset-trigger:hover:not(:disabled),.memory-enhanced-browse:hover:not(:disabled){background:rgba(116,116,128,.06)}
.memory-unavailable-label{font:500 10px/1.3 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;color:#8a8a91;font-style:normal}.memory-native-switch-wrap.has-caption{height:44px}.memory-switch-caption{display:block;margin-top:3px;font:500 10px/1 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;color:#77777e;text-align:center}
.memory-note{color:#77777e}.memory-error{color:#ad3f31;background:#fff0ed;padding:9px 10px;border-radius:8px}.memory-result{color:#28733e}.memory-panel .memory-error,.memory-panel .memory-result{font-size:12px}
.memory-browse-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px}.memory-browse-header h3{font-size:17px;font-weight:700;text-align:center}.memory-nav-button{display:flex;align-items:center;justify-content:flex-start;width:44px;min-height:28px;padding:0;color:#007aff}.memory-done-button{font-size:13px;font-weight:600;padding:5px 0;color:#007aff;min-height:28px}.memory-browser-status{position:relative;display:flex;flex-direction:column;gap:5px;padding-right:34px;font-size:12px;color:#77777e}.memory-browser-status>div{display:flex;justify-content:space-between;gap:8px}.memory-browser-status strong{font-weight:500;color:#55555b}.memory-browser-status>.memory-refresh-button{position:absolute;right:0;top:0}
.memory-content{min-width:0}.memory-record-list{display:flex;flex-direction:column}.memory-record{padding:14px 0;border-top:1px solid rgba(60,60,67,.14)}.memory-record:first-child{padding-top:0;border-top:0}.memory-record h4{font-size:14px;font-weight:700;line-height:1.4;margin-bottom:8px}.memory-record pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:13px/1.6 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;margin:0 0 8px;max-height:250px;overflow:auto}.memory-record time{display:block;font-size:11px;color:#83838a}.memory-record>.memory-note{font-size:11px;margin-top:7px}.memory-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:20px 5px;color:#818188}.memory-empty strong{font-size:14px;font-weight:700;color:#55555b}.memory-empty p{font-size:12px}
.memory-thread{display:flex;flex-direction:column;gap:8px;border-top:1px solid rgba(60,60,67,.14);padding-top:14px}.memory-thread h4{font-size:14px;font-weight:700;line-height:1.4}.memory-thread p{font-size:12px}.memory-mode{display:flex;gap:5px;padding:4px;background:#e9e9ed;border-radius:10px}.memory-mode>button{display:flex;flex:1;align-items:center;justify-content:center;gap:5px;min-height:36px;border-radius:7px;padding:6px 10px;font-size:13px}.memory-mode>button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #0001;font-weight:600}.memory-mode>button:disabled{opacity:.55}
.memory-reset-confirm{display:flex;flex-direction:column;gap:10px;background:#fff3f1;padding:12px;border-radius:10px}.memory-reset-confirm>strong{font-size:14px}.memory-reset-confirm>p{font-size:12px;color:#78504a}.memory-reset-confirm>div{display:flex;gap:8px;justify-content:flex-end}.memory-reset-confirm button{display:flex;align-items:center;gap:6px;min-height:36px;padding:8px 11px;border-radius:8px;font-size:13px;background:#fff}.memory-reset-confirm .memory-danger{color:#bb3c32}.memory-reset-confirm button:disabled{opacity:.55}
.memory-panel button:focus-visible{outline:2px solid #007aff;outline-offset:2px}.memory-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
