/* ============================================================
   开发者社区（Gitee 风格）组件样式
   依赖 theme.css 变量，暗/亮自动适配
   ============================================================ */

/* ---------- 通用布局 ---------- */
.cm-shell { padding: 22px 0 40px; }
.cm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 1080px) { .cm-wrap { grid-template-columns: minmax(0, 1fr); } }

.cm-panel {
    background: var(--xh-panel);
    border: 1px solid var(--xh-line);
    border-radius: var(--xh-radius-lg);
    padding: 18px;
    backdrop-filter: blur(12px);
}
.cm-panel + .cm-panel { margin-top: 16px; }
.cm-panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 12px;
}
.cm-panel-head h1, .cm-panel-head h2, .cm-panel-head h3 {
    margin: 0; font-size: 15px; font-weight: 700; color: var(--xh-text);
    display: flex; align-items: center; gap: 8px;
}
.cm-panel-head .more { font-size: 12.5px; color: var(--xh-primary); text-decoration: none; }
.cm-panel-head .more:hover { text-decoration: underline; }

/* ---------- 顶部 hero ---------- */
.cm-hero {
    position: relative; overflow: hidden;
    border-radius: var(--xh-radius-lg);
    border: 1px solid var(--xh-line);
    background:
        radial-gradient(900px 300px at 12% -30%, rgba(var(--xh-primary-rgb), .30), transparent 60%),
        radial-gradient(700px 260px at 92% 0%, rgba(var(--xh-primary-2-rgb), .26), transparent 62%),
        var(--xh-panel);
    padding: 26px 24px;
    margin-bottom: 18px;
}
.cm-hero-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; }
.cm-hero h1 { margin: 6px 0 8px; font-size: 26px; letter-spacing: .3px; color: var(--xh-text); }
.cm-hero p { margin: 0; max-width: 640px; color: var(--xh-muted); font-size: 13.5px; line-height: 1.7; }
.cm-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--xh-primary); font-weight: 700;
}
.cm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-hero-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.cm-hero-stats div { min-width: 76px; }
.cm-hero-stats b { display: block; font-size: 20px; color: var(--xh-text); line-height: 1.2; }
.cm-hero-stats span { font-size: 12px; color: var(--xh-muted); }

/* ---------- 工具条 ---------- */
.cm-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    padding: 10px 12px; margin-bottom: 14px;
    border: 1px solid var(--xh-line); border-radius: var(--xh-radius);
    background: var(--xh-bg-2);
}
.cm-bar form { display: flex; gap: 8px; flex: 1 1 260px; }
.cm-bar input[type="search"], .cm-bar input[type="text"] {
    flex: 1; min-width: 0; height: 36px; padding: 0 12px;
    border-radius: var(--xh-radius-sm);
    border: 1px solid var(--xh-line); background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .05);
    color: var(--xh-text); font-size: 13px;
}
.cm-bar select {
    height: 36px; padding: 0 10px; border-radius: var(--xh-radius-sm);
    border: 1px solid var(--xh-line); background: var(--xh-panel-2); color: var(--xh-text); font-size: 13px;
}
.cm-tabs-mini { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--xh-radius-pill); background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .06); }
.cm-tabs-mini a {
    padding: 6px 12px; border-radius: var(--xh-radius-pill); font-size: 12.5px;
    color: var(--xh-muted); text-decoration: none; white-space: nowrap;
}
.cm-tabs-mini a.on { background: var(--xh-primary-grad); color: #fff; font-weight: 600; }

/* ---------- 仓库卡片 ---------- */
.cm-repo-list { display: flex; flex-direction: column; gap: 12px; }
.cm-repo {
    display: block; padding: 15px 16px;
    border: 1px solid var(--xh-line); border-radius: var(--xh-radius);
    background: linear-gradient(180deg, rgba(var(--xh-w), var(--xh-w), var(--xh-w), .035), rgba(var(--xh-w), var(--xh-w), var(--xh-w), .012));
    text-decoration: none; color: inherit;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.cm-repo:hover { transform: translateY(-2px); border-color: rgba(var(--xh-primary-rgb), .45); box-shadow: var(--xh-shadow-sm); }
.cm-repo-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-repo-top b { font-size: 14.5px; color: var(--xh-primary); }
.cm-repo-top b:hover { text-decoration: underline; }
.cm-repo-desc { margin: 8px 0 10px; font-size: 13px; line-height: 1.65; color: var(--xh-muted); }
.cm-repo-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12px; color: var(--xh-faint); }
.cm-repo-foot span { display: inline-flex; align-items: center; gap: 4px; }
.cm-repo-foot svg { width: 13px; height: 13px; fill: currentColor; opacity: .85; }

.cm-lang-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--xh-primary); }

.cm-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: var(--xh-radius-pill);
    font-size: 11.5px; border: 1px solid var(--xh-line);
    background: rgba(var(--xh-primary-rgb), .08); color: var(--xh-text-2);
    text-decoration: none;
}
.cm-chip:hover { border-color: rgba(var(--xh-primary-rgb), .5); color: var(--xh-primary); }
.cm-chip.solid { background: rgba(var(--xh-primary-rgb), .18); color: var(--xh-primary); }
.cm-chip.ok { background: rgba(61, 220, 151, .14); color: var(--xh-ok); border-color: rgba(61, 220, 151, .35); }
.cm-chip.warn { background: rgba(255, 180, 84, .14); color: var(--xh-warn); border-color: rgba(255, 180, 84, .35); }
.cm-chip.danger { background: rgba(255, 107, 129, .14); color: var(--xh-danger); border-color: rgba(255, 107, 129, .35); }

/* ---------- 侧栏 ---------- */
.cm-side-card {
    border: 1px solid var(--xh-line); border-radius: var(--xh-radius);
    background: var(--xh-panel); padding: 15px; 
}
.cm-side-card + .cm-side-card { margin-top: 14px; }
.cm-side-card h3 { margin: 0 0 10px; font-size: 13.5px; color: var(--xh-text); display: flex; align-items: center; gap: 6px; }
.cm-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cm-rank li { display: flex; gap: 9px; align-items: baseline; font-size: 12.5px; }
.cm-rank li i {
    width: 17px; height: 17px; flex: 0 0 17px; border-radius: 5px;
    display: grid; place-items: center; font-size: 10.5px; font-style: normal; font-weight: 700;
    background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .08); color: var(--xh-muted);
}
.cm-rank li:nth-child(1) i { background: linear-gradient(135deg, #ff7a59, #ff3d71); color: #fff; }
.cm-rank li:nth-child(2) i { background: linear-gradient(135deg, #ffb454, #ff8a00); color: #fff; }
.cm-rank li:nth-child(3) i { background: linear-gradient(135deg, #4f8cff, #7a5cff); color: #fff; }
.cm-rank li a { color: var(--xh-text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-rank li a:hover { color: var(--xh-primary); }
.cm-rank li span { margin-left: auto; color: var(--xh-faint); font-size: 11.5px; white-space: nowrap; }

.cm-topic-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.cm-topic { font-size: 12px; padding: 4px 10px; border-radius: var(--xh-radius-pill); background: rgba(var(--xh-primary-rgb), .1); color: var(--xh-text-2); text-decoration: none; border: 1px solid transparent; }
.cm-topic:hover { border-color: rgba(var(--xh-primary-rgb), .5); color: var(--xh-primary); }
.cm-topic em { font-style: normal; opacity: .6; font-size: 11px; margin-left: 4px; }

.cm-user-mini { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.cm-user-mini img, .cm-avatar {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
    background: var(--xh-primary-grad); color: #fff; display: grid; place-items: center;
    font-size: 12px; font-weight: 700; flex: 0 0 26px;
}
.cm-user-mini a { color: var(--xh-text-2); text-decoration: none; }
.cm-user-mini a:hover { color: var(--xh-primary); }
.cm-user-mini .num { margin-left: auto; color: var(--xh-faint); }

/* ---------- 仓库详情头 ---------- */
.cm-repo-head {
    border: 1px solid var(--xh-line); border-radius: var(--xh-radius-lg);
    background: var(--xh-panel); padding: 18px 20px; margin-bottom: 14px;
}
.cm-repo-head h1 { margin: 0 0 6px; font-size: 21px; color: var(--xh-text); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cm-repo-head .path { font-size: 12.5px; color: var(--xh-faint); margin-bottom: 8px; }
.cm-repo-head .path a { color: var(--xh-primary); text-decoration: none; }
.cm-repo-desc-line { margin: 0 0 12px; color: var(--xh-muted); font-size: 13px; line-height: 1.6; }
.cm-repo-metrics { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--xh-muted); }
.cm-repo-metrics b { color: var(--xh-text); font-size: 14px; }
.cm-repo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cm-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px; border-radius: var(--xh-radius-sm);
    border: 1px solid var(--xh-line-strong); background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .05);
    color: var(--xh-text-2); font-size: 12.5px; text-decoration: none; cursor: pointer;
    transition: all .15s ease;
}
.cm-btn:hover { border-color: rgba(var(--xh-primary-rgb), .6); color: var(--xh-primary); }
.cm-btn.primary { background: var(--xh-primary-grad); border-color: transparent; color: #fff; font-weight: 600; }
.cm-btn.primary:hover { opacity: .92; color: #fff; }
.cm-btn.on { background: rgba(var(--xh-primary-rgb), .18); border-color: rgba(var(--xh-primary-rgb), .55); color: var(--xh-primary); }
.cm-btn svg { width: 14px; height: 14px; fill: currentColor; }

.cm-tabline {
    display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px;
    border-bottom: 1px solid var(--xh-line); padding-bottom: 0;
}
.cm-tabline a {
    padding: 10px 14px; font-size: 13px; color: var(--xh-muted); text-decoration: none;
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.cm-tabline a.on { color: var(--xh-primary); border-bottom-color: var(--xh-primary); font-weight: 600; }
.cm-tabline a em { font-style: normal; font-size: 11px; padding: 1px 6px; margin-left: 5px; border-radius: 999px; background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .1); color: var(--xh-muted); }

/* ---------- 代码浏览 ---------- */
.cm-code-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .cm-code-layout { grid-template-columns: minmax(0, 1fr); } }
.cm-tree { border: 1px solid var(--xh-line); border-radius: var(--xh-radius); background: var(--xh-panel); overflow: hidden; }
.cm-tree h4 { margin: 0; padding: 10px 12px; font-size: 12.5px; color: var(--xh-muted); border-bottom: 1px solid var(--xh-line); display: flex; justify-content: space-between; }
.cm-tree ul { list-style: none; margin: 0; padding: 6px; max-height: 480px; overflow: auto; }
.cm-tree li a {
    display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px;
    font-size: 12.5px; color: var(--xh-text-2); text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cm-tree li a:hover { background: rgba(var(--xh-primary-rgb), .1); color: var(--xh-primary); }
.cm-tree li.on a { background: rgba(var(--xh-primary-rgb), .16); color: var(--xh-primary); }
.cm-tree li .ft { flex: 0 0 30px; font-size: 10px; letter-spacing: .4px; color: var(--xh-faint); }

.cm-viewer { border: 1px solid var(--xh-line); border-radius: var(--xh-radius); background: var(--xh-panel); overflow: hidden; }
.cm-viewer-head {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid var(--xh-line); font-size: 12.5px; color: var(--xh-muted);
}
.cm-viewer pre {
    margin: 0; padding: 14px 16px; overflow: auto; max-height: 640px;
    font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--xh-text-2); background: rgba(var(--xh-k), var(--xh-k), var(--xh-k), .35);
}
.cm-viewer textarea {
    width: 100%; min-height: 340px; border: 0; outline: 0; padding: 14px 16px; resize: vertical;
    font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: rgba(var(--xh-k), var(--xh-k), var(--xh-k), .4); color: var(--xh-text);
}
.cm-editor-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--xh-line); }
.cm-editor-bar input {
    height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--xh-line);
    background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .05); color: var(--xh-text); font-size: 12.5px;
}
.cm-editor-bar input[name="path"] { flex: 1 1 200px; }

/* ---------- README / Markdown ---------- */
.cm-md { font-size: 13.5px; line-height: 1.8; color: var(--xh-text-2); padding: 16px 18px; overflow-wrap: anywhere; }
.cm-md h1, .cm-md h2, .cm-md h3, .cm-md h4, .cm-md h5, .cm-md h6 { margin: 18px 0 10px; color: var(--xh-text); line-height: 1.4; }
.cm-md h1 { font-size: 21px; border-bottom: 1px solid var(--xh-line); padding-bottom: 8px; }
.cm-md h2 { font-size: 17px; border-bottom: 1px solid var(--xh-line); padding-bottom: 6px; }
.cm-md h3 { font-size: 15px; }
.cm-md p { margin: 0 0 10px; }
.cm-md ul { margin: 0 0 12px; padding-left: 22px; }
.cm-md li { margin: 3px 0; }
.cm-md a { color: var(--xh-primary); }
.cm-md code { background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .09); padding: 1.5px 5px; border-radius: 5px; font-size: 12.5px; }
.cm-md .md-code { background: rgba(var(--xh-k), var(--xh-k), var(--xh-k), .5); border: 1px solid var(--xh-line); border-radius: 10px; padding: 12px 14px; overflow: auto; margin: 0 0 12px; }
.cm-md .md-code code { background: none; padding: 0; }
.cm-md blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid rgba(var(--xh-primary-rgb), .6); background: rgba(var(--xh-primary-rgb), .07); color: var(--xh-muted); border-radius: 0 8px 8px 0; }
.cm-md hr { border: 0; border-top: 1px solid var(--xh-line); margin: 16px 0; }

/* ---------- Issue ---------- */
.cm-issue-list { list-style: none; margin: 0; padding: 0; }
.cm-issue-item {
    display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--xh-line);
    align-items: flex-start;
}
.cm-issue-item:last-child { border-bottom: 0; }
.cm-issue-item .st { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--xh-ok); }
.cm-issue-item.closed .st { background: var(--xh-danger); }
.cm-issue-item .body { min-width: 0; flex: 1; }
.cm-issue-item .body a.t { color: var(--xh-text); font-size: 13.5px; text-decoration: none; font-weight: 600; }
.cm-issue-item .body a.t:hover { color: var(--xh-primary); }
.cm-issue-item .meta { margin-top: 4px; font-size: 11.5px; color: var(--xh-faint); display: flex; flex-wrap: wrap; gap: 10px; }
.cm-issue-item .meta a { color: var(--xh-muted); text-decoration: none; }
.cm-issue-item .meta a:hover { color: var(--xh-primary); }

.cm-issue-detail { padding: 16px 18px; }
.cm-issue-title { margin: 0 0 8px; font-size: 19px; color: var(--xh-text); }
.cm-issue-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 12px; color: var(--xh-faint); }
.cm-issue-body { border: 1px solid var(--xh-line); border-radius: var(--xh-radius); background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .03); margin-bottom: 14px; }
.cm-comment { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--xh-line); }
.cm-comment .cm-avatar { width: 30px; height: 30px; flex: 0 0 30px; }
.cm-comment .c-body { flex: 1; min-width: 0; }
.cm-comment .c-head { font-size: 12px; color: var(--xh-faint); margin-bottom: 5px; }
.cm-comment .c-head b { color: var(--xh-text-2); font-weight: 600; }
.cm-comment .c-text { font-size: 13px; line-height: 1.7; color: var(--xh-text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-form { display: flex; flex-direction: column; gap: 10px; }
.cm-form label { font-size: 12.5px; color: var(--xh-muted); display: flex; flex-direction: column; gap: 6px; }
.cm-form input[type="text"], .cm-form input[type="password"], .cm-form textarea, .cm-form select {
    width: 100%; padding: 9px 11px; border-radius: var(--xh-radius-sm);
    border: 1px solid var(--xh-line); background: rgba(var(--xh-w), var(--xh-w), var(--xh-w), .05);
    color: var(--xh-text); font-size: 13px; font-family: inherit;
}
.cm-form textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.cm-form .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-form .row > * { flex: 1 1 180px; }

/* ---------- Release 时间线 ---------- */
.cm-timeline { position: relative; padding-left: 18px; }
.cm-timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--xh-line); }
.cm-rel { position: relative; padding: 0 0 18px 4px; }
.cm-rel::before { content: ''; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--xh-primary-grad); box-shadow: 0 0 0 3px rgba(var(--xh-primary-rgb), .18); }
.cm-rel h4 { margin: 0 0 5px; font-size: 14px; color: var(--xh-text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-rel .tagpill { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(var(--xh-primary-rgb), .16); color: var(--xh-primary); font-weight: 600; }
.cm-rel .sub { font-size: 11.5px; color: var(--xh-faint); margin-bottom: 7px; }
.cm-rel pre { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--xh-text-2); white-space: pre-wrap; overflow-wrap: anywhere; background: transparent; padding: 0; }

/* ---------- 空态 ---------- */
.cm-empty { padding: 36px 16px; text-align: center; color: var(--xh-faint); font-size: 13px; }
.cm-empty b { display: block; color: var(--xh-text-2); font-size: 14px; margin-bottom: 6px; }

/* ---------- 分页 ---------- */
.cm-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.cm-pager a, .cm-pager span {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--xh-line); font-size: 12.5px; color: var(--xh-muted); text-decoration: none;
}
.cm-pager a:hover { border-color: rgba(var(--xh-primary-rgb), .5); color: var(--xh-primary); }
.cm-pager span.on { background: var(--xh-primary-grad); border-color: transparent; color: #fff; font-weight: 600; }

/* ---------- 移动端 ---------- */
@media (max-width: 820px) {
    .cm-shell { padding: 14px 0 84px; }
    .cm-hero { padding: 18px 16px; border-radius: var(--xh-radius); }
    .cm-hero h1 { font-size: 21px; }
    .cm-hero p { font-size: 12.5px; }
    .cm-hero-stats { gap: 14px; }
    .cm-hero-stats b { font-size: 17px; }
    .cm-hero-stats span { font-size: 11px; }
    .cm-panel { padding: 13px; border-radius: var(--xh-radius); }
    .cm-repo { padding: 13px; }
    .cm-repo-top b { font-size: 13.5px; }
    .cm-repo-desc { font-size: 12.5px; }
    .cm-repo-foot { gap: 10px; font-size: 11.5px; }
    .cm-bar { padding: 8px; gap: 8px; }
    .cm-tabline a { padding: 9px 11px; font-size: 12.5px; }
    .cm-code-layout { gap: 10px; }
    .cm-tree ul { max-height: 220px; }
    .cm-md { padding: 12px 14px; font-size: 13px; }
    .cm-issue-detail { padding: 13px; }
    .cm-viewer pre { font-size: 12px; }
}


/* ============================================================
   开发者社区 · 用户主页 / 关注流 / 代码搜索 / 合并请求（V5）
   ============================================================ */
.cm-profile {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--xh-panel);
    border: 1px solid var(--xh-line);
    border-radius: var(--xh-radius-lg);
    padding: 20px;
    margin-bottom: 18px;
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
}
.cm-profile-avatar {
    width: 68px; height: 68px; flex: 0 0 68px;
    border-radius: 20px;
    display: grid; place-items: center;
    font-size: 26px; font-weight: 800; color: #fff;
    background: var(--xh-primary-grad);
    box-shadow: 0 8px 22px rgba(var(--xh-primary-rgb), .28);
}
.cm-profile-main { flex: 1 1 320px; min-width: 0; }
.cm-profile-main h1 { margin: 2px 0 6px; font-size: 21px; font-weight: 800; color: var(--xh-text); display: flex; align-items: center; }
.cm-profile-sub { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--xh-faint); }
.cm-profile-bio { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--xh-text-2); }
.cm-profile-stats { margin-top: 14px; justify-content: flex-start; }
.cm-profile-actions { display: flex; flex-direction: column; gap: 9px; align-items: stretch; min-width: 132px; }
.cm-people { display: flex; flex-direction: column; gap: 9px; }
.cm-side-card h3 em { font-style: normal; font-size: 11.5px; color: var(--xh-faint); font-weight: 500; }
.cm-side-empty { margin: 0; font-size: 12.5px; color: var(--xh-faint); }
.cm-timeline .body { font-size: 13px; line-height: 1.7; color: var(--xh-text-2); }
.cm-timeline .body a { color: var(--xh-primary); text-decoration: none; }
.cm-timeline .body a:hover { text-decoration: underline; }
.cm-timeline li.cm-rel:last-child { padding-bottom: 0; }

/* 代码搜索 */
.cm-code-hit { display: block; padding: 14px 16px; border: 1px solid var(--xh-line); border-radius: var(--xh-radius); background: var(--xh-panel-2, rgba(255,255,255,.02)); margin-bottom: 10px; text-decoration: none; }
.cm-code-hit:hover { border-color: rgba(var(--xh-primary-rgb), .45); }
.cm-code-hit .path { font-size: 13px; font-weight: 700; color: var(--xh-text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-code-hit .repo { font-size: 11.5px; color: var(--xh-faint); margin-top: 3px; }
.cm-code-hit pre { margin: 8px 0 0; padding: 9px 11px; border-radius: 9px; background: rgba(var(--xh-primary-rgb), .06); font-size: 12px; line-height: 1.65; color: var(--xh-text-2); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* 合并请求 */
.cm-pull-item { padding: 14px 16px; border: 1px solid var(--xh-line); border-radius: var(--xh-radius); margin-bottom: 10px; background: var(--xh-panel-2, rgba(255,255,255,.02)); }
.cm-pull-item .t { font-size: 13.5px; font-weight: 700; color: var(--xh-text); text-decoration: none; }
.cm-pull-item .t:hover { color: var(--xh-primary); }
.cm-pull-item .meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--xh-faint); margin-top: 6px; }
.cm-pull-item .ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cm-pull-item .flow { font-size: 12px; color: var(--xh-text-2); margin-top: 7px; font-family: var(--xh-mono, ui-monospace, monospace); word-break: break-all; }
@media (max-width: 640px) {
    .cm-profile { padding: 16px; }
    .cm-profile-avatar { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 16px; font-size: 21px; }
    .cm-profile-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
    .cm-profile-actions .cm-btn { flex: 1 1 auto; text-align: center; }
}

.cm-hero-slim { padding: 22px 24px; }
.cm-hero-slim .cm-hero-inner { gap: 14px; }
.cm-hero-slim h1 { font-size: 22px; }
