/* Adapted from the prototype's App.css per §18, narrowed to slice-1 surfaces. */ .boot { display: flex; align-items: center; justify-content: center; height: 100vh; color: #888; font-size: 14px; } .app { height: 100vh; display: flex; flex-direction: column; } .app-header { height: 48px; flex-shrink: 0; background: #1a1a1a; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; } .app-brand a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; } .header-right { display: flex; align-items: center; gap: 12px; font-size: 13px; } .user-name { color: #ddd; } .user-role-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.15); } .role-owner { background: #b45309; } .role-admin { background: #4338ca; } .btn-link { color: #fff; text-decoration: none; background: rgba(255,255,255,0.15); border-radius: 6px; padding: 4px 10px; font-size: 13px; } .btn-link:hover { background: rgba(255,255,255,0.25); } .app-body { flex: 1; display: flex; overflow: hidden; } /* --- Catalog (left pane, §7) --- */ .catalog { width: 320px; flex-shrink: 0; background: #fff; border-right: 1px solid #e5e5e5; display: flex; flex-direction: column; overflow: hidden; } .catalog-search { padding: 12px 14px; border-bottom: 1px solid #f0f0ee; } .catalog-search input { width: 100%; border: 1px solid #e5e5e5; border-radius: 6px; padding: 6px 10px; font-size: 13px; outline: none; } .catalog-search input:focus { border-color: #1a1a1a; } .catalog-controls { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #f0f0ee; font-size: 12px; color: #555; } .catalog-controls select { border: 1px solid #e5e5e5; border-radius: 4px; font-size: 12px; padding: 2px 4px; } .catalog-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 14px 10px; border-bottom: 1px solid #f0f0ee; } .chip { font-size: 11px; background: #f0f0ee; color: #444; border: 1px solid transparent; border-radius: 999px; padding: 2px 9px; cursor: pointer; } .chip.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; } .catalog-list { flex: 1; overflow-y: auto; padding: 4px 0; } .catalog-row { display: flex; flex-direction: column; padding: 8px 14px; border: none; background: none; text-align: left; cursor: pointer; border-left: 3px solid transparent; width: 100%; } .catalog-row:hover { background: #f7f7f5; } .catalog-row.active { background: #f0f0ee; border-left-color: #1a1a1a; } .catalog-row .row-top { display: flex; align-items: center; gap: 6px; } .row-id { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.04em; } .row-id.super { color: #b45309; } .row-title { font-size: 13px; margin-top: 2px; } .catalog-row.is-super .row-title { color: #555; } .row-tags { font-size: 11px; color: #999; margin-top: 2px; } .catalog-pending { border-top: 1px solid #f0f0ee; flex-shrink: 0; background: #fafaf8; } .pending-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #888; cursor: pointer; background: none; border: none; width: 100%; text-align: left; } .pending-count { background: #e5e5e5; color: #333; border-radius: 999px; padding: 1px 8px; font-size: 11px; } .pending-list { padding: 2px 0 8px; } .pending-row { display: block; padding: 6px 14px; font-size: 13px; color: #444; text-decoration: none; cursor: pointer; background: none; border: none; text-align: left; width: 100%; } .pending-row:hover { background: #fff; color: #1a1a1a; } .pending-row.active { background: #fff; color: #1a1a1a; } .pending-row .pending-by { font-size: 11px; color: #999; margin-top: 1px; } .catalog-footer { border-top: 1px solid #e5e5e5; padding: 10px 14px; flex-shrink: 0; background: #fff; } .btn-propose { width: 100%; background: #1a1a1a; color: #fff; border: none; border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; } .btn-propose:hover { background: #333; } .btn-propose:disabled { opacity: 0.5; cursor: default; } /* --- Main pane --- */ .main-pane { flex: 1; overflow-y: auto; padding: 32px 48px; } .welcome { max-width: 640px; } .welcome h1 { font-size: 22px; font-weight: 600; margin: 0 0 16px; } .welcome p { line-height: 1.7; color: #444; } /* --- RFC / Proposal view (read-only for slice 1) --- */ .entry-view { max-width: 720px; margin: 0 auto; } .entry-state-banner { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #b45309; padding: 6px 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; display: inline-block; margin-bottom: 16px; } .entry-state-banner.active { color: #166534; background: #f0fdf4; border-color: #bbf7d0; } .entry-state-banner.declined { color: #991b1b; background: #fef2f2; border-color: #fecaca; } .entry-state-banner.merged { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; } .entry-title { font-size: 26px; font-weight: 700; margin: 0 0 8px; } .entry-meta { font-size: 12px; color: #999; margin-bottom: 24px; } .entry-meta .entry-tag { display: inline-block; background: #f0f0ee; color: #555; padding: 1px 8px; border-radius: 999px; margin-right: 4px; } .entry-body { font-size: 15px; line-height: 1.75; color: #1a1a1a; } .entry-body h1, .entry-body h2, .entry-body h3 { font-weight: 600; } .entry-body h1 { font-size: 22px; margin-top: 24px; } .entry-body h2 { font-size: 17px; margin-top: 20px; } .entry-body h3 { font-size: 15px; margin-top: 16px; } .entry-body p { margin: 0 0 12px; } .entry-body ul, .entry-body ol { padding-left: 24px; } .entry-body code { background: #f0f0ee; padding: 1px 5px; border-radius: 3px; font-size: 13px; } .entry-actions { display: flex; gap: 8px; margin: 16px 0 24px; padding-bottom: 24px; border-bottom: 1px solid #e5e5e5; } .btn-primary { background: #166534; color: #fff; border: none; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; } .btn-primary:hover { background: #14532d; } .btn-primary:disabled { opacity: 0.5; cursor: default; } .btn-secondary { background: #fff; color: #1a1a1a; border: 1px solid #d4d4d4; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; } .btn-secondary:hover { background: #f7f7f5; } .btn-danger { background: #fff; color: #991b1b; border: 1px solid #fecaca; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; } .btn-danger:hover { background: #fef2f2; } /* --- Modals --- */ .modal-overlay { position: fixed; inset: 0; background: rgba(20, 20, 20, 0.4); display: flex; align-items: center; justify-content: center; z-index: 100; } .modal { background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.15); width: 560px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; } .modal-header { padding: 18px 20px; border-bottom: 1px solid #f0f0ee; display: flex; align-items: center; justify-content: space-between; } .modal-header h2 { margin: 0; font-size: 17px; font-weight: 600; } .modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #999; line-height: 1; padding: 0; } .modal-body { padding: 20px; overflow-y: auto; flex: 1; } .modal-body label { display: block; font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; } .modal-body input, .modal-body textarea { width: 100%; border: 1px solid #d4d4d4; border-radius: 6px; padding: 8px 10px; font-size: 14px; font-family: inherit; outline: none; margin-bottom: 14px; } .modal-body input:focus, .modal-body textarea:focus { border-color: #1a1a1a; } .modal-body textarea { resize: vertical; min-height: 100px; } .field-help { font-size: 12px; color: #999; margin-top: -10px; margin-bottom: 14px; } .field-error { font-size: 12px; color: #991b1b; margin-top: -10px; margin-bottom: 14px; } .modal-actions { border-top: 1px solid #f0f0ee; padding: 14px 20px; display: flex; justify-content: flex-end; gap: 10px; } /* --- Landing page (pre-login, §14.1) --- */ .landing { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; } .landing h1 { font-size: 28px; font-weight: 700; margin: 0 0 8px; } .landing .subtitle { font-size: 16px; color: #666; margin: 0 0 28px; } .landing .pitch { max-width: 540px; line-height: 1.7; color: #333; font-size: 15px; margin: 0 0 28px; } .landing .btn-signin { background: #1a1a1a; color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; text-decoration: none; } .landing .btn-signin:hover { background: #333; } .landing .secondary-link { margin-top: 14px; font-size: 13px; color: #666; text-decoration: none; } .landing .secondary-link:hover { color: #1a1a1a; text-decoration: underline; } /* ── §8 RFC view: three-column shape ─────────────────────────────────── */ .main-pane { /* Override the §9.x padded read-view; the §8 surface manages its own internal layout and needs to fill the pane edge-to-edge. */ padding: 0; overflow: hidden; display: flex; } .rfc-view { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; } .rfc-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #e5e5e5; background: #fafafa; font-size: 13px; color: #555; flex-shrink: 0; } .breadcrumb-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #888; } .breadcrumb-sep { color: #ccc; } .breadcrumb-meta { color: #999; font-size: 12px; } .breadcrumb-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; } .btn-mode-toggle { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid #d4d4d4; background: #fff; color: #444; cursor: pointer; } .btn-mode-toggle.discuss { background: #fff; color: #444; } .btn-mode-toggle.contribute { background: #1a1a1a; color: #fff; border-color: #1a1a1a; } .btn-start-contribution-header { background: #1a1a1a; color: #fff; border: none; border-radius: 6px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; } .branch-dropdown { position: relative; } .branch-dropdown-trigger { background: none; border: 1px solid transparent; border-radius: 5px; padding: 3px 8px; font-weight: 600; color: #1a1a1a; font-size: 13px; cursor: pointer; } .branch-dropdown-trigger:hover { border-color: #e5e5e5; } .branch-dropdown-menu { position: absolute; top: 100%; left: 0; margin-top: 4px; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); z-index: 50; min-width: 240px; padding: 4px; } .branch-dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; background: none; border: none; cursor: pointer; text-align: left; font-size: 13px; border-radius: 5px; } .branch-dropdown-item:hover { background: #f5f5f5; } .branch-dropdown-item.active { background: #f0f0ee; font-weight: 600; } .branch-name { flex: 1; } .branch-creator { font-size: 11px; color: #999; } .branch-private-icon { font-size: 10px; } .rfc-body { flex: 1; display: flex; overflow: hidden; } /* ── Editor area ─────────────────────────────────────────────────────── */ .editor-area { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; background: #fff; } .discuss-mode-banner { padding: 8px 16px; background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e; font-size: 12px; } .discuss-mode-banner.muted { background: #f0f0ee; color: #666; border-color: #e5e5e5; } .editor-toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid #f0f0ee; background: #fafafa; font-size: 12px; color: #777; } .btn-review-toggle { background: #fff; color: #1a1a1a; border: 1px solid #d4d4d4; border-radius: 5px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; } .btn-review-toggle.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; } .editor-toolbar-hint { color: #999; font-size: 11px; } .editor-wrapper { flex: 1; overflow-y: auto; padding: 32px 48px; } .editor-content { max-width: 720px; margin: 0 auto; outline: none; } .editor-content .tiptap { outline: none; font-size: 15px; line-height: 1.75; color: #1a1a1a; } .editor-content .tiptap h1 { font-size: 22px; font-weight: 700; margin: 24px 0 12px; } .editor-content .tiptap h2 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; } .editor-content .tiptap h3 { font-size: 15px; font-weight: 600; margin: 16px 0 6px; } .editor-content .tiptap p { margin: 0 0 12px; } .editor-content .tiptap ul, .editor-content .tiptap ol { padding-left: 24px; } .editor-content .tiptap code { background: #f0f0ee; padding: 1px 5px; border-radius: 3px; font-size: 13px; } .editor-content .tiptap .paragraph-changed { border-left: 3px solid #f59e0b; padding-left: 10px; margin-left: -13px; background: linear-gradient(to right, #fffbeb 0%, transparent 60%); border-radius: 0 4px 4px 0; } .editor-content .tiptap .selection-highlight { background: rgba(99, 102, 241, 0.15); border-radius: 2px; outline: 1px solid rgba(99, 102, 241, 0.3); outline-offset: 1px; } .editor-content .tiptap .tracked-delete { background: #fee2e2; color: #991b1b; text-decoration: line-through; border-radius: 2px; padding: 1px 2px; cursor: pointer; } .editor-content .tiptap .tracked-insert { background: #dcfce7; color: #166534; border-radius: 2px; padding: 1px 2px; cursor: pointer; } .readonly-bar { border-top: 1px solid #e5e5e5; padding: 10px 16px; text-align: center; font-size: 13px; color: #888; background: #fafafa; } .readonly-bar a { color: #1a1a1a; font-weight: 600; } /* ── Prompt bar ──────────────────────────────────────────────────────── */ .prompt-bar { border-top: 1px solid #e5e5e5; background: #fff; padding: 12px 48px; flex-shrink: 0; } .selection-badge { font-size: 12px; color: #5b5bd6; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; } .selection-icon { font-size: 10px; } .prompt-row { display: flex; gap: 10px; align-items: flex-end; max-width: 720px; margin: 0 auto; } .prompt-input { flex: 1; border: 1px solid #e5e5e5; border-radius: 8px; padding: 9px 13px; font-size: 14px; font-family: inherit; resize: none; line-height: 1.5; outline: none; min-height: 40px; max-height: 120px; } .prompt-input:focus { border-color: #1a1a1a; } .prompt-submit { background: #1a1a1a; color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; height: 40px; } .prompt-submit:disabled { background: #ccc; cursor: default; } /* ── Model picker ──────────────────────────────────────────────────── */ .model-picker { display: flex; gap: 4px; padding: 0 4px; flex-shrink: 0; } .model-pill { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid #e5e5e5; background: none; color: #666; cursor: pointer; } .model-pill:hover { border-color: #aaa; color: #333; } .model-pill.active { font-weight: 700; } .model-dot { width: 7px; height: 7px; border-radius: 50%; } /* ── Selection tooltip ───────────────────────────────────────────────── */ .selection-tooltip { position: fixed; z-index: 100; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); padding: 8px 10px; width: max-content; min-width: 320px; max-width: 480px; display: flex; flex-direction: column; gap: 6px; } .selection-tooltip-quote { font-size: 11px; color: #888; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .selection-tooltip-tabs { display: flex; gap: 4px; } .selection-tooltip-tab { background: none; border: 1px solid transparent; font-size: 12px; padding: 3px 10px; border-radius: 6px; cursor: pointer; color: #666; } .selection-tooltip-tab.active { background: #1a1a1a; color: #fff; } .selection-tooltip-input-row { display: flex; gap: 6px; align-items: center; } .selection-tooltip-input { flex: 1; border: 1px solid #e5e5e5; border-radius: 6px; padding: 6px 10px; font-size: 13px; font-family: inherit; outline: none; background: #f9f9f9; } .selection-tooltip-input:focus { border-color: #1a1a1a; background: #fff; } .selection-tooltip-btn { background: #1a1a1a; color: #fff; border: none; border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; } .selection-tooltip-btn:disabled { background: #ccc; cursor: default; } /* ── Right panel (chat + change panel) ───────────────────────────────── */ .right-panel { width: 360px; flex-shrink: 0; border-left: 1px solid #e5e5e5; display: flex; flex-direction: column; overflow: hidden; background: #fff; } .chat-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; } .chat-header { padding: 10px 14px; border-bottom: 1px solid #f0f0ee; background: #fafafa; display: flex; flex-direction: column; gap: 4px; } .chat-header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .chat-header-title { font-size: 12px; color: #555; } .chat-fork-link { background: none; border: none; padding: 0; font-size: 11px; color: #5b5bd6; cursor: pointer; } .chat-thread-disclosure { font-size: 11px; color: #888; display: flex; gap: 4px; align-items: center; } .chat-thread-flag-count { color: #b45309; } .chat-filter-clear { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 11px; color: #5b5bd6; } .chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; } .chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; } .chat-empty p { font-size: 13px; color: #999; line-height: 1.6; max-width: 240px; } .chat-message { display: flex; flex-direction: column; gap: 3px; } .chat-message.user { align-items: flex-end; } .chat-message.assistant { align-items: flex-start; } .chat-message.system { align-items: stretch; } .chat-message.flag { align-items: stretch; } .chat-message.in-thread { padding-left: 12px; border-left: 2px solid #c4b5fd; } .chat-bubble { max-width: 92%; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; } .chat-message.user .chat-bubble { background: #1a1a1a; color: #fff; border-bottom-right-radius: 4px; } .chat-message.assistant .chat-bubble { background: #f3f4f6; color: #1a1a1a; border-bottom-left-radius: 4px; } .chat-message.streaming .chat-bubble { opacity: 0.85; } .chat-thinking { color: #999; font-style: italic; } .chat-cursor { display: inline-block; width: 2px; height: 12px; background: #7c3aed; margin-left: 2px; vertical-align: middle; animation: blink 0.75s step-end infinite; } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } .chat-quote { font-size: 11px; color: #888; font-style: italic; border-left: 2px solid #d1d5db; padding-left: 7px; margin-bottom: 3px; max-width: 92%; align-self: flex-end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-anchor-preview { font-size: 10px; color: #888; font-style: italic; } .chat-model-label { font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; padding-left: 2px; } .chat-model-dot { width: 6px; height: 6px; border-radius: 50%; } .chat-change-hint { align-self: flex-start; background: none; border: none; padding: 0; font-size: 11px; color: #7c3aed; font-weight: 600; cursor: pointer; } .chat-change-hint.discuss { color: #b45309; } .chat-change-hint-cta { background: none; border: none; padding: 0; color: #5b5bd6; font-weight: 600; cursor: pointer; text-decoration: underline; } .chat-system-bubble { font-size: 11px; color: #888; font-style: italic; border-top: 1px dashed #e5e5e5; padding-top: 8px; } .chat-flag-row { display: flex; gap: 8px; padding: 8px 10px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 8px; } .chat-flag-icon { color: #c2410c; font-size: 14px; } .chat-flag-content { flex: 1; } .chat-flag-author { font-size: 11px; font-weight: 700; color: #9a3412; } .chat-flag-text { font-size: 13px; color: #1a1a1a; margin-top: 2px; } .chat-flag-resolve { margin-top: 6px; background: none; border: 1px solid #fdba74; border-radius: 5px; padding: 2px 8px; font-size: 11px; color: #c2410c; cursor: pointer; } /* ── Change panel ──────────────────────────────────────────────── */ .change-panel { border-top: 1px solid #e5e5e5; display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; max-height: 50%; } .change-panel-header { padding: 12px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #f0f0ee; display: flex; align-items: center; gap: 8px; } .badge { background: #b45309; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 10px; } .change-list { flex: 1; overflow-y: auto; padding: 8px; } .change-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #aaa; padding: 8px 6px 4px; } .change-group-label.muted { color: #ccc; } .change-item { border-radius: 8px; padding: 10px; margin-bottom: 8px; border: 1px solid #e5e5e5; font-size: 13px; } .change-item.type-claude { border-left: 3px solid #5b5bd6; } .change-item.type-manual { border-left: 3px solid #888; } .change-item.state-accepted { opacity: 0.5; } .change-item.state-declined { opacity: 0.4; } .change-item.stale { border-color: #fbbf24; background: #fffbeb; } .change-item.focused { animation: change-focus-flash 1.8s ease forwards; } @keyframes change-focus-flash { 0% { box-shadow: 0 0 0 3px #3b82f6; } 70% { box-shadow: 0 0 0 3px #3b82f6; } 100% { box-shadow: none; } } .change-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .change-author { font-weight: 600; font-size: 12px; } .change-state-badge { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .change-state-badge.pending { background: #fef3c7; color: #92400e; } .change-state-badge.accepted { background: #dcfce7; color: #166534; } .change-state-badge.declined { background: #f1f5f9; color: #94a3b8; } .change-state-badge.stale { background: #fef3c7; color: #92400e; } .change-label { color: #444; margin-bottom: 6px; line-height: 1.4; } .change-stale-banner { font-size: 11px; color: #92400e; background: #fef3c7; border-radius: 4px; padding: 4px 8px; margin-bottom: 6px; } .change-manual-status { font-size: 11px; color: #888; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; } .btn-save-now { background: none; border: 1px solid #d4d4d4; border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 600; cursor: pointer; } .change-source-link { background: none; border: none; padding: 0; font-size: 11px; color: #5b5bd6; cursor: pointer; display: block; margin-top: 4px; } .change-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; } .btn-accept { background: #166534; color: #fff; border: none; border-radius: 5px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; } .btn-edit { background: none; border: 1px solid #c4b5fd; color: #7c3aed; border-radius: 5px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; } .btn-decline { background: none; border: 1px solid #e5e5e5; border-radius: 5px; padding: 5px 10px; font-size: 12px; cursor: pointer; } .btn-reask { background: none; border: 1px solid #fbbf24; color: #92400e; border-radius: 5px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; } .diff-edit-textarea { width: 100%; font-size: 12px; font-family: inherit; line-height: 1.5; border: 1px solid #c4b5fd; border-radius: 4px; padding: 6px; resize: vertical; } .inline-diff { font-size: 12px; line-height: 1.7; background: #f9fafb; border-radius: 4px; padding: 8px 10px; white-space: pre-wrap; word-break: break-word; border: 1px solid #e5e5e5; } .diff-word-add { background: #dcfce7; color: #166534; border-radius: 2px; padding: 1px 1px; } .diff-word-remove { background: #fee2e2; color: #991b1b; text-decoration: line-through; border-radius: 2px; padding: 1px 1px; } .text-fade { color: #aaa; } .expand-toggle { display: block; margin-top: 5px; background: none; border: none; padding: 0; font-size: 11px; font-weight: 600; color: #7c3aed; cursor: pointer; text-decoration: underline; } .change-stub { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #888; padding: 4px 6px; border-bottom: 1px solid #f5f5f5; } .change-stub .stub-author { font-weight: 600; color: #555; } .change-stub .stub-badge { font-size: 9px; padding: 1px 5px; border-radius: 8px; } .change-stub .stub-badge.accepted { background: #dcfce7; color: #166534; } .change-stub .stub-badge.declined { background: #f1f5f9; color: #94a3b8; } .change-stub .stub-reason { flex: 1; color: #777; } .change-stub .stub-source-link { background: none; border: none; padding: 0; font-size: 11px; color: #5b5bd6; cursor: pointer; } .contribution-cta { border-top: 1px solid #e5e5e5; background: #fafafa; padding: 16px; text-align: center; } .contribution-cta-count { font-size: 13px; font-weight: 600; color: #1a1a1a; } .contribution-cta-desc { font-size: 12px; color: #666; margin: 6px 0 12px; } .btn-start-contribution { background: #1a1a1a; color: #fff; border: none; border-radius: 6px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; } /* ── DiffView ──────────────────────────────────────────────────── */ .diff-view-wrapper { flex: 1; overflow-y: auto; padding: 32px 48px; } .diff-view-empty { font-size: 13px; color: #999; text-align: center; padding: 24px; } .diff-tooltip { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); max-width: 320px; font-size: 12px; z-index: 200; } .diff-tooltip-header { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; } .diff-tooltip-badge { font-size: 10px; padding: 2px 7px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; } .diff-tooltip-badge--manual { background: #f1f5f9; color: #475569; } .diff-tooltip-badge--edited { background: #faf5ff; color: #7c3aed; } .diff-tooltip-prompt { border-top: 1px solid #f0f0ee; padding-top: 6px; font-size: 11px; color: #444; } .diff-tooltip-quote { font-style: italic; color: #888; margin-bottom: 4px; } .diff-tooltip-reason { border-top: 1px solid #f0f0ee; padding-top: 6px; margin-top: 6px; color: #555; } .diff-tooltip-reason-label { display: inline-block; font-size: 9px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 6px; } .diff-tooltip-no-context { font-size: 11px; color: #aaa; font-style: italic; }