/* 서버 전용 얇은 규칙 — 모양(색 · 글꼴 · 칸)은 시안 빌드 결과 tailwind.css(시안 src/input.css 가 정본)가 맡는다. 인라인 스타일 없음(CSP style-src 'self'). */
.nav-off { opacity: .55; cursor: not-allowed; }
.nav-off:hover { background: none; }
/* 넓은 화면은 한 줄, 좁은 화면은 이름 두 조각 사이의 공백에서만 줄바꿈. */
.tsv-name { display: block; min-width: min-content; white-space: nowrap; line-height: 2.25rem; }
.tsv-nm { white-space: nowrap; }
@media (max-width: 767px) {
  .tsv-name { white-space: normal; line-height: 1.25; padding-block: .375rem; }
  /* 활성 밑줄: 글자 밑줄은 줄마다 그려져 첫 줄 아래에도 생기므로 끄고, 두 줄 전체 아래에 선 하나만 */
  .tsv-name.hdr-on { text-decoration: none; border-bottom: 2px solid currentColor; border-radius: 0; }
  header.top-row { height: auto; min-height: 57px; }
  #top > div { height: auto; min-height: 57px; }
  #header-brand > a > span:last-child { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #header-brand > a { gap: 0; }
  #top > div { column-gap: 4px; }
  #top > div > button { min-inline-size: 32px; padding-inline: 6px; }
  #top nav > :not(.tsv-name), #top > div > button { flex-shrink: 0; white-space: nowrap; }
  #top nav { column-gap: 6px; }
  #top .hdr-action { min-inline-size: 32px; min-block-size: 36px; padding-inline: 8px; justify-content: center; gap: 0; }
  .hdr-action-label { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #open-search { margin-inline: auto 0; }
  #translations > ul { inset-inline: auto 0; }
}
/* 영어 저본 글은 화면 언어가 오른쪽→왼쪽이어도 늘 왼쪽→오른쪽 */
.ts1-text { direction: ltr; text-align: left; }
/* 사용자 결정: 넓은 화면은 사진과 원문을 나란히, 좁은 화면은 위아래로. */
.decision-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.decision-pair > * { min-width: 0; }
.decision-photo { max-width: 100%; max-height: 90vh; height: auto; object-fit: contain; }
.decision-next-photo { max-height: 45vh; }
.decision-range { font-size: 1.25rem; font-weight: bold; margin-block: 1rem; }
.decision-neighbors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 767px) { .decision-neighbors { grid-template-columns: minmax(0, 1fr); } }
.decision-candidate { display: block; margin-block: 1rem; }
.decision-printed-label { display: block; margin-bottom: .375rem; }
.decision-printed-input { display: block; width: 100%; min-width: 0; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid #64748b; border-radius: .375rem; background: #fff; color: #0f172a; box-sizing: border-box; white-space: pre; text-transform: none; }
.decision-printed-input:focus-visible { outline: 2px solid #2878c7; outline-offset: 2px; }
.decision-history { list-style: disc; padding-inline-start: 1.5rem; }
.decision-history > li { padding-block: .5rem; }
.decision-history > li + li { border-top: 1px solid #cbd5e1; }
.decision-text { display: block; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; text-transform: none; }
@media (max-width: 1023px) { .decision-pair { grid-template-columns: minmax(0, 1fr); } }
/* 책 칸 진행률 폭 — 시안은 --p 변수를 인라인 style 로 넣지만 서버 화면은 CSP 때문에 data-pct 로 받는다(서버가 DB 에서 센 값) */
.tile[data-prog]::after { width: 0; }
.tile[data-pct="5"]::after { width: 5%; }
.tile[data-pct="10"]::after { width: 10%; }
.tile[data-pct="15"]::after { width: 15%; }
.tile[data-pct="20"]::after { width: 20%; }
.tile[data-pct="25"]::after { width: 25%; }
.tile[data-pct="30"]::after { width: 30%; }
.tile[data-pct="35"]::after { width: 35%; }
.tile[data-pct="40"]::after { width: 40%; }
.tile[data-pct="45"]::after { width: 45%; }
.tile[data-pct="50"]::after { width: 50%; }
.tile[data-pct="55"]::after { width: 55%; }
.tile[data-pct="60"]::after { width: 60%; }
.tile[data-pct="65"]::after { width: 65%; }
.tile[data-pct="70"]::after { width: 70%; }
.tile[data-pct="75"]::after { width: 75%; }
.tile[data-pct="80"]::after { width: 80%; }
.tile[data-pct="85"]::after { width: 85%; }
.tile[data-pct="90"]::after { width: 90%; }
.tile[data-pct="95"]::after { width: 95%; }
.tile[data-pct="100"]::after { width: 100%; }

/* 작업실 장 화면 바깥 틀 — 자리 표시(모양은 안쪽 칸이 정함) */
.work-shell { display: block; }

.decision-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* Stored comparison notation and non-colour difference cues. */
.decision-editions { width: 100%; table-layout: fixed; border-collapse: collapse; }
.decision-editions th { width: 6.5rem; text-align: start; font-size: .875rem; }
.decision-editions td, .decision-editions th { padding: .375rem; vertical-align: top; border-bottom: 1px solid #cbd5e1; }
.decision-editions .decision-text { display: table-cell; }
.decision-diff { text-decoration: underline; text-decoration-thickness: 2px; font-weight: bold; background: #fef08a; color: #0f172a; }
.decision-join { opacity: .6; font-size: .85em; }
.decision-adjacent { opacity: .75; font-size: .875rem; margin-block: 1rem; }
.decision-comparisons { margin-bottom: 1rem; }
.decision-list-status { display: inline-block; max-width: 100%; font-size: .875rem; overflow-wrap: anywhere; padding: .25rem; }

.decision-verse { margin-block: .75rem; }
.decision-actor { font-size: .8em; font-weight: 700; padding: 0 .4em; border: 1px solid currentColor; border-radius: .3em; }
.decision-actor-ai { text-decoration: underline dotted; }
.decision-join { margin: .75rem 0; padding: .5rem .75rem; border: 1px solid currentColor; border-radius: .4rem; }
.decision-join-warning { font-weight: 700; }
.decision-evidence { display: block; font-size: .85em; opacity: .85; }

/* 사진 판정 대기: 결정 화면 안의 작은 요약 표. RTL에서도 읽는 방향을 따른다. */
.photo-wait { max-inline-size: 44rem; font-size: .875rem; }
.photo-wait-table { inline-size: 100%; border-collapse: collapse; }
.photo-wait-table caption { text-align: start; margin-block-end: .5rem; }
.photo-wait-table th, .photo-wait-table td { text-align: start; padding: .25rem .5rem; border-block-end: 1px solid #cbd5e1; }
.photo-wait-table tfoot { font-weight: bold; }
.photo-wait-sources { text-align: start; margin-block: .25rem; }
.photo-wait-priorities { padding-inline-start: .75rem; font-size: .9em; }
.photo-wait-source-note { max-inline-size: 30rem; margin-block: .5rem; color: #475569; font-size: .85em; }

/* 작업실 요약 표: 접힘 기본값, 작은 화면 가로 스크롤, 논리 방향. */
.work-load-status { max-inline-size: 90rem; margin-block: 1rem; padding-block: .75rem; padding-inline: 1rem; font-size: .875rem; }
.work-load-status > summary { cursor: pointer; font-weight: bold; }
.work-load-scroll { overflow-x: auto; margin-block: .75rem; }
.work-load-table { inline-size: 100%; border-collapse: collapse; }
.work-load-table th, .work-load-table td { text-align: end; padding-block: .25rem; padding-inline: .5rem; border-block-end: 1px solid #cbd5e1; font-variant-numeric: tabular-nums; }
.work-load-table th:first-child { text-align: start; }
.work-load-table tfoot { font-weight: bold; }
.work-overview-heading { margin-block: .5rem; font-weight: bold; }
.work-overview-number { white-space: nowrap; }
.human-review-overview summary { cursor: pointer; font-weight: bold; }
.human-review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .75rem; margin-block: .75rem; }
.human-review-grid h3 { font-weight: bold; }
.human-review-grid li { margin-block: .35rem; overflow-wrap: anywhere; }
.work-overview-times { min-inline-size: 20rem; font-size: .75rem; }
.work-overview-times bdi { unicode-bidi: isolate; }
.decision-photo-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.decision-photo-candidates .decision-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.decision-eyes { display: inline-block; padding: .25rem .5rem; border: 1px solid currentColor; border-radius: .25rem; font-weight: bold; }
.he-two-eyes { display: inline-block; margin-block: .25rem; padding-block: .2rem; padding-inline: .5rem; border: 1px solid currentColor; border-radius: .25rem; color: #166534; background: #f0fdf4; font-size: .8rem; font-weight: bold; overflow-wrap: anywhere; }
@media (max-width: 640px) { .decision-photo-candidates { grid-template-columns: 1fr; } }
.photo-page-status { margin: .5rem 0; font-size: .875rem; }
.original-link { display: inline-flex; align-items: center; gap: .25rem; min-height: 2rem; padding: .25rem .5rem; text-decoration: underline; }
