/* 화면 - 글꼴과 모양. 색은 site-light.css / site-dark.css가 정한다.
   Gitea 기본 테마(gitea-light·dark·auto) 위에 덮어쓴다. 색약용 테마에는 적용하지 않는다.

   기준은 GitHub(Primer) 수치를 따른다.
   곡률:        상자·버튼·입력칸 6px. 라벨·숫자 칩·상태 표시는 높이에 맞춘 알약(2em). 커밋 해시는 6px.
   크기:        버튼·입력칸 32(기본) / 28(작게) / 24(아주 작게)px. 라벨 20px, 숫자 칩 18px, 상태 표시 32px.
   글자:        12 / 14 / 16 / 20 / 24 / 32px, 버튼 500·제목 600. 12px 미만은 쓰지 않는다(README·코드·diff 제외).
   간격은 4px 배수: 같은 줄의 컨트롤 사이 8px, 쌓인 요소 사이 16px, 묶음 사이 24px.
   Gitea(Fomantic UI)는 4px 고정값과 14px 기준 rem(7·14·21px)이 섞여 있어서 아래에서 덮어 맞춘다. */

/* Pretendard (SIL OFL 1.1, fonts/Pretendard-LICENSE.txt) */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations"),
       url("../fonts/PretendardVariable.woff2") format("woff2");
}

:root {
  --fonts-proportional: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --fonts-default-override-ko: var(--fonts-proportional);
  --gs-r-box: 6px;
  --gs-r-ctl: 6px;
  --gs-r-chip: 2em;
  --border-radius: var(--gs-r-ctl);
  --border-radius-medium: var(--gs-r-box);
  --gap-block: 8px;  /* Gitea 기본 .5rem = 7px */
  --gap-inline: 4px; /* Gitea 기본 .25rem = 3.5px */
}
/* README·위키·이슈 본문(마크다운)은 GitHub 마크다운과 같은 글꼴 목록(Pretendard 아님).
   Gitea는 한글에 system-ui-ko(본고딕·Noto Sans CJK·나눔바른고딕을 맑은 고딕보다 먼저)를 써서,
   그런 글꼴이 깔린 PC에서는 GitHub(목록에 한글 글꼴이 없어 맑은 고딕)와 한글 모양이 달랐다.
   Gitea는 글꼴 변수를 요소마다 다시 계산하므로 여기서 바꾸면 안쪽 전체에 적용된다 */
.markup {
  --fonts-proportional: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --fonts-default-override-ko: var(--fonts-proportional);
  font-family: var(--fonts-regular); /* body에서 물려받은 글꼴 목록 대신 위 변수로 다시 계산 */
}
/* 문단 줄 높이: Gitea 전역 p { line-height: 1.4285 } 때문에 마크다운 문단만 22.9px로 빽빽했다. GitHub처럼 본문과 같은 1.5배 */
.markup p {
  line-height: inherit;
}
/* 표의 줄 구분선(커밋 목록, 관리자 화면 등): Gitea 테두리색 50% → GitHub borderColor-muted(70%) */
.ui.table > tbody > tr > td,
.ui.table > tr > td {
  border-top-color: var(--gs-hairline);
}
/* 코드 문법 색은 site-light/dark.css의 --color-syntax-* (GitHub 색). Gitea가 한 변수에 묶었는데 GitHub가 다르게 칠하는 토큰만 여기서:
   형식 키워드(int, string, void)는 키워드색, 내장 이름(console, len)과 상수 이름(MAX_SIZE)은 상수색 */
.chroma .kt {
  color: var(--color-syntax-keyword);
}
.chroma .nb,
.chroma .no {
  color: var(--color-syntax-number);
}
.chroma .fm {
  color: var(--color-syntax-name); /* __init__ 같은 특수 메서드: Gitea는 색이 없다 */
}
/* 코드 보기: 줄 번호와 코드 사이 5px → 10px (GitHub처럼) */
.file-view .lines-code {
  padding-left: 10px;
}

/* ---------- 머리 영역과 탭 ---------- */
#navbar {
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--gs-hairline);
}
/* 상단 막대 메뉴 글자 400 → 500(지금 보는 곳은 600), 항목 모서리 4 → 6px(컨트롤 기준).
   사용자가 상단이 심심하고 글자가 약하다고 했다(2026-11-12) */
#navbar .navbar-left > a.item {
  font-weight: 500;
}
#navbar .navbar-left > a.item.active {
  font-weight: var(--font-weight-semibold);
}
#navbar .item {
  border-radius: var(--gs-r-ctl);
}
/* 로고 옆 사이트 이름 16px 600(GitHub가 로고 옆에 화면 이름을 두는 자리). 이름은 header.tmpl이 APP_NAME으로 넣는다.
   로그인 전 첫 화면은 본문에 큰 이름이 있어 뺀다 */
#navbar-logo::after {
  content: var(--gs-app-name, none);
  margin-left: 8px;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 24px;
  color: var(--color-text);
  white-space: nowrap;
}
body:has(.gs-home) #navbar-logo::after {
  content: none;
}
/* 상단 검색칸(custom/extra_links.tmpl): 오른쪽 아이콘들 앞, 240px. 입력칸 기준 32px·14px, 돋보기는 칸 안 왼쪽 */
#navbar .navbar-left:has(> .gs-navbar-search) {
  flex: 1;
}
.gs-navbar-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
  margin: 0 8px 0 auto;
}
.gs-navbar-search > .svg {
  position: absolute;
  left: 10px;
  color: var(--color-text-light-1);
  pointer-events: none;
}
.gs-navbar-search > input {
  width: 100%;
  height: 32px;
  padding: 5px 12px 5px 32px;
  border: 1px solid var(--color-input-border);
  border-radius: var(--gs-r-ctl);
  background: var(--color-input-background);
  color: var(--color-text);
  font-size: 14px;
  line-height: 20px;
}
.gs-navbar-search > input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: var(--gs-focus);
}
/* 메뉴 4개 + 검색칸 + 오른쪽 아이콘이 한 줄에 들어가지 않는 폭(태블릿·휴대폰)에서는 숨긴다. 탐색 화면에 같은 검색이 있다 */
@media (max-width: 1011.98px) {
  .gs-navbar-search {
    display: none;
  }
}
/* 대시보드 막대의 사용자·조직 이름 */
.page-content.dashboard .secondary-nav .ui.dropdown > .text {
  font-weight: var(--font-weight-semibold);
}
/* 개인 대시보드: 전환 막대를 오른쪽 칸 맨 위 제목 줄로(user/dashboard/dashboard.tmpl). 막대 바탕·선 없이 아바타 + 이름 16px ▾ */
.gs-dash-context > .secondary-nav {
  margin: 0 0 16px;
  padding: 0;
  border: 0 !important; /* Gitea tw-border-b */
  background: none;
}
.gs-dash-context .ui.secondary.menu {
  min-height: 0;
  margin: 0;
}
.gs-dash-context .ui.secondary.menu > .item {
  margin: 0;
  padding: 0;
}
.gs-dash-context .ui.dropdown > .text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}
.gs-dash-context .ui.dropdown > .text > .avatar {
  margin: 0 !important; /* Gitea tw-mr-1 */
}
/* 이슈·풀 리퀘스트·마일스톤 모아 보기(user/dashboard/issues.tmpl, milestones.tmpl): 왼쪽 메뉴 맨 위.
   아래 메뉴 글자(메뉴 왼쪽 8px + 항목 8px)와 같은 선에 */
.flex-container-nav > .gs-dash-context {
  padding-left: 16px;
}
.secondary-nav {
  background: var(--color-secondary-nav-bg);
}
.secondary-nav .ui.tabs.divider {
  display: none;
}
.secondary-nav overflow-menu {
  border-bottom-color: var(--gs-hairline) !important;
}
/* ---------- 배치·여백: GitHub 치수 (UI 정리 2단계) ----------
   단 사이(설정 메뉴|본문, 파일 목록|사이드바, 파일 트리|본문, 릴리스 사이)와 페이지 첫 요소 위는 Gitea --page-spacing 하나로 정해진다.
   PC에서 GitHub처럼 24px (Gitea 16px). 휴대폰은 16px 그대로 */
@media (min-width: 768px) {
  :root {
    --page-spacing: 24px;
  }
  /* 저장소 첫 화면 사이드바: GitHub 296px (Gitea 280px) */
  .repo-grid-filelist-sidebar {
    grid-template-columns: auto 296px;
  }
}
/* 저장소·조직 머리 아래 → 본문: GitHub처럼 단 사이와 같은 값 (Gitea 14px, 같은 선택자로 덮는다) */
.page-content > :first-child.secondary-nav {
  margin-bottom: var(--page-spacing);
}
/* 저장소 이름 줄: 위 16px, 탭까지 8px (Gitea 14px / 3.5px라 탭에 붙어 보였다) */
.secondary-nav .repo-header {
  padding: 16px 0 8px;
}
/* 탭 줄(저장소·조직 탭, 탐색 탭): GitHub 48px, 항목 사이 8px, 항목 좌우 8px */
.secondary-nav overflow-menu .overflow-menu-items,
overflow-menu.secondary-nav .overflow-menu-items {
  gap: 8px;
}
.secondary-nav .ui.secondary.pointing.menu .item,
.ui.secondary.pointing.menu.secondary-nav .item {
  padding: 13px 8px !important; /* 20 + 26 + 밑줄 2 = 48px. Gitea 11.55px 12px !important */
  line-height: 20px; /* Gitea normal(약 18px) */
}
/* 저장소 탭은 첫 탭 글자가 저장소 아이콘과 같은 선에 오도록 -8px */
.secondary-nav .ui.container > overflow-menu .overflow-menu-items {
  margin-left: -8px;
}
/* 탐색 탭(리포지토리·사용자·조직): Gitea는 화면 전체 폭 막대 가운데에 둬서 아래 본문(1280px)과 따로 놀았다.
   막대 선은 그대로 두고 탭을 본문 왼쪽 선에 맞춘다(저장소 탭처럼 첫 탭 글자가 본문 선에). 사용자 요청 2026-11-12 */
.page-content > overflow-menu.secondary-nav {
  padding: 0 max(var(--page-margin-x), calc((100% - 1280px) / 2));
}
.page-content > overflow-menu.secondary-nav .overflow-menu-items {
  justify-content: flex-start !important; /* Gitea tw-justify-center */
  margin-left: -8px;
}
/* 파일 목록: 줄 41px, 좌우 16px (Gitea 37px, 10px). 맨 위 최근 커밋 줄은 위아래 12px */
#repo-files-table .repo-file-cell {
  padding: 10px 16px;
}
#repo-files-table .repo-file-last-commit {
  padding: 12px 16px;
}

/* 탭(GitHub UnderlineNav): 글자는 본문색, 아이콘만 흐리게. 올리면 회색 밑줄, 선택은 진한 밑줄 + 굵게. 배경은 칠하지 않는다 */
.ui.secondary.pointing.menu .item {
  color: var(--color-text);
}
.ui.secondary.pointing.menu .item > .svg {
  color: var(--color-text-light-1);
}
.ui.secondary.pointing.menu .item:not(.active):hover {
  border-color: var(--color-secondary);
  background: none;
}
.ui.secondary.pointing.menu .active.item,
.ui.secondary.pointing.menu .active.item:hover {
  color: var(--gs-tab-active);
  border-color: var(--gs-tab-active);
  font-weight: var(--font-weight-semibold);
}

/* ---------- 곡률: 상자 12px ---------- */
.ui.segment:not(.attached),
.ui.segments,
.ui.card,
.ui.cards > .card,
.ui.message,
.ui.table:not(.attached),
.ui.vertical.menu,
#repo-files-table,
.diff-file-box,
.comment-container {
  border-radius: var(--gs-r-box);
}
.ui.top.attached.header,
.ui.top.attached.segment,
.ui.top.attached.table,
.ui.top.attached.menu {
  border-radius: var(--gs-r-box) var(--gs-r-box) 0 0;
}
/* 묶음의 마지막 상자: 다음 형제가 attached 상자가 아니면 아래 모서리를 둥글게 (Gitea 기본 4px) */
.ui.bottom.attached.segment,
.ui.bottom.attached.table,
.ui.bottom.attached.message,
.ui.attached.segment:last-child:not(.top),
.ui.attached.segment:not(.top):has(+ :not(.ui.attached)),
.ui.attached.segment:not(.top):has(+ .ui.top.attached),
.ui.attached.table:last-child:not(.top),
.ui.attached.table:not(.top):has(+ :not(.ui.attached)),
.ui.attached.table:not(.top):has(+ .ui.top.attached) {
  border-radius: 0 0 var(--gs-r-box) var(--gs-r-box);
}
.ui.top.attached.segment:last-child {
  border-radius: var(--gs-r-box);
}
/* .ui.segments 묶음 안의 세그먼트 */
.ui.segments:not(.horizontal) > .segment:first-child {
  border-radius: var(--gs-r-box) var(--gs-r-box) 0 0;
}
.ui.segments:not(.horizontal) > .segment:last-child {
  border-radius: 0 0 var(--gs-r-box) var(--gs-r-box);
}
.ui.segments:not(.horizontal) > .segment:only-child,
.ui.segments:not(.horizontal) > .segment:has(~ .tw-hidden) {
  border-radius: var(--gs-r-box);
}
/* 이슈·PR 댓글 상자 (Gitea 기본 8px + 안쪽 4px) */
.repository.view.issue .comment-list .comment .comment-container {
  border-radius: var(--gs-r-box);
}
.repository.view.issue .comment-list .comment > .content > div:first-child {
  border-top-left-radius: var(--gs-r-box);
  border-top-right-radius: var(--gs-r-box);
}
.repository.view.issue .comment-list .comment > .content > div:last-child {
  border-bottom-left-radius: var(--gs-r-box);
  border-bottom-right-radius: var(--gs-r-box);
}
.ui.vertical.menu > .item:first-child {
  border-radius: var(--gs-r-box) var(--gs-r-box) 0 0;
}
.ui.vertical.menu > .item:last-child {
  border-radius: 0 0 var(--gs-r-box) var(--gs-r-box);
}
/* ---------- 선택 표시: GitHub Primer 컴포넌트 기준 ----------
   Gitea는 전환 버튼·설정 메뉴·파일 트리를 모두 같은 회색 칠(15%)로 선택을 표시해서 GitHub와 비슷한데도 어색했다 */

/* 전환 버튼(GitHub SegmentedControl): 대시보드 "리포지토리 | 조직", 이슈·PR 목록 "열림 | 닫힘".
   회색 트랙 안에서 선택한 쪽만 흰 면·테두리·굵게. Gitea는 흰 바탕에 선택한 쪽만 회색이라 반대로 보였다 */
/* Gitea가 .small-menu-items 의 바탕을 !important 로 고정해서 여기도 !important */
.ui.two.item.menu,
.ui.menu.small-menu-items {
  background: var(--gs-track) !important;
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-ctl);
  box-shadow: none;
}
.ui.ui.two.item.menu > .item,
.ui.ui.menu.small-menu-items > .item {
  margin: -1px; /* 선택된 칸의 테두리가 트랙 테두리 위에 겹치게 */
  border: 1px solid transparent;
  border-radius: var(--gs-r-ctl) !important;
  background: none !important;
  color: var(--color-text);
}
.ui.two.item.menu > .item::before,
.ui.menu.small-menu-items > .item::before {
  display: none; /* Fomantic 칸 구분선 */
}
.ui.ui.two.item.menu > .item:hover,
.ui.ui.menu.small-menu-items > .item:hover {
  background: var(--gs-track-hover) !important;
}
.ui.ui.two.item.menu > .item.active,
.ui.ui.menu.small-menu-items > .item.active {
  border-color: var(--color-secondary);
  background: var(--gs-knob) !important;
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--gs-shadow-button);
}

/* 설정 메뉴(GitHub NavList): 상자 없이 32px 항목. 올리면 옅은 회색, 선택은 회색 + 왼쪽 파랑 막대 + 굵게.
   그룹 제목은 작은 흐린 글자. 왼쪽 8px는 막대 자리 */
.flex-container-nav > .ui.vertical.menu {
  padding-left: 8px;
  border: 0;
  background: none;
  box-shadow: none;
}
.flex-container-nav > .ui.vertical.menu .item::before {
  display: none; /* 항목 사이 구분선 */
}
.flex-container-nav > .ui.vertical.menu > .header.item {
  padding: 8px 8px 4px;
  background: none;
  color: var(--color-text-light-1);
  font-size: 12px;
  line-height: 20px;
}
.flex-container-nav > .ui.vertical.menu > a.item,
.flex-container-nav > .ui.vertical.menu > details.item > summary,
.flex-container-nav > .ui.vertical.menu > details.item > .menu > .item {
  position: relative;
  padding: 6px 8px;
  border-radius: var(--gs-r-ctl);
  color: var(--color-text);
  font-size: 14px;
  line-height: 20px;
}
.flex-container-nav > .ui.vertical.menu > details.item {
  padding: 0;
}
.flex-container-nav > .ui.vertical.menu > details.item > .menu {
  margin: 0;
  padding: 0 0 0 16px;
}
.flex-container-nav > .ui.vertical.menu > a.item:hover,
.flex-container-nav > .ui.vertical.menu > details.item > summary:hover,
.flex-container-nav > .ui.vertical.menu > details.item > .menu > .item:hover {
  background: var(--color-hover);
}
.flex-container-nav > .ui.vertical.menu > a.item.active,
.flex-container-nav > .ui.vertical.menu > details.item > .menu > .item.active {
  background: var(--color-active);
  font-weight: var(--font-weight-semibold);
}
.flex-container-nav > .ui.vertical.menu > a.item.active::after,
.flex-container-nav > .ui.vertical.menu > details.item > .menu > .item.active::after {
  content: "";
  position: absolute;
  top: calc(50% - 12px);
  left: -8px;
  width: 4px;
  height: 24px;
  border-radius: 6px;
  background: var(--color-primary);
}

/* 드롭다운 메뉴(GitHub ActionList): 항목을 안쪽으로 6px 들이고 모서리 6px로 칠한다.
   현재 값(.active)은 굵게만, 바탕은 올렸을 때·키보드로 고를 때(.selected)만 칠한다 */
.ui.dropdown > .menu,
.tippy-box[data-theme="menu"] .tippy-content {
  padding-top: 6px;
  padding-bottom: 6px;
}
.ui.ui.ui.dropdown .menu > .item, /* 목록 위 필터 줄(.ui.secondary.menu) 안의 4px 규칙보다 우선 */
.tippy-box[data-theme="menu"] .item {
  margin: 0 6px;
  border-radius: var(--gs-r-ctl);
}
.ui.dropdown .menu > .active.item:not(.selected, :hover) {
  background: none;
  font-weight: var(--font-weight-semibold);
}

/* 파일 트리(GitHub TreeView): 선택 항목은 회색 + 왼쪽 파랑 막대 */
.repo-view-file-tree-container .tree-item.tree-item {
  position: relative;
  border-radius: var(--gs-r-ctl);
}
.repo-view-file-tree-container .tree-item.selected::after {
  content: "";
  position: absolute;
  top: calc(50% - 12px);
  left: 0;
  width: 4px;
  height: 24px;
  border-radius: 6px;
  background: var(--color-primary);
}

/* ---------- 곡률: 컨트롤 8px ---------- */
.ui.button:not(.ui.buttons > *):not(.ui.action.input > *):not(.ui.labeled > *) {
  border-radius: var(--gs-r-ctl);
}
.ui.input > input:not(.ui.action.input > input),
.ui.form input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]):not(.ui.action.input > input):not(.search),
.ui.form textarea,
textarea,
.ui.selection.dropdown:not(.ui.action.input > *) {
  border-radius: var(--gs-r-ctl);
}
/* 검색형 선택칸 안의 입력칸, "열림 / 닫힘" 같은 작은 전환 메뉴 */
.ui.search.selection.dropdown > input.search {
  border-radius: var(--gs-r-ctl);
  padding-top: 5px; /* 보이는 글자와 입력 글자의 높이를 맞춘다 (Gitea 기본 9.5px) */
  padding-bottom: 5px;
  line-height: 20px;
}
.ui.compact.menu:not(.secondary) {
  border-radius: var(--gs-r-ctl);
}
.ui.compact.menu:not(.secondary) > .item:first-child {
  border-radius: var(--gs-r-ctl) 0 0 var(--gs-r-ctl);
}
.ui.compact.menu:not(.secondary) > .item:last-child {
  border-radius: 0 var(--gs-r-ctl) var(--gs-r-ctl) 0;
}
/* 입력칸 + 버튼이 붙은 묶음: 바깥 모서리만 8px */
.ui.action.input > input {
  border-radius: var(--gs-r-ctl) 0 0 var(--gs-r-ctl);
}
.ui.action.input > input:last-child {
  border-radius: 0 var(--gs-r-ctl) var(--gs-r-ctl) 0;
}
.ui.action.input > .button:last-child,
.ui.action.input > .dropdown:last-child {
  border-radius: 0 var(--gs-r-ctl) var(--gs-r-ctl) 0;
}
.ui.action.input > .button:first-child,
.ui.action.input > .dropdown:first-child {
  border-radius: var(--gs-r-ctl) 0 0 var(--gs-r-ctl);
}
.ui.selection.dropdown .menu {
  border-radius: 0 0 var(--gs-r-ctl) var(--gs-r-ctl);
}
.ui.dropdown:not(.selection) .menu,
.tippy-box {
  border-radius: var(--gs-r-box);
}

/* ---------- 칩: GitHub 라벨(20px)·숫자 칩(18px)처럼 작게, 모서리는 높이에 맞춘 알약 ---------- */
.ui.label:not(.ui.labeled > .label):not(.circular) {
  border-radius: var(--gs-r-chip);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding: 1px 7px;
}
.ui.basic.label:not(.ui.labeled > .label):not(.circular) {
  padding: 0 7px; /* 테두리 1px이 있어 높이 20px */
}
.ui.small.label:not(.ui.labeled > .label):not(.circular),
.ui.tiny.label:not(.ui.labeled > .label):not(.circular),
.ui.mini.label:not(.ui.labeled > .label):not(.circular) {
  min-width: 20px;
  padding: 0 6px;
  justify-content: center;
}
/* 커밋 해시는 알약 대신 6px 모서리. 위 칩 규칙보다 선택자가 구체적이어야 한다. Gitea는 높이를 24px로 고정한다 */
.ui.sha.label:not(.ui.labeled > .label):not(.circular),
.ui.label.commit-id-short:not(.ui.labeled > .label):not(.circular) {
  border-radius: var(--gs-r-ctl);
  padding: 1px 6px;
  height: auto;
}
/* 둥근 숫자 칩: Fomantic의 .5em !important 여백·2em 최소 크기 대신 GitHub 숫자 칩처럼 20px. 색 점(.empty)은 그대로 */
.ui.ui.ui.circular.label:not(.empty) {
  font-size: 12px;
  line-height: 18px;
  min-width: 20px;
  min-height: 20px;
  padding: 1px 6px !important;
}
/* 이슈·PR 제목 옆 상태 표시: GitHub State처럼 32px 알약. Gitea가 !important로 12px 모서리를 준다 */
.ui.label.issue-state-label {
  border-radius: var(--gs-r-chip) !important;
  font-size: 14px;
  line-height: 20px;
  padding: 6px 12px;
}

/* ---------- 간격 ---------- */
/* 같은 줄 컨트롤 사이 8px (Gitea 기본 7·10px이 섞여 있음) */
.flex-text-block,
.repo-button-row,
.repo-button-row-right,
.diff-detail-actions,
.comment-header-right,
.item-trailing,
.file-header-right,
.commit-header-buttons,
.issue-title-buttons,
.ui.secondary.filter.menu,
.list-header-filters {
  gap: 8px !important; /* Gitea가 화면별로 더 구체적인 선택자로 .5em(7px) 등을 준다 */
}
/* gap으로 간격을 주는 줄에서는 Fomantic 버튼·메뉴 항목의 자체 여백(.25em 등)을 빼서 gap만 남긴다 */
:is(.flex-text-block, .flex-text-inline, .item-trailing, .file-header-right, .repo-button-row, .repo-button-row-right, .diff-detail-actions, .comment-header-right, .commit-header-buttons, .issue-title-buttons, .list-header) > .ui.button,
.ui.secondary.filter.menu > .item,
.list-header-filters > .item {
  margin: 0;
}
/* 구분선 위아래 16px (Gitea 기본은 위 16px·아래 10px로 비대칭이 된다), 제목 아래 16px */
.divider {
  margin: 16px 0;
}
.ui.header:not(.attached):not(:last-child) {
  margin-bottom: 16px;
}
/* 상자 안쪽 여백 16px, 상자 머리 12x16px (Gitea 기본 14px·11x14px).
   표를 담는 상자(.table: diff 본문, 커밋 표)는 Gitea처럼 0 — 여기 걸리면 diff 코드와 구간 머리 줄이 상자 안쪽 16px에서 끊겼다 */
.ui.segment:not(.basic):not(.repos-search):not(.table) {
  padding: 16px;
}
.ui.top.attached.header:not(.file-header):not(.diff-file-header) {
  padding: 12px 16px;
}
/* 폼 항목 사이 16px (Gitea 기본 14px) */
.ui.form .field:not(:last-child),
.ui.form .fields:not(:last-child) {
  margin-bottom: 16px;
}
/* 저장소 첫 화면: 요약 막대 → 버튼 줄 → 파일 목록 사이 16px */
.repo-button-row {
  margin-top: 16px;
  margin-bottom: 16px;
}
/* 목록 위 필터 줄 → 카드 목록 16px. 카드에 테두리가 있으니 사이의 구분선은 뺀다 */
.ui.secondary.filter.menu {
  margin-bottom: 16px;
}
/* 이슈·PR 목록의 "열림/닫힘"과 필터 줄: 한 줄에 가운데 정렬, 아래 목록까지 16px.
   Gitea는 필터 쪽에만 아래 여백이 있고 위쪽 정렬이라 두 덩어리의 높이가 어긋났다 */
.issue-list-toolbar {
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.issue-list-toolbar .ui.secondary.filter.menu {
  margin: 0;
  min-height: 0; /* .ui.menu 최소 높이 40px 때문에 필터 줄만 높아지던 것 */
}
.ui.secondary.filter.menu > .item {
  line-height: 20px;
  padding: 6px 8px; /* 32px. Gitea 11x13px(38px) */
}
.divider:has(+ .flex-divided-list.items-with-main) {
  display: none;
}
/* 이슈·PR 제목 → 탭 16px, 위키 버튼 줄 → 제목 16px */
.issue-title-header {
  margin-bottom: 16px;
}
/* 제목(36px 줄)에 맞춰 늘어나지 않게 버튼은 28px 그대로 가운데 */
.issue-title-buttons {
  align-items: center;
}
.repo-button-row + .ui.dividing.header {
  margin-top: 0;
}
/* 파일 보기: 최근 커밋 줄 → 파일 머리, 저장소 요약 막대 → 아래 상자 16px */
#repo-file-commit-box,
.ui.segments.repository-summary {
  margin-bottom: 16px;
}
/* 코드 보기(파일 트리)·파일 보기·커밋·PR 변경 파일처럼 본문이 전체 폭(ui fluid container)인 화면은
   저장소 머리(이름·버튼 줄, 탭)도 같은 폭·같은 여백으로. Gitea는 머리만 가운데 1280px에 두어 큰 화면에서 위아래가 어긋났다 */
.page-content:has(> .ui.fluid.container) > .secondary-nav .ui.container {
  width: auto;
  max-width: none;
  margin-left: var(--page-margin-x);
  margin-right: var(--page-margin-x);
}
/* 저장소 첫 화면: GitHub처럼 커밋·브랜치·태그 수를 버튼 줄 안, 브랜치 선택 바로 옆에 둔다(Gitea는 버튼 줄 위에 따로 한 줄).
   [브랜치 ▾][비교] 커밋·브랜치·태그 ……… [파일로 이동][파일 추가][코드]. 한 줄에 다 들어가는 폭(1200px 이상)에서만 */
@media (min-width: 1200px) {
  .repo-home-filelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
  }
  .repo-home-filelist > * {
    flex: 0 0 100%;
    min-width: 0;
    order: 4;
  }
  .repo-home-filelist > .repo-button-row {
    display: contents;
  }
  .repo-home-filelist > .repo-button-row > .repo-button-row-left {
    order: 1;
    flex: 0 0 auto;
  }
  .repo-home-filelist > .ui.segments.repository-summary {
    order: 2;
    flex: 0 1 auto;
    margin-bottom: 0; /* 버튼과 세로 가운데를 맞추려고 줄 아래 여백은 다음 상자 위에 준다 */
  }
  .repo-home-filelist > .repo-button-row > .repo-button-row-right {
    order: 3;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .repo-home-filelist > .repo-button-row + *,
  .repo-home-filelist > #repo-files-table {
    margin-top: 16px; /* Gitea #repo-files-table 10px (ID 선택자) */
  }
}
/* 저장소 요약 줄(커밋·브랜치·태그. Gitea 28은 언어 막대를 오른쪽 사이드바에 둔다): Gitea는 상자 폭을 3등분해 가운데 정렬하고 선택된 칸은 1/3 칸 전체를 회색으로 칠한다.
   GitHub처럼 상자 없이 왼쪽부터 링크로 늘어놓는다 */
.repository .ui.segments.repository-summary {
  border: 0;
  background: none;
}
.repository .repository-summary > .ui.segment {
  border: 0;
  padding: 0;
  background: none;
}
.repository .repository-summary .segment.sub-menu {
  gap: 16px;
}
.repository .repository-summary .sub-menu .item {
  flex: 0 0 auto;
  height: auto;
  gap: 4px;
  padding: 0;
  line-height: 20px;
  font-weight: 500;
  color: var(--color-text-light-1);
}
.repository .repository-summary .sub-menu .item b {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}
.repository .repository-summary .sub-menu .item:hover,
.repository .repository-summary .sub-menu .item.active {
  background: none;
  color: var(--color-primary);
}
.repository .repository-summary .sub-menu .item:hover b,
.repository .repository-summary .sub-menu .item.active b {
  color: inherit;
}
/* 파일 목록 → README 상자 16px (Gitea 10px), 커밋 정보 상자 → 변경 내역 16px (Gitea 0) */
#repo-files-table {
  margin-bottom: 16px;
}
.ui.attached.segment + div:has(> .diff-detail-box) {
  margin-top: 16px;
}

/* ---------- 버튼·입력칸: GitHub처럼 32 / 28 / 24px ---------- */
/* 높이 = 줄 높이 + 위아래 여백 + 테두리 2px. 아이콘(16px)만 있는 버튼도 같은 높이 */
.ui.button {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  padding: 5px 12px;
}
/* 아이콘 버튼: Fomantic .ui.icon.button:not(.compact)의 .57em보다 우선하도록 .ui를 겹친다 */
.ui.ui.icon.button {
  padding: 7px;
}
.ui.small.button,
.ui.compact.button {
  font-size: 12px;
  padding: 3px 8px;
}
.ui.ui.small.icon.button,
.ui.ui.compact.icon.button {
  padding: 5px;
}
.ui.tiny.button,
.ui.mini.button {
  font-size: 12px;
  line-height: 18px;
  padding: 2px 6px;
}
.ui.ui.tiny.icon.button,
.ui.ui.mini.icon.button {
  padding: 3px;
}
/* Gitea가 크기마다 최소 높이(38·34·32·30·26px)를 아주 구체적인 선택자로 고정해 둬서 같은 선택자로 덮는다 */
.ui.ui.ui.ui.button {
  min-height: 32px;
}
.ui.ui.ui.ui.small.button,
.ui.ui.ui.ui.compact.button,
.ui.ui.ui.ui.small.button.compact,
.ui.small.buttons .button,
.ui.compact.buttons .button {
  min-height: 28px;
  font-size: 12px; /* Gitea가 .ui.ui.ui.ui.small.button에 13px를 준다 */
}
/* 검색칸이 있는 줄(목록 위 줄, 저장소 파일 목록 위 버튼 줄)과 검색칸에 붙은 버튼은 GitHub처럼 32px·14px.
   Gitea는 여기에 small·compact를 붙여 검색칸과 버튼이 본문 글자보다 작아 보였다 */
.list-header .ui.ui.ui.ui.button,
.repo-button-row .ui.ui.ui.ui.button,
.ui.action.input > .ui.ui.ui.ui.button {
  min-height: 32px;
  font-size: 14px;
}
.list-header .ui.button:not(.icon),
.repo-button-row .ui.button:not(.icon) {
  padding: 5px 12px;
}
.list-header .ui.ui.ui.icon.button,
.repo-button-row .ui.ui.ui.icon.button,
.ui.action.input > .ui.ui.ui.icon.button {
  padding: 7px;
}
.repo-button-row .repo-file-search-container .ui.input {
  height: 32px; /* "파일로 이동" 칸. Gitea 30px */
}
.ui.ui.ui.ui.tiny.button,
.ui.ui.ui.ui.mini.button,
.ui.ui.ui.ui.tiny.button.compact,
.ui.ui.ui.ui.mini.button.compact,
.ui.tiny.buttons .button {
  min-height: 24px;
  font-size: 12px;
}
.ui.dropdown.button > .text {
  line-height: 20px;
}
/* 기본(회색) 버튼: GitHub처럼 아래쪽에 아주 옅은 그림자, 올려도 테두리 색은 그대로.
   올렸을 때 면은 불투명한 한 단계 진한 회색(Primer control-bgColor-hover). Gitea는 반투명 회색이라 바탕에 따라 달라졌다 */
.ui.basic.button {
  box-shadow: var(--gs-shadow-button);
}
.ui.basic.button:hover {
  border-color: var(--color-light-border);
  background: var(--color-hover-opaque);
}
/* 드롭다운 버튼의 ▾: Gitea는 버튼 오른쪽 끝에 절대 위치로 두고 오른쪽 여백 22px를 비워 둔다.
   위에서 여백을 GitHub 크기(12·8px)로 줄여 "파일 추가 ▾", "구독 중 2 ▾"의 ▾가 글자와 겹쳤다.
   ▾를 글자 뒤에 이어 붙이고(버튼의 gap 4px) 오른쪽 여백을 왼쪽과 같게 한다 */
.ui.ui.ui.button.dropdown:not(.labeled) > .dropdown.icon.icon {
  position: static;
  margin: 0;
  transform: none; /* 절대 위치용 translateY(-50%)가 남으면 7px 떠 보인다 */
}
.ui.ui.dropdown.button:not(.small, .compact, .tiny, .mini, .icon) {
  padding-right: 12px;
}
/* 버튼 안의 숫자 칩(구독·스타 수 등)은 GitHub 숫자 칩처럼 18px 알약 */
.ui.button > .ui.label {
  line-height: 18px;
  padding-top: 0 !important; /* 위의 칩 규칙(선택자가 더 구체적)보다 우선 */
  padding-bottom: 0 !important;
}
/* 입력칸 안의 단축키 표시 */
kbd:not(.markup kbd) {
  font-size: 12px;
}
/* 숫자가 붙은 버튼(구독·스타 등)의 숫자 칸은 버튼과 같은 높이 */
.ui.labeled.button > .label {
  font-size: 12px;
  line-height: 20px;
  padding: 5px 10px;
}
.ui.small.labeled.button > .label,
.ui.compact.labeled.button > .label {
  padding: 3px 8px;
}
.ui.input > input:not(.search),
.ui.form input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="hidden"]):not(.search) {
  font-size: 14px;
  line-height: 20px;
  padding: 5px 12px;
}
.ui.form textarea,
textarea {
  font-size: 14px;
  line-height: 20px;
  padding: 8px 12px;
}
.ui.ui.selection.dropdown {
  font-size: 14px;
  line-height: 20px;
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
}
/* "작게" 표시된 입력칸·선택칸도 따로 줄이지 않는다(32px·14px). 검색칸 글자가 본문(14px)보다 작으면 유난히 작아 보인다 */
/* 주요·위험·완료 색 면 위의 흰 글자는 대비 4.5:1 이상인 면 색을 쓴다 (다크 모드에서는 링크색과 버튼 면 색이 다르다) */
.ui.primary.button:not(.basic),
.ui.primary.buttons .button:not(.basic) {
  background: var(--gs-primary-fill);
}
.ui.primary.button:not(.basic):hover,
.ui.primary.buttons .button:not(.basic):hover {
  background: var(--gs-primary-fill-hover);
}
/* 색 라벨은 Gitea가 .ui.ui.ui.green.label 로 칠해서 같은 선택자로 덮는다(다크에서 밝은 초록 + 흰 글자는 대비 2.4:1) */
.ui.red.button:not(.basic) {
  background: var(--gs-red-fill);
}
.ui.ui.ui.red.label:not(.basic) {
  background: var(--gs-red-fill);
  border-color: var(--gs-red-fill);
}
.ui.red.button:not(.basic):hover {
  background: var(--gs-red-fill-hover);
}
.ui.green.button:not(.basic) {
  background: var(--gs-green-fill);
}
.ui.ui.ui.green.label:not(.basic) {
  background: var(--gs-green-fill);
  border-color: var(--gs-green-fill);
}
.ui.green.button:not(.basic):hover {
  background: var(--gs-green-fill-hover);
}

/* ---------- 글자 크기 ---------- */
.ui.form .field > label,
.ui.form .inline.field > label,
.ui.form .inline.fields > label {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
}
/* 폼 항목 이름 → 입력칸 8px, 입력칸 → 설명 글 6px (Gitea 4px·3px로 붙어 보였다) */
.ui.form .field:not(.inline) > label {
  margin-bottom: 8px;
}
.ui.form .field > .help,
.ui.form .field > span.help {
  margin-top: 6px;
}
.help,
.ui.form .inline.field > p.help,
small.desc,
.file-info-entry,
.file-info-size,
.activity-heatmap-container .heatmap-footer,
.activity-heatmap-container .heatmap-footer * {
  font-size: 12px;
}
/* 설명 글은 입력칸 안내 글자(placeholder)보다 진하게: 대비 4.5:1 이상 */
.help,
.ui.form .field .help {
  color: var(--color-text-light-2);
}
/* 커밋 해시 등 고정폭 링크 (Gitea .95em = 13.3px). .title-full-link 는 커밋 메시지 링크라 넣지 않는다(본문 14px) */
.file-link,
.ui.sha.label,
.ui.label.commit-id-short,
a.tw-font-mono {
  font-size: 12px;
}
/* Gitea의 13px 지정(tw-text-[13px], .file-header !important)을 기준 크기로 */
.tw-text-\[13px\] {
  font-size: 12px !important;
}
.file-header {
  font-size: 14px !important;
}
/* 목록 위 필터·정렬 메뉴는 본문과 같은 14px. Fomantic .ui.small.dropdown(13px)보다 우선하게 */
.ui.secondary.filter.menu .item,
.list-header-filters .item,
.list-header-filters .ui.dropdown.item,
.ui.ui.small.dropdown .menu > .item {
  font-size: 14px;
}
/* 목록 위 줄(검색칸·"열림/닫힘"·필터·새로 만들기)은 모두 32px·14px. Gitea는 메뉴 최소 높이 35~40px에 늘려 맞춘다.
   아래 목록 상자까지 16px (Gitea 0: 내 이슈·PR 화면에서 검색 줄과 목록 상자가 붙었다) */
.list-header {
  align-items: center;
  margin-bottom: 16px;
}
.ui.menu.small-menu-items {
  min-height: 32px !important; /* Gitea .small-menu-items가 !important */
}
.ui.menu.small-menu-items .item {
  font-size: 14px;
  line-height: 20px;
  padding: 5px 12px !important;
}
.ui.secondary.menu.list-header-filters {
  min-height: 0;
}
.ui.secondary.menu.list-header-filters > .item {
  line-height: 20px;
  padding: 6px 0 6px 10px;
}
/* Gitea가 이슈 제목 옆 버튼은 35px, 변경 내역 도구 줄 버튼은 30px로 고정한다 */
.repository.view.issue .issue-title-buttons > .ui.button {
  height: auto;
}
.repository .diff-detail-box .ui.button {
  height: 28px;
}
/* 화면 속 h3 제목은 16px (Gitea 18px). README 등 본문(.markup)은 그대로 */
h3:not(.markup h3) {
  font-size: 16px;
}
h3 > .commit-summary {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
}
/* ---------- 글자 강약: GitHub처럼 제목은 600, 보조 정보는 12px ----------
   Gitea는 제목 굵기가 400·500·600으로 섞여 있고, 목록의 보조 정보(작성자·시간·언어)가 본문과 같은 14px이라 강약이 약했다 */
.ui.header:not(.sub),
h3:not(.markup h3),
.divider-text {
  font-weight: var(--font-weight-semibold);
}
.page-content.organization .ui.header .tw-text-2xl,
#release-list .release-list-title,
#release-list .release-list-title a {
  font-weight: var(--font-weight-semibold);
}
/* 인사이트 기간 제목 24px → 20px, 구역 제목(사용자 1명이 …) 14px → 16px */
h2.ui.header.activity-header {
  font-size: 20px;
}
h4.divider.divider-text {
  font-size: 16px;
}
/* 목록 줄의 보조 정보: 이슈 목록의 "#3 · 15분 전에 demo 님이 열었음", 리포지토리 목록의 "업데이트됨", 오른쪽 언어·스타 수 */
.flex-divided-list:not(#activity-feed > *) .item-main > .item-body:last-child,
.flex-divided-list .item-trailing {
  font-size: 12px;
}
/* 선택된 메뉴 항목은 굵게 (설정 메뉴, 대시보드 "리포지토리 / 조직" 전환) */
.ui.vertical.menu > .active.item,
.ui.vertical.menu > details .menu > .active.item,
.ui.two.item.menu > .active.item {
  font-weight: var(--font-weight-semibold);
}
/* 설정 메뉴 안쪽 항목(액션 → 일반·러너 등) 12px → 14px */
.ui.vertical.menu > details.item > .menu > .item {
  font-size: 14px;
}
.tag-list-row-link {
  font-size: 16px;
}
/* 위키 문서 제목: GitHub처럼 32px 보통 굵기 */
.repository.wiki .ui.dividing.header .tw-flex-1.gt-ellipsis {
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
}
/* 저장소 머리: GitHub처럼 20px, 소유자는 보통 굵기·저장소 이름은 굵게 */
.repo-header .tw-text-18 {
  font-size: 20px !important; /* Tailwind 클래스는 !important */
}
.repo-header .tw-text-18 > a:last-of-type {
  font-weight: var(--font-weight-semibold);
}
/* 파일 목록 아이콘: GitHub처럼 폴더는 연한 파랑, 파일은 회색 (app.ini [ui] FILE_ICON_THEME = basic) */
.svg.octicon-file-directory-fill,
.svg.octicon-file-submodule,
.svg.octicon-file-directory-symlink {
  color: var(--gs-folder);
}
/* 파일 목록의 커밋 메시지는 GitHub처럼 흐린 글자, 올리면 파랑 */
#repo-files-table .repo-file-cell.message a.title-full-link {
  color: var(--color-text-light-1);
}
#repo-files-table .repo-file-cell.message a.title-full-link:hover {
  color: var(--color-primary);
}
#repo-files-table .svg.octicon-file,
#repo-files-table .svg.octicon-file-symlink-file,
.repo-file-cell .svg.octicon-file {
  color: var(--color-text-light-2);
}
.ui.vertical.menu > .header.item,
h4.ui.top.attached.header,
div.ui.top.attached.header {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
}
h2.ui.top.attached.header,
h3.ui.top.attached.header,
h4.ui.header:not(.attached) {
  font-size: 16px;
}
#release-list .release-list-title {
  font-size: 24px;
}
.repository.view.issue .issue-title h1 {
  font-size: 32px;
  font-weight: 400;
}
.ui.primary.button:not(.basic),
.ui.primary.buttons .button:not(.basic) {
  border-color: transparent;
}
.ui.form input:not([type="checkbox"], [type="radio"]):focus,
.ui.form textarea:focus,
.ui.input > input:focus,
.ui.selection.dropdown.active,
.ui.selection.dropdown:focus {
  border-color: var(--color-primary);
  box-shadow: var(--gs-focus);
}

/* ---------- 카드형 상자 ---------- */
.ui.segment:not(.attached):not(.basic),
.ui.attached.segment.bottom,
.ui.attached.segment:last-child,
#repo-files-table,
.ui.card,
.ui.cards > .card {
  box-shadow: var(--gs-shadow-card);
}
.ui.top.attached.header {
  font-weight: var(--font-weight-semibold);
}
/* 회색 바탕에 바로 놓이는 목록(저장소·이슈·활동·멤버)은 흰 카드로 감싼다. 이미 상자 안에 있는 목록은 그대로 */
.flex-divided-list.items-with-main:not(.ui.segment *, .ui.attached *, .ui.modal *) {
  background: var(--color-box-body);
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-box);
  padding: 0;
  box-shadow: var(--gs-shadow-card);
}
.flex-divided-list.items-with-main:empty {
  display: none;
}
/* 상자 안 목록 줄은 위아래 12px·좌우 16px. 좌우 여백을 상자가 아니라 줄에 줘서 줄 구분선이 상자 양 끝까지 닿게(GitHub).
   Gitea는 상자 없는 목록 기준이라 첫 줄 위·끝 줄 아래 여백을 0으로 둬서 테두리에 붙는다 */
.flex-divided-list.items-with-main:not(.ui.segment *, .ui.attached *, .ui.modal *) > .item {
  padding: 12px 16px;
}
/* 대시보드: 잔디(기여 그래프) → 활동 목록 16px (Gitea 0), 오른쪽 "리포지토리 / 조직" 전환은 다른 컨트롤과 같은 32px */
.activity-heatmap-container {
  margin-bottom: 16px;
}
.flex-container-sidebar .ui.two.item.menu {
  margin-bottom: 16px;
  min-height: 32px;
}
.flex-container-sidebar .ui.two.item.menu > .item {
  padding-top: 5px;
  padding-bottom: 5px;
  line-height: 20px;
}
/* 리포지토리 목록 상자의 검색칸 영역: 안쪽 16px (Gitea 14px), 아래 탭 줄은 낮게 */
.ui.attached.segment.repos-search {
  padding: 16px 16px 0;
}
.repos-search .ui.secondary.pointing.menu .item {
  padding: 8px 12px !important; /* Gitea .ui.secondary.pointing.menu .item 11.55px !important */
  line-height: 20px;
}
/* 목록이 비었을 때 나오는 한 줄 안내(리포지토리·사용자·멤버 목록): Gitea는 목록 줄 여백 없이 글자만 둬서
   상자가 글자 높이(22px)로 납작해졌다. 다른 빈 화면처럼 가운데, 흐린 글자, 위아래 32px */
.flex-divided-list.items-with-main > div:not([class]),
.flex-divided-list.items-with-main > .item:only-child:not(:has(*)),
.flex-divided-list.items-with-main > .item:only-child > .item-main:only-child:not(:has(*)) {
  justify-content: center;
  padding: 32px 0 !important;
  color: var(--color-text-light-2);
  text-align: center;
}
.flex-divided-list.items-with-main > .item:only-child:has(> .item-main:only-child:not(:has(*))) {
  padding: 0 !important;
}
.flex-divided-list.items-with-main > .item:only-child > .item-main:only-child:not(:has(*)) {
  flex: 1;
}
/* Gitea 빈 화면(알림·프로젝트·패키지 등 .empty-placeholder): 56px 진한 아이콘 → 32px 흐린 아이콘, 흐린 글자 */
.empty-placeholder {
  padding: 32px 16px;
  color: var(--color-text-light-2);
}
.empty-placeholder > svg.svg {
  width: 32px;
  height: 32px;
  min-width: 32px; /* Gitea .svg[width="56"] { min-width: 56px } */
  min-height: 32px;
  color: var(--color-text-light-3);
}
/* 탭 줄(저장소·조직 탭): Gitea 스크립트가 넘치는 탭을 "…"로 접기 전에는 탭이 화면보다 넓어져
   휴대폰에서 페이지 전체가 옆으로 밀린다. 넘치는 부분은 잘라 둔다 */
overflow-menu .overflow-menu-items {
  min-width: 0;
  overflow: hidden;
}
/* 대시보드 "활동 없음": 구분선 대신 활동 목록과 같은 상자로 감싼다 */
.page-content.dashboard .flex-container-main > .divider:has(+ .tw-text-center) {
  display: none;
}
.page-content.dashboard .flex-container-main > .tw-text-center {
  background: var(--color-box-body);
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-box);
}
/* 대시보드 활동 목록 오른쪽 아이콘: Gitea 32px → 다른 아이콘과 같은 16px, 흐린 색 */
.item-trailing > svg.svg[width="32"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  color: var(--color-text-light-3);
}
.ui.dropdown:not(.selection) .menu,
.tippy-box {
  box-shadow: var(--gs-shadow-pop);
}

/* ---------- 로그인 화면 ---------- */
/* 로그인 카드와 아래 안내 상자를 같은 폭(360px, 좁은 화면에서는 좌우 16px 여백)으로 맞춘다 */
.page-content.user.signin .column {
  max-width: 392px !important; /* 카드 360px + 좌우 16px. tw-max-w-2xl(!important)보다 우선 */
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.page-content.user.signin .column > .ui.container {
  width: 100%;
  max-width: none;
  margin: 0;
}
.page-content.user.signin .column::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 16px auto 0;
  background: url("../img/logo.svg") center / contain no-repeat;
}
.page-content.user.signin h4.ui.top.attached.header {
  background: none;
  border: 0;
  font-size: 24px;
  font-weight: 700;
  padding: 0 0 16px;
  text-align: center;
}
/* 로그인 카드와 안내 상자는 흰 바탕 위에 홀로 놓이는 상자라 테두리 + 옅은 그림자로 띄운다 */
.page-content.user.signin .ui.attached.segment {
  width: 100%;
  margin: 0; /* attached 상자의 좌우 -1px를 없애 아래 안내 상자와 폭을 맞춘다 */
  background: var(--color-box-body);
  border: 1px solid var(--color-secondary) !important; /* 머리 아래에 붙는 상자라 Gitea가 위 테두리를 없앤다 */
  border-radius: var(--gs-r-box);
  padding: 24px;
  box-shadow: var(--gs-shadow-float);
}

/* 로그인 화면 아래 안내 (custom/body_inner_post.tmpl) */
.gs-signin-guide {
  width: calc(100% - 32px);
  max-width: 360px;
  margin: 16px auto 40px;
  padding: 16px 24px;
  background: var(--color-box-body);
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-box);
  box-shadow: var(--gs-shadow-float);
  color: var(--color-text-light-1);
  font-size: 12px;
  line-height: 1.6;
}
/* 상단의 "로그인"(로그인 전): Gitea는 회색 면(현재 페이지 표시)에 4px 모서리라 다른 버튼과 달랐다 */
#navbar .navbar-right > a.item[href*="/user/login"] {
  height: 32px;
  min-height: 32px; /* Gitea 상단 항목 36px */
  padding: 0 12px;
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-ctl);
  background: var(--color-box-body);
  font-weight: 500;
}
#navbar .navbar-right > a.item[href*="/user/login"]:hover {
  background: var(--color-hover-opaque);
}
.gs-signin-guide p {
  margin: 0 0 8px;
  color: var(--color-text);
}
.gs-signin-guide ul {
  margin: 0;
  padding-left: 16px;
}
.gs-signin-guide code {
  font-size: 12px;
  word-break: break-all;
}

/* ---------- 첫 화면 (로그인 전 홈, templates/home.tmpl) ---------- */
/* 상단 바(50px)·하단(37px)·Gitea 아래 여백(64px)을 뺀 높이 안에서 가운데보다 조금 위에 둔다 */
.page-content.gs-home {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: calc(100vh - 151px);
  padding: 32px 16px 64px;
}
.gs-home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  text-align: center;
}
.gs-home-logo {
  display: block;
  width: 64px;
  height: 64px;
}
.gs-home-title {
  margin: 16px 0 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}
.gs-home-desc {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-light-1);
  text-wrap: balance;
}
.ui.ui.ui.primary.button.gs-home-signin {
  min-width: 160px;
  margin: 24px 0 0;
  justify-content: center;
}
/* 로그인 전 상단의 "도움말"은 Gitea 공식 문서로 가는 링크라 이 서버에서는 뺀다 */
#navbar a.item[href="https://docs.gitea.com"] {
  display: none;
}

/* ---------- 대시보드 빠른 안내 (custom/dashboard_guide.tmpl) ---------- */
.gs-quickstart {
  margin-bottom: 16px;
  background: var(--color-box-body);
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-box);
  box-shadow: var(--gs-shadow-card);
}
.gs-quickstart > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--gs-r-box);
}
.gs-quickstart > summary::-webkit-details-marker {
  display: none;
}
.gs-quickstart > summary svg {
  color: var(--color-primary);
}
.gs-quickstart > summary .text.light {
  font-size: 12px;
}
.gs-quickstart[open] > summary {
  border-bottom: 1px solid var(--gs-hairline);
  border-radius: var(--gs-r-box) var(--gs-r-box) 0 0;
}
.gs-quickstart-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gs-quickstart-title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 4px;
}
.gs-quickstart-desc {
  color: var(--color-text-light-2);
  font-size: 12px;
  margin-bottom: 8px;
}
.gs-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-secondary-bg);
  border-radius: var(--gs-r-ctl);
  font-family: var(--fonts-monospace);
  font-size: 12px;
}
.gs-cmd + .gs-cmd {
  margin-top: 8px;
}
.gs-cmd code {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-all;
  background: none;
  padding: 0;
}
.gs-quickstart ul {
  margin: 0;
  padding-left: 16px;
  line-height: 1.7;
  color: var(--color-text-light-1);
}

/* ---------- 저장소 첫 화면: GitHub 기준 (머리 버튼·버튼 줄·오른쪽 사이드바) ----------
   GitHub 저장소 첫 화면(Primer)과 계산된 값을 나란히 재서 맞췄다(2026-11-12). 아이콘 모양은 Gitea 그대로 둔다 */

/* 기본 버튼 안의 아이콘은 흐린 글자색, 글자는 그대로 (GitHub Button leadingVisual = fgColor-muted).
   색 있는 버튼과 tw-text-* 로 색을 정한 아이콘(!important)은 건드리지 않는다 */
.ui.basic.button:not(.red, .green, .primary, .yellow, .orange) > .svg,
.ui.basic.button:not(.red, .green, .primary, .yellow, .orange) > .text > .svg,
.ui.button.branch-dropdown-button > .svg,
.ui.button.branch-dropdown-button > .text > .svg,
.repo-header .ui.button .svg {
  color: var(--color-text-light-1);
}
/* 브랜치 선택 버튼은 기본 버튼과 같은 글자색·그림자 */
.ui.button.branch-dropdown-button {
  color: var(--color-text-light);
  box-shadow: var(--gs-shadow-button);
}
/* 숫자 칩(GitHub CounterLabel): 12px 600. 위 칩 규칙(:not 두 개)보다 구체적이어야 한다 */
.secondary-nav .item > .ui.label:not(.ui.labeled > .label):not(.circular),
.repo-header .ui.small.label:not(.ui.labeled > .label):not(.circular),
.repo-home-sidebar-header > .ui.label:not(.ui.labeled > .label):not(.circular) {
  font-weight: var(--font-weight-semibold);
}
/* 저장소 이름 앞 아이콘, 공개 범위 라벨(비공개 등): GitHub처럼 바탕 없이 흐린 글자·옅은 테두리 */
.repo-header > .flex-text-block > .svg {
  color: var(--color-text-light-1);
}
.repo-header .ui.basic.label {
  background: none;
  border-color: var(--gs-hairline);
  color: var(--color-text-light-1);
}

/* 사이드바(GitHub About·Releases·Languages): 제목 16px/24px, 구역 사이 16px + 구분선, 제목 → 내용 12px.
   Gitea 목록 간격(8px)에 여백을 더해 맞춘다 */
.repo-home-sidebar-header {
  margin-top: 8px;
  margin-bottom: 4px;
  line-height: 24px;
}
.repo-home-sidebar-bottom > .divider {
  margin-top: 8px;
}
.repo-home-sidebar-bottom > .divider:first-child {
  margin-top: calc(16px - var(--page-spacing)); /* 위 상자와의 칸 사이(PC 24px·휴대폰 16px) → 16px */
}
.repo-home-sidebar-top .repo-description {
  font-size: 16px;
  line-height: 24px;
}
.repo-home-sidebar-top a.flex-text-block > .tw-text-primary {
  font-weight: var(--font-weight-semibold);
}
/* Readme·크기·스타·구독자·포크: 흐린 글자(숫자도), 올리면 파랑 */
.repo-home-sidebar-top .flex-text-block.muted {
  color: var(--color-text-light-1);
}
.repo-home-sidebar-top a.flex-text-block.muted:hover {
  color: var(--color-primary);
}
/* 토픽: GitHub처럼 연한 강조색 면 + 강조색 글자, 올리면 진한 면 + 흰 글자. Gitea는 ID 선택자로 굵기를 정한다 */
#repo-topics .repo-topic,
.ui.label.repo-topic:not(.transition) {
  background: var(--color-primary-alpha-10);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  padding: 1px 10px;
}
#repo-topics .repo-topic:hover,
.ui.label.repo-topic:not(.transition):hover {
  background: var(--gs-primary-fill);
  color: var(--color-primary-contrast);
}
/* 최신 릴리스: 태그 아이콘 초록, 시간은 흐린 글자, "최신" 라벨은 초록 테두리(GitHub Latest). 릴리스 목록도 같게 */
.repo-home-sidebar-bottom .flex-text-block .svg.octicon-tag {
  color: var(--color-green);
}
.repo-home-sidebar-bottom .tw-text-12 {
  color: var(--color-text-light-1);
}
.repo-home-sidebar-bottom .ui.ui.ui.green.label,
#release-list .ui.ui.ui.green.label {
  background: none;
  border: 1px solid var(--gs-green-fill);
  color: var(--color-green);
  padding: 0 7px;
}
/* 언어: 막대 8px, 항목은 12px 한 줄(색 점 8px · 이름 600 · 비율 흐리게) */
.language-stats {
  height: 8px;
  border-radius: var(--gs-r-ctl);
  margin: 0 0 8px;
}
.language-stats-details {
  gap: 4px 12px;
}
.language-stats-details .item {
  height: auto;
  padding: 0;
  gap: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-light-1);
}
.language-stats-details .item .color-icon {
  width: 8px;
  height: 8px;
  margin-right: 8px;
}
.language-stats-details .item strong {
  margin-right: 4px;
  color: var(--color-text);
}

/* ---------- 대시보드 배치·구역 제목·바로 가기 (user/dashboard/dashboard.tmpl, custom/dashboard_links.tmpl) ----------
   [왼쪽 칸 296px: 사용자·조직 전환 + 저장소 목록 + 바로 가기 | 본문: 활동 현황·최근 활동] 2단(GitHub 대시보드의 왼쪽 칸 자리).
   사용자 결정 순서(2026-11-12): 3단 → 왼쪽 한 칸 → 오른쪽 한 칸 → 다시 왼쪽 한 칸(이슈·PR 화면의 왼쪽 메뉴와 같은 쪽).
   휴대폰은 왼쪽 칸 → 본문 → 바로 가기 한 줄.
   왼쪽 칸은 상자 없이 평평하게(제목 14px 600 + 목록, 줄은 32px), 저장소 목록과 바로 가기 사이는 선 하나.
   구역 제목 16px 600, 제목 → 내용 8px, 구역 사이 24px */
@media (min-width: 768px) {
  .page-content.dashboard .gs-dash {
    display: grid !important; /* Gitea .flex-container 가 flex !important */
    grid-template-columns: 296px minmax(0, 1fr);
    grid-template-areas: "repos main" "side main";
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .gs-dash > .flex-container-main {
    grid-area: main;
  }
  .gs-dash-repos {
    grid-area: repos;
  }
  .gs-dash-side {
    grid-area: side;
    margin-top: -8px; /* 칸 사이 24px → 선 위아래 16px */
    padding-top: 16px;
    border-top: 1px solid var(--color-secondary);
  }
}
.gs-dash-repos > .flex-container-sidebar {
  width: auto;
}
/* 저장소 목록(Gitea 내장 부품)을 GitHub "Top repositories"처럼 평평하게: 상자·머리 바탕 없이 제목 줄 + 검색 + 목록 */
.page-content.dashboard .gs-dash-repos .ui.top.attached.header, /* 상자 머리 여백 규칙(:not 두 개)보다 구체적이어야 한다 */
.page-content.dashboard .gs-dash-links > .ui.top.attached.header {
  width: auto;
  min-height: 28px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  line-height: 28px;
}
.gs-dash-repos .ui.attached.segment,
.gs-dash-repos .ui.attached.segment.repos-search,
.gs-dash-links > .ui.attached.segment {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.gs-dash-repos .repos-search {
  margin-bottom: 8px;
}
/* 제목 줄의 "+"(새 리포지토리·새 조직)는 28px 아이콘 버튼 */
.gs-dash-repos .ui.top.attached.header > a {
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-light-border);
  border-radius: var(--gs-r-ctl);
  background: var(--color-button);
  box-shadow: var(--gs-shadow-button);
  color: var(--color-text-light-1);
}
.gs-dash-repos .ui.top.attached.header > a:hover {
  background: var(--color-hover-opaque);
  color: var(--color-text);
}
/* 목록 줄 32px, 구분선 없이 올리면 옅은 회색. 글자는 제목과 같은 선에(좌우 -8px) */
.gs-dash-repos .repo-owner-name-list {
  margin: 0 -8px;
}
.gs-dash-repos .repo-owner-name-list > li {
  min-height: 32px;
  padding: 0 8px !important; /* Gitea tw-py-2 */
  border: 0 !important;
  border-radius: var(--gs-r-ctl);
}
.gs-dash-repos .repo-owner-name-list > li:hover,
.gs-dash-repos .repo-owner-name-list > li.active {
  background: var(--color-hover);
}
.gs-dash-heading {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 24px;
}
.page-content.dashboard .activity-heatmap-container + .divider {
  display: none;
}
/* 잔디는 GitHub 프로필처럼 테두리 상자 안에, 다음 구역(최근 활동)까지 24px */
.page-content.dashboard .activity-heatmap-container {
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-box);
}
/* 잔디 빈 칸: Gitea는 테두리색 60%(#e3e8ec)라 상자 머리(#f6f8fa)·전환 버튼과 다른 회색이 하나 더 생겼다.
   GitHub 빈 칸 색(Primer contribution-default-bgColor-0). Gitea가 칸마다 style로 칠해서 !important */
#user-heatmap rect[style*="secondary-alpha-60"] {
  fill: var(--gs-heat-empty) !important;
}
.gs-dash-link,
.gs-dash-links .gs-quickstart > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -8px;
  padding: 6px 8px;
  border-radius: var(--gs-r-ctl);
  line-height: 20px;
  color: var(--color-text);
}
.gs-dash-link > .svg,
.gs-dash-links .gs-quickstart > summary svg {
  color: var(--color-text-light-1);
}
.gs-dash-link:hover,
.gs-dash-links .gs-quickstart > summary:hover {
  background: var(--color-hover);
  color: var(--color-text);
}
.gs-dash-links .gs-quickstart,
.gs-dash-links .gs-quickstart[open] > summary {
  margin: 0;
  border: 0;
  border-radius: var(--gs-r-ctl);
  background: none;
  box-shadow: none;
}
.gs-dash-links .gs-quickstart > summary strong {
  font-weight: inherit;
}
.gs-dash-links .gs-quickstart > summary .text.light {
  display: none;
}
.gs-dash-links .gs-quickstart-body {
  padding: 8px 0 4px;
}
@media (max-width: 767.98px) {
  /* 휴대폰은 잔디를 숨기므로("좁은 화면") 제목도 숨긴다 */
  .gs-dash-heading:has(+ .activity-heatmap-container) {
    display: none;
  }
}

/* ---------- 대시보드 활동 (templates/user/dashboard/feeds.tmpl) ----------
   GitHub 프로필 활동처럼 타임라인: 상자 없이 왼쪽 32px 원형 배지(종류 아이콘, 병합 보라·열림 초록·닫힘 빨강·나머지 흐리게) + 2px 세로선.
   아바타 20px는 문장 앞. 사람·저장소·브랜치 이름은 본문색 600(링크가 모두 파랑이면 문장이 어지럽다), 시간은 흐린 12px.
   묶은 줄의 태그·브랜치 이름은 커밋 해시와 같은 칩.
   날짜 구분 줄은 GitHub 프로필 활동의 달 머리처럼 12px 600 글자 뒤로 선을 긋는다(구역 제목 16px과 단계 차이) */
#activity-feed h3.gs-feed-date { /* 전역 h3:not(.markup h3) 16px 규칙보다 구체적이어야 한다 */
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 18px;
  color: var(--color-text);
}
#activity-feed h3.gs-feed-date::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--color-secondary);
}
#activity-feed h3.gs-feed-date:first-child {
  margin-top: 0;
}
#activity-feed .gs-feed-day { /* 위 "흰 카드" 규칙을 끈다 */
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
#activity-feed .gs-feed-day > .item {
  position: relative;
  gap: 12px;
  padding: 8px 0;
}
#activity-feed .gs-feed-day > .item + .item {
  border-top: 0;
}
#activity-feed .gs-feed-day > .item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: var(--gs-hairline);
}
.gs-tl-badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-body);
  border-radius: 50%;
  background: var(--color-box-header);
  color: var(--color-text-light-1);
}
.gs-tl-badge.gs-tone-open {
  color: var(--color-green);
}
.gs-tl-badge.gs-tone-closed {
  color: var(--color-red);
}
.gs-tl-badge.gs-tone-done {
  color: var(--color-purple);
}
/* 첫 줄(20px)을 배지(32px) 가운데에 */
#activity-feed .gs-feed-day > .item > .item-main {
  padding-top: 6px;
}
#activity-feed .item-main > :first-child > .avatar {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}
#activity-feed .item-main > :first-child > a {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}
#activity-feed .item-main > :first-child > a:hover {
  color: var(--color-primary);
}
#activity-feed .item-main > :first-child > relative-time {
  margin-left: 4px;
  font-size: 12px;
  color: var(--color-text-light-1);
}
.gs-feed-refs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.gs-feed-more,
#activity-feed .gs-feed-compare {
  font-size: 12px;
}
.gs-feed-more {
  color: var(--color-text-light-1);
}
/* [이전][다음]은 목록 상자 밖 가운데 */
.gs-feed-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

/* 페이지 번호(GitHub Pagination): 바깥 상자 없이 32px 칸, 현재 쪽은 파랑 면·흰 글자, 이전·다음은 강조색 글자,
   누를 수 없는 칸은 흐린 글자(Primer fgColor-disabled). Gitea는 42px 칸을 테두리 상자로 묶어 버튼 줄처럼 보였다 */
.center.page.buttons {
  padding-top: 16px;
}
.ui.pagination.menu {
  gap: 4px;
  min-height: 32px;
  border: 0;
  background: none;
  box-shadow: none;
}
.ui.pagination.menu > .item,
.ui.pagination.menu > .item:last-child {
  min-width: 32px;
  height: 32px;
  padding: 5px 10px;
  justify-content: center;
  border-radius: var(--gs-r-ctl);
  line-height: 20px;
  color: var(--color-text);
}
.ui.pagination.menu > .item::before {
  display: none;
}
.ui.pagination.menu > .item.navigation {
  color: var(--color-primary);
}
.ui.pagination.menu > a.item[href]:hover {
  background: var(--color-hover);
}
.ui.pagination.menu > .active.item,
.ui.pagination.menu > .active.item:hover {
  padding-top: 5px;
  background: var(--gs-primary-fill);
  color: var(--color-primary-contrast);
  font-weight: var(--font-weight-semibold);
}
.ui.pagination.menu > .item.disabled,
.ui.pagination.menu > .item.disabled:hover {
  background: none;
  color: var(--gs-fg-disabled);
}

/* ---------- 커밋 목록 (repo/commits.tmpl, custom/commits_timeline.tmpl) ----------
   GitHub 커밋 화면을 재서 맞췄다(2026-11-12): 제목 24px(한글이 가늘어 보여 600) → [브랜치 ▾][커밋 그래프] … [검색] 한 줄 →
   날짜마다 세로선 위 커밋 아이콘 + 날짜 머리(14px 흐린 글자) + 상자. 줄은 위 메시지 14px 600(GitHub 16px 500은 한글이 가늘어 보여 한 단계 작게·굵게), 아래 작성자·시간 12px 흐린 글자,
   오른쪽 해시·복사·파일 보기. 줄 사이는 옅은 선 */
.gs-page-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: var(--font-weight-semibold); /* GitHub 400이지만 한글 Pretendard 400은 가늘어 보인다(사용자 지적) */
  line-height: 36px;
}
.gs-page-title-path {
  font-family: var(--fonts-monospace);
  font-size: 16px;
  color: var(--color-text-light-1);
}
.gs-commits-toolbar {
  margin-bottom: 16px;
}
/* "커밋 그래프" 버튼: Gitea small(12px) 표시라 옆 브랜치 버튼(14px)보다 글자가 작았다. 검색칸이 있는 줄은 32px·14px */
.gs-commits-toolbar .ui.ui.ui.ui.small.button {
  font-size: 14px;
}
.gs-commits-search {
  width: 400px;
  margin-left: auto;
}
.gs-commit-day {
  position: relative;
  margin-left: 16px;
  padding: 0 0 16px 26px;
  border-left: 2px solid var(--gs-hairline);
}
.gs-commit-day:last-child {
  padding-bottom: 0;
}
.gs-commit-day > h3.gs-commit-date { /* 전역 h3 16px 600 규칙(h3:not(.markup h3), 0-1-2)보다 구체적이어야 한다 */
  position: relative;
  margin: 0 0 8px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500; /* GitHub 400이지만 Pretendard 400은 Windows의 GitHub 한글(맑은 고딕)보다 가늘어 보인다 */
  line-height: 24px;
  color: var(--color-text-light-1);
}
.gs-commit-date-icon {
  position: absolute;
  top: 4px;
  left: -39px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-body);
  color: var(--color-text-light-1);
}
.gs-commit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-box);
}
.gs-commit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.gs-commit-row + .gs-commit-row {
  border-top: 1px solid var(--gs-hairline);
}
.gs-commit-main {
  flex: 1;
  min-width: 0;
}
.gs-commit-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.gs-commit-title .commit-summary { /* GitHub 16px 500 → 14px 600: 한글 메시지가 가늘어 보여 한 단계 작게·굵게(사용자 지정) */
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gs-commit-title .commit-summary a:not(.ref-issue) {
  color: var(--color-text);
}
.gs-commit-title .commit-summary a:not(.ref-issue):hover {
  color: var(--color-primary);
}
.gs-commit-title > .commit-body {
  flex-basis: 100%;
  margin: 4px 0 0;
}
.gs-commit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-light-1);
}
.gs-commit-meta a {
  color: inherit;
  font-weight: 500; /* GitHub 커밋 목록의 작성자 400 + 맑은 고딕 굵기에 맞춰 한 단계 위(Gitea는 600) */
}
.gs-commit-meta .avatar {
  width: 16px;
  height: 16px;
}
.gs-commit-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}
.gs-commit-actions > .btn {
  color: var(--color-text-light-1);
}
.gs-commits-empty {
  color: var(--color-text-light-2);
  text-align: center;
}
/* PR 커밋 탭·비교 화면의 "N 커밋" 줄(repo/commits_table.tmpl): 상자 머리 대신 14px 600 한 줄, 아래 타임라인까지 16px */
.gs-commits-head {
  margin-bottom: 16px;
  font-weight: var(--font-weight-semibold);
}
.gs-commits-head:has(+ .ui.segment) {
  margin-bottom: 8px;
}
/* 커밋 메시지 본문(커밋 화면 머리, 커밋 목록 "..." 펼침): GitHub처럼 고정폭 12px·줄 18px·보통 굵기.
   커밋 화면에서는 상자 머리의 600을 물려받아 굵었고, 고정폭 글꼴에 한글이 없어 Windows 기본 고정폭 한글(굴림체)로 그려졌다.
   한글만 Pretendard로 받게 고정폭 목록의 generic monospace 앞에 넣는다. 코드 보기·diff 글꼴은 그대로 */
pre.commit-body {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Pretendard Variable", Pretendard, monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
/* 커밋 화면 머리의 본문은 14px(사용자가 12px가 너무 작다고 함, GitHub 커밋 화면의 메시지 첫 줄 크기) */
.ui.top.attached.header > pre.commit-body {
  font-size: 14px;
  line-height: 22px;
}
/* 커밋 화면 머리의 "..."(이 커밋이 들어 있는 브랜치·태그 불러오기)와 커밋 목록의 "..."(본문 펼치기): 20px 작은 버튼 */
.ui.ui.ui.ui.button.ellipsis-button { /* 버튼 최소 높이 규칙(.ui.ui.ui.ui.button 32px)보다 구체적이어야 한다 */
  min-height: 0;
  height: 20px;
  padding: 0 6px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
}
@media (max-width: 767.98px) {
  .gs-commits-search {
    width: 100%;
  }
  .gs-commit-day {
    margin-left: 8px;
    padding-left: 18px;
  }
  .gs-commit-date-icon {
    left: -31px;
  }
  .gs-commit-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---------- 나머지 화면 GitHub 맞춤 (2026-11-12 목록·상세 화면 일괄 비교) ----------
   GitHub 공개 저장소(go-gitea/gitea)의 같은 화면을 재서 나온 차이를 묶어 고쳤다. 보조 글자는 흐린 글자색, 보조 정보는 12px,
   타임라인 배지는 옅은 회색 원 + 흰 테두리, 닫힌 이슈는 보라(닫힌 PR은 빨강), 브랜치 이름은 강조색 칩 */

/* 아바타: GitHub처럼 둥글게(Gitea 6px 모서리) */
img.ui.avatar,
.ui.avatar img,
img.avatar {
  border-radius: 50%;
}

/* 닫힌 이슈 = 보라(GitHub 완료). 닫힌 PR은 빨강 그대로. 이슈와 PR 화면이 같은 클래스라 아이콘으로 나눈다 */
.ui.ui.ui.red.label.issue-state-label:has(.octicon-issue-closed) {
  background: var(--gs-purple-fill);
  border-color: var(--gs-purple-fill);
}
.timeline-item.event .badge.tw-bg-red:has(.octicon-issue-closed) {
  background: var(--gs-purple-fill) !important; /* Gitea tw-bg-red */
}
.svg.octicon-issue-closed.tw-text-red {
  color: var(--color-purple) !important; /* 이슈 목록 아이콘 */
}

/* 이슈·PR 제목 줄: 번호는 흐린 글자, 상태 표시 옆 설명은 흐린 글자(작성자만 600), 제목 → 상태 12px, 상태 → 본문 24px, 제목 옆 버튼 32px */
.issue-title-meta {
  color: var(--color-text-light-1);
}
.issue-title-meta a:not(.ui) {
  color: var(--color-text-light-1);
  font-weight: var(--font-weight-semibold);
}
.repository.view.issue .issue-title-header {
  margin-bottom: 24px;
}
.repository.view.issue .issue-title-header .issue-title {
  margin-bottom: 12px;
}
.issue-title-buttons .ui.ui.ui.ui.small.button {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 14px;
}
/* 이슈·PR 제목 32px: GitHub 400이지만 한글 Pretendard 400은 가늘어 보여 500(Windows에서 GitHub 한글을 그리는 맑은 고딕 보통 굵기에 가깝다) */
.repository.view.issue .issue-title h1 {
  font-weight: 500;
}
/* 비교 화면 제목 아래 설명: GitHub처럼 14px 흐린 글자 */
h2.ui.header:has(+ .ui.segment.choose) > .sub.header {
  font-size: 14px;
  color: var(--color-text-light-1);
}
/* PR 제목 아래 브랜치 이름: 강조색 칩(GitHub BranchName, 우리 파랑) */
.issue-title-meta code {
  padding: 2px 6px;
  border-radius: var(--gs-r-ctl);
  background: var(--color-primary-alpha-10);
  font-size: 12px;
  line-height: 18px;
}
.issue-title-meta code a {
  color: var(--color-primary);
  font-weight: 400;
}

/* 댓글 머리: GitHub 38px, 좌우 16px, 글자·시간·아이콘 흐리게(작성자만 본문색 600), 역할 라벨은 테두리만.
   말풍선 꼬리는 아바타(40px) 가운데에(Gitea는 20px 아래로 내려가 있었다) */
.timeline-item .comment-header {
  min-height: 38px;
  padding: 8px 16px;
}
.comment-header .tw-text-text-light,
.comment-header .item.action {
  color: var(--color-text-light-1) !important; /* Gitea tw-text-text-light */
}
.comment-header a.author {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}
.comment-header .ui.basic.label.role-label {
  background: none;
  color: var(--color-text-light-1);
}
.comment-header.avatar-content-left-arrow::before {
  top: 11px;
}
.comment-header.avatar-content-left-arrow::after {
  top: 12px;
}

/* 이벤트 줄(레이블 추가·닫음 등): 위아래 16px, 글자 흐리게(사람 이름만 본문색), 배지 32px 옅은 회색 원 + 흰 테두리 + 흐린 16px 아이콘 */
.repository.view.issue .comment-list .timeline-item.event { /* Gitea .repository.view.issue .comment-list .timeline-item 8px보다 구체적이어야 한다 */
  padding-top: 16px;
  padding-bottom: 16px;
}
.timeline-item.event .comment-text-line {
  color: var(--color-text-light-1);
}
.timeline-item.event .comment-text-line a.tw-font-semibold {
  color: var(--color-text);
}
.repository.view.issue .comment-list .timeline-item .badge:not([class*="tw-bg-"]) { /* Gitea 같은 선택자(--color-timeline)보다 구체적이어야 한다 */
  border: 2px solid var(--color-body);
  background: var(--color-box-header);
  color: var(--color-text-light-1);
}
.timeline-item .badge .svg {
  width: 16px;
  height: 16px;
}

/* 이슈·PR 오른쪽 칸: 상자 없이(GitHub), 제목 12px 600 흐리게·값 12px, 구분선 옅게 위아래 16px, 본문과 24px */
.repository.view.issue .issue-content-right.ui.segment { /* 상자 안쪽 16px 규칙보다 구체적이어야 한다 */
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 12px;
}
.repository.view.issue .issue-content {
  gap: 24px;
}
.issue-content-right .fixed-text strong,
.issue-content-right span.text {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-light-1);
}
.issue-content-right > .divider {
  margin: 16px 0;
  border-top-color: var(--gs-hairline);
}

/* PR 탭(대화·커밋·파일): 40px, 좌우 12px, 선택 탭 모서리 6px, 숫자 칩 600 */
.ui.top.attached.pull.tabular.menu > .item {
  padding: 9px 12px !important;
  line-height: 20px;
}
.ui.top.attached.pull.tabular.menu > .item.active {
  border-radius: var(--gs-r-ctl) var(--gs-r-ctl) 0 0 !important;
}
.ui.top.attached.pull.tabular.menu > .item > .ui.label:not(.ui.labeled > .label):not(.circular) {
  font-weight: var(--font-weight-semibold);
}

/* 이슈·PR 목록: "열림/닫힘·필터" 줄을 목록 상자의 머리로(GitHub), 열림/닫힘은 글자 탭(선택 600 본문색, 나머지 흐리게) */
.issue-list-toolbar {
  margin-bottom: 0;
  padding: 8px 16px;
  border: 1px solid var(--color-secondary);
  border-radius: var(--gs-r-box) var(--gs-r-box) 0 0;
  background: var(--color-box-header);
}
.issue-list-toolbar ~ .flex-divided-list.items-with-main:not(.ui.segment *, .ui.attached *, .ui.modal *) {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 var(--gs-r-box) var(--gs-r-box);
}
.issue-list-toolbar .ui.menu.small-menu-items {
  border: 0;
  background: none !important; /* 전환 버튼 트랙 규칙(!important)을 끈다 */
}
.issue-list-toolbar .ui.ui.menu.small-menu-items > .item {
  margin: 0;
  border: 0;
  background: none !important;
  box-shadow: none;
  color: var(--color-text-light-1);
  font-weight: 400;
}
.issue-list-toolbar .ui.ui.menu.small-menu-items > .item.active {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}
.issue-list-toolbar .ui.ui.menu.small-menu-items > .item:hover {
  color: var(--color-text);
}
.ui.secondary.filter.menu .item {
  border-radius: var(--gs-r-ctl);
}
.flex-divided-list .item-trailing {
  align-self: center;
  color: var(--color-text-light-1);
}

/* 브랜치: 정보 줄이 두 줄로 꺾이던 것(Gitea white-space: pre), 요약 줄 빼기, 이름은 강조색 칩, 앞섬·뒤처짐 12px 흐리게, 포함됨 라벨은 테두리만 */
.ui.repository.branches .info {
  white-space: nowrap;
}
.repository.branches .repository-summary {
  display: none;
}
.repository.branches a.branch-name {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--gs-r-ctl);
  background: var(--color-primary-alpha-10);
  color: var(--color-primary);
  font-family: var(--fonts-monospace);
  font-size: 12px;
  line-height: 18px;
}
.commit-divergence .count {
  font-size: 12px;
  color: var(--color-text-light-1);
}
.commit-divergence .bar {
  border-radius: 2px;
}
.repository.branches .ui.orange.label {
  border: 1px solid var(--gs-hairline);
  background: none;
  color: var(--color-text-light-1);
}

/* 태그·릴리스: 버튼 줄 아래 군더더기 가로선 빼기, 태그 이름 본문색 600, 정보 줄 12px 흐리게, 릴리스 제목 32px·정보 줄 흐리게 */
.page-content.repository.tags > .ui.container > .divider,
.page-content.repository.releases > .ui.container > .divider {
  display: none;
}
a.tag-list-row-link {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}
.tag-list-row .muted-links {
  font-size: 12px;
  color: var(--color-text-light-1);
}
#release-list .release-list-title {
  font-size: 32px;
  line-height: 48px;
}
#release-list .release-entry p.tw-text-text-light {
  color: var(--color-text-light-1) !important; /* Gitea tw-text-text-light */
}

/* 비교: 브랜치 고르는 상자는 옅은 회색 면, 화살표·"..." 아이콘 흐리게, 녹색 브랜치 칩은 강조색 칩 */
.ui.segment.choose {
  padding: 4px 16px;
  background: var(--color-box-header);
}
.ui.segment.choose .svg {
  color: var(--color-text-light-1);
}
.ui.ui.ui.ui.green.sha.label {
  border-color: transparent;
  background: var(--color-primary-alpha-10);
  color: var(--color-primary);
}

/* 파일 보기: 경로 16px(저장소·파일 이름 600, "/" 흐리게), 줄 수·크기는 화면 글꼴 12px 흐리게, 최근 커밋 상자 낮게, 코드 위아래 8px */
.repository.file .breadcrumb,
.repository .repo-path .breadcrumb {
  font-size: 16px;
}
.repository .breadcrumb .section:first-child,
.repository .breadcrumb .active.section {
  font-weight: var(--font-weight-semibold);
}
.repository .breadcrumb .breadcrumb-divider {
  margin: 0 4px;
  color: var(--color-text-light-1);
}
.file-info.tw-font-mono {
  font-family: var(--fonts-regular) !important; /* Gitea tw-font-mono */
  font-weight: 400;
  color: var(--color-text-light-1);
}
#repo-file-commit-box.ui.segment {
  padding: 8px 16px;
}
/* 파일 보기 머리 오른쪽: Raw·고유 링크·Blame·히스토리 묶음 24 → 28px(GitHub 작은 버튼), 다운로드·복사·RSS·편집·삭제 아이콘은 28px 흐린 색 */
.file-header-right .ui.ui.ui.ui.mini.button {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 18px;
}
.non-diff-file-content .header .file-actions > .btn-octicon { /* Gitea 같은 선택자(본문색)보다 구체적이어야 한다 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--gs-r-ctl);
  color: var(--color-text-light-1);
}
.non-diff-file-content .header .file-actions > .btn-octicon:hover {
  background: var(--color-hover);
  color: var(--color-text);
}

/* 파일 변경(PR·커밋·비교): 파일 머리의 접기·경로 복사 아이콘 흐리게, 경로 보통 굵기(GitHub 12px 고정폭 400), 증감 숫자 12px.
   위 요약 줄("파일 1개 변경, 3줄 추가…")은 12px 흐린 글자, 숫자만 본문색 */
.diff-file-header .btn,
.diff-file-header .fold-file {
  color: var(--color-text-light-1);
}
.diff-file-header .file-link {
  font-weight: 400;
}
.diff-file-header-actions .tw-text-\[13px\] {
  font-size: 12px !important; /* Gitea tw-text-[13px] */
}
.diff-detail-stats {
  font-size: 12px;
  color: var(--color-text-light-1);
}
.diff-detail-stats strong {
  color: var(--color-text);
}

/* 커밋 화면 머리 아래 줄(작성자·시간·부모·커밋 해시): GitHub처럼 흐린 글자, 작성자만 본문색 600 */
.ui.top.attached.header + .ui.attached.segment .tw-text-text-light {
  color: var(--color-text-light-1) !important; /* Gitea tw-text-text-light */
}
.ui.top.attached.header + .ui.attached.segment .avatar-stack-names a.muted {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}
.file-view.code-view {
  padding: 8px 0;
}

/* ---------- 좁은 화면(휴대폰, 768px 미만) ----------
   Gitea의 반응형 배치(사이드바 아래로 내리기, 탭 접기)는 그대로 쓰고 어긋나는 곳만 고친다 */
@media (max-width: 767.98px) {
  :root {
    --page-margin-x: 16px; /* Gitea 8px: 상자가 화면 가장자리에 붙어 보인다 */
  }
  /* 잔디(기여 그래프)는 칸이 너무 작아 읽을 수 없어 숨긴다 */
  .activity-heatmap-container {
    display: none;
  }
  /* 저장소 버튼 줄: [브랜치][비교] ... [파일 추가][코드] 한 줄, "파일로 이동" 칸은 아래 줄 전체 폭 */
  .repo-button-row-right {
    display: contents;
  }
  .repo-button-row .repo-file-search-container {
    order: 1;
    flex: 1 1 100%;
  }
  .repo-button-row .repo-file-search-container > div,
  .repo-button-row .repo-file-search-container .ui.input {
    width: 100%;
  }
  /* 큰 제목은 한 단계 작게 (32 → 24, 24 → 20) */
  .repository.view.issue .issue-title h1,
  .repository.wiki .ui.dividing.header .tw-flex-1.gt-ellipsis {
    font-size: 24px;
    line-height: 32px;
  }
  #release-list .release-list-title {
    font-size: 24px;
    line-height: 32px;
  }
  .gs-home-title {
    font-size: 24px;
    line-height: 32px;
  }
  /* PR 탭 줄은 옆으로 밀어 보는 영역이라 회색 스크롤 막대를 숨긴다 */
  .ui.tabular.menu {
    scrollbar-width: none;
  }
}

/* 한국어 화면 글자는 낱말 중간에서 줄을 바꾸지 않는다("겹/침", "목/록"처럼 끊기던 것).
   README·위키 본문(.markup)과 코드는 Gitea 기본 그대로 둔다 */
:lang(ko) .page-content {
  word-break: keep-all;
  overflow-wrap: break-word;
}
:lang(ko) .page-content :is(.markup, pre, code, .code-view, .lines-code, .diff-file-box) {
  word-break: normal;
}

/* ---------- Tailwind 간격 보정 (자동 생성) ----------
   Gitea의 Tailwind 간격 클래스는 rem 기준이라 1단위가 3.5px(14px 기준)다. 4px 눈금으로 바꾼다.
   Gitea 28.3.0의 index.css에서 rem 값을 가진 .tw-m*/.tw-p*/.tw-gap* 규칙을 뽑아 0.25rem = 4px로 환산했다.
   Gitea를 업그레이드하면 scripts\dev\tw-spacing.ps1로 다시 만들어 이 구역을 바꾼다. */
.tw-gap-1 { gap: 4px !important; }
.tw-gap-2 { gap: 8px !important; }
.tw-gap-3 { gap: 12px !important; }
.tw-gap-4 { gap: 16px !important; }
.tw-gap-5 { gap: 20px !important; }
.tw-gap-x-1 { column-gap: 4px !important; }
.tw-gap-y-2 { row-gap: 8px !important; }
.tw-m-3 { margin: 12px !important; }
.tw-mb-1 { margin-bottom: 4px !important; }
.tw-mb-2 { margin-bottom: 8px !important; }
.tw-mb-4 { margin-bottom: 16px !important; }
.tw-mb-8 { margin-bottom: 32px !important; }
.tw-ml-1 { margin-left: 4px !important; }
.tw-ml-2 { margin-left: 8px !important; }
.tw-ml-4 { margin-left: 16px !important; }
.tw-ml-6 { margin-left: 24px !important; }
.tw-mr-1 { margin-right: 4px !important; }
.tw-mr-2 { margin-right: 8px !important; }
.tw-mr-4 { margin-right: 16px !important; }
.tw-mr-5 { margin-right: 20px !important; }
.tw-mr-8 { margin-right: 32px !important; }
.tw-mt-1 { margin-top: 4px !important; }
.tw-mt-2 { margin-top: 8px !important; }
.tw-mt-3 { margin-top: 12px !important; }
.tw-mt-4 { margin-top: 16px !important; }
.tw-mt-5 { margin-top: 20px !important; }
.tw-mt-8 { margin-top: 32px !important; }
.tw-mx-1 { margin-left: 4px !important; margin-right: 4px !important; }
.tw-my-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
.tw-my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.tw-my-3 { margin-top: 12px !important; margin-bottom: 12px !important; }
.tw-my-4 { margin-top: 16px !important; margin-bottom: 16px !important; }
.tw-my-5 { margin-top: 20px !important; margin-bottom: 20px !important; }
.tw-p-1 { padding: 4px !important; }
.tw-p-2 { padding: 8px !important; }
.tw-p-3 { padding: 12px !important; }
.tw-p-4 { padding: 16px !important; }
.tw-p-5 { padding: 20px !important; }
.tw-p-6 { padding: 24px !important; }
.tw-p-8 { padding: 32px !important; }
.tw-pl-1 { padding-left: 4px !important; }
.tw-pl-2 { padding-left: 8px !important; }
.tw-pl-3 { padding-left: 12px !important; }
.tw-pl-4 { padding-left: 16px !important; }
.tw-pl-5 { padding-left: 20px !important; }
.tw-pr-1 { padding-right: 4px !important; }
.tw-pr-2 { padding-right: 8px !important; }
.tw-pr-4 { padding-right: 16px !important; }
.tw-pt-2 { padding-top: 8px !important; }
.tw-px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.tw-px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.tw-px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.tw-px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.tw-px-8 { padding-left: 32px !important; padding-right: 32px !important; }
.tw-py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.tw-py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.tw-py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.tw-py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.tw-py-8 { padding-top: 32px !important; padding-bottom: 32px !important; }

/* 이슈·PR 오른쪽 칸의 세로 버튼 사이는 8px (tw-mt-1 = 4px보다 넓게) */
.issue-content-right .tw-mt-1 {
  margin-top: 8px !important;
}