.repo-toolbar,.repo-toolbar-actions,.repo-progress{display:flex;align-items:center;justify-content:space-between;gap:10px}
.repo-toolbar{padding:2px 0 14px;flex-wrap:wrap}
.repo-toolbar-actions{gap:6px;flex-wrap:wrap;margin-left:auto}
.repo-toolbar label{display:flex;align-items:center;gap:9px;min-width:0;font-size:var(--type-small);color:var(--text-dim)}
.repo-toolbar select{max-width:330px;min-width:0;padding:6px 28px 6px 10px;color:var(--text);background:var(--bg-elev);border:1px solid var(--border);border-radius:6px}
.repo-layout{display:grid;grid-template-columns:165px minmax(0,1fr);gap:16px}
.repo-list{display:flex;flex-direction:column;gap:4px;align-self:start;position:sticky;top:0}
.repo-list button{display:grid;gap:5px;text-align:left;border:1px solid transparent;background:transparent;color:var(--text-dim);padding:10px;border-radius:7px;cursor:pointer;font:inherit;overflow-wrap:anywhere}
.repo-list button[aria-pressed=true]{background:#6ba7ff10;border-color:#6ba7ff66;color:var(--text)}
.repo-list small{font-size:var(--type-caption);color:var(--text-faint)}
.repo-list b{font-size:var(--type-body)}
.briefing-dialog .repo-toolbar .btn{padding:6px 9px;font-size:var(--type-small);white-space:nowrap}
.repo-toolbar [data-open-folder],.repo-toolbar [data-repo-refresh]{display:grid;place-items:center;align-self:stretch;min-width:32px;min-height:30px}
.repo-toolbar-icon{width:17px;height:17px}
.repo-section{margin:0 0 8px}
.repo-columns,.repo-stages,.repo-branch-header{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.repo-columns{padding:10px 11px;color:var(--text);font-size:var(--type-body);font-weight:650;background:var(--bg-elev-2);border-bottom:1px solid var(--border);border-radius:6px 6px 0 0}
.repo-columns>span+span{border-left:1px solid var(--border);padding-left:12px;margin-left:-13px}
.repo-branch{border-bottom:1px solid var(--border);padding:10px 11px;background:var(--bg-elev)}
.repo-branch:first-of-type{border-radius:6px 6px 0 0}
.repo-branch:last-of-type{border-radius:0 0 6px 6px}
.repo-branch-header{align-items:center;margin-bottom:7px}
.repo-branch-shared{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.repo-branch-outcome{display:flex;align-items:center;min-width:0}
.repo-branch-name{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.repo-branch-name code{font-size:var(--type-body);font-weight:600;overflow-wrap:anywhere;color:var(--text)}
.repo-branch-current .repo-branch-name code{color:var(--accent)}
.repo-main-branch{border-bottom-width:2px}
.repo-branch-link{font:inherit;color:var(--text);background:none;border:0;border-radius:3px;padding:0;cursor:pointer;text-align:left;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
.repo-branch-name [data-open-worktree]{font-size:10px;padding:1px 5px;min-height:0;line-height:1.5}
.repo-branch-link:hover{ text-decoration-color:currentColor }
.repo-branch-link:disabled{opacity:.55;cursor:default}
.repo-status{display:inline-flex;width:fit-content;max-width:100%;font-size:var(--type-caption);padding:2px 6px;border-radius:4px;line-height:1.5;font-weight:500}
.repo-status.muted{color:var(--text-dim);background:#8792a315}.repo-status.amber{color:#ecc482;background:#ecc48214}.repo-status.green{color:#81d7b5;background:#81d7b514}.repo-status.purple{color:#c6aaff;background:#b291ff18}.repo-status.blue{color:#9ac4ff;background:#73acff16}
.repo-stages>div{display:flex;align-items:flex-start;flex-direction:column;gap:3px;min-width:0}
.repo-stages small{font-size:var(--type-caption);color:var(--text-faint);line-height:1.45}
.repo-branch-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:0;margin-left:auto}
.briefing-dialog .repo-branch-actions .btn{font-size:var(--type-small);padding:5px 8px;white-space:nowrap}
.repo-checkout{padding:7px 0;border-bottom:1px solid var(--border)}
.repo-checkout-inline{padding:0;margin:0;border:0;width:100%}
.repo-checkout summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:var(--type-small)}
.repo-checkout summary::before{content:'›';color:var(--text-faint);font-size:16px;line-height:12px}
.repo-checkout[open]>summary::before{transform:rotate(90deg)}
.repo-checkout summary>code{overflow-wrap:anywhere}
.repo-checkout summary small{font-size:var(--type-caption);color:var(--text-faint)}
.repo-checkout p{font-size:var(--type-small)}
.repo-checkout code{font-size:var(--type-small)}
.repo-change-total{display:flex;align-items:center;gap:8px;flex-shrink:0}
.repo-expand-hint{color:var(--text-faint);font-size:var(--type-caption)}
.repo-added{color:#70d4ad}.repo-removed{color:#f1a291}
.repo-archive{margin-top:5px}
.repo-archive>summary,.repo-other-copies>summary{font-size:var(--type-small);color:var(--text-dim);cursor:pointer;padding:7px 0}
.repo-other-copies{margin-bottom:7px;border-bottom:1px solid var(--border)}
.repo-note{font-size:var(--type-small);color:var(--text-dim);line-height:1.65;overflow-wrap:anywhere}
.repo-review{padding:16px;border:1px solid var(--border);border-radius:9px;background:var(--bg-elev)}
.repo-action-dialog{box-sizing:border-box;width:min(580px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--border);border-radius:10px;background:var(--bg-elev);color:var(--text);box-shadow:0 20px 80px #0009;font:inherit;overflow:auto;overscroll-behavior:contain}
.repo-action-dialog::backdrop{background:#070a10a0}.repo-action-dialog>.repo-review{border:0;padding:22px}
.repo-review h3{font-size:18px;margin:0 0 10px;overflow-wrap:anywhere}
.repo-review dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:9px;font-size:var(--type-small);line-height:1.5}
.repo-review dt{color:var(--text-faint)}.repo-review dd{margin:0;overflow-wrap:anywhere}
.repo-review-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}
.repo-review label{display:grid;gap:8px;margin:17px 0;color:var(--text);font-size:var(--type-body)}
.repo-review label small{font-size:var(--type-small);color:var(--text-faint)}
.repo-review input{width:100%;min-width:0;box-sizing:border-box;padding:9px 11px;background:var(--bg);border:1px solid var(--border);border-radius:5px;color:var(--text);font:inherit}
.repo-review summary{cursor:pointer;font-size:var(--type-small)}
.repo-file-list,.repo-commit-list{list-style:none;padding:0;max-height:220px;overflow:auto;font-size:var(--type-small)}
.repo-file-list li,.repo-commit-list li{display:flex;align-items:baseline;gap:12px;padding:6px 0;overflow-wrap:anywhere}
.repo-file-list code,.repo-commit-list code{color:var(--text-faint);white-space:pre;flex-shrink:0}
.repo-error{background:#e8b06312;color:#ecc482;border:1px solid #e8b06335;border-radius:6px;padding:12px;font-size:var(--type-small);line-height:1.6;overflow-wrap:anywhere;margin-bottom:12px}
.repo-progress{padding:10px 12px;margin-bottom:14px;border-radius:6px;background:#6ba7ff15;color:var(--accent);font-size:var(--type-small)}
@media(max-width:700px){
  .repo-layout{grid-template-columns:minmax(0,1fr);gap:10px}
  .repo-list{flex-direction:row;overflow-x:auto;position:static}.repo-list button{flex:0 0 auto;max-width:190px;padding:8px 10px}
  .repo-toolbar{align-items:flex-start;gap:8px}.repo-toolbar label{width:100%;box-sizing:border-box}.repo-toolbar select{flex:1;max-width:100%}.repo-toolbar-actions{width:100%;justify-content:flex-start}
  .repo-columns,.repo-stages,.repo-branch-header{gap:8px}.repo-branch{padding:10px}.repo-columns{padding-left:10px;padding-right:10px}
  .repo-review dl{grid-template-columns:minmax(0,1fr)}
  .repo-checkout summary{flex-wrap:wrap;gap:5px}.repo-status{font-size:10px}
}

.repo-branch-age{font-size:var(--type-caption);color:var(--text-faint);white-space:nowrap}
.repo-stages .repo-counts{display:flex;align-items:baseline;gap:13px;flex-wrap:wrap;font-size:var(--type-body);font-weight:600;font-variant-numeric:tabular-nums;cursor:help;border-radius:3px}
.repo-ahead{color:#ecc482}.repo-behind{color:#9ac4ff}.repo-main-added{color:#70d4ad}
.repo-count-muted{color:var(--text-faint)}
.repo-stages .repo-checkout summary{flex-wrap:wrap}

.repo-status.red{color:#ffaaa3;background:#f08c8218}
.repo-branch-header:last-child{margin-bottom:0}
.repo-branch-actions [data-copy-merge]{opacity:.6;cursor:copy;border-style:dashed}
.repo-branch-actions [data-copy-merge]:hover{opacity:1}
