/* v5.88 – Git dialog in the editor (assets/git-panel.js) */
.smart-card.git-card { width: min(760px, 100%); max-height: 88vh; overflow: auto; }
.git-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.git-sec h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.git-sec h3 span { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.git-sec textarea, .git-label input { width: 100%; font: inherit; }
.git-sec textarea { resize: vertical; min-height: 56px; }
.git-label { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.git-label small { color: var(--text-2); font-weight: 400; }
.git-label input[readonly] { opacity: 0.7; }
.git-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.smart-card .git-row button { width: auto; flex: none; margin: 0; }
.git-note { margin: 0; font-size: 12px; color: var(--text-2); }
.git-err { color: var(--bad); }
.git-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-family: var(--font-mono); font-size: 12px; max-height: 180px; overflow: auto; }
.git-files li { display: flex; gap: 8px; align-items: center; }
.git-op { width: 18px; text-align: center; font-weight: 700; border-radius: 4px; font-size: 11px; }
.git-a { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.git-m { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.git-d { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.git-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 220px; overflow: auto; }
.git-log button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 6px 8px; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--text); min-height: 0; }
.git-log button:hover, .git-log button.on { background: var(--surface-2); border-color: var(--line); }
.git-log code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.git-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-log small { color: var(--text-2); font-size: 11.5px; white-space: nowrap; }
.git-show { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.git-msgv, .git-out, .git-diff { margin: 0; font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.git-out, .git-diff { padding: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); max-height: 320px; overflow: auto; }
.git-dp { color: #34d399; } .git-dm { color: #f87171; } .git-dc { color: #60a5fa; } .git-dh { color: var(--text-2); }
.smart-card .git-row span button, .smart-card .pub-open { width: auto; display: inline-flex; align-items: center; margin: 0 4px 0 0; min-height: 0; }
.pub-open { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 13px; }
