:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --color-bg-base: #0f1419; --color-bg-surface: #121820; --color-bg-elevated: #1c2735; --color-bg-active: #1a3050; --color-bg-code: #0f1419; --color-bg-warning: #2a2318; --color-bg-error: #3a1f24; --color-bg-info: #152033; --color-text-primary: #e7ecf3; --color-text-secondary: #c9d7ea; --color-text-muted: #8fa3bf; --color-text-faint: #6b829e; --color-text-meta: #5f738d; --color-text-link: #6ab0ff; --color-text-error: #ffb4b0; --color-text-info: #9ec5ff; --color-border: #243041; --color-border-input: #2a3a50; --color-border-warning: #5c4a2a; --color-border-input-focus: #3d8bfd; --color-accent: #3d8bfd; --color-accent-user: #2458a6; --color-danger: #c4453d; --radius-sm: 8px; --radius-xs: 4px; --radius-md: 10px; --radius-lg: 12px; --radius-xl: 16px; --radius-pill: 999px; --space-xs: 4px; --space-sm: 8px; --space-md: 12px; --space-lg: 16px; background: var(--color-bg-base); color: var(--color-text-primary); } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; } .app-shell { display: flex; height: 100%; width: 100%; overflow: hidden; } .app { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; background: var(--color-bg-surface); } .sidebar { position: fixed; top: 0; left: 0; bottom: 0; display: flex; flex-direction: column; background: var(--color-bg-base); border-right: 1px solid var(--color-border); z-index: 3; width: min(280px, 78vw); } .sidebar-backdrop { position: fixed; inset: 0; border: none; background: rgba(0, 0, 0, 0.45); z-index: 2; cursor: pointer; } .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-border); min-height: 52px; } .sidebar-close, .header-menu-btn { border: none; border-radius: var(--radius-sm); background: var(--color-bg-elevated); color: var(--color-text-secondary); width: 32px; height: 32px; font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0; } .sidebar-title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); } .sidebar-body { flex: 1; overflow-y: auto; padding: var(--space-sm); } .sidebar-new { width: 100%; border: 1px dashed var(--color-border-input); border-radius: var(--radius-md); background: transparent; color: var(--color-text-muted); padding: 10px var(--space-md); font-size: 14px; cursor: pointer; margin-bottom: var(--space-sm); } .sidebar-new:hover { background: var(--color-bg-elevated); } .sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); } .sidebar-item { width: 100%; border: none; border-radius: var(--radius-md); background: transparent; color: var(--color-text-secondary); padding: 10px var(--space-md); text-align: left; cursor: pointer; } .sidebar-item:hover { background: var(--color-bg-elevated); } .sidebar-item-active { background: var(--color-bg-active); color: var(--color-text-primary); } .sidebar-item-title { display: block; font-size: 14px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sidebar-item-meta { display: block; margin-top: 2px; font-size: 11px; color: var(--color-text-faint); } .sidebar-empty, .sidebar-more { padding: 24px var(--space-md); text-align: center; font-size: 13px; color: var(--color-text-faint); } .sidebar-more { padding: var(--space-md); } .sidebar-footer { flex-shrink: 0; padding: var(--space-md); border-top: 1px solid var(--color-border); } .avatar-picker { display: flex; flex-direction: column; gap: var(--space-sm); } .avatar-picker-trigger { display: flex; align-items: center; gap: var(--space-md); width: 100%; border: none; border-radius: var(--radius-md); background: var(--color-bg-elevated); color: var(--color-text-secondary); padding: 10px var(--space-md); text-align: left; cursor: pointer; } .avatar-picker-trigger:hover:not(:disabled) { background: var(--color-bg-active); } .avatar-picker-trigger:disabled { opacity: 0.7; cursor: wait; } .avatar-picker-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .avatar-picker-label { font-size: 14px; color: var(--color-text-primary); } .avatar-picker-hint, .avatar-picker-error { font-size: 11px; line-height: 1.4; } .avatar-picker-hint { color: var(--color-text-faint); } .avatar-picker-error { margin: 0; color: var(--color-text-error); } .avatar-picker-reset { border: none; border-radius: var(--radius-sm); background: transparent; color: var(--color-text-muted); font-size: 12px; padding: 4px 0; cursor: pointer; align-self: flex-start; } .avatar-picker-reset:hover:not(:disabled) { color: var(--color-text-secondary); } .avatar-picker-input { display: none; } .header-avatar-entry { display: flex; align-items: center; } .user-avatar { position: relative; flex-shrink: 0; border-radius: 6px; overflow: hidden; } .user-avatar-sm { width: 40px; height: 40px; } .user-avatar-md { width: 48px; height: 48px; } .user-avatar svg, .user-avatar-img { display: block; width: 100%; height: 100%; object-fit: cover; } .user-avatar-interactive { cursor: pointer; } .user-avatar-interactive:hover { filter: brightness(1.08); } .user-avatar-edit-badge { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; border-top-left-radius: 4px; background: rgba(15, 20, 25, 0.72); } .user-avatar-edit-badge::after { content: ''; position: absolute; inset: 3px; border: 1.5px solid #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); } .header-left { display: flex; align-items: center; gap: 10px; min-width: 0; } .header-actions { display: flex; gap: var(--space-sm); flex-shrink: 0; } @media (min-width: 768px) { .app-shell { max-width: 960px; margin: 0 auto; } .sidebar-backdrop { display: none; } .sidebar { position: static; width: 260px; flex-shrink: 0; } } .header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-border); background: var(--color-bg-base); position: sticky; top: 0; z-index: 2; } .header-title { font-weight: 700; font-size: 18px; } .header-sub { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ghost-btn, .send-btn, .danger-btn, .tool-confirm-actions button { border: none; border-radius: var(--radius-md); padding: 10px 14px; font-size: 14px; cursor: pointer; } .ghost-btn { background: var(--color-bg-elevated); color: var(--color-text-secondary); } .ghost-btn:disabled { opacity: 0.45; cursor: not-allowed; } .send-btn { background: var(--color-accent); color: white; min-width: 72px; } .danger-btn, .tool-confirm-actions .danger { background: var(--color-danger); color: white; } .send-btn:disabled { opacity: 0.5; cursor: not-allowed; } .banner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 10px var(--space-lg); font-size: 13px; } .banner-error { background: var(--color-bg-error); color: var(--color-text-error); } .banner-offline { background: var(--color-bg-warning); color: var(--color-text-muted); border-bottom: 1px solid var(--color-border-warning); } .banner-info { background: var(--color-bg-info); color: var(--color-text-info); } .banner-warning { background: var(--color-bg-warning); color: var(--color-text-muted); border-bottom: 1px solid var(--color-border-warning); } .text-error { color: var(--color-text-error); } .banner-action, .banner-dismiss { border: none; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.12); color: inherit; padding: 6px 10px; font-size: 12px; cursor: pointer; flex-shrink: 0; } .main { flex: 1; overflow-y: auto; padding: var(--space-md) var(--space-sm); background: var(--color-bg-surface); } .message-list { display: flex; flex-direction: column; gap: var(--space-md); padding-bottom: var(--space-sm); } .empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--color-text-muted); margin-top: 18vh; gap: var(--space-sm); } .empty-state .tkmind-avatar { width: 56px; height: 56px; margin-bottom: var(--space-xs); } .tkmind-avatar { flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #0a0a0a; } .tkmind-avatar-sm { width: 40px; height: 40px; } .tkmind-avatar-md { width: 48px; height: 48px; } .tkmind-avatar-img { display: block; width: 100%; height: 100%; object-fit: cover; } .header-brand-avatar { flex-shrink: 0; } .user-avatar-input-host { position: fixed; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0, 0, 0, 0); pointer-events: none; } .empty-state h2 { color: var(--color-text-primary); margin: 0 0 var(--space-xs); font-size: 18px; } .empty-state p { margin: 0; font-size: 14px; } .msg-block { display: flex; flex-direction: column; gap: var(--space-md); } .msg-time-divider { display: flex; justify-content: center; padding: 2px 0; } .msg-time-divider span { font-size: 12px; color: var(--color-text-faint); background: rgba(255, 255, 255, 0.06); padding: 3px 8px; border-radius: var(--radius-xs); line-height: 1.4; } .msg-row { display: flex; align-items: flex-start; gap: 10px; padding: 0 6px; } .msg-row-user { flex-direction: row; justify-content: flex-end; } .msg-row-assistant { flex-direction: row; justify-content: flex-start; } .msg-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 6px; overflow: hidden; } .msg-avatar.user-avatar { width: 40px; height: 40px; } .msg-content { max-width: calc(100% - 56px); min-width: 0; } .msg-row-user .msg-content { display: flex; justify-content: flex-end; } .msg-bubble-wrap { display: flex; align-items: center; gap: 6px; max-width: 100%; } .msg-row-user .msg-bubble-wrap { flex-direction: row-reverse; } .msg-copy { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--color-text-muted); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.15s, background 0.15s, color 0.15s; } .msg-bubble-wrap:hover .msg-copy, .msg-bubble-wrap:focus-within .msg-copy { opacity: 1; pointer-events: auto; } .msg-copy:hover { background: rgba(255, 255, 255, 0.14); color: var(--color-text-secondary); } .msg-copy-done { opacity: 1; pointer-events: auto; color: #5cd88a; background: rgba(92, 216, 138, 0.15); } .msg-actions { display: flex; flex-shrink: 0; align-items: center; gap: 6px; } .msg-save-page { padding: 7px 10px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-secondary); background: var(--color-bg-elevated); cursor: pointer; font: inherit; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 0.15s, border-color 0.15s, color 0.15s; } .msg-bubble-wrap:hover .msg-save-page, .msg-bubble-wrap:focus-within .msg-save-page { opacity: 1; pointer-events: auto; } .msg-save-page:hover { color: #eeb04e; border-color: rgba(238, 176, 78, 0.6); } .msg-save-page:disabled { cursor: not-allowed; opacity: 0.35; } @media (hover: none) { .msg-copy, .msg-save-page { opacity: 0.55; pointer-events: auto; } } .page-save-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; overscroll-behavior: contain; background: rgba(7, 12, 10, 0.72); backdrop-filter: blur(10px); } .page-save-panel { display: flex; flex-direction: column; width: min(560px, 100%); max-height: min(calc(100dvh - 40px), 720px); padding: clamp(24px, 5vw, 42px); border: 1px solid rgba(238, 176, 78, 0.3); border-radius: 26px; color: #18211d; background: radial-gradient(circle at 100% 0, rgba(47, 111, 87, 0.16), transparent 20rem), #f8f3e8; box-shadow: 0 28px 100px rgba(0, 0, 0, 0.4); overflow: hidden; } .page-save-backdrop.is-preview-scroll-locked { overflow: hidden; } .page-save-scroll.is-preview-scroll-locked { overflow: hidden; overscroll-behavior: none; } .page-save-scroll { display: grid; flex: 1 1 auto; min-height: 0; gap: 18px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; } .page-save-panel h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: 500; } .page-save-panel label, .mindspace-new-page label, .mindspace-page-editor label { display: grid; gap: 8px; color: #52605a; font-size: 13px; font-weight: 700; } .page-save-panel input, .page-save-panel textarea, .page-save-panel select, .mindspace-new-page input, .mindspace-new-page textarea, .mindspace-new-page select, .mindspace-page-editor input, .mindspace-page-editor textarea, .mindspace-page-editor select { width: 100%; padding: 12px 14px; border: 1px solid rgba(24, 33, 29, 0.18); border-radius: 12px; outline: none; color: #18211d; background: #fffdf7; font: inherit; } .page-save-panel input:focus, .page-save-panel textarea:focus, .page-save-panel select:focus, .mindspace-new-page input:focus, .mindspace-new-page textarea:focus, .mindspace-new-page select:focus, .mindspace-page-editor input:focus, .mindspace-page-editor textarea:focus, .mindspace-page-editor select:focus { border-color: #2f6f57; box-shadow: 0 0 0 3px rgba(47, 111, 87, 0.12); } .page-save-actions { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 4px; } .page-save-actions button { padding: 11px 16px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; } .page-save-primary { color: #fffaf0; background: #2f6f57; } .page-save-error { color: #8b2d20; font-size: 13px; } .page-save-notice { color: #2f6f57; font-size: 13px; font-weight: 700; } .page-save-state { color: #52605a; font-size: 14px; } .page-save-panel-wide { width: min(980px, 100%); } .page-save-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); gap: 24px; } .page-save-form { display: grid; gap: 16px; } .page-save-preview-block { display: grid; gap: 10px; } .page-save-preview-dual { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(120px, 0.65fr); gap: 12px; align-items: start; } .page-save-preview-pane { display: grid; gap: 6px; min-width: 0; } .page-save-preview-label { color: #52605a; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; } .page-save-preview-hint { margin: 0; color: #7a8680; font-size: 11px; line-height: 1.4; } .page-save-mini-page { height: min(380px, 46vh); border: 1px solid rgba(24, 33, 29, 0.14); border-radius: 14px; overflow: hidden; background: #ece7dc; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); overscroll-behavior: contain; isolation: isolate; } .page-save-preview-pane-page { overscroll-behavior: contain; } .page-save-mini-page-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; } .page-save-card-thumb { aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 12px; background: linear-gradient(160deg, #f3eee6 0%, #e7efe9 100%); } .page-save-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; } .page-save-card-thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 12px; color: #7a8680; font-size: 12px; text-align: center; line-height: 1.5; } .page-save-preview-block > span { color: #52605a; font-size: 13px; font-weight: 700; } .page-save-preview-frame { width: 100%; height: min(360px, 40vh); min-height: 220px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 16px; background: #fff; } .page-save-source { margin: 0; color: #68716c; font-size: 12px; } .page-save-targets { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .page-save-targets legend { margin-bottom: 6px; grid-column: 1 / -1; color: #52605a; font-size: 12px; font-weight: 700; } .page-save-target { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 10px; background: rgba(255, 253, 247, 0.9); cursor: pointer; } .page-save-target input { width: auto; margin-top: 2px; flex-shrink: 0; } .page-save-target strong { display: block; margin-bottom: 2px; font-size: 13px; line-height: 1.3; } .page-save-target small { color: #68716c; font-size: 11px; font-weight: 400; line-height: 1.35; } .page-save-aside { padding: 18px; border-radius: 18px; background: rgba(47, 111, 87, 0.08); } .page-save-aside h3 { margin: 8px 0 14px; font-size: 22px; } .page-save-destination-preview { display: grid; gap: 12px; } .page-save-destination-preview > span { color: #9b6518; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; } .page-save-destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .page-save-destination-card { min-height: 48px; display: grid; place-items: center; border-radius: 10px; border: 1px dashed rgba(24, 33, 29, 0.16); background: rgba(255, 253, 247, 0.72); font-size: 12px; } .page-save-destination-card.is-active { border-style: solid; border-color: #2f6f57; background: rgba(47, 111, 87, 0.12); font-weight: 700; } .page-save-destination-card.is-muted { opacity: 0.55; } .page-save-destination-preview p { margin: 0; color: #52605a; font-size: 13px; line-height: 1.6; } .page-save-private-panel { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(155, 101, 24, 0.08); border: 1px solid rgba(155, 101, 24, 0.18); } .page-save-private-panel p { margin: 0; color: #52605a; font-size: 13px; line-height: 1.6; } .page-save-private-findings { margin: 0; padding-left: 18px; color: #6d4c1b; font-size: 12px; } .page-save-private-ack { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; } .page-save-private-ack input { width: auto; margin-top: 3px; } .page-save-target.is-disabled { opacity: 0.55; cursor: not-allowed; } .msg-open-preview { padding: 4px 10px; border-radius: 999px; color: #2f6f57; background: rgba(47, 111, 87, 0.1); font-size: 12px; text-decoration: none; } .msg-bubble-wrap-compact { flex-direction: column; align-items: stretch; width: 100%; } .msg-bubble-row { display: flex; align-items: flex-start; gap: 6px; width: 100%; } .msg-bubble-wrap-compact .msg-bubble { flex: 1; min-width: 0; max-width: none; } .msg-actions-toggle { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: 2px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 999px; color: #52605a; background: rgba(255, 252, 244, 0.96); cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; } .msg-actions-toggle.is-open { color: #2f6f57; background: rgba(47, 111, 87, 0.12); } .msg-actions-chevron { transition: transform 0.15s ease; } .msg-actions-chevron.is-open, .msg-actions-toggle.is-open .msg-actions-chevron { transform: rotate(90deg); } .msg-actions-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(24, 33, 29, 0.08); } .msg-actions-compact .msg-copy, .msg-actions-compact .msg-save-page { opacity: 1; pointer-events: auto; } .page-save-panel-compact { width: min(440px, calc(100vw - 32px)); } .page-save-panel-compact .page-save-layout { grid-template-columns: 1fr; } .page-save-panel-compact .page-save-preview-dual { grid-template-columns: 1fr; } .page-save-panel-compact .page-save-preview-pane-thumb { max-width: 180px; } .page-save-panel-compact .page-save-preview-frame { min-height: 180px; } .mindspace-item-cover-img, .mindspace-page-card-cover img { width: 100%; height: 100%; object-fit: cover; } .mindspace-page-card.has-cover { padding-top: 0; overflow: hidden; } .mindspace-page-card-cover { height: 140px; margin: -24px -24px 16px; overflow: hidden; background: rgba(47, 111, 87, 0.1); } .mindspace-page-card-cover iframe { width: 100%; min-height: 140px; border: 0; pointer-events: none; } .msg-bubble { position: relative; max-width: min(72vw, 520px); padding: 9px 12px; border-radius: 6px; line-height: 1.5; word-break: break-word; font-size: 15px; } .msg-bubble-assistant { background: var(--color-bg-elevated); color: var(--color-text-primary); border: 1px solid var(--color-border); } .msg-bubble-assistant::before { content: ''; position: absolute; left: -6px; top: 12px; border: 6px solid transparent; border-right-color: var(--color-bg-elevated); border-left: 0; } .msg-bubble-user { background: var(--color-accent-user); color: var(--color-text-primary); } .msg-bubble-user::before { content: ''; position: absolute; right: -6px; top: 12px; border: 6px solid transparent; border-left-color: var(--color-accent-user); border-right: 0; } .msg-typing { padding: 12px 16px; } .typing-dots { display: inline-flex; align-items: center; gap: 4px; height: 8px; } .typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-faint); animation: typing-bounce 1.2s infinite ease-in-out; } .typing-dots span:nth-child(2) { animation-delay: 0.15s; } .typing-dots span:nth-child(3) { animation-delay: 0.3s; } @keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } } .thinking { margin-bottom: var(--space-sm); font-size: 12px; color: var(--color-text-muted); } .thinking pre { white-space: pre-wrap; margin: var(--space-sm) 0 0; font-size: 12px; color: var(--color-text-faint); } .tool-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); } .tool-badge { font-size: 12px; background: var(--color-bg-code); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); color: var(--color-text-muted); } .tool-confirm { margin: 0 var(--space-lg) var(--space-sm); padding: var(--space-md); border-radius: var(--radius-lg); background: var(--color-bg-warning); border: 1px solid var(--color-border-warning); } .tool-confirm-text { font-size: 14px; margin-bottom: 10px; } .tool-confirm-actions { display: flex; gap: var(--space-sm); } .tool-confirm-actions button { background: var(--color-accent); color: white; } .footer { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md) var(--space-lg) calc(var(--space-md) + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--color-bg-base); } .chat-input-row { display: flex; align-items: center; gap: var(--space-sm); } .chat-input-row .input { flex: 1; min-width: 0; min-height: 42px; } .chat-input-action { flex: 0 0 auto; white-space: nowrap; } .voice-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--color-border-input); border-radius: var(--radius-lg); background: var(--color-bg-elevated); color: var(--color-text-secondary); cursor: pointer; } .voice-btn:disabled { opacity: 0.45; cursor: not-allowed; } .voice-btn-recording { border-color: var(--color-danger); color: var(--color-danger); background: rgba(220, 53, 69, 0.12); animation: voice-pulse 1.2s ease-in-out infinite; } .voice-btn-busy:not(.voice-btn-recording) { opacity: 0.7; } .voice-btn-spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: voice-spin 0.8s linear infinite; } .voice-notice { font-size: 12px; color: var(--color-danger); padding: 0 2px; } @keyframes voice-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); } } @keyframes voice-spin { to { transform: rotate(360deg); } } .voice-dialog-backdrop { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 12, 10, 0.72); backdrop-filter: blur(10px); } .voice-dialog { display: grid; gap: 16px; width: min(480px, 100%); padding: 22px; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-bg-surface); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); } .voice-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .voice-dialog-eyebrow { margin: 0; font-size: 12px; color: var(--color-text-muted); } .voice-dialog-header h3 { margin: 4px 0 0; font-size: 20px; font-weight: 600; } .voice-dialog-close { flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--color-border-input); border-radius: 999px; color: var(--color-text-secondary); background: var(--color-bg-elevated); cursor: pointer; font: inherit; font-size: 13px; } .voice-waveform { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 72px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--color-bg-elevated); } .voice-waveform-bar { display: block; width: 4px; height: var(--voice-bar-height, 18%); min-height: 8px; border-radius: 999px; background: var(--color-text-faint); transition: height 80ms linear; } .voice-waveform-active .voice-waveform-bar { background: var(--color-accent); } .voice-waveform-idle .voice-waveform-bar { animation: voice-wave-idle 1.1s ease-in-out infinite; } .voice-waveform-idle .voice-waveform-bar:nth-child(odd) { animation-delay: 0.15s; } @keyframes voice-wave-idle { 0%, 100% { height: 18%; } 50% { height: 56%; } } .voice-dialog-status { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 20px; font-size: 13px; color: var(--color-text-muted); } .voice-dialog-input { width: 100%; min-height: 96px; } .voice-dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-sm); } .input { flex: 1; resize: none; border: 1px solid var(--color-border-input); border-radius: var(--radius-lg); background: var(--color-bg-surface); color: var(--color-text-primary); padding: 10px var(--space-md); font: inherit; } .input:focus { outline: none; border-color: var(--color-border-input-focus); } .meta { font-size: 11px; color: var(--color-text-meta); text-align: center; padding: 0 var(--space-lg) 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* === Markdown rendering === */ .bubble-text { font-size: 15px; color: inherit; } .bubble-text .md-p { margin: 0 0 0.5em; } .bubble-text .md-p:last-child { margin-bottom: 0; } .bubble-text .md-h1, .bubble-text .md-h2, .bubble-text .md-h3, .bubble-text .md-h4, .bubble-text .md-h5, .bubble-text .md-h6 { margin: 0.8em 0 0.3em; font-weight: 600; color: var(--color-text-primary); } .bubble-text .md-h1 { font-size: 1.3em; } .bubble-text .md-h2 { font-size: 1.15em; } .bubble-text .md-h3 { font-size: 1.05em; } .bubble-text a { color: var(--color-text-link); text-decoration: underline; text-underline-offset: 2px; } .bubble-text a:active { opacity: 0.7; } .bubble-text code { background: var(--color-bg-code); padding: 2px 6px; border-radius: var(--radius-xs, 4px); font-size: 0.9em; font-family: "SF Mono", "Fira Code", Menlo, monospace; } .bubble-text pre { background: var(--color-bg-code); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-md); overflow-x: auto; margin: 0.5em 0; font-size: 0.85em; line-height: 1.5; } .bubble-text pre code { background: none; padding: 0; border-radius: 0; } .bubble-text .md-li { list-style: none; margin: 0.2em 0; padding-left: 0.5em; } .bubble-text .md-li::before { content: "•"; margin-right: 0.5em; color: var(--color-text-link); } .bubble-text .md-img { max-width: 100%; border-radius: var(--radius-sm); margin: 0.5em 0; } .bubble-text strong { color: var(--color-text-primary); } .bubble-text em { font-style: italic; } .bubble-text s { text-decoration: line-through; color: var(--color-text-muted); } .bubble-text br { display: block; content: ""; margin: 0.5em 0; } /* === Login Screen === */ .app-loading, .login-container { display: flex; align-items: center; justify-content: center; height: 100%; padding: 24px; } .app-loading { color: var(--color-text-muted); } .login-card { position: relative; width: 100%; max-width: 360px; } .login-topbar { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-sm); margin-bottom: var(--space-md); min-height: 28px; } .login-plaza-back { margin-bottom: var(--space-sm); } .login-plaza-back a { color: var(--color-text-muted, #4a5751); font-size: 14px; text-decoration: none; } .login-plaza-back a:hover { color: var(--color-text-link, #2f6f57); } .login-topbar-sep { width: 1px; height: 14px; background: var(--color-border); } .login-link { border: none; background: none; padding: 4px 2px; font-size: 14px; color: var(--color-text-link); cursor: pointer; transition: opacity 0.15s; } .login-link:hover { opacity: 0.8; } .login-form { display: flex; flex-direction: column; width: 100%; gap: var(--space-md); } .login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; } .login-brand-avatar { width: 56px; height: 56px; margin-bottom: var(--space-xs); } .login-title { font-size: 22px; font-weight: 700; margin: 0; color: var(--color-text-primary); } .login-desc { font-size: 14px; color: var(--color-text-muted); margin: var(--space-xs) 0 0; } .login-fields { display: flex; flex-direction: column; gap: var(--space-md); } .login-input { width: 100%; padding: 14px var(--space-lg); border-radius: var(--radius-lg); border: 1px solid var(--color-border-input); background: var(--color-bg-surface); color: var(--color-text-primary); font-size: 16px; outline: none; transition: border-color 0.2s; } .login-input::placeholder { color: var(--color-text-faint); } .login-input:focus { border-color: var(--color-border-input-focus); } .login-input-error { border-color: var(--color-danger); } .login-error { font-size: 14px; color: var(--color-text-error); margin: calc(-1 * var(--space-sm)) 0 0; } .login-success { font-size: 14px; color: #7dd3a0; margin: calc(-1 * var(--space-sm)) 0 0; } .login-wechat-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: none; border-radius: var(--radius-lg); padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer; background: #07c160; color: white; transition: opacity 0.2s; } .login-wechat-icon { width: 20px; height: 20px; flex-shrink: 0; } .login-wechat-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 12px 14px; font-size: 15px; font-weight: 500; cursor: pointer; background: var(--color-bg-surface); color: var(--color-text-primary); transition: border-color 0.2s, background 0.2s; } .login-wechat-secondary:hover:not(:disabled) { border-color: rgba(7, 193, 96, 0.45); background: rgba(7, 193, 96, 0.05); } .login-wechat-secondary:disabled { opacity: 0.4; cursor: not-allowed; } .login-wechat-secondary .login-wechat-icon { color: #07c160; } .login-alt-methods { display: flex; flex-direction: column; gap: var(--space-md); width: 100%; } .login-wechat-scan-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-elevated); overflow: hidden; } .login-wechat-scan-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--color-border); font-size: 14px; font-weight: 600; color: var(--color-text-primary); } .login-wechat-scan-close { border: none; background: none; padding: 0; font-size: 13px; color: var(--color-text-link); cursor: pointer; } .login-wechat-scan-body { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px 16px; } .login-wechat-scan-qr { width: 180px; height: 180px; border-radius: 8px; background: #fff; padding: 6px; } .login-wechat-scan-loading { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--color-bg-surface); color: var(--color-text-muted); font-size: 13px; } .login-wechat-scan-tip { margin: 0; font-size: 13px; color: var(--color-text-muted); text-align: center; line-height: 1.5; } .login-mode-switch { align-self: center; border: none; background: none; padding: 4px 2px; font-size: 14px; color: var(--color-text-link); cursor: pointer; } .login-mode-switch:hover { opacity: 0.8; } .login-wechat-btn:hover:not(:disabled) { opacity: 0.92; } .login-wechat-btn:disabled { opacity: 0.4; cursor: not-allowed; } .login-wechat-btn-outline { background: transparent; border: 1px solid #07c160; color: #07c160; } .login-wechat-btn-outline:hover:not(:disabled) { background: rgba(7, 193, 96, 0.08); opacity: 1; } .login-password-toggle { align-self: center; margin-top: calc(-1 * var(--space-sm)); } .wechat-bind-card { max-width: 400px; } .wechat-bind-avatar { width: 56px; height: 56px; border-radius: 50%; margin-bottom: var(--space-xs); object-fit: cover; } .wechat-bind-options { display: flex; flex-direction: column; gap: var(--space-md); } .wechat-bind-option { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-bg-surface); cursor: pointer; text-align: left; transition: border-color 0.2s, background 0.2s; } .wechat-bind-option strong { font-size: 16px; color: var(--color-text-primary); } .wechat-bind-option span { font-size: 13px; color: var(--color-text-muted); } .wechat-bind-option:hover:not(:disabled) { border-color: var(--color-border-input-focus); background: var(--color-bg-elevated); } .wechat-bind-option-primary { border-color: rgba(7, 193, 96, 0.45); background: rgba(7, 193, 96, 0.06); } .wechat-bind-hint { font-size: 13px; color: var(--color-text-muted); margin: 0; line-height: 1.5; } .wechat-bind-form { display: flex; flex-direction: column; gap: var(--space-lg); } .wechat-bind-back { align-self: center; } .wechat-scan-panel { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); padding: var(--space-md) 0; } .wechat-scan-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--color-text-primary); } .wechat-scan-qr { width: 220px; height: 220px; border-radius: var(--radius-md); background: white; padding: 8px; } .wechat-scan-hint { margin: 0; font-size: 13px; color: var(--color-text-muted); text-align: center; } .wechat-account-bound { cursor: default; opacity: 0.85; white-space: nowrap; } .wechat-open-hint { margin: calc(-1 * var(--space-sm)) 0 0; font-size: 13px; color: var(--color-text-muted); text-align: center; line-height: 1.5; } .wechat-open-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 24px 16px; background: rgba(0, 0, 0, 0.55); } .wechat-open-guide { position: relative; width: 100%; max-width: 400px; padding: 24px 20px 20px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--color-bg-surface); box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2); } .wechat-open-guide h2 { margin: 0 0 12px; font-size: 18px; color: var(--color-text-primary); } .wechat-open-close { position: absolute; top: 12px; right: 12px; border: none; background: none; font-size: 24px; line-height: 1; color: var(--color-text-muted); cursor: pointer; } .wechat-open-success { margin: 0 0 12px; color: #07c160; font-size: 14px; } .wechat-open-warning { margin: 0 0 12px; color: var(--color-text-error); font-size: 14px; } .wechat-open-steps { margin: 0 0 16px; padding-left: 20px; color: var(--color-text-primary); font-size: 14px; line-height: 1.6; } .wechat-open-steps li + li { margin-top: 8px; } .wechat-open-url { width: 100%; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-elevated); color: var(--color-text-muted); font-size: 12px; } .wechat-bind-banner { flex-wrap: wrap; gap: 8px; } .login-divider { display: flex; align-items: center; gap: var(--space-md); color: var(--color-text-faint); font-size: 13px; } .login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); } .balance-pill { align-self: center; padding: 6px 10px; border-radius: var(--radius-pill); background: var(--color-bg-elevated); color: var(--color-text-info); font-size: 12px; } .balance-pill-btn { border: 1px solid transparent; cursor: pointer; font: inherit; } .balance-pill-btn:hover { border-color: rgba(106, 176, 255, 0.35); background: var(--color-bg-active); } .balance-popover-wrap { position: relative; align-self: center; } .balance-ring-btn { position: relative; width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; padding: 0; border-radius: 50%; flex-shrink: 0; } .balance-ring-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } .balance-ring-svg { width: 40px; height: 40px; transform: rotate(-90deg); filter: drop-shadow(0 0 4px rgba(61, 214, 197, 0.55)); } .balance-ring-track { fill: none; stroke: #1a2838; stroke-width: 4; } .balance-ring-spent { fill: none; stroke: #e8a44a; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.35s ease; filter: drop-shadow(0 0 3px rgba(232, 164, 74, 0.45)); } .balance-ring-remain { fill: none; stroke: #3dd6c5; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.35s ease, stroke 0.2s; filter: drop-shadow(0 0 4px rgba(61, 214, 197, 0.55)); } .balance-ring-btn.low .balance-ring-remain { stroke: #ddb945; filter: drop-shadow(0 0 4px rgba(221, 185, 69, 0.5)); } .balance-ring-btn.low .balance-ring-svg { filter: drop-shadow(0 0 4px rgba(221, 185, 69, 0.5)); } .balance-ring-btn.empty .balance-ring-remain { stroke: #ef7b7b; animation: balance-ring-pulse 1.8s ease-in-out infinite; } .balance-ring-btn.empty .balance-ring-svg { filter: drop-shadow(0 0 4px rgba(239, 123, 123, 0.5)); } @keyframes balance-ring-pulse { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(239, 123, 123, 0.5)); } 50% { opacity: 0.55; filter: drop-shadow(0 0 8px rgba(239, 123, 123, 0.5)); } } .balance-ring-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--color-text-muted); pointer-events: none; } .balance-ring-btn.low .balance-ring-center { color: #ddb945; } .balance-ring-btn.empty .balance-ring-center { color: #ef7b7b; font-size: 9px; } .balance-popover { display: none; position: fixed; top: 0; left: 0; width: 220px; padding: 14px; background: #171f2b; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); z-index: 120; } .balance-popover-wrap.open .balance-popover { display: block; } .balance-popover h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; } .balance-popover-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; } .balance-popover-label { color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; } .balance-popover-label-muted { color: var(--color-text-faint); } .balance-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .balance-dot-remain { background: #3dd6c5; box-shadow: 0 0 6px rgba(61, 214, 197, 0.55); } .balance-dot-spent { background: #e8a44a; box-shadow: 0 0 6px rgba(232, 164, 74, 0.45); } .balance-popover-bar { height: 6px; border-radius: var(--radius-pill); background: #1a2838; overflow: hidden; display: flex; margin: 10px 0 12px; } .balance-popover-bar-spent { background: #e8a44a; } .balance-popover-bar-remain { background: #3dd6c5; } .balance-popover-cta { width: 100%; padding: 8px; border: none; border-radius: var(--radius-sm); background: var(--color-accent); color: #fff; font-size: 13px; cursor: pointer; } .balance-popover-cta:hover { filter: brightness(1.08); } .recharge-backdrop { position: fixed; z-index: 200; inset: 0; display: flex; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); overflow-y: auto; background: rgba(7, 12, 10, 0.76); backdrop-filter: blur(10px); } .recharge-dialog { display: grid; gap: 16px; width: min(460px, 100%); max-height: min(92vh, 760px); overflow: auto; margin: auto; flex-shrink: 0; padding: clamp(22px, 4vw, 30px); border: 1px solid rgba(106, 176, 255, 0.22); border-radius: 24px; color: #e7ecf3; background: radial-gradient(circle at 100% 0, rgba(61, 139, 253, 0.16), transparent 16rem), linear-gradient(180deg, #1a2433 0%, #121820 100%); box-shadow: 0 28px 100px rgba(0, 0, 0, 0.45); } .recharge-dialog-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .recharge-eyebrow { margin: 0; color: var(--color-text-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; } .recharge-dialog h3 { margin: 6px 0 0; font-size: clamp(22px, 4vw, 28px); font-weight: 700; } .recharge-close { flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text-secondary); background: transparent; cursor: pointer; font: inherit; font-size: 13px; } .recharge-balance-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: 16px; background: rgba(255, 255, 255, 0.03); } .recharge-balance-row strong { color: var(--color-text-link); font-size: 20px; } .recharge-muted { margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.6; } .recharge-tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .recharge-tier { padding: 14px 10px; border: 1px solid var(--color-border); border-radius: 14px; color: var(--color-text-primary); background: rgba(255, 255, 255, 0.02); cursor: pointer; font: inherit; font-size: 16px; font-weight: 700; } .recharge-tier-active { border-color: rgba(106, 176, 255, 0.65); background: rgba(61, 139, 253, 0.16); color: #d9ebff; } .recharge-tier:disabled { opacity: 0.55; cursor: not-allowed; } .recharge-projected { margin: 0; color: var(--color-text-secondary); font-size: 14px; } .recharge-error { margin: 0; color: var(--color-text-error); font-size: 14px; } .recharge-success { margin: 0; color: #7dd3a0; font-size: 14px; } .recharge-qr-panel { display: grid; justify-items: center; gap: 10px; padding: 16px; border: 1px dashed var(--color-border); border-radius: 18px; background: rgba(255, 255, 255, 0.03); } .recharge-qr { width: 220px; height: 220px; border-radius: 12px; background: #fff; } .recharge-h5-panel { display: grid; gap: 10px; } .recharge-h5-link { display: inline-flex; justify-content: center; padding: 12px 16px; border-radius: 12px; color: white; background: #07c160; text-decoration: none; font-weight: 700; } .recharge-actions { display: grid; gap: 10px; } .recharge-pay-btn, .recharge-secondary-btn { width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; } .recharge-pay-btn { color: white; background: linear-gradient(135deg, #07c160, #06ad56); } .recharge-pay-btn:disabled { opacity: 0.55; cursor: not-allowed; } .recharge-secondary-btn { color: var(--color-text-secondary); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--color-border); } .recharge-warning, .recharge-legal { margin: 0; color: var(--color-text-faint); font-size: 12px; line-height: 1.6; } .admin-page { min-height: 100%; padding: 0; overflow: auto; } .admin-page-head { margin-bottom: 16px; } .admin-page-head h2 { margin: 0 0 4px; font-size: 22px; } .admin-back-inline { display: inline-block; margin-bottom: 8px; text-decoration: none; } .admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; } .admin-stat-card { padding: 14px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-surface); } .admin-stat-label { font-size: 13px; color: var(--color-text-muted); } .admin-stat-value { margin-top: 6px; font-size: 24px; font-weight: 600; } .admin-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; } .admin-link-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; color: inherit; } .admin-link-card:hover { border-color: var(--color-border-input); background: var(--color-bg-subtle, rgba(0, 0, 0, 0.03)); } .admin-link-card-title { font-weight: 600; } .admin-inline-link { text-decoration: none; display: inline-block; } .admin-dl { display: grid; gap: 12px; margin: 0; } .admin-dl div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; } .admin-dl dt { margin: 0; color: var(--color-text-muted); font-size: 13px; } .admin-dl dd { margin: 0; } .admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; } .admin-tab { padding: 8px 14px; border-radius: var(--radius-md); border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text-primary); font-size: 14px; white-space: nowrap; } .admin-tab:hover { background: var(--color-bg-subtle, rgba(0, 0, 0, 0.03)); } .admin-tab.active { border-color: var(--color-border-input); background: var(--color-bg-surface); font-weight: 600; } .admin-nav-section + .admin-nav-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); } .admin-nav-section-label { padding: 0 12px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); } .admin-shell { display: flex; flex-direction: column; min-height: 100vh; background: var(--color-bg-base); } .admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--color-border); background: var(--color-bg-surface); } .admin-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; } .admin-topbar-title { margin: 0; font-size: 18px; font-weight: 600; } .admin-topbar-actions { display: flex; align-items: center; gap: 12px; } .admin-topbar-user { color: var(--color-text-muted); font-size: 13px; } .admin-back-link { text-decoration: none; white-space: nowrap; } .admin-body { display: flex; flex: 1; min-height: 0; } .admin-sidebar { flex: 0 0 200px; padding: 16px 12px; border-right: 1px solid var(--color-border); background: var(--color-bg-surface); } .admin-sidebar-nav { display: flex; flex-direction: column; gap: 4px; } .admin-nav-link { display: block; padding: 10px 12px; border-radius: var(--radius-md); color: var(--color-text-primary); text-decoration: none; font-size: 14px; } .admin-nav-link:hover { background: var(--color-bg-subtle, rgba(0, 0, 0, 0.04)); } .admin-nav-link.active { background: var(--color-bg-subtle, rgba(0, 0, 0, 0.06)); font-weight: 600; } .admin-main { flex: 1; min-width: 0; padding: 20px; overflow: auto; } @media (max-width: 768px) { .admin-body { flex-direction: column; } .admin-sidebar { flex: none; border-right: none; border-bottom: 1px solid var(--color-border); padding: 8px 12px; } .admin-sidebar-nav { flex-direction: row; overflow-x: auto; } .admin-nav-link { white-space: nowrap; } .admin-topbar { flex-wrap: wrap; padding: 10px 12px; } .admin-main { padding: 12px; } } .admin-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .admin-header h1 { margin: 0; font-size: 22px; } .admin-card { background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; } .admin-card h2 { margin: 0 0 12px; font-size: 16px; } .admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; } .admin-form input, .admin-form select, .admin-form textarea { padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--color-border-input); background: var(--color-bg-base); color: var(--color-text-primary); } .admin-form textarea { grid-column: 1 / -1; min-height: 88px; resize: vertical; font-family: inherit; } .global-model-card { margin-bottom: 16px; padding: 14px; border: 1px solid var(--color-border-input); border-radius: var(--radius-md); background: var(--color-bg-subtle, rgba(0, 0, 0, 0.02)); } .global-model-form { margin-top: 10px; } .admin-table-wrap { overflow: auto; } .admin-table { width: 100%; border-collapse: collapse; font-size: 13px; } .admin-table th, .admin-table td { border-bottom: 1px solid var(--color-border); padding: 10px 8px; text-align: left; vertical-align: top; } .admin-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; } .skill-name-tag { margin-left: var(--space-sm); padding: 1px 6px; border-radius: var(--radius-xs); background: var(--color-bg-code); font-size: 0.85em; } .publish-banner a { color: var(--color-text-link); word-break: break-all; } .capability-intro { margin: 0 0 1rem; } .capability-section-title { margin: 1.25rem 0 0.75rem; font-size: 1rem; } /* ── Capability filter bar ───────────────────────────── */ .capability-filter-bar { display: flex; gap: 0.5rem; margin-bottom: 1rem; } .capability-filter-btn { padding: 0.3rem 0.85rem; font-size: 0.8rem; border-radius: 999px; border: 1px solid var(--color-border-input); background: transparent; color: var(--color-text-muted); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; } .capability-filter-btn:hover { background: var(--color-bg-elevated); color: var(--color-text-primary); } .capability-filter-btn.active { background: var(--color-bg-elevated); color: var(--color-text-primary); border-color: var(--color-text-muted); font-weight: 600; } /* ── Capability grid ─────────────────────────────────── */ .capability-grid { display: grid; gap: 0.75rem; } .capability-group { border: 1px solid var(--color-border-input); border-radius: var(--radius-md, 8px); overflow: hidden; } .capability-group-header { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border-input); } .capability-group-header h3 { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); font-weight: 600; } .capability-group-count { font-size: 0.75rem; color: var(--color-text-muted); } .capability-group ul { list-style: none; margin: 0; padding: 0; } .capability-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; } .capability-item + .capability-item { border-top: 1px solid var(--color-border-input); } .capability-item-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; } .capability-label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.9rem; } .capability-desc { font-size: 0.8rem; } /* ── Toggle switch ───────────────────────────────────── */ .capability-toggle { flex-shrink: 0; cursor: pointer; } .capability-toggle input { position: absolute; opacity: 0; width: 0; height: 0; } .toggle-track { display: inline-flex; align-items: center; width: 36px; height: 20px; border-radius: 999px; background: var(--color-border-input); position: relative; transition: background 0.2s; } .capability-toggle input:checked + .toggle-track { background: #22c55e; } .capability-toggle input:disabled + .toggle-track { opacity: 0.4; cursor: not-allowed; } .toggle-thumb { position: absolute; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } .capability-toggle input:checked + .toggle-track .toggle-thumb { left: 19px; } /* ── Risk pills ──────────────────────────────────────── */ .risk-pill { font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 999px; } .risk-low { background: rgba(34, 197, 94, 0.15); color: #16a34a; } .risk-medium { background: rgba(234, 179, 8, 0.15); color: #ca8a04; } .risk-high { background: rgba(239, 68, 68, 0.15); color: #dc2626; } .capability-actions { display: flex; gap: 0.75rem; margin-top: 1rem; } .capability-user-picker { margin-bottom: 0.75rem; } .admin-actions { white-space: nowrap; } .muted { color: var(--color-text-muted); font-size: 12px; } .login-btn { width: 100%; border: none; border-radius: var(--radius-lg); padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--color-accent); color: white; transition: opacity 0.2s; } .login-btn:disabled { opacity: 0.4; cursor: not-allowed; } .mindspace-preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(20px, 5vw, 72px); color: #e7ecf3; font-size: 13px; background: #1a3050; border-bottom: 1px solid rgba(106, 176, 255, 0.2); } .mindspace-preview-banner a { color: #9ec5ff; text-decoration: none; white-space: nowrap; } .mindspace-preview-banner a:hover { text-decoration: underline; } .mindspace-page { min-height: 100vh; color: #18211d; background: radial-gradient(circle at 12% 8%, rgba(238, 176, 78, 0.24), transparent 28rem), radial-gradient(circle at 88% 22%, rgba(47, 111, 87, 0.2), transparent 32rem), #f4f0e7; } .mindspace-header { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px, 5vw, 72px); border-bottom: 1px solid rgba(24, 33, 29, 0.12); background: rgba(244, 240, 231, 0.86); backdrop-filter: blur(18px); } .mindspace-header-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .mindspace-back-plaza { color: #17221d; background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(24, 33, 29, 0.14); } .mindspace-header-actions, .mindspace-actions { display: flex; align-items: center; gap: 12px; } .mindspace-plaza-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; color: #18211d; text-decoration: none; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(24, 33, 29, 0.14); } .mindspace-plaza-link:hover { border-color: rgba(47, 111, 87, 0.35); color: #245742; } .mindspace-back, .mindspace-primary, .mindspace-secondary, .mindspace-card button, .mindspace-state button { border: 0; border-radius: 999px; cursor: pointer; font: inherit; } .mindspace-back { padding: 10px 16px; color: #f8f4ea; background: #18211d; } .mindspace-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; } .mindspace-hero { display: grid; grid-template-columns: minmax(0, 1fr) min(272px, 34%); gap: 28px 40px; align-items: start; padding: clamp(28px, 5vw, 64px); border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 32px; background: linear-gradient(135deg, rgba(255, 252, 244, 0.96), rgba(229, 237, 226, 0.9)), repeating-linear-gradient(90deg, transparent 0 42px, rgba(24, 33, 29, 0.025) 42px 43px); box-shadow: 0 24px 70px rgba(48, 54, 45, 0.1); } .mindspace-hero-left { min-width: 0; } .mindspace-hero-left .mindspace-actions { margin-top: 24px; } .mindspace-hero-quota { padding: 12px 14px; border-radius: 16px; color: #f7f1e6; background: #18211d; } .mindspace-hero-quota-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.72); } .mindspace-hero-quota-top strong { font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; } .mindspace-hero-quota-track { height: 4px; margin: 8px 0; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.14); } .mindspace-hero-quota-track span { display: block; height: 100%; border-radius: inherit; background: #eeb04e; } .mindspace-hero-quota-meta { margin: 0; font-size: 10px; line-height: 1.45; color: rgba(255, 255, 255, 0.58); } .mindspace-hero-quota-cleanup { margin-top: 6px; padding: 0; border: 0; background: transparent; color: #eeb04e; font-size: 10px; cursor: pointer; } .mindspace-hero-quota-cleanup:hover { text-decoration: underline; } .mindspace-hero-cleanup { grid-column: 1 / -1; padding: 16px 18px; border-radius: 16px; color: #f7f1e6; background: #24312c; } .mindspace-hero-cleanup > p { margin: 0 0 10px; font-size: 13px; color: rgba(255, 255, 255, 0.75); } .mindspace-hero h1 { margin: 6px 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 7vw, 82px); font-weight: 500; letter-spacing: -0.055em; } .mindspace-hero p, .mindspace-card p, .mindspace-empty p { color: #59635e; line-height: 1.7; } .mindspace-eyebrow { margin: 0; color: #9b6518 !important; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; } .mindspace-primary, .mindspace-secondary { padding: 13px 20px; } .mindspace-primary { color: #fffaf0; background: #2f6f57; } .mindspace-secondary { color: #18211d; border: 1px solid rgba(24, 33, 29, 0.18); background: transparent; } .mindspace-primary:disabled, .mindspace-secondary:disabled, .mindspace-card button:disabled { cursor: not-allowed; opacity: 0.68; } .mindspace-cleanup-list { margin: 14px 0 0; padding: 0; list-style: none; } .mindspace-cleanup-list li + li { margin-top: 10px; } .mindspace-cleanup-list label { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.88); font-size: 14px; } .mindspace-cleanup-list strong { display: block; } .mindspace-cleanup-list small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.58); font-size: 12px; line-height: 1.5; word-break: break-all; } .mindspace-cleanup-actions { display: flex; gap: 12px; margin-top: 16px; } .mindspace-section { margin-top: 64px; } .mindspace-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; } .mindspace-section-heading h2, .mindspace-empty h2 { margin: 6px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 500; } .mindspace-section-heading > span { color: #68716c; font-size: 13px; } .mindspace-recent-work-empty { padding: 28px 32px; border: 1px dashed rgba(24, 33, 29, 0.16); border-radius: 24px; background: rgba(255, 252, 244, 0.55); } .mindspace-recent-work-empty p { margin: 0; max-width: 52ch; color: #59635e; line-height: 1.7; } .mindspace-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; } .mindspace-card { grid-column: span 4; min-height: 220px; padding: 24px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 24px; background: rgba(255, 252, 244, 0.82); } .mindspace-grid-secondary { grid-column: span 12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; } .mindspace-grid-secondary .mindspace-card, .mindspace-grid-secondary .mindspace-agent-jobs-module { grid-column: auto; min-height: 180px; } .mindspace-agent-jobs-module { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 22px; border: 1px dashed rgba(47, 111, 87, 0.35); border-radius: 24px; background: linear-gradient(145deg, rgba(220, 235, 226, 0.72), rgba(255, 253, 245, 0.92)); color: inherit; text-align: left; cursor: pointer; } .mindspace-agent-jobs-module .mindspace-eyebrow { margin: 0; } .mindspace-agent-jobs-module strong { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 500; color: #18211d; } .mindspace-agent-jobs-module > span:last-child { color: #68716c; font-size: 13px; } .mindspace-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; } .mindspace-pagination button { padding: 8px 14px; border-radius: 999px; background: rgba(24, 33, 29, 0.08); } .mindspace-pagination button:disabled { opacity: 0.45; cursor: not-allowed; } .mindspace-pagination span { color: #68716c; font-size: 13px; } .mindspace-card-private { background: linear-gradient(145deg, #f4e1d4, #fff9ef); } .mindspace-card-public { background: linear-gradient(145deg, #dcebe2, #fffdf5); } .mindspace-card-draft { background: linear-gradient(145deg, #e4e8d5, #fffdf5); } .mindspace-card-top { display: flex; justify-content: space-between; color: #68716c; font-size: 12px; } .mindspace-card-code { color: #2f6f57; font-weight: 800; letter-spacing: 0.12em; } .mindspace-card h3 { margin: 30px 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 500; } .mindspace-card button { margin-top: 8px; padding: 9px 14px; color: #18211d; background: rgba(24, 33, 29, 0.08); } .mindspace-inline-back { margin-bottom: 18px; padding: 0; border: 0; color: #2f6f57; background: transparent; cursor: pointer; font: inherit; font-weight: 700; } .mindspace-security-note { margin-bottom: 20px; padding: 16px 18px; border: 1px solid rgba(139, 45, 32, 0.18); border-radius: 16px; color: #75362c; background: #f8e8de; } .mindspace-upload-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 12, 10, 0.72); backdrop-filter: blur(10px); } .mindspace-upload-dialog { display: grid; gap: 18px; width: min(520px, 100%); max-height: min(90vh, 720px); overflow: auto; padding: clamp(22px, 4vw, 32px); border: 1px solid rgba(238, 176, 78, 0.3); border-radius: 24px; color: #18211d; background: radial-gradient(circle at 100% 0, rgba(47, 111, 87, 0.14), transparent 18rem), #f8f3e8; box-shadow: 0 28px 100px rgba(0, 0, 0, 0.4); } .mindspace-upload-dialog-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .mindspace-upload-dialog h3 { margin: 4px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, 4vw, 30px); font-weight: 500; } .mindspace-upload-dialog-close { flex-shrink: 0; padding: 8px 12px; border: 1px solid rgba(24, 33, 29, 0.14); border-radius: 999px; color: #18211d; background: rgba(255, 255, 255, 0.55); cursor: pointer; font: inherit; font-size: 13px; } .mindspace-upload-dialog-close:disabled { opacity: 0.5; cursor: not-allowed; } .mindspace-upload-dialog-desc { margin: 0; color: #68716c; font-size: 14px; line-height: 1.6; } .mindspace-upload-dialog input[type='file'] { width: 100%; padding: 16px; border: 1px dashed rgba(24, 33, 29, 0.28); border-radius: 16px; background: #fffdf7; } .mindspace-upload-file, .mindspace-upload-actions, .mindspace-asset-row, .mindspace-asset-actions { display: flex; align-items: center; } .mindspace-upload-file { justify-content: space-between; gap: 20px; padding: 12px 16px; border-radius: 12px; background: rgba(47, 111, 87, 0.08); } .mindspace-agent-dialog { width: min(620px, 100%); } .mindspace-delete-dialog { width: min(640px, 100%); } .mindspace-delete-summary { margin: 0; padding-left: 20px; color: #18211d; display: grid; gap: 8px; } .mindspace-delete-summary li { line-height: 1.5; } .mindspace-delete-public-url { display: block; margin-top: 12px; word-break: break-all; color: #2f6f57; } .mindspace-delete-assets { display: grid; gap: 8px; margin-top: 14px; } .mindspace-delete-assets div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(47, 111, 87, 0.08); } .mindspace-delete-assets span { color: #68716c; font-size: 12px; } .mindspace-delete-dialog .mindspace-delete-confirm { color: #fff5f5; background: #9b3d3d; border-color: #9b3d3d; } .mindspace-agent-asset { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(24, 33, 29, 0.1); border-radius: 14px; background: rgba(255, 255, 255, 0.55); } .mindspace-agent-asset span { color: #68716c; font-size: 13px; } .mindspace-agent-field { display: grid; gap: 10px; } .mindspace-agent-field span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: #7d6236; text-transform: uppercase; } .mindspace-agent-field textarea { width: 100%; min-height: 180px; padding: 16px; border: 1px solid rgba(24, 33, 29, 0.14); border-radius: 16px; color: #18211d; background: #fffdf7; font: inherit; resize: vertical; } .mindspace-agent-field textarea:focus { outline: 2px solid rgba(47, 111, 87, 0.18); outline-offset: 2px; } .mindspace-agent-status { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; font-size: 14px; background: rgba(47, 111, 87, 0.08); color: #244438; } .mindspace-agent-status.is-failed { background: rgba(139, 45, 32, 0.1); color: #7a2f24; } .mindspace-agent-status.is-completed { background: rgba(173, 116, 27, 0.12); color: #6f4b16; } .mindspace-agent-history { display: grid; gap: 16px; } .mindspace-agent-history-card { display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(24, 33, 29, 0.1); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(245, 240, 229, 0.94)); } .mindspace-agent-history-card.is-running, .mindspace-agent-history-card.is-queued { border-color: rgba(47, 111, 87, 0.24); } .mindspace-agent-history-card.is-failed { border-color: rgba(139, 45, 32, 0.24); background: linear-gradient(180deg, rgba(252, 241, 236, 0.96), rgba(248, 232, 222, 0.94)); } .mindspace-agent-history-top, .mindspace-agent-history-meta, .mindspace-agent-history-actions { display: flex; align-items: center; } .mindspace-agent-history-top, .mindspace-agent-history-meta { justify-content: space-between; gap: 16px; } .mindspace-agent-history-top strong { display: block; margin-bottom: 4px; } .mindspace-agent-history-top p, .mindspace-agent-history-meta { margin: 0; color: #68716c; font-size: 13px; line-height: 1.5; } .mindspace-agent-history-top span { flex-shrink: 0; padding: 6px 10px; border-radius: 999px; background: rgba(24, 33, 29, 0.08); font-size: 12px; text-transform: uppercase; } .mindspace-agent-history-error { padding: 12px 14px; border-radius: 12px; color: #7a2f24; background: rgba(139, 45, 32, 0.08); font-size: 13px; } .mindspace-agent-history-actions { gap: 10px; flex-wrap: wrap; } .mindspace-agent-history-actions button { padding: 10px 14px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 999px; color: #18211d; background: rgba(255, 255, 255, 0.8); cursor: pointer; font: inherit; } .mindspace-upload-actions { justify-content: flex-end; gap: 10px; } .mindspace-asset-list { display: grid; gap: 12px; } .mindspace-asset-row { gap: 16px; padding: 18px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 18px; background: rgba(255, 252, 244, 0.82); } .mindspace-asset-icon { display: grid; flex: 0 0 52px; height: 52px; place-items: center; border-radius: 14px; color: #fffaf0; background: #2f6f57; font-size: 11px; font-weight: 800; } .mindspace-asset-copy { min-width: 0; flex: 1; } .mindspace-asset-copy h3 { overflow: hidden; margin: 0 0 5px; text-overflow: ellipsis; white-space: nowrap; } .mindspace-asset-copy p { margin: 0; color: #68716c; font-size: 12px; } .mindspace-asset-actions { gap: 8px; } .mindspace-asset-actions button, .mindspace-asset-share { padding: 8px 12px; border: 0; border-radius: 999px; color: #18211d; background: rgba(24, 33, 29, 0.08); cursor: pointer; font: inherit; text-decoration: none; } .mindspace-asset-actions button { color: #8b2d20; } .mindspace-asset-actions .mindspace-delete-confirm { color: #fffaf0; background: #8b2d20; } .mindspace-feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .mindspace-feed-card-wrap { display: flex; flex-direction: column; gap: 8px; } .mindspace-feed-card-actions { display: flex; flex-wrap: wrap; gap: 8px; } .mindspace-feed-card-actions button { padding: 7px 11px; border: 0; border-radius: 999px; color: #18211d; background: rgba(24, 33, 29, 0.08); cursor: pointer; font: inherit; } .mindspace-feed-card-actions button:last-child { color: #8b2d20; } .mindspace-feed-card { display: flex; flex-direction: column; padding: 0; border: none; border-radius: 12px; overflow: hidden; color: inherit; background: #fff; box-shadow: 0 2px 10px rgba(24, 33, 29, 0.07); cursor: pointer; text-align: left; font: inherit; transition: transform 0.16s ease, box-shadow 0.16s ease; } .mindspace-feed-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(24, 33, 29, 0.12); } .mindspace-feed-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(160deg, #f3eee6 0%, #e7efe9 100%); container-type: size; } .mindspace-feed-cover-media { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; } .mindspace-feed-cover-preview { position: absolute; inset: 0; overflow: hidden; background: #0a0a0a; pointer-events: none; } .mindspace-feed-cover-preview iframe { position: absolute; top: 50%; left: 50%; width: 390px; height: 844px; border: 0; transform-origin: center center; transform: translate(-50%, -50%) scale(min(calc(100cqw / 390), calc(100cqh / 844))); pointer-events: none; } .mindspace-preview-embed { position: relative; width: 100%; height: 100%; overflow: hidden; background: #f5f0e5; } .mindspace-preview-embed iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; } .mindspace-feed-cover-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #7a8680; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; } .mindspace-feed-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.42); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.2; backdrop-filter: blur(6px); } .mindspace-feed-body { padding: 10px 12px 12px; } .mindspace-feed-title { margin: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; font-weight: 600; line-height: 1.45; color: #18211d; } .mindspace-feed-meta { margin: 6px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #939c97; } @media (min-width: 900px) { .mindspace-feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } } @media (min-width: 1120px) { .mindspace-feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } } .mindspace-page-grid, .mindspace-item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .mindspace-asset-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .mindspace-asset-filters button { padding: 8px 14px; border: 0; border-radius: 999px; color: #52605a; background: rgba(24, 33, 29, 0.08); cursor: pointer; font: inherit; } .mindspace-asset-filters button.is-active { color: #fffaf0; background: #2f6f57; } .mindspace-item-card { display: grid; gap: 12px; padding: 16px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 22px; background: rgba(255, 252, 244, 0.9); } .mindspace-item-card.is-work { background: linear-gradient(145deg, rgba(255, 252, 244, 0.96), rgba(224, 235, 223, 0.88)); } .mindspace-item-card-main { display: grid; gap: 14px; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; font: inherit; } .mindspace-item-icon, .mindspace-item-cover { display: grid; place-items: center; min-height: 88px; border-radius: 16px; overflow: hidden; background: rgba(47, 111, 87, 0.1); } .mindspace-item-icon { font-size: 28px; } .mindspace-item-cover iframe { width: 100%; min-height: 140px; border: 0; pointer-events: none; transform: scale(1); transform-origin: top left; } .mindspace-item-copy h3 { margin: 8px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; } .mindspace-item-copy p { margin: 0; color: #68716c; font-size: 12px; } .mindspace-item-badge { color: #9b6518; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; } .mindspace-item-actions { display: flex; flex-wrap: wrap; gap: 8px; } .mindspace-item-actions button, .mindspace-item-actions .mindspace-asset-share { padding: 7px 11px; border: 0; border-radius: 999px; color: #18211d; background: rgba(24, 33, 29, 0.08); cursor: pointer; font: inherit; text-decoration: none; } .mindspace-item-actions .mindspace-delete-confirm { color: #fffaf0; background: #8b2d20; } .share-sheet-backdrop { position: fixed; z-index: 140; inset: 0; display: grid; place-items: end center; padding: 16px; background: rgba(7, 12, 10, 0.56); } .share-sheet-panel { width: min(520px, 100%); max-height: min(82vh, 720px); overflow: auto; padding: 18px 18px 22px; border-radius: 24px 24px 20px 20px; background: #fffaf2; box-shadow: 0 24px 80px rgba(24, 33, 29, 0.24); } .share-sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; } .share-sheet-eyebrow { margin: 0; color: #9b6518; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; } .share-sheet-header h2 { margin: 4px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 500; color: #18211d; } .share-sheet-subtitle { margin: 6px 0 0; color: #68716c; font-size: 13px; } .share-sheet-close { width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(24, 33, 29, 0.08); color: #18211d; font-size: 24px; line-height: 1; cursor: pointer; } .share-sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .share-sheet-option { display: grid; gap: 8px; justify-items: center; padding: 14px 10px; border: 1px solid rgba(24, 33, 29, 0.08); border-radius: 18px; background: rgba(255, 255, 255, 0.72); cursor: pointer; font: inherit; } .share-sheet-option:disabled { opacity: 0.6; cursor: wait; } .share-sheet-option-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; font-size: 18px; font-weight: 700; } .share-sheet-option-wechat_moments .share-sheet-option-icon { background: linear-gradient(145deg, #07c160, #06ad56); } .share-sheet-option-xiaohongshu .share-sheet-option-icon { background: linear-gradient(145deg, #ff2442, #d91534); } .share-sheet-option-toutiao .share-sheet-option-icon { background: linear-gradient(145deg, #ff4d00, #e04300); } .share-sheet-option-weibo .share-sheet-option-icon { background: linear-gradient(145deg, #ff8200, #e56f00); } .share-sheet-option-douyin .share-sheet-option-icon { background: linear-gradient(145deg, #111111, #444444); } .share-sheet-option-copy_link .share-sheet-option-icon, .share-sheet-option-system .share-sheet-option-icon { background: linear-gradient(145deg, #2f6f57, #245845); } .share-sheet-option-label { color: #18211d; font-size: 13px; font-weight: 600; text-align: center; } .share-sheet-link { display: grid; gap: 6px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(24, 33, 29, 0.05); } .share-sheet-link code { word-break: break-all; font-size: 12px; color: #445049; } .share-sheet-message { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; color: #245845; background: rgba(47, 111, 87, 0.12); font-size: 13px; } @media (max-width: 480px) { .share-sheet-backdrop { padding: 0; place-items: end stretch; } .share-sheet-panel { width: 100%; border-radius: 24px 24px 0 0; } .share-sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } .mindspace-asset-preview-backdrop { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 12, 10, 0.72); } .mindspace-asset-preview-panel { display: flex; flex-direction: column; width: min(1100px, 100%); height: min(82vh, 900px); gap: 12px; padding: 16px; border-radius: 22px; background: #f8f3e8; } .mindspace-asset-preview-panel iframe { flex: 1; width: 100%; min-height: 0; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 16px; background: #fff; } .mindspace-asset-preview-bar { display: flex; align-items: center; justify-content: space-between; } .mindspace-page-card { min-height: 230px; padding: 24px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 24px; color: #18211d; background: linear-gradient(145deg, rgba(255, 252, 244, 0.95), rgba(224, 235, 223, 0.88)); cursor: pointer; text-align: left; } .mindspace-page-card > span { color: #9b6518; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; } .mindspace-page-card h3 { margin: 30px 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 500; } .mindspace-page-card p { display: -webkit-box; overflow: hidden; color: #5f6963; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; } .mindspace-page-card small { color: #7b847f; } .mindspace-new-page { display: grid; gap: 20px; width: min(820px, 100%); padding: clamp(24px, 5vw, 48px); border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 28px; background: rgba(255, 252, 244, 0.86); } .mindspace-new-page h2, .mindspace-page-detail h2 { margin: 5px 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 5vw, 52px); font-weight: 500; } .mindspace-page-detail { margin-top: 64px; } .mindspace-state.mindspace-error { display: grid; gap: 10px; } .mindspace-asset-delete-blockers { display: flex; flex-wrap: wrap; gap: 8px; } .mindspace-asset-delete-blockers button { padding: 8px 12px; border: 1px solid rgba(24, 33, 29, 0.18); border-radius: 999px; background: #fffaf0; cursor: pointer; } .mindspace-page-status { display: flex; align-items: center; gap: 8px; } .mindspace-page-status span, .mindspace-page-status strong { padding: 8px 12px; border-radius: 999px; background: rgba(24, 33, 29, 0.08); font-size: 12px; } .mindspace-page-status span { color: #fffaf0; background: #2f6f57; } .mindspace-publication-live, .mindspace-publish-panel { margin-bottom: 22px; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 22px; } .mindspace-publication-live { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; color: #eff8f2; background: linear-gradient(120deg, #214f3f, #32755b); } .mindspace-publication-live > div { display: grid; gap: 5px; } .mindspace-publication-live > div:last-child { display: flex; grid-auto-flow: column; } .mindspace-publication-live small { color: rgba(255, 255, 255, 0.68); } .mindspace-publication-url { color: #fff; font-weight: 600; word-break: break-all; text-decoration: underline; text-underline-offset: 3px; } .mindspace-publication-url:hover { color: rgba(255, 255, 255, 0.88); } .mindspace-publication-live a:not(.mindspace-publication-url), .mindspace-publication-live button { padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; color: #fff; background: transparent; cursor: pointer; text-decoration: none; } .mindspace-publish-panel { display: grid; gap: 18px; padding: clamp(22px, 4vw, 34px); background: linear-gradient(145deg, #fffaf0, #e4eddf); } .mindspace-publish-panel h3 { margin: 4px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 500; } .mindspace-slug-field { display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(24, 33, 29, 0.18); border-radius: 12px; background: #fffdf7; } .mindspace-slug-field span { padding-left: 14px; color: #6d7771; font-size: 12px; white-space: nowrap; } .mindspace-slug-field input { border: 0; background: transparent; } .mindspace-publish-check { padding: 16px 18px; border-radius: 16px; background: rgba(238, 176, 78, 0.16); } .mindspace-publish-check.is-passed { background: rgba(47, 111, 87, 0.12); } .mindspace-publish-check.is-blocked { color: #75362c; background: #f8e8de; } .mindspace-publish-check p { margin: 8px 0 0; font-size: 13px; } .mindspace-publish-slug-suggest button { margin-left: 6px; padding: 4px 10px; border: 0; border-radius: 999px; color: #18211d; background: rgba(24, 33, 29, 0.08); cursor: pointer; font: inherit; } .mindspace-publish-warning-note { color: #6d7771; font-size: 12px; } .mindspace-fix-notice { padding: 14px 16px; border-radius: 12px; border: 1px solid #2f5a44; background: rgba(47, 90, 68, 0.18); color: #d7eadf; } .mindspace-fix-notice strong { display: block; margin-bottom: 8px; } .mindspace-fix-notice ul { margin: 0; padding-left: 18px; } .mindspace-fix-notice li { margin: 4px 0; } .mindspace-fix-notice p { margin: 10px 0 0; color: #a8c7b3; font-size: 12px; } .mindspace-page-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); gap: 22px; align-items: start; } .mindspace-page-layout.is-html-page { grid-template-columns: 1fr; } .mindspace-page-layout.is-html-page .mindspace-page-preview { order: 2; } .mindspace-page-editor, .mindspace-page-preview { border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 24px; background: rgba(255, 252, 244, 0.86); } .mindspace-page-editor { display: grid; gap: 18px; padding: 24px; } .mindspace-page-content-input { min-height: 340px; resize: vertical; line-height: 1.65; } .mindspace-html-source-editor { border-top: 1px solid rgba(24, 33, 29, 0.1); } .mindspace-html-source-editor summary { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; color: #6d7771; font-size: 12px; font-weight: 500; cursor: pointer; list-style: none; user-select: none; } .mindspace-html-source-editor summary::-webkit-details-marker { display: none; } .mindspace-html-source-editor summary::before { content: '›'; color: #9aa59f; font-size: 14px; line-height: 1; transition: transform 0.15s ease; } .mindspace-html-source-editor[open] summary::before { transform: rotate(90deg); } .mindspace-html-source-editor[open] summary { border-bottom: 1px solid rgba(24, 33, 29, 0.1); } .mindspace-html-source-editor .mindspace-page-content-input { min-height: 420px; margin: 0; border: 0; border-radius: 0; background: transparent; } .mindspace-page-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .mindspace-page-editor-actions span { color: #6d7771; font-size: 12px; } .mindspace-publish-action-group { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; } .mindspace-publish-plaza-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #4f5a54; font-size: 13px; white-space: nowrap; cursor: pointer; user-select: none; } .mindspace-publish-plaza-toggle input { margin: 0; } .mindspace-page-preview { overflow: hidden; } .mindspace-page-preview-dual { padding: 16px 18px 0; grid-template-columns: minmax(0, 1fr) 180px; } .mindspace-page-preview-dual .page-save-preview-pane-thumb { width: 180px; } .mindspace-page-preview-dual .mindspace-page-mini-page { height: min(520px, 58vh); } .mindspace-page-preview-dual + .mindspace-html-source-editor { margin-top: 12px; } .mindspace-page-thumb-actions { display: grid; gap: 6px; margin-top: 8px; } .mindspace-page-thumb-actions button { border: 0; border-radius: 999px; padding: 7px 10px; color: #18211d; background: rgba(24, 33, 29, 0.08); cursor: pointer; font: inherit; font-size: 11px; } .mindspace-page-thumb-actions button:disabled { opacity: 0.55; cursor: not-allowed; } .mindspace-page-thumb-note, .mindspace-page-thumb-error { margin: 6px 0 0; font-size: 11px; line-height: 1.45; } .mindspace-page-thumb-note { color: #6d7771; } .mindspace-page-thumb-error { color: #8b2d20; } .mindspace-page-preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: #f8f2e8; background: #18211d; } .mindspace-page-preview-actions { display: flex; align-items: center; gap: 14px; } .mindspace-page-preview-actions a, .mindspace-page-preview-bar button { border: 0; color: #eeb04e; background: transparent; cursor: pointer; text-decoration: none; font: inherit; } .mindspace-page-preview-frame { display: block; width: 100%; min-height: 680px; border: 0; background: #f5f0e5; } .mindspace-page-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; } .mindspace-page-meta > div { display: grid; gap: 6px; min-width: 0; padding: 18px; border-radius: 16px; background: rgba(24, 33, 29, 0.07); } .mindspace-page-meta span { color: #6d7771; font-size: 12px; } .mindspace-page-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mindspace-version-history { margin-top: 42px; } .mindspace-version-history h3 { margin: 5px 0 16px; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 500; } .mindspace-version-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(24, 33, 29, 0.12); } .mindspace-version-row time { color: #6d7771; font-size: 12px; } .mindspace-empty, .mindspace-state { margin-top: 24px; padding: 38px; border: 1px dashed rgba(24, 33, 29, 0.2); border-radius: 24px; text-align: center; } .mindspace-state { display: flex; align-items: center; justify-content: center; gap: 16px; } .mindspace-state button { padding: 9px 14px; } .mindspace-error { color: #8b2d20; border-color: rgba(139, 45, 32, 0.35); } @media (max-width: 760px) { .mindspace-header { padding: 14px 16px; } .mindspace-header-actions > span { display: none; } .mindspace-content { width: min(100% - 24px, 1180px); padding-top: 18px; } .mindspace-hero, .mindspace-section-heading { align-items: stretch; flex-direction: column; } .mindspace-hero { grid-template-columns: 1fr; gap: 20px; border-radius: 24px; } .mindspace-hero-quota { width: 100%; } .mindspace-actions { display: grid; grid-template-columns: 1fr 1fr; } .mindspace-card, .mindspace-card:nth-child(4), .mindspace-card:nth-child(5) { grid-column: 1 / -1; } .mindspace-assets-section .mindspace-section-heading .mindspace-primary { width: 100%; } .mindspace-asset-row { align-items: flex-start; flex-wrap: wrap; } .mindspace-asset-copy { width: calc(100% - 68px); } .mindspace-asset-actions { width: 100%; justify-content: flex-end; } .mindspace-page-grid, .mindspace-item-grid { grid-template-columns: 1fr; } .page-save-layout { grid-template-columns: 1fr; } .page-save-aside { order: -1; } .mindspace-page-layout { grid-template-columns: 1fr; } .mindspace-page-preview-frame { min-height: 560px; } .mindspace-page-meta { grid-template-columns: 1fr; } .mindspace-page-editor-actions, .mindspace-version-row { align-items: stretch; grid-template-columns: 1fr; } .mindspace-page-editor-actions { flex-direction: column; } .mindspace-page-status, .mindspace-publication-live { align-items: flex-start; flex-direction: column; } .mindspace-publication-live > div:last-child { width: 100%; } .mindspace-slug-field { align-items: stretch; flex-direction: column; } .mindspace-slug-field span { padding: 10px 14px 0; } .mindspace-section { margin-top: 42px; } .mindspace-section-heading > span { display: none; } } .logout-btn { color: var(--color-text-error); } @media (max-width: 480px) { .header { padding-inline: var(--space-md); } .header-actions { gap: var(--space-xs); } .ghost-btn { padding: 8px 9px; font-size: 12px; } } .space-chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 999px; color: inherit; background: #fffaf0; box-shadow: 0 10px 30px rgba(24, 33, 29, 0.18), 0 0 0 1px rgba(47, 111, 87, 0.18); cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; } .space-chat-fab:hover { transform: translateY(-2px); } .space-chat-fab.is-streaming { box-shadow: 0 10px 30px rgba(47, 111, 87, 0.28), 0 0 0 2px rgba(47, 111, 87, 0.35); animation: space-chat-fab-pulse 1.6s ease-in-out infinite; } .space-chat-fab.has-pending-tool .space-chat-fab-badge { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 999px; background: #d64545; box-shadow: 0 0 0 2px #fffaf0; } @keyframes space-chat-fab-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } } .space-chat-panel { position: fixed; right: 24px; bottom: 92px; z-index: 900; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; width: min(480px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px)); overflow: hidden; border: 1px solid rgba(24, 33, 29, 0.12); border-radius: 24px; background: rgba(255, 252, 244, 0.98); box-shadow: 0 24px 60px rgba(24, 33, 29, 0.18); } .space-chat-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(24, 33, 29, 0.08); } .space-chat-panel-brand { display: flex; align-items: center; gap: 10px; min-width: 0; } .space-chat-panel-brand strong { display: block; font-size: 14px; } .space-chat-context-chip { display: block; overflow: hidden; color: #6d7771; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; } .space-chat-panel-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; } .space-chat-panel-close { width: 32px; height: 32px; border: 0; border-radius: 999px; color: #52605a; font-size: 22px; line-height: 1; background: rgba(24, 33, 29, 0.06); cursor: pointer; } .space-chat-panel-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; color: #8a1f1f; font-size: 13px; background: rgba(214, 69, 69, 0.08); } .space-chat-panel-body { overflow: auto; padding: 12px 14px 0; } .space-chat-panel-body .msg-content { max-width: calc(100% - 48px); } .space-chat-panel-body .msg-bubble-wrap-compact { width: 100%; } .space-chat-panel-body .msg-bubble-wrap-compact .msg-bubble { width: 100%; max-width: none; } .space-chat-panel-body .message-list { min-height: 100%; } .space-chat-panel-body .empty-state-compact { padding: 28px 12px; } .space-chat-panel-body .empty-state-compact h2 { font-size: 20px; } .space-chat-panel-body .empty-state-compact p { font-size: 13px; } .space-chat-panel-footer { display: grid; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid rgba(24, 33, 29, 0.08); background: rgba(255, 252, 244, 0.96); } .space-chat-panel-footer .chat-input-row .ghost-btn { padding: 8px 10px; font-size: 13px; } .tool-confirm-compact { margin: 0 16px 8px; border-radius: 16px; } @media (max-width: 720px) { .space-chat-fab { right: 16px; bottom: 16px; } .space-chat-panel { right: 0; bottom: 0; width: 100vw; height: min(75vh, calc(100vh - 48px)); border-right: 0; border-bottom: 0; border-radius: 24px 24px 0 0; } .space-chat-panel-actions .ghost-btn { display: none; } }