.git-panel.active { display: flex; flex-direction: column; min-height: 0; overflow: auto; background: #171b22; }
.git-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #303745; }
.git-toolbar span { color: #aab8cc; }
.git-toolbar label { margin-left: auto; }
.git-toolbar a, .github-dialog a { color: #59cdb4; }
.git-panel button, .github-dialog button { padding: 5px 10px; border: 1px solid #343c4b; border-radius: 4px; color: #e8edf4; background: #222935; cursor: pointer; }
.git-panel button:hover, .github-dialog button:hover { background: #303a49; }
.git-panel button:disabled { opacity: .45; cursor: default; }
.git-panel input, .git-panel select, .git-panel textarea, .github-dialog input, .github-dialog select { background: #11151b; color: #eef2f8; border: 1px solid #343c4b; padding: 5px 8px; border-radius: 4px; font: inherit; }
.git-body { display: grid; grid-template-columns: minmax(240px, 32%) 1fr; min-height: 160px; flex: 1; overflow: hidden; }
.git-changes { display: flex; flex-direction: column; padding: 8px 12px; overflow: auto; border-right: 1px solid #303745; }
#gitChangeList { flex: 1; min-height: 38px; overflow: auto; }
.git-changes textarea, .git-changes label, .git-changes .git-actions { flex-shrink: 0; }
.git-changes p { color: #aab8cc; margin: 0 0 8px; }
.git-changes label { display: block; margin: 8px 0 5px; }
.git-changes textarea { width: 100%; box-sizing: border-box; resize: vertical; }
#gitChangeList button { display: block; width: 100%; text-align: left; border: 0; border-radius: 0; margin: 2px 0; overflow-wrap: anywhere; }
#gitChangeList button.active { background: #234539; }
.git-diff { margin: 0; padding: 10px 14px; overflow: auto; color: #d1deeb; background: #11151b; white-space: pre; font: 12px/1.6 Consolas, monospace; }
.git-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.git-notice { padding: 6px 12px; margin: 0; color: #aab8cc; overflow-wrap: anywhere; border-top: 1px solid #303745; }
.git-notice.error, #githubImportError { color: #ffb5a7; }
.github-dialog { width: min(560px, calc(100vw - 40px)); border: 1px solid #3b4656; border-radius: 7px; padding: 20px; background: #171b22; color: #eef2f8; }
.github-dialog::backdrop { background: #0009; }
.github-dialog h2 { margin: 0 0 12px; font-size: 18px; }
.github-dialog p { color: #aab8cc; line-height: 1.5; }
.github-dialog label { display: grid; gap: 5px; margin: 12px 0; }
.github-dialog select { width: 100%; }
.git-panel, .github-dialog { scrollbar-color: #455064 #171b22; scrollbar-width: thin; }
.git-panel * { scrollbar-color: #455064 #171b22; scrollbar-width: thin; }
.git-panel [hidden], .github-dialog [hidden] { display: none !important; }
@media (max-width: 750px) { .git-body { grid-template-columns: 1fr; overflow: auto; } .git-diff { min-height: 100px; } .git-toolbar label { margin-left: 0; } }
