cb6b4c3731
Co-authored-by: Cursor <cursoragent@cursor.com>
2577 lines
41 KiB
CSS
2577 lines
41 KiB
CSS
#topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 44px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 0 10px;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
-webkit-app-region: drag;
|
|
}
|
|
|
|
#topbar button,
|
|
#topbar .tab,
|
|
#topbar .logo-area {
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
.logo-area {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.logo-area:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.tab-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
flex: 1;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.tab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
max-width: 160px;
|
|
}
|
|
|
|
.tab.active {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-light);
|
|
}
|
|
|
|
.top-spacer {
|
|
flex: 1;
|
|
-webkit-app-region: drag;
|
|
}
|
|
|
|
.top-daily-progress {
|
|
width: 72px;
|
|
height: 4px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.top-daily-progress-fill {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.top-daily-progress.goal-near .top-daily-progress-fill {
|
|
background: #e67e22;
|
|
}
|
|
|
|
.top-daily-progress.goal-met .top-daily-progress-fill {
|
|
background: var(--green);
|
|
}
|
|
|
|
#app.focus-mode #left-sidebar,
|
|
#app.focus-mode #right-panel,
|
|
#app.focus-mode #reference-panel.open {
|
|
display: none !important;
|
|
}
|
|
|
|
#app.focus-mode #topbar .tab-bar,
|
|
#app.focus-mode #topbar .top-btn:not([data-testid='topbar-focus-mode']) {
|
|
display: none;
|
|
}
|
|
|
|
.focus-mode-exit {
|
|
position: fixed;
|
|
top: 10px;
|
|
right: 10px;
|
|
z-index: 10001;
|
|
padding: 8px 14px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.focus-mode-exit:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.top-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.top-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.window-close:hover {
|
|
background: var(--red) !important;
|
|
color: var(--text-on-accent) !important;
|
|
}
|
|
|
|
#main-area {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#home-page {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 32px 40px;
|
|
}
|
|
|
|
.home-hero h1 {
|
|
font-size: 28px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.home-hero .subtitle {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.home-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.btn-large {
|
|
padding: 10px 18px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.btn-large.primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.book-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.book-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.book-card:hover {
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.book-name {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.book-meta {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
#editor-layout {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#left-sidebar {
|
|
width: 260px;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.nav-btn {
|
|
flex: 1;
|
|
padding: 8px 4px;
|
|
font-size: 11px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
border-bottom: 2px solid transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.nav-btn.active {
|
|
color: var(--accent-light);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.sidebar-panel {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: none;
|
|
}
|
|
|
|
.sidebar-panel.active {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.sidebar-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.sidebar-empty {
|
|
padding: 16px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.outline-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
border-left: 3px solid transparent;
|
|
}
|
|
|
|
.outline-item.uncovered {
|
|
border-left-color: var(--orange);
|
|
}
|
|
|
|
.outline-item.active,
|
|
.setting-item.active,
|
|
.inspiration-item.active {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.outline-warn {
|
|
font-size: 10px;
|
|
color: var(--orange);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.outline-title {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.outline-title-input {
|
|
flex: 1;
|
|
padding: 2px 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.setting-group-header {
|
|
padding: 8px 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.setting-group-count {
|
|
margin-left: auto;
|
|
font-size: 10px;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.setting-item {
|
|
padding: 7px 12px 7px 24px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.inspiration-item {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.inspiration-title {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.inspiration-preview {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
margin-top: 12px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.dialog-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.vol-header {
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chapter-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 7px 12px 7px 20px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.chapter-item:hover,
|
|
.chapter-item.active {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chapter-item.drag-over {
|
|
box-shadow: inset 0 2px 0 var(--accent);
|
|
}
|
|
|
|
.ch-badge {
|
|
margin-left: auto;
|
|
font-size: 10px;
|
|
padding: 2px 6px;
|
|
border-radius: 10px;
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.ch-badge.done {
|
|
color: var(--green);
|
|
}
|
|
|
|
.ch-badge.draft {
|
|
color: var(--orange);
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 10px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar-footer button {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
#editor-area {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
#editor-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.tool-btn {
|
|
width: 30px;
|
|
height: 30px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tool-btn:hover,
|
|
.tool-btn.active {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.editor-label {
|
|
margin-left: auto;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.editor-content-wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
background: var(--editor-bg);
|
|
}
|
|
|
|
.ProseMirror {
|
|
min-height: 100%;
|
|
padding: 32px 48px;
|
|
outline: none;
|
|
color: var(--editor-text);
|
|
font-size: 16px;
|
|
line-height: 1.9;
|
|
}
|
|
|
|
.ProseMirror p.is-editor-empty:first-child::before {
|
|
color: var(--text-muted);
|
|
content: attr(data-placeholder);
|
|
float: left;
|
|
height: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#editor-statusbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 6px 14px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
#right-panel {
|
|
width: 320px;
|
|
background: var(--bg-secondary);
|
|
border-left: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel-tabs {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.panel-tab {
|
|
flex: 1;
|
|
padding: 8px 4px;
|
|
font-size: 10px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.panel-tab.active {
|
|
color: var(--accent-light);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.panel-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px;
|
|
display: none;
|
|
}
|
|
|
|
.panel-content.active {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel-content.active {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel-content.ai-panel-wrap {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ai-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
.ai-panel-empty {
|
|
padding: 12px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.ai-session-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ai-session-bar select {
|
|
flex: 1;
|
|
font-size: 11px;
|
|
padding: 4px 8px;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.ai-mode-tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ai-mode-tab {
|
|
flex: 1;
|
|
padding: 5px 4px;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
.ai-mode-tab.active {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.context-preview {
|
|
padding: 6px 10px;
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
text-align: left;
|
|
background: transparent;
|
|
border-left: none;
|
|
border-right: none;
|
|
border-top: none;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
.context-preview:hover {
|
|
color: var(--accent-light);
|
|
}
|
|
|
|
.context-editor-modal {
|
|
max-width: 520px;
|
|
width: 90vw;
|
|
}
|
|
|
|
.context-editor-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.context-editor-tab {
|
|
flex: 1;
|
|
font-size: 11px;
|
|
padding: 6px 4px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.context-editor-tab.active {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.context-editor-list {
|
|
max-height: 280px;
|
|
overflow-y: auto;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.context-editor-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 4px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.offline-banner {
|
|
display: none;
|
|
padding: 6px 12px;
|
|
background: var(--orange, #f59e0b);
|
|
color: #000;
|
|
font-size: 11px;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.offline-banner.show {
|
|
display: block;
|
|
}
|
|
|
|
.chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.chat-msg {
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
max-width: 92%;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.chat-msg.user {
|
|
align-self: flex-end;
|
|
background: var(--accent-dark, var(--accent));
|
|
color: #fff;
|
|
}
|
|
|
|
.chat-msg.ai {
|
|
align-self: flex-start;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.quick-cmds {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 6px 8px;
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.quick-cmd {
|
|
font-size: 10px;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.quick-cmd:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.quick-cmd:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.chat-msg {
|
|
position: relative;
|
|
}
|
|
|
|
.chat-insert-btn {
|
|
margin-top: 6px;
|
|
font-size: 10px;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-surface);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-insert-btn:hover {
|
|
color: var(--text-primary);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.knowledge-toolbar {
|
|
padding: 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.knowledge-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.knowledge-toolbar {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.knowledge-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 0 8px 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.kb-tab {
|
|
flex: 1;
|
|
padding: 6px 8px;
|
|
font-size: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.kb-tab.active {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.kb-badge {
|
|
margin-left: 4px;
|
|
background: rgba(255, 255, 255, 0.25);
|
|
padding: 0 5px;
|
|
border-radius: 8px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.knowledge-stats {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
padding: 0 8px 8px;
|
|
}
|
|
|
|
.knowledge-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 8px 8px;
|
|
}
|
|
|
|
.kb-item {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
margin-bottom: 6px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.kb-item-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.kb-item-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.kb-item-meta {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.kb-item-content {
|
|
font-size: 12px;
|
|
margin-top: 4px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.kb-item-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.btn-sm {
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
}
|
|
|
|
.cockpit-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.cockpit-card {
|
|
padding: 14px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.cockpit-card-label {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.cockpit-card-value {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cockpit-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.cockpit-writing-section {
|
|
margin-top: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.cockpit-today-progress {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cockpit-streak {
|
|
color: var(--accent-light);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.cockpit-heatmap-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.cockpit-heatmap-wrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.status-daily-goal {
|
|
margin-left: 12px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-daily-goal.goal-near {
|
|
color: var(--accent-light);
|
|
}
|
|
|
|
.status-daily-goal.goal-met {
|
|
color: #3fb950;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pomodoro-control {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.pomodoro-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
padding: 2px 6px;
|
|
}
|
|
|
|
.pomodoro-btn:hover:not(:disabled) {
|
|
border-color: var(--accent);
|
|
color: var(--accent-light);
|
|
}
|
|
|
|
.pomodoro-btn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pomodoro-time {
|
|
font-variant-numeric: tabular-nums;
|
|
min-width: 42px;
|
|
text-align: center;
|
|
}
|
|
|
|
.cockpit-achievements-section {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.cockpit-achievements {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.cockpit-achievement-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 6px 10px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.cockpit-achievement-badge.unlocked {
|
|
background: var(--bg-tertiary);
|
|
opacity: 1;
|
|
}
|
|
|
|
.cockpit-achievement-badge.locked {
|
|
opacity: 0.35;
|
|
filter: grayscale(1);
|
|
}
|
|
|
|
.cockpit-pomodoro-today {
|
|
margin-top: 12px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.kb-injection-preview,
|
|
.knowledge-injection-history {
|
|
margin-top: 8px;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.kb-injection-label {
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.kb-injection-preview-row,
|
|
.kb-injection-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
align-items: center;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.kb-injection-chapter-link {
|
|
background: none;
|
|
border: none;
|
|
color: var(--accent-light);
|
|
cursor: pointer;
|
|
font-size: inherit;
|
|
padding: 0;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.kb-confidence-badge {
|
|
margin-left: 8px;
|
|
font-size: 11px;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.kb-merge-hint {
|
|
margin-top: 4px;
|
|
font-size: 12px;
|
|
color: var(--accent-light);
|
|
}
|
|
|
|
.bridge-body {
|
|
max-height: 420px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.bridge-section {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.bridge-section h4 {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.bridge-section p {
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
padding: 10px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.bridge-dismiss {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.ch-publish-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
padding: 0 2px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.ch-publish-btn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.ch-delete-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
padding: 0 4px;
|
|
opacity: 0;
|
|
color: var(--red, #c44);
|
|
}
|
|
|
|
.chapter-item:hover .ch-delete-btn {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.ch-delete-btn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.chapter-rename-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 12px;
|
|
padding: 2px 4px;
|
|
border: 1px solid var(--accent);
|
|
border-radius: 4px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.context-menu {
|
|
position: fixed;
|
|
z-index: 10000;
|
|
min-width: 140px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
padding: 4px;
|
|
}
|
|
|
|
.context-menu button {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 8px 12px;
|
|
border: none;
|
|
background: none;
|
|
color: var(--text-primary);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.context-menu button:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.context-menu button.danger {
|
|
color: var(--red, #c44);
|
|
}
|
|
|
|
.chapter-meta-modal .modal-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chapter-meta-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tag-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
background: var(--bg-tertiary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tag-chip button {
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.chapter-meta-tag-add {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.chapter-meta-published,
|
|
.status-published-at {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-word-over-threshold {
|
|
color: #e67e22;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-meta-btn {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.ai-session-menu-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.ai-session-menu-btn {
|
|
padding: 4px 8px;
|
|
min-width: 32px;
|
|
}
|
|
|
|
.ai-session-menu {
|
|
right: 0;
|
|
left: auto;
|
|
top: 100%;
|
|
}
|
|
|
|
.ai-session-export-submenu {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.ai-session-export-submenu button {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.book-settings-tab {
|
|
padding: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.book-settings-cover-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.book-settings-cover-path {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.book-settings-danger {
|
|
margin-top: 16px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.btn-danger {
|
|
color: #fff;
|
|
background: var(--red, #c44);
|
|
}
|
|
|
|
.status-stock-warning {
|
|
color: var(--warning, #e6a23c);
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.naming-modal-body {
|
|
max-height: 360px;
|
|
overflow-y: auto;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.naming-row {
|
|
padding: 10px;
|
|
margin-bottom: 8px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.naming-terms {
|
|
font-size: 13px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.naming-meta {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.naming-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.naming-empty {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
padding: 12px 4px;
|
|
}
|
|
|
|
.chat-input-area {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 8px;
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chat-input-area input {
|
|
flex: 1;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.chat-input-area button {
|
|
padding: 8px 14px;
|
|
border-radius: var(--radius-sm);
|
|
border: none;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-input-area button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.placeholder-box {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
line-height: 1.7;
|
|
padding: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
#settings-page {
|
|
flex: 1;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.settings-sidebar {
|
|
width: 180px;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border);
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.settings-nav-item {
|
|
padding: 10px 16px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-left: 3px solid transparent;
|
|
}
|
|
|
|
.settings-nav-item.active {
|
|
color: var(--text-primary);
|
|
background: var(--bg-tertiary);
|
|
border-left-color: var(--accent);
|
|
}
|
|
|
|
.settings-content {
|
|
flex: 1;
|
|
padding: 24px 32px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.settings-heading {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.setting-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 14px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-sm);
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.ai-license-notice {
|
|
margin: 4px 0 12px;
|
|
padding: 10px 14px;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
color: var(--text-secondary);
|
|
background: color-mix(in srgb, var(--accent) 8%, var(--bg-tertiary));
|
|
border-radius: var(--radius-sm);
|
|
border-left: 3px solid var(--accent);
|
|
}
|
|
|
|
.ai-license-notice a {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.shortcut-key {
|
|
min-width: 140px;
|
|
padding: 6px 12px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-surface);
|
|
color: var(--text-primary);
|
|
font-family: ui-monospace, monospace;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
}
|
|
|
|
.shortcut-key.recording {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
|
|
}
|
|
|
|
.dialog-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.65);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.dialog-content {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
width: min(480px, 90vw);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-light);
|
|
padding: 10px 18px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.ai-input-disabled {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.outline-toolbar {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.outline-toolbar select {
|
|
flex: 1;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.outline-toolbar .btn {
|
|
font-size: 10px;
|
|
padding: 4px 8px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#outline-compare-view {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.compare-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.compare-body {
|
|
flex: 1;
|
|
display: flex;
|
|
min-height: 0;
|
|
}
|
|
|
|
.compare-left {
|
|
width: 35%;
|
|
overflow-y: auto;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
|
|
.compare-right {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
.compare-chapter-content {
|
|
font-size: 14px;
|
|
line-height: 1.8;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.compare-footer {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.compare-deviation-warn {
|
|
color: var(--red);
|
|
font-weight: 600;
|
|
}
|
|
|
|
#reference-panel {
|
|
width: 0;
|
|
overflow: hidden;
|
|
transition: width 0.2s ease;
|
|
border-left: 1px solid var(--border);
|
|
background: var(--bg-secondary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#reference-panel.open {
|
|
width: 240px;
|
|
padding: 10px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ref-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ref-header-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.ref-pin-btn.active {
|
|
color: var(--accent-light);
|
|
}
|
|
|
|
.inspiration-modal {
|
|
max-width: 480px;
|
|
}
|
|
|
|
.inspiration-capture {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.inspiration-textarea {
|
|
width: 100%;
|
|
min-height: 120px;
|
|
padding: 10px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
resize: vertical;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.ref-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.ref-tab {
|
|
flex: 1;
|
|
padding: 4px;
|
|
font-size: 10px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-muted);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ref-tab.active {
|
|
color: var(--accent-light);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.ref-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.ref-item {
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: grab;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.ref-item-title {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.ref-item-preview {
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.65);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 3000;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
width: min(560px, 92vw);
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-content--wide {
|
|
width: min(720px, 95vw);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 14px;
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-close {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.search-options {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin: 8px 0;
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.search-history {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.search-results {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
max-height: 320px;
|
|
}
|
|
|
|
.search-result {
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.search-result.active,
|
|
.search-result:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.search-replace-panel {
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.search-replace-panel summary {
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.search-replace-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.search-replace-previews {
|
|
margin-top: 8px;
|
|
max-height: 160px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.sr-type {
|
|
font-size: 10px;
|
|
color: var(--accent-light);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.version-layout {
|
|
display: flex;
|
|
gap: 12px;
|
|
min-height: 240px;
|
|
}
|
|
|
|
.version-list {
|
|
width: 180px;
|
|
overflow-y: auto;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
|
|
.version-item {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 8px;
|
|
border: none;
|
|
border-bottom: 1px solid var(--border);
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.version-item.active {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.version-time {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.version-diff {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.diff-view ins {
|
|
background: color-mix(in srgb, var(--green) 25%, transparent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.diff-view del {
|
|
background: color-mix(in srgb, var(--red) 20%, transparent);
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.wordfreq-panel {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.wordfreq-list {
|
|
max-height: 360px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.wordfreq-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.wordfreq-item.overuse {
|
|
background: color-mix(in srgb, var(--orange) 15%, transparent);
|
|
}
|
|
|
|
.landmark-mark {
|
|
background: color-mix(in srgb, var(--orange) 20%, transparent);
|
|
border-radius: 3px;
|
|
padding: 0 2px;
|
|
font-size: 12px;
|
|
color: var(--orange);
|
|
}
|
|
|
|
.setting-mention {
|
|
color: var(--accent-light);
|
|
background: color-mix(in srgb, var(--accent) 15%, transparent);
|
|
border-radius: 3px;
|
|
padding: 0 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mention-dropdown {
|
|
position: absolute;
|
|
left: 16px;
|
|
bottom: 8px;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
max-height: 160px;
|
|
overflow-y: auto;
|
|
z-index: 10;
|
|
min-width: 160px;
|
|
}
|
|
|
|
.mention-item {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 6px 10px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.mention-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.interactive-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.interactive-step-bar {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.interactive-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.auto-outline-picker {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.auto-outline-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.auto-word-range {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.auto-word-range input {
|
|
width: 80px;
|
|
}
|
|
|
|
.wizard-step-indicator {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.wizard-preview {
|
|
padding: 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.plot-options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.plot-option-card {
|
|
text-align: left;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-surface);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.plot-option-card.selected {
|
|
border-color: var(--accent);
|
|
background: color-mix(in srgb, var(--accent) 12%, var(--bg-surface));
|
|
}
|
|
|
|
.plot-option-card .opt-label {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
color: var(--accent-light);
|
|
}
|
|
|
|
.plot-option-summary {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 6px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.interactive-scene-preview {
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
color: var(--text-primary);
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.naming-options .btn {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.naming-custom {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.interactive-actions,
|
|
.interactive-finish {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.interactive-scene-count {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.ai-mode-tab:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.character-graph-modal .modal-content {
|
|
max-width: 95vw;
|
|
width: 1100px;
|
|
}
|
|
|
|
.graph-toolbar {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 8px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.graph-body {
|
|
display: flex;
|
|
min-height: 480px;
|
|
}
|
|
|
|
#character-graph-cy {
|
|
min-height: 480px;
|
|
flex: 1;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.graph-sidebar {
|
|
width: 260px;
|
|
padding: 12px;
|
|
border-left: 1px solid var(--border);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.graph-truncated-notice {
|
|
padding: 8px 16px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.setting-relationships {
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.setting-relationship-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 4px 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.setting-relationship-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.cockpit-analytics {
|
|
margin-top: 16px;
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.cockpit-analytics-label {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.hourly-heatmap {
|
|
display: flex;
|
|
gap: 2px;
|
|
height: 32px;
|
|
}
|
|
|
|
.hourly-heatmap-cell {
|
|
flex: 1;
|
|
border-radius: 2px;
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.analytics-bar-row {
|
|
display: grid;
|
|
grid-template-columns: 80px 1fr 40px;
|
|
gap: 8px;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.analytics-bar-track {
|
|
height: 8px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.pov-bar,
|
|
.volume-bar {
|
|
height: 8px;
|
|
background: var(--accent);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.week-trend-bars {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 4px;
|
|
height: 52px;
|
|
}
|
|
|
|
.week-trend-bar {
|
|
flex: 1;
|
|
min-width: 8px;
|
|
background: var(--accent);
|
|
border-radius: 2px 2px 0 0;
|
|
}
|
|
|
|
.status-pov-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.status-pov-label select {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.graph-intimacy-bar {
|
|
height: 6px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 3px;
|
|
margin: 8px 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.graph-intimacy-bar span {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.template-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.template-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--bg-secondary);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.template-card.active {
|
|
border-color: var(--accent);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.template-badge {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.template-badge--custom {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.template-settings-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.template-settings-item {
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.template-body-preview {
|
|
font-size: 11px;
|
|
white-space: pre-wrap;
|
|
margin: 8px 0 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.template-edit-panel {
|
|
margin-top: 16px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.settings-subheading {
|
|
font-size: 14px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.import-file-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.import-file-row .form-control {
|
|
flex: 1;
|
|
}
|
|
|
|
.import-preview-list {
|
|
font-size: 12px;
|
|
max-height: 120px;
|
|
overflow: auto;
|
|
margin: 8px 0 0;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.import-progress {
|
|
margin-top: 12px;
|
|
height: 20px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.import-progress-fill {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
transition: width 0.2s;
|
|
}
|
|
|
|
.import-progress span {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.export-preview {
|
|
font-family: var(--font-mono, monospace);
|
|
font-size: 11px;
|
|
white-space: pre-wrap;
|
|
max-height: 200px;
|
|
overflow: auto;
|
|
padding: 10px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.inspiration-modal--capture {
|
|
z-index: 10000;
|
|
}
|
|
|
|
.submission-preset-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.import-hint {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.cockpit-outline-tasks {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.cockpit-outline-task-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 8px 0 0;
|
|
}
|
|
|
|
.cockpit-outline-task-list li {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
background: var(--bg-secondary);
|
|
margin-bottom: 6px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.cockpit-outline-task-words {
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.read-mode-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10001;
|
|
background: var(--bg-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.read-mode-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.read-mode-toolbar-title {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.read-mode-toolbar-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.read-mode-scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
scroll-snap-type: y proximity;
|
|
}
|
|
|
|
.read-mode-content {
|
|
width: 100%;
|
|
padding: 32px 24px 64px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.read-mode-device-phone {
|
|
max-width: 360px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.read-mode-device-tablet {
|
|
max-width: 768px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.read-mode-device-desktop {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.read-mode-chapter {
|
|
scroll-snap-align: start;
|
|
margin-bottom: 48px;
|
|
}
|
|
|
|
.read-mode-chapter-title {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 20px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.read-mode-paragraph {
|
|
line-height: 1.9;
|
|
margin-bottom: 1em;
|
|
font-size: 16px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.read-mode-font-serif .read-mode-paragraph {
|
|
font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif;
|
|
}
|
|
|
|
.read-mode-font-sans .read-mode-paragraph {
|
|
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
}
|
|
|
|
.read-mode-font-eye-care {
|
|
background: #ebe4d4;
|
|
}
|
|
|
|
.read-mode-font-eye-care .read-mode-content {
|
|
background: #f5f0e6;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.read-mode-font-eye-care .read-mode-paragraph,
|
|
.read-mode-font-eye-care .read-mode-chapter-title {
|
|
color: #3d3428;
|
|
}
|
|
|
|
.timeline-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.timeline-item {
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.timeline-item--conflict {
|
|
border-color: #e05252;
|
|
background: rgba(224, 82, 82, 0.08);
|
|
}
|
|
|
|
.timeline-item-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.timeline-item-meta {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.timeline-conflict-msg {
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
color: #e05252;
|
|
}
|
|
|
|
.character-arc-panel {
|
|
margin-top: 16px;
|
|
padding: 14px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.arc-node-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.arc-node-item {
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.arc-node-title {
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.arc-node-content {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.compliance-underline {
|
|
text-decoration: underline wavy #e05252;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.ref-detail-drawer {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: min(360px, 90%);
|
|
height: 100%;
|
|
background: var(--bg-primary);
|
|
border-left: 1px solid var(--border-color);
|
|
box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
|
|
padding: 16px;
|
|
z-index: 5;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.custom-slash-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
.custom-slash-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|