mirror of
https://github.com/bal-spec/sillytavern-character-memory.git
synced 2026-04-26 10:50:55 +00:00
Step 1 of the wizard now offers a toggle between "Dedicated API" (default) and "Connection Profile" before configuring the LLM. Previously, Connection Profile was only available in the Settings Modal after completing the wizard. - Source toggle buttons with active/inactive styling - Profile section: dropdown via CMRS.handleDropdown(), Test Connection - Step 3 summary adapts to show profile name or provider/model - Updated getting-started.md with both paths and new screenshot - Updated CHANGELOG.md with improvements and tooltip fix Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2209 lines
46 KiB
CSS
2209 lines
46 KiB
CSS
.charMemory_settings .inline-drawer-content {
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.charMemory_statusRow {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.charMemory_buttonRow {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_sliderRow {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_sliderRow input[type="range"] {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Stats bar */
|
|
.charMemory_statsBar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin: 4px 0 8px;
|
|
}
|
|
|
|
.charMemory_statItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 0.85em;
|
|
flex: 1 1 auto;
|
|
min-width: 80px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.charMemory_statItem i {
|
|
opacity: 0.6;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_statItem span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Health indicator in status bar */
|
|
.charMemory_statHealth {
|
|
cursor: pointer;
|
|
}
|
|
.charMemory_statHealth:hover {
|
|
opacity: 0.85;
|
|
}
|
|
.charMemory_healthDot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
background: var(--SmartThemeBorderColor, #555);
|
|
transition: background 0.3s;
|
|
}
|
|
.charMemory_healthDot.health-green { background: #4a4; }
|
|
.charMemory_healthDot.health-yellow { background: #e8a33d; }
|
|
.charMemory_healthDot.health-red { background: #c44; }
|
|
.charMemory_healthDot.health-unknown { background: var(--SmartThemeBorderColor, #555); }
|
|
|
|
/* Drawer health dot — uses FA icon colored via `color` property */
|
|
#charMemory_drawerHealthDot {
|
|
color: rgba(128, 128, 128, 0.6);
|
|
flex-shrink: 0;
|
|
line-height: 1;
|
|
}
|
|
#charMemory_drawerHealthDot.health-green { color: #4a4; }
|
|
#charMemory_drawerHealthDot.health-yellow { color: #e8a33d; }
|
|
#charMemory_drawerHealthDot.health-red { color: #c44; }
|
|
#charMemory_drawerHealthDot.health-unknown { color: rgba(128, 128, 128, 0.6); }
|
|
|
|
.charMemory_groupAvatar {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Searchable model picker */
|
|
.charMemory_modelPicker {
|
|
position: relative;
|
|
}
|
|
|
|
.charMemory_modelDropdown {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
background: var(--SmartThemeBorderColor, #333);
|
|
border: 1px solid var(--SmartThemeQuoteColor, #555);
|
|
border-radius: 4px;
|
|
z-index: 1000;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.charMemory_modelDropdown.open {
|
|
display: block;
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelGroup {
|
|
padding: 4px 8px 2px;
|
|
font-size: 0.8em;
|
|
font-weight: bold;
|
|
opacity: 0.6;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelOption {
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
font-size: 0.9em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelOption:hover,
|
|
.charMemory_modelDropdown .charMemory_modelOption.active {
|
|
background: var(--SmartThemeBlurTintColor, rgba(255, 255, 255, 0.1));
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelOption.selected {
|
|
color: var(--SmartThemeQuoteColor, #aaa);
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelEmpty {
|
|
padding: 10px;
|
|
text-align: center;
|
|
opacity: 0.5;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Dashboard sections */
|
|
.charMemory_dashSection {
|
|
padding: 6px 0;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor);
|
|
}
|
|
|
|
.charMemory_dashSection:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.charMemory_sectionLabel {
|
|
opacity: 0.6;
|
|
font-size: 0.85em;
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_dashActivity {
|
|
max-height: 80px;
|
|
overflow-y: auto;
|
|
font-size: 0.85em;
|
|
font-family: monospace;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.charMemory_link {
|
|
font-size: 0.85em;
|
|
cursor: pointer;
|
|
color: var(--SmartThemeQuoteColor);
|
|
display: inline-block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.charMemory_link:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.charMemory_fullWidth {
|
|
width: 100%;
|
|
}
|
|
|
|
.charMemory_dimText {
|
|
font-size: 0.85em;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.charMemory_fileInfo {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_dashFileNameText {
|
|
font-size: 0.9em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 60%;
|
|
}
|
|
|
|
.charMemory_dashDiagHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* Helper text */
|
|
.charMemory_helperText {
|
|
display: block;
|
|
font-size: 0.8em;
|
|
opacity: 0.5;
|
|
margin-top: 2px;
|
|
line-height: 1.3;
|
|
text-align: left;
|
|
}
|
|
|
|
/* Section header — label + control on same line */
|
|
.charMemory_sectionHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* Separator */
|
|
.charMemory_separator {
|
|
border: none;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
margin: 10px 0;
|
|
}
|
|
|
|
/* Danger button */
|
|
.charMemory_dangerBtn {
|
|
color: var(--SmartThemeQuoteColor, #c44);
|
|
}
|
|
|
|
/* Diagnostics */
|
|
.charMemory_diagTimestamp {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.charMemory_diagSection {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_diagCard {
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 4px;
|
|
padding: 6px 8px;
|
|
margin: 4px 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.charMemory_diagCardTitle {
|
|
font-weight: bold;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.charMemory_diagCardKeys {
|
|
font-size: 0.85em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.charMemory_diagCardContent {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
white-space: pre-wrap;
|
|
max-height: 100px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.charMemory_diagEmpty {
|
|
font-size: 0.85em;
|
|
opacity: 0.5;
|
|
font-style: italic;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
/* Health check cards in diagnostics */
|
|
.charMemory_healthCheck .charMemory_diagCardTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* Per-message health notes in injection drawer */
|
|
.charMemory_drawerHealthNote {
|
|
padding: 6px 8px;
|
|
margin-bottom: 8px;
|
|
font-size: 0.85em;
|
|
border-radius: 4px;
|
|
line-height: 1.4;
|
|
}
|
|
.charMemory_drawerHealthNote--red {
|
|
color: #c44;
|
|
background: rgba(204, 68, 68, 0.1);
|
|
}
|
|
.charMemory_drawerHealthNote--yellow {
|
|
color: #e8a33d;
|
|
background: rgba(232, 163, 61, 0.1);
|
|
}
|
|
|
|
/* ── Token Budget section in injection drawer ─────────────────────────── */
|
|
|
|
/* Section header override: make room for the inline bar */
|
|
.charMemory_tokenHeader {
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Inline stacked bar that lives in the section header */
|
|
.charMemory_tokenBarInline {
|
|
flex: 1;
|
|
min-width: 40px;
|
|
height: 6px;
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
background: rgba(128, 128, 128, 0.15);
|
|
display: flex;
|
|
}
|
|
.charMemory_tokenBarSeg { height: 100%; }
|
|
.charMemory_tokenBarSeg--mem { background: #7c6bc9; }
|
|
.charMemory_tokenBarSeg--wi { background: #e8a33d; }
|
|
.charMemory_tokenBarSeg--ep { background: #4a8fa8; }
|
|
|
|
/* Summary label to the right of the bar */
|
|
.charMemory_tokenSummary {
|
|
font-size: 0.78em;
|
|
opacity: 0.65;
|
|
white-space: nowrap;
|
|
font-weight: normal;
|
|
}
|
|
.charMemory_tokenSummary--over { color: #c44; opacity: 1; }
|
|
.charMemory_tokenSummary--heavy { color: #e8a33d; opacity: 1; }
|
|
|
|
/* Expanded breakdown body */
|
|
.charMemory_tokenBreakdown {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
font-size: 0.85em;
|
|
}
|
|
.charMemory_tokenRow {
|
|
display: grid;
|
|
grid-template-columns: 10px 1fr auto;
|
|
align-items: center;
|
|
gap: 6px;
|
|
line-height: 1.5;
|
|
}
|
|
.charMemory_tokenRow--total {
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
margin-top: 2px;
|
|
padding-top: 3px;
|
|
font-weight: bold;
|
|
}
|
|
.charMemory_tokenDot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
.charMemory_tokenDot--mem { background: #7c6bc9; }
|
|
.charMemory_tokenDot--wi { background: #e8a33d; }
|
|
.charMemory_tokenDot--ep { background: #4a8fa8; }
|
|
.charMemory_tokenNote {
|
|
margin-top: 5px;
|
|
font-size: 0.82em;
|
|
opacity: 0.5;
|
|
line-height: 1.3;
|
|
}
|
|
.charMemory_tokenTipsLink {
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
opacity: 0.8;
|
|
white-space: nowrap;
|
|
}
|
|
.charMemory_tokenTipsLink:hover { opacity: 1; }
|
|
|
|
/* Full prompt breakdown bar (block-level, taller than the inline header bar) */
|
|
.charMemory_fullPromptBar {
|
|
display: flex;
|
|
height: 10px;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
background: rgba(128, 128, 128, 0.15);
|
|
margin-bottom: 5px;
|
|
}
|
|
.charMemory_fullPromptSummary {
|
|
font-size: 0.82em;
|
|
opacity: 0.65;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* Token hint in other section headers (e.g. "CharMemory ~320 tk") */
|
|
.charMemory_drawerTokenHint {
|
|
margin-left: auto;
|
|
font-size: 0.78em;
|
|
opacity: 0.5;
|
|
font-weight: normal;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Meta line under card titles (token count, position) */
|
|
.charMemory_drawerCardMeta {
|
|
font-size: 0.82em;
|
|
opacity: 0.55;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
/* Activity Log */
|
|
.charMemory_logEntry {
|
|
padding: 2px 4px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.1));
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.charMemory_logTime {
|
|
opacity: 0.5;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.charMemory_log_success {
|
|
color: var(--SmartThemeQuoteColor, #4a4);
|
|
}
|
|
|
|
.charMemory_log_warning {
|
|
color: orange;
|
|
}
|
|
|
|
.charMemory_log_error {
|
|
color: var(--SmartThemeQuoteColor, #c44);
|
|
}
|
|
|
|
.charMemory_logVerbose {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 0.8em;
|
|
opacity: 0.7;
|
|
margin: 4px 0;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
padding: 4px 6px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Memory Manager Popup */
|
|
.charMemory_manager {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
padding: 4px;
|
|
text-align: left;
|
|
}
|
|
|
|
.charMemory_card {
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 6px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.charMemory_card ul {
|
|
margin: 0;
|
|
padding-left: 1.2em;
|
|
font-size: 0.85em;
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.charMemory_cardHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.charMemory_cardActions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* Per-message buttons — inherit .mes_button base styling from ST */
|
|
.charMemory_extractHereBtn,
|
|
.charMemory_pinMemoryBtn {
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.charMemory_extractHereBtn:hover,
|
|
.charMemory_pinMemoryBtn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Memory extracted indicator */
|
|
.charMemory_extractedIndicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 4px;
|
|
opacity: 0.35;
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
font-size: 0.75em;
|
|
vertical-align: middle;
|
|
cursor: default;
|
|
}
|
|
.charMemory_extractedIndicator:hover {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Group Members List */
|
|
.charMemory_groupMembersList {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.charMemory_groupMemberRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.charMemory_groupMemberName {
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
min-width: 80px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_groupMemberFile {
|
|
flex: 1;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
/* Batch Extract */
|
|
.charMemory_batchChatList {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.charMemory_batchChatItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 6px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.1));
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.charMemory_batchChatItem label {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.charMemory_batchChatName {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.charMemory_batchChatMeta {
|
|
font-size: 0.85em;
|
|
opacity: 0.5;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.charMemory_batchSelectRow {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.charMemory_batchProgress {
|
|
margin: 6px 0;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.charMemory_batchProgressBar {
|
|
height: 4px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 2px;
|
|
margin-top: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.charMemory_batchProgressFill {
|
|
height: 100%;
|
|
background: var(--SmartThemeQuoteColor, #888);
|
|
border-radius: 2px;
|
|
width: 0%;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
/* Consolidation Dialog */
|
|
.charMemory_consolidationDialog {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
.charMemory_consolidationStats {
|
|
font-size: 0.9em;
|
|
padding: 6px 10px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.charMemory_consolidationPanes {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.charMemory_consolidationPane {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.charMemory_consolidationPane h4 {
|
|
margin: 0 0 6px 0;
|
|
}
|
|
|
|
.charMemory_consolidationContent {
|
|
max-height: 50vh;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.charMemory_consolidationToolbar {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(255,255,255,0.1));
|
|
}
|
|
|
|
.charMemory_editorBulletRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.charMemory_editorDash {
|
|
flex-shrink: 0;
|
|
font-size: 0.85em;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.charMemory_editorBulletInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 3px 6px;
|
|
font-size: 0.85em;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.05));
|
|
color: var(--SmartThemeBodyColor);
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.charMemory_editorBulletInput:focus {
|
|
border-color: var(--SmartThemeBorderColor, rgba(255,255,255,0.2));
|
|
outline: none;
|
|
}
|
|
|
|
.charMemory_editorBullets {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_editorAddBullet,
|
|
.charMemory_editorAddBlock {
|
|
font-size: 0.8em;
|
|
opacity: 0.7;
|
|
padding: 2px 8px;
|
|
}
|
|
|
|
.charMemory_editorAddBullet:hover,
|
|
.charMemory_editorAddBlock:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.charMemory_editorAddBlock {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.charMemory_editorCard {
|
|
position: relative;
|
|
}
|
|
|
|
.charMemory_editorCard--editing {
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(255,255,255,0.15));
|
|
}
|
|
|
|
.charMemory_editorToggleEdit {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.charMemory_editorToggleEdit:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.charMemory_editorThemeInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 2px 6px;
|
|
font-weight: bold;
|
|
font-size: 0.95em;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.05));
|
|
color: var(--SmartThemeBodyColor);
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.charMemory_editorThemeInput:focus {
|
|
border-color: var(--SmartThemeBorderColor, rgba(255,255,255,0.2));
|
|
outline: none;
|
|
}
|
|
|
|
.charMemory_editorAddBlock--hidden {
|
|
display: none;
|
|
}
|
|
|
|
.charMemory_promptDisclosure {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.charMemory_promptDisclosure summary {
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.charMemory_promptDisclosure summary:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.charMemory_promptDisclosure textarea {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.charMemory_editorDisabled {
|
|
pointer-events: none;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.charMemory_miniLogEmpty {
|
|
padding: 2px 0;
|
|
font-size: 0.9em;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Convert tool */
|
|
.charMemory_convertWarning {
|
|
padding: 6px 8px;
|
|
margin-bottom: 8px;
|
|
font-size: 0.85em;
|
|
color: var(--SmartThemeQuoteColor, #e8a33d);
|
|
background: rgba(232, 163, 61, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Convert dialog (popup) */
|
|
.charMemory_convertSourcePre {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 0.8em;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
font-family: var(--monoFontFamily, monospace);
|
|
}
|
|
|
|
.charMemory_convOutputSection {
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
}
|
|
|
|
.charMemory_convDestRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
/* Injection viewer — per-message button */
|
|
.charMemory_viewInjectedBtn {
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.charMemory_viewInjectedBtn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Injection data indicator (syringe icon next to char name) */
|
|
.charMemory_injectionIndicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 4px;
|
|
opacity: 0.35;
|
|
color: var(--SmartThemeQuoteColor, #e8a33d);
|
|
font-size: 0.75em;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.charMemory_injectionIndicator:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* ===== Injection Viewer Drawer ===== */
|
|
|
|
.charMemory_injectionDrawer {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 320px;
|
|
max-width: 40vw;
|
|
height: 100vh;
|
|
background: var(--SmartThemeBlurTintColor, #1a1a2e);
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
border-left: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateX(100%);
|
|
transition: transform 0.2s ease;
|
|
font-size: 0.9em;
|
|
}
|
|
.charMemory_injectionDrawer.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
/* Backdrop is hidden — kept in DOM but not used as a click-to-close overlay
|
|
because it would interfere with the chat textarea. Instead, the drawer
|
|
is closed via the X button, the toggle tab, or swipe gestures. */
|
|
.charMemory_drawerBackdrop {
|
|
display: none;
|
|
}
|
|
|
|
.charMemory_drawerHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
flex-shrink: 0;
|
|
}
|
|
.charMemory_drawerTitle {
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
}
|
|
.charMemory_drawerMsgLabel {
|
|
opacity: 0.6;
|
|
font-size: 0.9em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex: 1;
|
|
}
|
|
.charMemory_drawerClose {
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
padding: 8px;
|
|
margin-left: auto;
|
|
transition: opacity 0.15s;
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
min-width: 32px;
|
|
min-height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.1em;
|
|
}
|
|
.charMemory_drawerClose:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.charMemory_drawerBody {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.charMemory_drawerToolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 4px 12px;
|
|
font-size: 0.8em;
|
|
opacity: 0.6;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
flex-shrink: 0;
|
|
}
|
|
.charMemory_drawerFooter {
|
|
display: none;
|
|
}
|
|
.charMemory_drawerDiagLink {
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
opacity: 0.8;
|
|
}
|
|
.charMemory_drawerDiagLink:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Health popup shown inline on touch devices */
|
|
.charMemory_drawerHealthPopup {
|
|
margin-bottom: 10px;
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
border-radius: 4px;
|
|
background: rgba(128, 128, 128, 0.05);
|
|
}
|
|
|
|
/* Drawer toggle button */
|
|
.charMemory_drawerToggle {
|
|
position: fixed;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: var(--SmartThemeBlurTintColor, #1a1a2e);
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
border-right: none;
|
|
border-radius: 6px 0 0 6px;
|
|
padding: 8px 6px;
|
|
cursor: pointer;
|
|
z-index: 999;
|
|
opacity: 0.5;
|
|
transition: opacity 0.15s, right 0.2s ease;
|
|
}
|
|
.charMemory_drawerToggle:hover {
|
|
opacity: 0.9;
|
|
}
|
|
.charMemory_drawerToggle.open {
|
|
right: min(320px, 40vw);
|
|
}
|
|
|
|
/* Drawer sections */
|
|
.charMemory_drawerSection {
|
|
margin-bottom: 8px;
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
border-radius: 4px;
|
|
}
|
|
.charMemory_drawerSectionHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 8px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
background: rgba(128, 128, 128, 0.05);
|
|
}
|
|
.charMemory_drawerSectionHeader:hover {
|
|
background: rgba(128, 128, 128, 0.1);
|
|
}
|
|
.charMemory_drawerCount {
|
|
opacity: 0.5;
|
|
font-weight: normal;
|
|
font-size: 0.9em;
|
|
}
|
|
.charMemory_drawerChevron {
|
|
font-size: 0.7em;
|
|
transition: transform 0.15s;
|
|
}
|
|
.charMemory_drawerChevron.collapsed {
|
|
transform: rotate(-90deg);
|
|
}
|
|
.charMemory_drawerSectionBody {
|
|
padding: 4px 8px 8px;
|
|
}
|
|
|
|
/* Drawer content cards */
|
|
.charMemory_drawerBullet {
|
|
padding: 2px 0;
|
|
font-size: 0.9em;
|
|
line-height: 1.4;
|
|
}
|
|
.charMemory_drawerCard {
|
|
padding: 6px 8px;
|
|
margin: 4px 0;
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
border-radius: 4px;
|
|
font-size: 0.85em;
|
|
}
|
|
.charMemory_drawerCardTitle {
|
|
font-weight: bold;
|
|
margin-bottom: 2px;
|
|
}
|
|
.charMemory_drawerCardKeys {
|
|
opacity: 0.6;
|
|
font-size: 0.9em;
|
|
}
|
|
.charMemory_drawerCardContent {
|
|
margin-top: 4px;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Message highlight when selected in drawer */
|
|
.charMemory_highlightMes {
|
|
outline: 2px solid var(--SmartThemeQuoteColor, #e8a33d);
|
|
outline-offset: -2px;
|
|
transition: outline-color 1.5s ease;
|
|
}
|
|
|
|
/* ===== Log Drawer ===== */
|
|
|
|
.charMemory_logDrawer {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 380px;
|
|
max-width: 45vw;
|
|
height: 100vh;
|
|
background: var(--SmartThemeBlurTintColor, #1a1a2e);
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
border-left: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
z-index: 1001;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateX(100%);
|
|
transition: transform 0.2s ease;
|
|
font-size: 0.9em;
|
|
}
|
|
.charMemory_logDrawer.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
/* ── Phone mode: widen drawers and raise above ST sidebar (z-index 3005) ── */
|
|
/* Applied via body class from JS (auto-detected or user-selected in Settings > Advanced > Display Mode) */
|
|
body.charMemory-phone-mode .charMemory_injectionDrawer,
|
|
body.charMemory-phone-mode .charMemory_logDrawer {
|
|
max-width: 85vw;
|
|
z-index: 4000;
|
|
}
|
|
|
|
/* ── Phone mode: stack modal nav above content instead of side-by-side ── */
|
|
body.charMemory-phone-mode .charMemory_modal {
|
|
flex-direction: column;
|
|
min-height: 300px;
|
|
}
|
|
|
|
body.charMemory-phone-mode .charMemory_modalNav {
|
|
flex-direction: row;
|
|
min-width: 0;
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor);
|
|
padding: 4px 0 0;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
body.charMemory-phone-mode .charMemory_modalNavItem {
|
|
padding: 6px 12px;
|
|
font-size: 0.82em;
|
|
white-space: nowrap;
|
|
border-left: none;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
body.charMemory-phone-mode .charMemory_modalNavItem.active {
|
|
border-left-color: transparent;
|
|
border-bottom-color: var(--SmartThemeQuoteColor);
|
|
}
|
|
|
|
.charMemory_logDrawer .charMemory_drawerBody {
|
|
font-family: monospace;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
/* ── Header Gear Icon ── */
|
|
.charMemory_headerGear {
|
|
cursor: pointer;
|
|
opacity: 0.5;
|
|
padding: 2px 6px;
|
|
transition: opacity 0.15s;
|
|
font-size: 0.9em;
|
|
}
|
|
.charMemory_headerGear:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ── Settings / Prompts Modal ── */
|
|
.charMemory_modal {
|
|
display: flex;
|
|
min-height: 400px;
|
|
max-height: 70vh;
|
|
gap: 0;
|
|
}
|
|
|
|
.charMemory_modalNav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 130px;
|
|
border-right: 1px solid var(--SmartThemeBorderColor);
|
|
padding: 8px 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_modalNavItem {
|
|
background: none;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
font-size: 0.9em;
|
|
border-left: 3px solid transparent;
|
|
color: var(--SmartThemeBodyColor);
|
|
}
|
|
|
|
.charMemory_modalNavItem:hover {
|
|
opacity: 0.85;
|
|
background: rgba(255,255,255,0.03);
|
|
}
|
|
|
|
.charMemory_modalNavItem.active {
|
|
opacity: 1;
|
|
border-left-color: var(--SmartThemeQuoteColor);
|
|
background: rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.charMemory_modalContent {
|
|
flex: 1;
|
|
padding: 12px 16px;
|
|
overflow-y: auto;
|
|
min-width: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.charMemory_modalSection {
|
|
display: none;
|
|
}
|
|
|
|
.charMemory_modalSection.active {
|
|
display: block;
|
|
}
|
|
|
|
.charMemory_modalSectionTitle {
|
|
margin: 0 0 8px 0;
|
|
font-size: 1em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.charMemory_modalFieldGroup {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.charMemory_modalFieldGroup > label {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_modalPromptEntry {
|
|
margin-bottom: 12px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.1));
|
|
}
|
|
|
|
.charMemory_modalPromptEntry:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.charMemory_modalPromptEntry .charMemory_helperText {
|
|
display: block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.charMemory_modalPromptRow {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.1));
|
|
}
|
|
|
|
.charMemory_modalPromptRow:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.charMemory_modalPromptLabel {
|
|
flex: 1;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.charMemory_modalPromptBadge {
|
|
font-size: 0.75em;
|
|
opacity: 0.5;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.charMemory_modalPromptBtn {
|
|
font-size: 0.85em;
|
|
padding: 3px 10px;
|
|
}
|
|
|
|
/* ── Prompts Modal ── */
|
|
.charMemory_promptsModal {
|
|
min-height: 500px;
|
|
}
|
|
|
|
.charMemory_promptHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.charMemory_promptHeader h3 {
|
|
margin: 0;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.charMemory_promptBadge {
|
|
font-size: 0.8em;
|
|
opacity: 0.6;
|
|
padding: 2px 8px;
|
|
border: 1px solid var(--SmartThemeBorderColor);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.charMemory_promptEditor {
|
|
width: 100%;
|
|
min-height: 300px;
|
|
font-family: monospace;
|
|
font-size: 0.85em;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* ── Prompt Update Banner ── */
|
|
.charMemory_promptUpdateBanner {
|
|
background: color-mix(in srgb, var(--SmartThemeQuoteColor) 12%, transparent);
|
|
border: 1px solid var(--SmartThemeQuoteColor);
|
|
border-radius: 6px;
|
|
padding: 10px 14px;
|
|
margin-bottom: 10px;
|
|
font-size: 0.88em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.charMemory_promptUpdateBanner > span {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.charMemory_promptUpdateActions {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.charMemory_promptUpdateActions .menu_button {
|
|
font-size: 0.85em;
|
|
padding: 4px 12px;
|
|
}
|
|
|
|
/* ── Nav Update Dot ── */
|
|
.charMemory_navUpdateDot {
|
|
display: inline-block;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--SmartThemeQuoteColor);
|
|
margin-left: 6px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* ── Compare & Edit View ── */
|
|
.charMemory_promptCompareWrap {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.charMemory_comparePane {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.charMemory_comparePane > label {
|
|
font-size: 0.82em;
|
|
opacity: 0.7;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_comparePane textarea {
|
|
width: 100%;
|
|
min-height: 300px;
|
|
font-family: monospace;
|
|
font-size: 0.82em;
|
|
resize: vertical;
|
|
flex: 1;
|
|
}
|
|
|
|
.charMemory_comparePane textarea[readonly] {
|
|
opacity: 0.7;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ── Troubleshooter Modal ── */
|
|
.charMemory_troubleshooter {
|
|
min-height: 400px;
|
|
}
|
|
|
|
.charMemory_tsOverallStatus {
|
|
font-size: 1.1em;
|
|
font-weight: bold;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.charMemory_tsCheck {
|
|
padding: 6px 8px;
|
|
margin: 4px 0;
|
|
border-radius: 4px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.05));
|
|
}
|
|
|
|
.charMemory_tsCheckHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.9em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.charMemory_tsCheckDetail {
|
|
font-size: 0.85em;
|
|
opacity: 0.8;
|
|
margin-top: 2px;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.charMemory_tsCheckFix {
|
|
font-size: 0.82em;
|
|
opacity: 0.7;
|
|
padding-left: 20px;
|
|
margin-top: 2px;
|
|
color: var(--SmartThemeQuoteColor);
|
|
}
|
|
|
|
.charMemory_tsFileSize {
|
|
font-size: 0.8em;
|
|
opacity: 0.5;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.charMemory_tsFileList {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
/* Group chat member sections in Data Bank browser */
|
|
.charMemory_tsMemberSection {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.charMemory_tsMemberLabel {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.82em;
|
|
font-weight: bold;
|
|
opacity: 0.75;
|
|
padding: 3px 0;
|
|
margin-bottom: 2px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128,128,128,0.25));
|
|
}
|
|
|
|
.charMemory_tsFileRow {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
gap: 8px;
|
|
}
|
|
|
|
.charMemory_tsFileRow:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.charMemory_tsFileName {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.9em;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.charMemory_tsFileName > span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.charMemory_tsBadge {
|
|
font-size: 0.75em;
|
|
padding: 1px 6px;
|
|
border-radius: 8px;
|
|
background: var(--SmartThemeQuoteColor, #e8a33d);
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_tsFileActions {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* File editor in Data Bank browser */
|
|
.charMemory_tsFileEditor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.charMemory_tsFileEditorHeader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.85em;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
}
|
|
|
|
.charMemory_tsFileEditorFooter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding-top: 6px;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
}
|
|
|
|
.charMemory_tsFileActions .menu_button {
|
|
padding: 3px 7px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.charMemory_tsImportRow {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.charMemory_tsResetSection {
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.charMemory_tsResetSection .menu_button {
|
|
margin-bottom: 4px;
|
|
width: 100%;
|
|
}
|
|
|
|
.charMemory_reportPre {
|
|
background: var(--SmartThemeBlurTintColor, rgba(0,0,0,0.2));
|
|
border: 1px solid var(--SmartThemeBorderColor, #555);
|
|
border-radius: 4px;
|
|
padding: 10px;
|
|
max-height: 280px;
|
|
overflow-y: auto;
|
|
font-size: 0.78em;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
margin-top: 10px;
|
|
user-select: text;
|
|
font-family: monospace;
|
|
text-align: left;
|
|
}
|
|
|
|
.charMemory_tsFileEditor {
|
|
text-align: left;
|
|
}
|
|
|
|
.charMemory_autoPill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 3px 10px 3px 8px;
|
|
border: 1px solid var(--SmartThemeBorderColor, #555);
|
|
border-radius: 12px;
|
|
font-size: 0.8em;
|
|
cursor: pointer;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0,0,0,0.2));
|
|
color: inherit;
|
|
white-space: nowrap;
|
|
transition: border-color 0.15s, background 0.15s, color 0.15s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_autoPill.active {
|
|
border-color: #4a4;
|
|
background: rgba(74, 170, 74, 0.12);
|
|
color: #4a4;
|
|
}
|
|
|
|
.charMemory_reportActions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.charMemory_reportFilename {
|
|
flex: 1;
|
|
min-width: 120px;
|
|
font-size: 0.85em !important;
|
|
padding: 3px 8px !important;
|
|
height: auto !important;
|
|
}
|
|
|
|
/* ===== Setup Wizard ===== */
|
|
|
|
.charMemory_wizard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 400px;
|
|
max-height: 70vh;
|
|
text-align: left;
|
|
}
|
|
|
|
.charMemory_wizardStep {
|
|
display: none;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.charMemory_wizardStep.active {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.charMemory_wizardStepIndicator {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 8px 0 12px;
|
|
font-size: 0.85em;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.charMemory_wizardDot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--SmartThemeBorderColor, #555);
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.charMemory_wizardDot.active {
|
|
background: var(--SmartThemeQuoteColor, #888);
|
|
transform: scale(1.3);
|
|
}
|
|
|
|
.charMemory_wizardDot.completed {
|
|
background: #4a4;
|
|
}
|
|
|
|
.charMemory_wizardExplanation {
|
|
font-size: 0.82em;
|
|
line-height: 1.5;
|
|
opacity: 0.85;
|
|
margin-bottom: 10px;
|
|
padding: 6px 10px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.05));
|
|
border-radius: 6px;
|
|
border-left: 3px solid var(--SmartThemeQuoteColor, #888);
|
|
}
|
|
|
|
.charMemory_wizSourceToggle {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.charMemory_wizSourceBtn {
|
|
flex: 1;
|
|
text-align: center;
|
|
opacity: 0.6;
|
|
border: 1px solid var(--SmartThemeBorderColor);
|
|
transition: opacity 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.charMemory_wizSourceBtn.active {
|
|
opacity: 1;
|
|
border-color: var(--SmartThemeQuoteColor);
|
|
}
|
|
|
|
.charMemory_wizSourceBtn:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.charMemory_wizConnectRow {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_wizApiKeyGroup {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.charMemory_wizApiKeyGroup label {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_wizApiKeyGroup .text_pole {
|
|
width: 100%;
|
|
}
|
|
|
|
.charMemory_wizConnectRow > .menu_button {
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.charMemory_wizardNav {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
margin-top: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_wizardCheck {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
margin: 3px 0;
|
|
border-radius: 4px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.05));
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.charMemory_wizardCheck i {
|
|
margin-top: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_wizardCheckDetail {
|
|
flex: 1;
|
|
}
|
|
|
|
.charMemory_wizardCheckLabel {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.charMemory_wizardCheckText {
|
|
font-size: 0.9em;
|
|
opacity: 0.8;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.charMemory_wizardCheckFix {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
margin-top: 2px;
|
|
color: var(--SmartThemeQuoteColor);
|
|
}
|
|
|
|
.charMemory_wizardSummary {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 8px 10px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.05));
|
|
border-radius: 6px;
|
|
font-size: 0.9em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.charMemory_wizardSummaryRow {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.charMemory_wizardSummaryRow .label {
|
|
opacity: 0.6;
|
|
min-width: 100px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_wizardHighlight {
|
|
display: inline-block;
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
background: rgba(74, 170, 74, 0.15);
|
|
color: #4a4;
|
|
font-size: 0.85em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.charMemory_wizardCallout {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
margin-bottom: 12px;
|
|
background: rgba(74, 170, 74, 0.08);
|
|
border: 1px solid rgba(74, 170, 74, 0.2);
|
|
border-radius: 6px;
|
|
font-size: 0.875em;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.charMemory_wizardCallout i {
|
|
color: #4a4;
|
|
margin-top: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_wizardCallout--warn {
|
|
background: rgba(220, 140, 40, 0.08);
|
|
border-color: rgba(220, 140, 40, 0.3);
|
|
}
|
|
|
|
.charMemory_wizardCallout--warn i {
|
|
color: #dc8c28;
|
|
}
|
|
|
|
.charMemory_wizardExistingMemSection {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
margin-bottom: 12px;
|
|
background: rgba(232, 163, 61, 0.08);
|
|
border: 1px solid rgba(232, 163, 61, 0.2);
|
|
border-radius: 6px;
|
|
font-size: 0.875em;
|
|
}
|
|
|
|
.charMemory_wizardExistingMemSection i {
|
|
margin-top: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_wizardScopeNote {
|
|
font-size: 0.8em;
|
|
opacity: 0.55;
|
|
text-align: center;
|
|
margin-top: 8px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Wizard always-visible model list */
|
|
.charMemory_wizModelPicker {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.charMemory_wizModelSearch {
|
|
width: 100%;
|
|
padding: 6px 8px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.4));
|
|
border: 1px solid var(--SmartThemeBorderColor, #555);
|
|
border-radius: 4px;
|
|
color: inherit;
|
|
font-size: 0.9em;
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
}
|
|
|
|
.charMemory_wizModelSearch:focus {
|
|
border-color: var(--SmartThemeQuoteColor, #888);
|
|
}
|
|
|
|
.charMemory_wizModelList {
|
|
max-height: 130px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--SmartThemeBorderColor, #555);
|
|
border-radius: 4px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.3));
|
|
}
|
|
|
|
.charMemory_wizModelList .charMemory_modelGroup {
|
|
padding: 4px 8px 2px;
|
|
font-size: 0.8em;
|
|
font-weight: 600;
|
|
opacity: 0.6;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.charMemory_wizModelList .charMemory_modelOption {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 5px 10px;
|
|
cursor: pointer;
|
|
font-size: 0.875em;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.charMemory_wizModelList .charMemory_modelOption:hover {
|
|
background: var(--SmartThemeBlurTintColor, rgba(255, 255, 255, 0.1));
|
|
}
|
|
|
|
.charMemory_wizModelList .charMemory_modelOption.selected {
|
|
background: rgba(74, 170, 74, 0.12);
|
|
color: var(--SmartThemeQuoteColor, #aaa);
|
|
}
|
|
|
|
.charMemory_wizModelList .charMemory_modelEmpty {
|
|
padding: 10px;
|
|
text-align: center;
|
|
font-size: 0.875em;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.charMemory_modelOptionName {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* NanoGPT filter pill row */
|
|
.charMemory_filterRow {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.charMemory_filterRow .checkbox_label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 3px 10px 3px 8px;
|
|
border: 1px solid var(--SmartThemeBorderColor, #555);
|
|
border-radius: 12px;
|
|
font-size: 0.8em;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.2));
|
|
transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.charMemory_filterRow .checkbox_label:has(input:checked) {
|
|
border-color: var(--SmartThemeQuoteColor, #888);
|
|
background: rgba(74, 170, 74, 0.1);
|
|
}
|
|
|
|
/* NanoGPT inline model badges */
|
|
.charMemory_modelBadge {
|
|
display: inline-block;
|
|
padding: 1px 5px;
|
|
border-radius: 3px;
|
|
font-size: 0.7em;
|
|
font-weight: 600;
|
|
letter-spacing: 0.03em;
|
|
flex-shrink: 0;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.charMemory_modelBadge--sub {
|
|
background: rgba(114, 137, 218, 0.2);
|
|
color: #7289da;
|
|
border: 1px solid rgba(114, 137, 218, 0.3);
|
|
}
|
|
|
|
.charMemory_modelBadge--open {
|
|
background: rgba(74, 170, 74, 0.15);
|
|
color: #4a4;
|
|
border: 1px solid rgba(74, 170, 74, 0.25);
|
|
}
|
|
|
|
.charMemory_modelBadge--rp {
|
|
background: rgba(232, 163, 61, 0.15);
|
|
color: #e8a33d;
|
|
border: 1px solid rgba(232, 163, 61, 0.25);
|
|
}
|
|
|
|
.charMemory_modelBadge--reason {
|
|
background: rgba(196, 68, 68, 0.15);
|
|
color: #c77;
|
|
border: 1px solid rgba(196, 68, 68, 0.25);
|
|
}
|
|
|
|
/* Wizard step sections */
|
|
.charMemory_wizardSection {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.charMemory_wizardSectionTitle {
|
|
font-size: 0.8em;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
opacity: 0.6;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.charMemory_wizardIntervalRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.9em;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_wizIntervalInput {
|
|
width: 60px;
|
|
text-align: center;
|
|
padding: 3px 6px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.4));
|
|
border: 1px solid var(--SmartThemeBorderColor, #555);
|
|
border-radius: 4px;
|
|
color: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.charMemory_wizardIssueList {
|
|
margin: 4px 0 4px 1.2em;
|
|
padding: 0;
|
|
font-size: 0.88em;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.charMemory_wizardIssueList li {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
/* Nudge banner */
|
|
.charMemory_nudgeBanner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
margin-bottom: 6px;
|
|
background: rgba(232, 163, 61, 0.1);
|
|
border: 1px solid rgba(232, 163, 61, 0.3);
|
|
border-radius: 6px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.charMemory_nudgeBanner i {
|
|
color: #e8a33d;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_nudgeBanner span {
|
|
flex: 1;
|
|
}
|
|
|
|
.charMemory_nudgeBanner .menu_button {
|
|
font-size: 0.85em;
|
|
padding: 2px 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Verification step modal */
|
|
.charMemory_verification {
|
|
text-align: left;
|
|
font-size: 0.9em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.charMemory_verification h4 {
|
|
margin: 0 0 8px 0;
|
|
}
|
|
|
|
.charMemory_verification ol {
|
|
padding-left: 1.5em;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_verification li {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
/* ─── Find & Replace bar ─────────────────────────────────────────────── */
|
|
|
|
.charMemory_findReplaceBar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128,128,128,0.2));
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.charMemory_findReplaceBar .text_pole {
|
|
max-width: 200px;
|
|
min-width: 100px;
|
|
flex: 1 1 auto;
|
|
padding: 4px 8px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.charMemory_frCaseBtn {
|
|
min-width: 28px;
|
|
font-size: 0.8em;
|
|
font-weight: bold;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.charMemory_frCaseBtn--active {
|
|
opacity: 1;
|
|
background: var(--SmartThemeQuoteColor, rgba(255,255,0,0.15));
|
|
}
|
|
|
|
.charMemory_frMatchCount {
|
|
font-size: 0.8em;
|
|
opacity: 0.6;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Highlight matches */
|
|
.charMemory_card mark,
|
|
.charMemory_manager mark {
|
|
background: var(--SmartThemeQuoteColor, rgba(255,255,0,0.35));
|
|
color: inherit;
|
|
padding: 0 1px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ─── Tablet Mode Floating Panel ─────────────────────────────────────── */
|
|
|
|
.charMemory_tabletPanel {
|
|
position: fixed;
|
|
top: 50vh;
|
|
left: 50vw;
|
|
transform: translate(-50%, -50%) scale(0.95);
|
|
width: 500px;
|
|
max-width: 90vw;
|
|
max-height: 80vh;
|
|
background: var(--SmartThemeBlurTintColor, #1a1a2e);
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
z-index: 5000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.charMemory_tabletPanel.open {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
transform: translate(-50%, -50%) scale(1);
|
|
}
|
|
|
|
.charMemory_tabletHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_tabletHeader b {
|
|
flex: 0 0 auto;
|
|
font-size: 1.05em;
|
|
}
|
|
|
|
.charMemory_tabletHeaderIcons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.charMemory_tabletBody {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px 16px;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* ─── Touch-Friendly Overrides Inside Tablet Panel ───────────────────── */
|
|
|
|
/* Header icons: enlarge to 44px touch targets */
|
|
.charMemory_tabletPanel .charMemory_headerGear {
|
|
padding: 10px 12px;
|
|
font-size: 1.1em;
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Close button: 44px touch target */
|
|
.charMemory_tabletPanel .charMemory_drawerClose {
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
/* Buttons: larger padding for touch (Apple HIG 44px) */
|
|
.charMemory_tabletPanel .menu_button,
|
|
.charMemory_tabletPanel input[type="button"] {
|
|
min-height: 44px;
|
|
padding: 8px 16px;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
/* Auto pill: larger touch target */
|
|
.charMemory_tabletPanel .charMemory_autoPill {
|
|
padding: 8px 14px 8px 12px;
|
|
font-size: 0.9em;
|
|
min-height: 44px;
|
|
}
|
|
|
|
/* Stats bar: more breathing room */
|
|
.charMemory_tabletPanel .charMemory_statsBar {
|
|
gap: 8px;
|
|
margin: 6px 0 10px;
|
|
}
|
|
|
|
.charMemory_tabletPanel .charMemory_statItem {
|
|
padding: 8px 10px;
|
|
font-size: 0.9em;
|
|
min-height: 40px;
|
|
}
|
|
|
|
/* Health dot: slightly larger for touch */
|
|
.charMemory_tabletPanel .charMemory_healthDot {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
/* Button rows: larger gap */
|
|
.charMemory_tabletPanel .charMemory_buttonRow {
|
|
gap: 10px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
/* Section labels */
|
|
.charMemory_tabletPanel .charMemory_sectionLabel {
|
|
font-size: 0.9em;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
/* Activity log: taller for reading */
|
|
.charMemory_tabletPanel .charMemory_dashActivity {
|
|
max-height: 120px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Links: taller touch targets */
|
|
.charMemory_tabletPanel .charMemory_link {
|
|
font-size: 0.9em;
|
|
padding: 6px 0;
|
|
min-height: 44px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Nudge banner button */
|
|
.charMemory_tabletPanel .charMemory_nudgeBanner .menu_button {
|
|
min-height: 38px;
|
|
padding: 6px 14px;
|
|
}
|
|
|
|
/* Dashboard sections: more padding */
|
|
.charMemory_tabletPanel .charMemory_dashSection {
|
|
padding: 10px 0;
|
|
}
|