/* ════════════════════════════════════════════════════════════ */
/* ベース : github-markdown-css を body に適用した上で上書き    */
/* ════════════════════════════════════════════════════════════ */
:root {
  --bg:         #f6f8fa;
  --card:       #ffffff;
  --border:     #d0d7de;
  --border-soft:#d8dee4;
  --text:       #24292f;
  --muted:      #57606a;
  --accent:     #0969da;
  --accent-soft:#ddf4ff;
  --green:      #1a7f37;
  --green-bg:   #dafbe1;
  --red:        #cf222e;
  --red-bg:     #ffebe9;
  --yellow:     #9a6700;
  --yellow-bg:  #fff8c5;
  --purple:     #8250df;
  --star:       #e3b341;
  --shadow:     0 1px 0 rgba(27,31,36,.04), 0 1px 3px rgba(27,31,36,.06);
  --shadow-lg:  0 8px 24px rgba(140,149,159,.2);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* body 自体に markdown-body を付けたことによる影響を吸収する */
body.markdown-body {
  min-width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
               Helvetica, Arial, sans-serif, "Apple Color Emoji";
  font-size: 14px;
  line-height: 1.5;
  /* github-markdown-css が設定する word-wrap は継承しても問題ない */
}

/* アプリ内のテキスト要素は基本的に body の継承で足りるが、
   .markdown-body 由来の h1/h2 ボーダーがレイアウトに漏れないよう調整 */
body.markdown-body > .app h1,
body.markdown-body > .app h2,
body.markdown-body > .app h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted  { color: var(--muted); font-size: 12px; }

/* ════════════════════════════════════════════════════════════ */
/* ランディング                                                */
/* ════════════════════════════════════════════════════════════ */
.landing {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 0%, #eaeef2 0%, #f6f8fa 45%);
  padding: 24px;
}
.landing-card {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 40px 32px; box-shadow: var(--shadow-lg); text-align: center;
}
.landing-brand .logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, #8250df, #0969da);
  color: #fff; font-weight: 800; letter-spacing: -.5px; font-size: 18px;
  margin-bottom: 12px;
}
.landing-brand h1 {
  margin: 0 0 6px; font-size: 26px;
  border-bottom: none !important; padding-bottom: 0 !important;
}
.landing-brand p  { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.landing-buttons { display: flex; flex-direction: column; gap: 12px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-weight: 500; font-size: 14px;
  cursor: pointer; transition: background .12s, border-color .12s;
  text-decoration: none;
}
.oauth-btn:hover { background: #f6f8fa; text-decoration: none; border-color: #b6bec6; }
.oauth-btn.scratch { background: #fff7ed; border-color: #ffd7a8; }
.oauth-btn.scratch:hover { background: #fff1de; }
.scratch-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #ff8c1a; box-shadow: 0 0 0 3px rgba(255,140,26,.18);
}
.landing-note { margin-top: 24px; font-size: 12px; color: var(--muted); }
.landing-explore-link { display: block; margin-top: 12px; font-size: 13px; }

/* ════════════════════════════════════════════════════════════ */
/* トップバー                                                  */
/* ════════════════════════════════════════════════════════════ */
.app { min-height: 100vh; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 20px; height: 60px;
  background: #24292f; color: #fff;
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.logo {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: .85; }
.logo-mark.small {
  width: 28px; height: 28px; border-radius: 8px; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #8250df, #0969da);
  color: #fff; font-weight: 800;
}
.topbar-nav { display: flex; gap: 4px; margin-left: 8px; }
.topbar-nav a {
  padding: 6px 12px; border-radius: 6px;
  color: #c9d1d9; font-size: 13px; text-decoration: none;
  transition: background .12s;
}
.topbar-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.topbar-nav a.active { color: #fff; font-weight: 600; background: rgba(255,255,255,.08); }
.topbar-search {
  flex: 1; max-width: 360px; height: 32px;
  padding: 0 12px; border-radius: 6px;
  border: 1px solid #57606a; background: #24292f; color: #fff;
  font-size: 13px; outline: none;
}
.topbar-search::placeholder { color: #8b949e; }
.topbar-search:focus { border-color: #8b949e; background: #0d1117; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.btn-primary {
  background: #2da44e; border: 1px solid rgba(27,31,36,.15);
  color: #fff; font-weight: 600; font-size: 13px;
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: #2c974b; }
.user-menu { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #57606a; object-fit: cover; }
#user-name { font-size: 13px; color: #c9d1d9; }
.user-dropdown {
  position: absolute; right: 0; top: 42px; min-width: 220px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 200;
}
.user-dropdown .dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.user-dropdown a { display: block; padding: 10px 16px; color: var(--text); font-size: 13px; }
.user-dropdown a:hover { background: var(--bg); text-decoration: none; }

/* ════════════════════════════════════════════════════════════ */
/* レイアウト / 汎用                                            */
/* ════════════════════════════════════════════════════════════ */
main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 80px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: 20px; margin: 0; border: none; padding: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--accent); }
.loading { text-align: center; padding: 60px; color: var(--muted); }
.error   { color: var(--red); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--text); font-weight: 600; margin: 0 0 8px; border: none; padding: 0; }
.empty-state p { margin: 0 0 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: #f6f8fa; color: var(--text);
  cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn:hover { background: #eef1f4; text-decoration: none; }
.btn-sm { padding: 3px 10px; font-size: 12px; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: #f0b3ae; }
.btn-starred { background: #fff8c5; border-color: var(--star); color: #7a5c00; }
.star-num { font-weight: 700; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 14px; font-size: 14px; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: #fd8c73; font-weight: 600; }
.tab-count {
  display: inline-block; background: #eaeef2; color: var(--muted);
  font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-left: 4px;
}

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 18px;
}
.badge-ok   { background: var(--green-bg);  color: var(--green); }
.badge-warn { background: var(--yellow-bg); color: var(--yellow); }
.badge-mut  { background: #eaeef2; color: var(--muted); }
.badge-added    { background: var(--green-bg);  color: var(--green); }
.badge-removed  { background: var(--red-bg);    color: var(--red); }
.badge-modified { background: var(--yellow-bg); color: var(--yellow); }
.badge-public   { background: #ddf4ff; color: #0969da; }
.badge-fork     { background: #f3e8ff; color: #8250df; }
.badge-scratch  { background: #fff1de; color: #c2560b; text-decoration: none; }
.badge-scratch:hover { background: #ffe6c5; }
.badge-google   { background: #e8f0fe; color: #1a73e8; }

/* ════════════════════════════════════════════════════════════ */
/* リポジトリカード                                             */
/* ════════════════════════════════════════════════════════════ */
.repo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.repo-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .12s, box-shadow .12s;
}
.repo-card:hover { border-color: #b6bec6; box-shadow: 0 3px 12px rgba(140,149,159,.18); }
.repo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.repo-card-name {
  font-weight: 600; font-size: 15px; color: var(--accent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.repo-card-desc { color: var(--muted); font-size: 13px; min-height: 20px; }
.repo-card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.repo-card-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.repo-card-owner {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); margin-bottom: 4px;
}
.repo-card-owner .mini-avatar { width: 18px; height: 18px; border-radius: 50%; }
.repo-card-badges { display: flex; gap: 4px; flex-shrink: 0; }
.star-count { color: var(--star); font-weight: 600; }

.repo-card-scratch {
  display: flex; gap: 10px; align-items: center;
  background: #fff8ee; border: 1px solid #ffd7a8;
  border-radius: 6px; padding: 8px; margin: 4px 0;
}
.scratch-thumb {
  width: 48px; height: 36px; object-fit: cover;
  border-radius: 4px; background: #eee; flex-shrink: 0;
}
.scratch-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.scratch-link {
  font-size: 11px; color: #c2560b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fork-origin { font-size: 12px; margin-top: 2px; }

/* ════════════════════════════════════════════════════════════ */
/* リポジトリ詳細                                              */
/* ════════════════════════════════════════════════════════════ */
.repo-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.repo-detail-head h1 { font-size: 20px; margin: 0; border: none; padding: 0; }
.repo-detail-head .owner { color: var(--accent); }
.repo-detail-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.kv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.kv-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
}
.kv-card .label { font-size: 12px; color: var(--muted); }
.kv-card .value { font-size: 18px; font-weight: 600; margin-top: 4px; }
.kv-card .value.small { font-size: 14px; font-weight: 500; word-break: break-all; }

.compare-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; margin-bottom: 20px;
}
.compare-card h3 { border: none; padding: 0; }
.compare-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.compare-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.compare-controls select {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; min-width: 200px; background: #fff; font-family: inherit;
}
.diff-frame {
  width: 100%; height: 70vh; min-height: 520px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}

.readonly-banner {
  display: flex; align-items: center; gap: 8px;
  background: #fff8c5; border: 1px solid #eac54f;
  color: #7a5c00; padding: 10px 14px; border-radius: 6px;
  font-size: 13px; margin-bottom: 12px;
}
.readonly-banner span:first-child { font-weight: 600; }
.fork-banner {
  display: flex; align-items: center; gap: 8px;
  background: #f3e8ff; border: 1px solid #d6bbfb;
  color: #4c1d95; padding: 10px 14px; border-radius: 6px;
  font-size: 13px; margin-bottom: 12px;
}

.scratch-card {
  display: flex; gap: 14px; align-items: center;
  background: #fff8ee; border: 1px solid #ffd7a8;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
}
.scratch-thumb-large {
  width: 96px; height: 72px; object-fit: cover;
  border-radius: 6px; background: #eee; flex-shrink: 0;
}
.scratch-card-info { min-width: 0; flex: 1; }
.scratch-card-label { font-size: 12px; color: #a3540b; font-weight: 600; margin-bottom: 2px; }
.scratch-card-link { font-size: 14px; color: #c2560b; word-break: break-all; }

/* ════════════════════════════════════════════════════════════ */
/* コミット / ブランチ                                          */
/* ════════════════════════════════════════════════════════════ */
.commit-list {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.commit-row {
  display: grid; grid-template-columns: 90px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
}
.commit-row:last-child { border-bottom: none; }
.commit-row:hover { background: #f6f8fa; }
.commit-row .hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  background: #eaeef2; color: var(--muted);
  padding: 2px 8px; border-radius: 6px; text-align: center;
}
.commit-msg { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

.branch-list { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.branch-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
}
.branch-item:last-child { border-bottom: none; }
.branch-item.current { background: var(--accent-soft); }
.branch-name { font-weight: 500; }
.branch-actions { display: flex; gap: 8px; }

/* ════════════════════════════════════════════════════════════ */
/* Issue / PR                                                   */
/* ════════════════════════════════════════════════════════════ */
.issue-list, .pr-list {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.issue-row {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  cursor: pointer; transition: background .1s;
}
.issue-row:last-child { border-bottom: none; }
.issue-row:hover { background: #f6f8fa; }
.issue-icon { font-size: 18px; text-align: center; }
.issue-title { font-weight: 500; font-size: 14px; }
.issue-meta  { font-size: 12px; margin-top: 2px; }

.issue-detail {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px;
}
.issue-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.issue-header h2 { margin: 0; font-size: 20px; border: none; padding: 0; }
.pr-source-info {
  background: #f0f7ff; border: 1px solid #c9def7; color: #1a3d6e;
  border-radius: 6px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px;
}
.merged-banner {
  background: #f3e8ff; border: 1px solid #d6bbfb; color: #4c1d95;
  border-radius: 6px; padding: 10px 14px; margin-top: 16px; font-size: 13px;
}
.merged-banner code { background: rgba(255,255,255,.6); padding: 1px 5px; border-radius: 3px; }

.comments { margin-top: 20px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.comments h3 { margin: 0 0 12px; font-size: 14px; border: none; padding: 0; }
.comment {
  border: 1px solid var(--border-soft); border-radius: 6px;
  margin-bottom: 10px; overflow: hidden; background: #fff;
}
.comment-head {
  display: flex; align-items: center; gap: 8px;
  background: #f6f8fa; padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft); font-size: 13px;
}
.comment-head .mini-avatar { width: 22px; height: 22px; border-radius: 50%; }

.comment-form { margin-top: 16px; }
.comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: inherit; resize: vertical;
}
.comment-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9,105,218,.12);
}

/* ════════════════════════════════════════════════════════════ */
/* モーダル / トースト                                          */
/* ════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(27,31,36,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 500;
}
.modal {
  background: #fff; border-radius: 12px; width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg); padding: 24px;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal h2 { margin: 0 0 4px; font-size: 18px; border: none; padding: 0; }
.modal p.sub { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: inherit; outline: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(9,105,218,.12);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.modal-actions .btn-primary { padding: 8px 18px; }

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #24292f; color: #fff;
  padding: 12px 20px; border-radius: 8px; font-size: 13px;
  opacity: 0; transform: translateY(10px);
  transition: all .2s; pointer-events: none; z-index: 1000;
  box-shadow: var(--shadow-lg); max-width: 400px;
}
.toast.show    { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

/* ════════════════════════════════════════════════════════════ */
/* プロフィール                                                */
/* ════════════════════════════════════════════════════════════ */
.profile-header {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px; flex-wrap: wrap;
}
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: #eaeef2; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--border-soft);
}
.profile-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 600; color: var(--muted);
}
.profile-info { flex: 1; min-width: 220px; }
.profile-info h1 { margin: 0 0 4px; font-size: 24px; border: none; padding: 0; }
.profile-username {
  font-size: 14px; color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
}
.profile-badges { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.profile-bio {
  margin-top: 10px; font-size: 14px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.profile-meta { margin-top: 10px; font-size: 12px; color: var(--muted); }
.profile-meta span { margin-right: 6px; }
.profile-actions { margin-left: auto; }

.profile-tabs { margin-top: 24px; }

.owner-link { color: var(--accent); text-decoration: none; cursor: pointer; }
.owner-link:hover { text-decoration: underline; }
.repo-card-owner .owner-link { color: var(--muted); }
.repo-card-owner .owner-link:hover { color: var(--accent); }
h1 .owner-link { color: var(--accent); }

/* ════════════════════════════════════════════════════════════ */
/* Markdown コンテンツ (github-markdown-css を活かす)           */
/* ════════════════════════════════════════════════════════════ */
/* body に markdown-body を付けたので、内側の markdown コンテナは
   クラス名を分けて github-markdown-css の border/padding を回避する */
.md-content {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  word-wrap: break-word;
}
.md-content > *:first-child { margin-top: 0 !important; }
.md-content > *:last-child  { margin-bottom: 0 !important; }
.md-content p { margin: 0 0 12px; }
.md-content h1, .md-content h2 {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: .3em;
  margin-top: 20px; margin-bottom: 12px;
}
.md-content h3, .md-content h4, .md-content h5, .md-content h6 {
  margin-top: 16px; margin-bottom: 8px;
}
.md-content ul, .md-content ol { padding-left: 2em; margin: 0 0 12px; }
.md-content blockquote {
  border-left: 4px solid var(--border);
  color: var(--muted); padding: 0 1em; margin: 0 0 12px;
}
.md-content pre {
  background: #f6f8fa; border-radius: 6px;
  padding: 12px; overflow-x: auto; font-size: 12px;
}
.md-content code {
  background: rgba(175,184,193,.2);
  padding: .2em .4em; border-radius: 4px; font-size: 85%;
}
.md-content pre code { background: transparent; padding: 0; font-size: inherit; }
.md-content table { border-collapse: collapse; margin: 0 0 12px; }
.md-content table th, .md-content table td {
  border: 1px solid var(--border); padding: 6px 12px;
}
.md-content table th { background: #f6f8fa; font-weight: 600; }
.md-content img { max-width: 100%; }
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.md-content a { color: var(--accent); }

/* Issue / PR 本文のブロック */
.issue-detail .md-content {
  border: 1px solid var(--border-soft); border-radius: 6px;
  padding: 12px 16px; margin: 12px 0;
  background: #f6f8fa;
}
/* コメント内の Markdown */
.comment .md-content {
  padding: 12px 16px; margin: 0;
  background: #fff;
}