/* ============================================================
   Git War - Styles
   Split layout: top 70% canvas, bottom 30% terminal
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0d1117;
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Canvas Area ---- */
#canvas-container {
    position: relative;
    flex: 7;
    min-height: 0;
    background: #161b22;
    border-bottom: 2px solid #30363d;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* ---- Tooltip ---- */
#tooltip {
    position: absolute;
    background: #1c2028;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    max-width: 260px;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hidden {
    display: none !important;
}

/* ---- Terminal Area ---- */
#terminal-container {
    flex: 3;
    min-height: 0;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
    flex-shrink: 0;
}

.terminal-title {
    color: #8b949e;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#terminal-branch-badge {
    background: #238636;
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #c9d1d9;
    scrollbar-width: thin;
    scrollbar-color: #30363d #0d1117;
}

#terminal-output::-webkit-scrollbar { width: 6px; }
#terminal-output::-webkit-scrollbar-track { background: #0d1117; }
#terminal-output::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

/* Terminal output line types */
.term-line { white-space: pre-wrap; word-break: break-all; }
.term-cmd { color: #58a6ff; }
.term-success { color: #3fb950; }
.term-error { color: #f85149; }
.term-info { color: #8b949e; }
.term-warning { color: #d29922; }
.term-branch { color: #bc8cff; }
.term-hash { color: #d2a8ff; }
.term-highlight { color: #ffa657; }

/* Input line */
#terminal-input-line {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #161b22;
    border-top: 1px solid #21262d;
    flex-shrink: 0;
}

#terminal-prompt {
    color: #3fb950;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f0f6fc;
    font-family: inherit;
    font-size: 13px;
    caret-color: #58a6ff;
}

#terminal-input::placeholder { color: #484f58; }

/* ---- Help Panel (floating top-right, sits left of audio) ---- */
#help-panel {
    position: fixed;
    top: 12px;
    right: 56px;
    z-index: 60;
}

#help-toggle {
    background: #161b22;
    border: 1px solid #30363d;
    color: #c9d1d9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s;
}
#help-toggle:hover {
    background: #1f6feb;
    border-color: #58a6ff;
    color: #fff;
    transform: scale(1.05);
}
#help-toggle.active {
    background: #1f6feb;
    border-color: #58a6ff;
    color: #fff;
}

#help-popup {
    position: absolute;
    top: 44px;
    right: -44px;
    background: linear-gradient(180deg, #1c2128 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 10px;
    width: 440px;
    max-height: 70vh;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    color: #c9d1d9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
    flex-shrink: 0;
}

#help-header h2 {
    color: #58a6ff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

#help-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 20px;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
#help-close:hover { color: #f85149; background: #30363d; }

#help-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px 18px 18px;
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}
#help-body::-webkit-scrollbar { width: 6px; }
#help-body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

.help-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #21262d;
}
.help-section:last-child { border-bottom: none; margin-bottom: 0; }

.help-section h3 {
    color: #3fb950;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.help-section p {
    font-size: 12px;
    line-height: 1.5;
    color: #c9d1d9;
    margin-bottom: 6px;
}

.help-section ul, .help-section ol {
    padding-left: 18px;
    margin-bottom: 6px;
}

.help-section li {
    font-size: 12px;
    line-height: 1.55;
    color: #c9d1d9;
    margin-bottom: 3px;
}

.help-section code {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    color: #ffa657;
}

.help-section b { color: #f0f6fc; }

.help-tip {
    background: rgba(31, 111, 235, 0.08);
    border-left: 3px solid #58a6ff;
    padding: 6px 10px;
    font-size: 11px !important;
    font-style: italic;
    color: #8b949e !important;
    margin-top: 6px;
    border-radius: 0 4px 4px 0;
}

.help-units b { color: #79c0ff; }

/* ---- Audio Settings (floating top-right corner) ---- */
#audio-panel {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 60;
}

#audio-toggle {
    background: #161b22;
    border: 1px solid #30363d;
    color: #c9d1d9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
#audio-toggle:hover {
    background: #1f6feb;
    border-color: #58a6ff;
    transform: scale(1.05);
}
#audio-toggle.muted { color: #f85149; border-color: #f85149; }

#audio-popup {
    position: absolute;
    top: 44px;
    right: 0;
    background: linear-gradient(180deg, #1c2128 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 14px 16px;
    width: 220px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    color: #c9d1d9;
}

.audio-row {
    display: grid;
    grid-template-columns: 56px 1fr 28px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.audio-row label {
    font-size: 11px;
    font-weight: bold;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audio-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #30363d;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

.audio-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #58a6ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #161b22;
    transition: background 0.15s;
}
.audio-row input[type="range"]::-webkit-slider-thumb:hover { background: #79c0ff; }

.audio-row input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #58a6ff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #161b22;
}

.audio-val {
    font-size: 11px;
    color: #6e7681;
    text-align: right;
    font-family: 'Consolas', monospace;
}

#audio-mute {
    width: 100%;
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    margin-top: 4px;
    transition: background 0.15s, border-color 0.15s;
}
#audio-mute:hover { background: #30363d; border-color: #58a6ff; }
#audio-mute.muted { background: #f85149; border-color: #f85149; color: #fff; }

/* ---- Floating Branch Graph Panel ---- */
#graph-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 480px;
    height: 280px;
    min-width: 280px;
    min-height: 140px;
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(88, 166, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 50;
    transition: box-shadow 0.2s;
}

#graph-panel:hover {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(88, 166, 255, 0.15);
}

#graph-panel.dragging {
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.7),
        0 0 0 2px rgba(88, 166, 255, 0.4);
    transition: none;
}

#graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 6px 12px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
}

#graph-header:active {
    cursor: grabbing;
}

.graph-title {
    color: #c9d1d9;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.graph-grip {
    color: #484f58;
    font-size: 13px;
    line-height: 1;
}

.graph-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.graph-controls button {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1;
    font-family: inherit;
    transition: color 0.15s, background 0.15s;
}

.graph-controls button:hover {
    color: #58a6ff;
    background: #30363d;
}

#graph-toggle {
    transition: transform 0.2s, color 0.15s, background 0.15s;
}

#graph-panel.collapsed {
    height: 32px !important;
    min-height: 32px;
    resize: none;
}

#graph-panel.collapsed #graph-toggle {
    transform: rotate(-90deg);
}

#graph-panel.collapsed #graph-body,
#graph-panel.collapsed #graph-resize {
    display: none;
}

#graph-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(ellipse at center, rgba(88, 166, 255, 0.04) 0%, transparent 70%),
        #0a0d12;
    cursor: grab;
}

#graph-body.panning {
    cursor: grabbing;
}

#graph-canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

#graph-resize {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background:
        linear-gradient(135deg, transparent 50%, #484f58 50%, #484f58 60%, transparent 60%, transparent 70%, #484f58 70%, #484f58 80%, transparent 80%);
    border-radius: 0 0 8px 0;
    z-index: 2;
}

#graph-resize:hover {
    background:
        linear-gradient(135deg, transparent 50%, #58a6ff 50%, #58a6ff 60%, transparent 60%, transparent 70%, #58a6ff 70%, #58a6ff 80%, transparent 80%);
}

#graph-canvas {
    display: block;
    height: 100px;
}

/* ---- Floating Git Panel (VS Code style) ---- */
#git-panel {
    position: fixed;
    top: 60px;
    left: 20px;
    width: 320px;
    height: 380px;
    min-width: 240px;
    min-height: 200px;
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(63, 185, 80, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 50;
    transition: box-shadow 0.2s;
}

#git-panel:hover {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(63, 185, 80, 0.15);
}

#git-panel.dragging {
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.7),
        0 0 0 2px rgba(63, 185, 80, 0.4);
    transition: none;
}

#git-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 6px 12px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
}

#git-header:active { cursor: grabbing; }

.git-title {
    color: #c9d1d9;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.git-grip {
    color: #484f58;
    font-size: 13px;
    line-height: 1;
}

.git-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

.git-controls button {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1;
    font-family: inherit;
    transition: color 0.15s, background 0.15s;
}

.git-controls button:hover {
    color: #3fb950;
    background: #30363d;
}

#git-toggle {
    transition: transform 0.2s, color 0.15s, background 0.15s;
}

#git-panel.collapsed {
    height: 32px !important;
    min-height: 32px;
    resize: none;
}

#git-panel.collapsed #git-toggle { transform: rotate(-90deg); }
#git-panel.collapsed #git-body,
#git-panel.collapsed #git-resize { display: none; }

/* Hamburger dropdown */
#git-menu {
    position: absolute;
    top: 28px;
    right: 8px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    min-width: 200px;
    padding: 4px 0;
    z-index: 100;
}

.git-menu-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #c9d1d9;
    text-align: left;
    padding: 6px 14px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.git-menu-item:hover {
    background: #1f6feb;
    color: #fff;
}

.git-menu-divider {
    height: 1px;
    background: #21262d;
    margin: 4px 0;
}

#git-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}

#git-body::-webkit-scrollbar { width: 6px; }
#git-body::-webkit-scrollbar-track { background: transparent; }
#git-body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

#git-input-row {
    display: flex;
}

#git-msg-input {
    flex: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 7px 10px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
}

#git-msg-input:focus {
    border-color: #58a6ff;
    background: #0a0d12;
}

#git-msg-input::placeholder {
    color: #484f58;
}

#git-commit-btn {
    background: #238636;
    border: 1px solid #2ea043;
    color: #f0f6fc;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s, border-color 0.15s;
}

#git-commit-btn:hover {
    background: #2ea043;
}

#git-commit-btn:disabled {
    background: #21262d;
    border-color: #30363d;
    color: #484f58;
    cursor: not-allowed;
}

#git-commit-btn .git-btn-icon {
    font-size: 13px;
    line-height: 1;
}

#git-current-branch {
    color: #6e7681;
    font-size: 11px;
    text-align: center;
    margin-top: -2px;
}

#git-current-branch-name {
    color: #3fb950;
    font-weight: bold;
}

#git-changes-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    min-height: 0;
}

.git-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    color: #8b949e;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #21262d;
}

.git-badge {
    background: #30363d;
    color: #c9d1d9;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.git-badge.has-changes {
    background: #1f6feb;
    color: #fff;
}

#git-changes-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}

#git-changes-list::-webkit-scrollbar { width: 4px; }
#git-changes-list::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; }

.git-change-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #c9d1d9;
    cursor: default;
    transition: background 0.1s;
}

.git-change-item:hover { background: #21262d; }

.git-change-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
}

.git-change-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.git-change-marker {
    color: #8b949e;
    font-size: 10px;
    font-family: 'Consolas', monospace;
    font-weight: bold;
}

.git-empty-state {
    color: #484f58;
    font-size: 11px;
    text-align: center;
    padding: 16px 8px;
    font-style: italic;
}

#git-resize {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background:
        linear-gradient(135deg, transparent 50%, #484f58 50%, #484f58 60%, transparent 60%, transparent 70%, #484f58 70%, #484f58 80%, transparent 80%);
    border-radius: 0 0 8px 0;
    z-index: 2;
}

#git-resize:hover {
    background:
        linear-gradient(135deg, transparent 50%, #3fb950 50%, #3fb950 60%, transparent 60%, transparent 70%, #3fb950 70%, #3fb950 80%, transparent 80%);
}

/* ---- Prompt Modal (replaces window.prompt) ---- */
#prompt-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    backdrop-filter: blur(2px);
}

#prompt-content {
    background: linear-gradient(180deg, #1c2128 0%, #161b22 100%);
    border: 1px solid #58a6ff;
    border-radius: 10px;
    padding: 22px 24px;
    min-width: 360px;
    max-width: 480px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(88, 166, 255, 0.15);
    color: #c9d1d9;
}

#prompt-title {
    color: #58a6ff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

#prompt-message {
    color: #c9d1d9;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.4;
}

#prompt-input {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #f0f6fc;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

#prompt-input:focus {
    border-color: #58a6ff;
    background: #0a0d12;
}

#prompt-hint {
    color: #6e7681;
    font-size: 11px;
    margin-top: 8px;
    font-style: italic;
}

#prompt-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

#prompt-buttons button {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

#prompt-buttons button:hover {
    background: #30363d;
    border-color: #58a6ff;
}

#prompt-ok {
    background: #238636 !important;
    border-color: #2ea043 !important;
    color: #f0f6fc !important;
    font-weight: bold;
}

#prompt-ok:hover {
    background: #2ea043 !important;
}

/* ---- Merge Conflict Modal ---- */
#conflict-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#conflict-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    color: #c9d1d9;
}

#conflict-content h2 { color: #f85149; margin-bottom: 8px; font-size: 18px; }
#conflict-summary { color: #8b949e; margin-bottom: 16px; font-size: 13px; line-height: 1.5; }

#conflict-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.conflict-item {
    background: #0d1117;
    border: 1px solid #f85149;
    border-radius: 8px;
    padding: 14px;
}

.conflict-item-header {
    color: #f85149;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.conflict-item-message {
    color: #c9d1d9;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.conflict-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.conflict-option {
    flex: 1;
    min-width: 130px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px 12px;
    color: #c9d1d9;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-align: center;
}

.conflict-option:hover {
    background: #30363d;
    border-color: #58a6ff;
}

.conflict-option.selected {
    background: #1f6feb;
    border-color: #58a6ff;
    color: #fff;
}

.conflict-option .option-label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.conflict-option .option-source {
    font-size: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#conflict-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

#conflict-actions button {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

#conflict-actions button:hover { background: #30363d; border-color: #58a6ff; }

#conflict-abort {
    color: #f85149 !important;
    border-color: #f85149 !important;
}
#conflict-abort:hover { background: #2d0b0b !important; }

#conflict-confirm {
    background: #238636 !important;
    border-color: #2ea043 !important;
    color: #f0f6fc !important;
    font-weight: bold;
}
#conflict-confirm:hover { background: #2ea043 !important; }
#conflict-confirm:disabled {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #484f58 !important;
    cursor: not-allowed;
}
