.github-panel{position:fixed;z-index:15;right:24px;top:90px;width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 115px);overflow:auto;background:#fff;border:1px solid #dce5f3;border-radius:15px;box-shadow:0 15px 70px #20395326}
.github-panel>header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}.github-panel>header>div{display:flex;align-items:center;gap:10px}.github-panel h2{font-size:15px;margin:0}.github-panel-body{padding:20px}.github-panel-body>p:first-child{font-size:12px;line-height:1.8;color:#7e8ca0;margin-top:0}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:600;margin:17px 0}.field input{width:100%;border:1px solid #dce5f0;border-radius:7px;padding:11px;font-size:12px;color:#40536e;min-width:0}.field small{font-weight:400;font-size:10px;line-height:1.7;color:#8c99ac}.token-link{font-size:11px;color:var(--blue);text-decoration:underline;text-underline-offset:3px}.connect-button{display:block;width:100%;padding:12px;margin-top:20px}.github-panel button:disabled{opacity:.45;cursor:not-allowed}.github-message{font-size:12px;line-height:1.8;color:#5778a9;white-space:pre-line;overflow-wrap:anywhere}.github-message:empty{display:none}.github-caveat{font-size:10px;line-height:1.8;color:#97a2b3;border-top:1px solid var(--line);padding-top:15px;margin-bottom:0}.repository-summary{padding:14px;background:#f4f7fc;border-radius:8px;overflow-wrap:anywhere}.repository-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.repository-summary strong{display:block;font-size:13px}.repository-summary span{font-size:10px;display:block;margin-top:5px;color:#8190a7}.github-sync-badge{margin-top:12px;padding:8px 11px;border-radius:7px;font-size:11px;font-weight:600;display:flex;align-items:center;gap:8px;line-height:1.4}.github-sync-badge::before{content:"";width:8px;height:8px;border-radius:999px;flex:0 0 8px}.github-sync-badge.synced{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.github-sync-badge.synced::before{background:#16a34a}.github-sync-badge.syncing{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.github-sync-badge.syncing::before{background:#2563eb}.github-sync-badge.pending,.github-sync-badge.error{background:#fffbeb;color:#92400e;border:1px solid #fde68a}.github-sync-badge.pending::before,.github-sync-badge.error::before{background:#d97706}.github-sync-primary{margin:16px 0 10px}.github-sync-primary .connect-button{margin-top:0}.github-sync-hint{font-size:11px;line-height:1.6;color:#7b899e;margin:10px 0 0}.github-autosync-box{margin:14px 0 4px;padding:12px 14px;background:#f7f9fd;border:1px solid #e4ecf6;border-radius:8px;display:flex;flex-direction:column;gap:10px}.github-autosync-toggle{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:500;color:#40536e;margin:0;cursor:pointer;user-select:none}.github-autosync-toggle input{accent-color:var(--blue)}.github-autosync-delay{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#6c7d96}.github-autosync-delay select{border:1px solid #dce5f0;border-radius:6px;padding:5px 8px;font-size:11px;color:#40536e;background:#fff}.conflict-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.48);display:flex;align-items:center;justify-content:center;padding:20px;z-index:1200}.conflict-modal{width:min(820px,100%);max-height:88vh;background:#fff;border-radius:14px;box-shadow:0 24px 60px rgba(15,23,42,.24);display:flex;flex-direction:column;overflow:hidden}.conflict-header{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.conflict-header h3{margin:0;font-size:16px;color:#1e293b}.conflict-counter{font-size:11px;font-weight:600;color:#5577ac;background:#eef3fb;padding:4px 10px;border-radius:999px}.conflict-body{padding:18px 22px;overflow:auto;display:flex;flex-direction:column;gap:14px}.conflict-file{font-size:13px;font-weight:600;color:#1e293b;margin:0}.conflict-subtitle{font-size:12px;color:#64748b;margin:0;line-height:1.6}.conflict-compare{display:grid;grid-template-columns:1fr 1fr;gap:14px}.conflict-card{border:1px solid #dce5f0;border-radius:10px;display:flex;flex-direction:column;overflow:hidden;background:#f8fafc}.conflict-card-head{padding:10px 14px;font-size:12px;font-weight:600;border-bottom:1px solid #dce5f0}.conflict-card.local .conflict-card-head{background:#eff6ff;color:#1d4ed8}.conflict-card.remote .conflict-card-head{background:#f5f3ff;color:#6d28d9}.conflict-card pre{margin:0;padding:12px 14px;font-size:12px;line-height:1.6;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow:auto;font-family:inherit;color:#334155}.conflict-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:11px;color:#64748b}.conflict-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.conflict-dot{display:inline-block;width:8px;height:8px;border-radius:999px;margin-right:5px;vertical-align:middle}.conflict-dot.added{background:#16a34a}.conflict-dot.removed{background:#dc2626}.conflict-diff{padding:8px 0;max-height:320px;overflow:auto;font-size:12px;line-height:1.6;font-family:inherit}.diff-line{display:flex;gap:8px;padding:2px 12px;white-space:pre-wrap;word-break:break-word;color:#334155}.diff-line .diff-sign{flex:0 0 12px;user-select:none;font-weight:700;opacity:.75}.diff-line.added{background:#dcfce7;color:#14532d}.diff-line.removed{background:#fee2e2;color:#991b1b;text-decoration:line-through;opacity:.88}.diff-line.folded{justify-content:center;color:#64748b;background:#f1f5f9;font-size:11px;padding:4px 12px;margin:4px 0;font-style:italic}.conflict-actions{padding:16px 22px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;background:#fafcff}.conflict-actions button{padding:10px 16px;font-size:12px;font-weight:600}@media(max-width:680px){.conflict-compare{grid-template-columns:1fr}}.github-advanced{margin:14px 0;font-size:11px;color:#6c7d96}.github-advanced summary{cursor:pointer;user-select:none;padding:4px 0;font-weight:500}.github-advanced .github-actions{margin:10px 0 4px}.github-prune-confirm{margin:10px 0 4px;padding:12px 14px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#991b1b;font-size:11px;line-height:1.6;display:flex;flex-direction:column;gap:10px}.github-prune-confirm p{margin:0}.github-prune-actions{display:flex;gap:8px;flex-wrap:wrap}.github-prune-actions button{padding:7px 12px;font-size:11px}.sync-overlay-modal{width:min(440px,100%);background:#fff;border-radius:14px;box-shadow:0 24px 60px rgba(15,23,42,.26);padding:22px 24px;display:flex;flex-direction:column;gap:14px}.sync-overlay-modal h3{margin:0;font-size:15px;color:#1e293b;display:flex;align-items:center;gap:10px}.sync-overlay-hint{margin:0;font-size:12px;line-height:1.6;color:#64748b}.replace-confirm{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.8;color:#7b899e;margin:19px 0}.replace-confirm input{margin-top:5px;accent-color:var(--blue)}.github-actions{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.github-actions button{flex:1 1 130px;font-size:11px;padding:11px 8px}.github-upload-warning{margin:12px 0;padding:12px 14px;background:#fff8e6;border:1px solid #f0d28c;border-radius:8px;color:#7a5308;font-size:11px;line-height:1.6;display:flex;flex-direction:column;gap:10px}.github-upload-warning p{margin:0}.github-upload-warning button{align-self:flex-start;padding:7px 12px;font-size:11px}.sync-progress{display:flex;flex-direction:column;gap:6px}.sync-progress-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;font-weight:600;color:#7a5308}.sync-progress-track{height:7px;background:#f3e2b8;border-radius:999px;overflow:hidden}.sync-progress-fill{height:100%;background:var(--blue);border-radius:999px;transition:width .2s ease}.secondary{background:#eef3fb;color:#5577ac;border:1px solid #dee6f2;border-radius:8px}
@media(max-width:760px){.github-panel{top:75px;right:16px;max-height:calc(100dvh - 91px)}}
