/* Repository code view, social actions and the sample person profile. */
.repo-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.repo-name{display:flex;align-items:center;gap:8px;margin-right:4px;font-size:22px;font-weight:650;letter-spacing:-.3px}
.repo-name .icon{width:20px;height:20px;color:var(--muted)}
.repo-name a:hover{text-decoration:underline}
.social-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.social-actions .count{margin-left:2px}
.icon-filled{fill:currentColor;color:#b8860b}

.repo-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px}
.repo-main{min-width:0}
.repo-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.branch-select{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 8px;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--surface);box-shadow:var(--shadow-s)}
.branch-select select{border:0;background:transparent;padding:4px 0;font-weight:600;cursor:pointer}
.toolbar-meta{color:var(--muted);font-size:13px}
.repo-toolbar .btn{margin-left:auto}
.file-panel{overflow:hidden}
.commit-row{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line);background:var(--surface-2);font-size:13px}
.commit-message{min-width:0;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.commit-meta{margin-left:auto;color:var(--muted);white-space:nowrap}
.file-list{list-style:none;margin:0;padding:0}
.file-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr) auto;gap:16px;align-items:center;padding:7px 16px;border-top:1px solid var(--line)}
.file-row:first-child{border-top:0}
.file-row:hover{background:var(--surface-2)}
.file-button{display:inline-flex;align-items:center;gap:8px;min-width:0;padding:2px 0;border:0;border-radius:4px;background:none;color:var(--ink);text-align:left}
.file-button .icon{color:var(--muted)}
.file-button:hover span{color:var(--accent-ink);text-decoration:underline}
.file-button[aria-current] span{font-weight:600}
.file-message{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-age{color:var(--muted);font-size:13px;white-space:nowrap}
.readme-panel{margin-top:20px;overflow:hidden}
.readme{padding:24px 28px}
.readme h2{font-size:22px;font-weight:650;padding-bottom:8px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.readme h3{font-size:16px;font-weight:600;margin:22px 0 8px}
.readme p{max-width:72ch;margin:10px 0;color:var(--ink-2);line-height:1.65}
.readme-badges{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}
.readme-note{color:var(--muted)}

.repo-about{min-width:0}
.repo-about h2{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:15px;font-weight:600}
.repo-about>p{margin-bottom:12px;color:var(--ink-2)}
.repo-about section{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.repo-about small{display:block;margin-top:6px;color:var(--muted)}
.topics{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.topics span{padding:2px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:12px;font-weight:500}
.about-list{display:grid;gap:6px;margin:0;padding:0;list-style:none;color:var(--ink-2)}
.about-list li,.about-list a{display:flex;align-items:center;gap:8px}
.about-list a:hover{color:var(--accent-ink)}
.about-list .icon{color:var(--muted)}
.about-note{margin-top:16px;font-size:12px;color:var(--muted)}
.person{display:inline-grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#dbe5d3;color:#3a4b34;font-size:12px;font-weight:650}
.peach{background:#f2dccd;color:#6d3b22}
.purple{background:#e2dcf0;color:#463a69}
.people{display:flex;gap:8px}
.small-person{width:22px;height:22px;font-size:9px}
.language-bar{height:8px;border-radius:999px;background:linear-gradient(90deg,#3178c6 92%,#c9ccc4 92%)}

.profile-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:40px}
.profile-avatar{display:grid;place-items:center;width:220px;height:220px;max-width:100%;margin-bottom:16px;border:1px solid var(--line);border-radius:50%;background:linear-gradient(140deg,#e4dfcb,#b7cbb3);color:#3d4a39;font-size:64px;font-weight:500}
.profile-card h1{font-size:24px;font-weight:650;line-height:1.2}
.username{font-size:18px;color:var(--muted)}
.bio{margin:14px 0}
.profile-follow{width:100%}
.follow-meta{display:flex;align-items:center;gap:6px;margin:14px 0;color:var(--ink-2)}
.profile-card h2{margin:18px 0 8px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;font-weight:600}
.org-line{display:flex;align-items:center;gap:8px}
.repo-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.repo-list-head h2{font-size:16px;font-weight:600}
.profile-repos .repo-row{padding:20px 0;border-bottom:1px solid var(--line)}
.profile-repos .empty-state{margin-top:16px}

@media(max-width:900px){
 .repo-grid{grid-template-columns:1fr}
 .repo-about{padding-top:20px;border-top:1px solid var(--line)}
}
@media(max-width:700px){
 .social-actions{margin-left:0;width:100%}
 .file-row{grid-template-columns:minmax(0,1fr) auto}
 .file-message,.commit-message{display:none}
 .readme{padding:18px}
 .profile-grid{grid-template-columns:1fr;gap:24px}
 .profile-card{display:grid;grid-template-columns:72px 1fr;column-gap:16px;align-items:center}
 .profile-avatar{grid-row:span 2;width:72px;height:72px;margin:0;font-size:24px}
 .profile-card>*:not(.profile-avatar):not(h1):not(.username){grid-column:1/-1}
}
/* Wolk-hosted Git: clone details on repository pages (no push or upload action) */
.repo-toolbar .clone{position:relative;margin-left:auto}
.repo-toolbar .clone .btn,.repo-toolbar .clone+.btn{margin-left:0}
.clone>summary{list-style:none;cursor:pointer}
.clone>summary::-webkit-details-marker{display:none}
.clone-panel{position:absolute;right:0;z-index:5;width:min(420px,calc(100vw - 32px));margin-top:6px;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-m)}
.clone-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.clone-url{display:flex;gap:8px}
.clone-url .input{flex:1;min-width:0;font-family:var(--mono);font-size:13px}
.clone-panel .code{margin:10px 0}
.clone-note{color:var(--muted);font-size:13px;line-height:1.5}
.hosted-remote{margin-top:16px}
.hosted-remote>p,.hosted-remote>.code{margin-left:16px;margin-right:16px}
.hosted-remote>p:first-of-type{margin-top:12px}
.hosted-remote>.clone-note{margin-bottom:14px}
@media (max-width:760px){.repo-toolbar .clone{margin-left:0}.repo-toolbar .clone[open]{flex-basis:100%;order:1}.clone-panel{position:static;width:auto;box-shadow:none}}
