/* 최종 샘플의 배치. 기존 공통 디자인 및 다른 작업자의 CSS는 보존한다. */
[hidden] { display: none !important; }
.pair-legend { display: none; font-size: 12px; white-space: nowrap; gap: 8px; }
@media (min-width: 1280px) { .pair-legend { display: flex; } }
#tsv-panel { z-index: 45; }
#sr-results { max-height: 55vh; overflow-y: auto; }
#search-tabs { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid #dbe4ee; }
#search-tabs > div { display: inline-flex; align-items: center; flex-shrink: 0; border: 1px solid #dbe4ee; border-radius: 8px; }
#search-tabs button { padding: 8px 10px; white-space: nowrap; cursor: pointer; }
#search-tabs [role="tab"][aria-selected="true"] { color: #1768ad; background: #e4f0ff; font-weight: 700; border-radius: 8px; }
[data-search-view] { padding: 16px 20px; min-width: 0; }
[data-search-view] .sr-hit { color: #b91c1c; font-weight: 700; }
[data-search-pagination] { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 0; }
.archive-stage { height: 420px; overflow: auto; border: 1px solid #dbe4ee; border-radius: 10px; background: #e8edf2; cursor: grab; }
.archive-stage:active { cursor: grabbing; }
.archive-sheet { position: relative; width: 100%; line-height: 0; }
.archive-sheet > img { display: block; width: 100%; height: auto; }
#reference-credits pre { white-space: pre-wrap; }
#nick { width: 100%; }
button.w { font: inherit; color: inherit; cursor: pointer; border-radius: 3px; }
button.w:hover, button.w:focus-visible { background: #e8f1fc; outline: 1px solid #2779c2; }
[data-ts1] button.w.pair-hover, [data-ed-text] .pair-hover { color: #b91c1c; font-weight: 700; }
[data-card-more] > summary { list-style: none; }
[data-card-more] > summary::-webkit-details-marker { display: none; }
[data-card-more] [data-judgment-up] { display: none; }
[data-card-more][open] [data-judgment-up] { display: inline; }
[data-card-more][open] [data-judgment-down] { display: none; }
.edition-hidden { display: none !important; }
.diff { background: #fff1b8; }
.wordinfo p { margin-top: .4rem; }
.pair-legend span { padding: 0 .2rem; border-radius: 3px; }
#drawer-tree .booktiles > details { grid-column: 1 / -1; }
#drawer-tree .booktiles > details > summary { list-style: none; }
.drawer-status { display: flex; flex-wrap: wrap; gap: .8rem; }
.drawer-status label { display: flex; gap: .25rem; align-items: center; min-height: 2rem; }

.photo-layout { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .photo-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.photo-stage { overflow: auto; max-height: 75vh; }
.photo-stage img { transform-origin: top left; max-width: 100%; }

.chapter-summary { min-width: min(100%, 438.3125px); }

/* 우리 저본·He·She / 1769·1798·1873. 좁은 휴대폰은 읽기 좋게 한 칸씩. */
.verse-editions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
@media (min-width: 640px) { .verse-editions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) {
  .verse-editions[data-visible-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verse-editions[data-visible-count="1"] { grid-template-columns: minmax(0, 1fr); }
}
.photo-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgb(15 23 42 / 35%); padding: 16px; }
.photo-popup { display: flex; flex-direction: column; width: min(1400px, 96vw); height: min(900px, 92vh); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); min-width: min(360px, 90vw); min-height: 300px; resize: both; overflow: hidden; background: #fcfaf6; border: 1px solid #c9dcf3; border-radius: 14px; box-shadow: 0 20px 60px rgb(0 0 0 / 25%); }
.photo-titlebar { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e5e2da; cursor: move; flex: none; }
.photo-titlebar h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-titlebar .btn { white-space: nowrap; }
.photo-popup-content { padding: 16px; overflow: auto; flex: 1; min-height: 0; }
.photo-popup-open { overflow: hidden; }
.photo-popup [data-photo-new-window] { display: none; }
.photo-window #rail, .photo-window #top, .photo-window #foot { display: none !important; }
.photo-stage { cursor: grab; }
.photo-stage:active { cursor: grabbing; }
@media (max-width: 639px) { .photo-titlebar { flex-wrap: wrap; } .photo-popup-content { padding: 10px; } }
[data-progress-label] { border: 1px solid transparent; border-radius: 8px; padding: 2px 7px; cursor: pointer; }
[data-progress-label="D"] { color: #166534; background: #dcfce7; border-color: #86efac; }
[data-progress-label="I"] { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
[data-progress-label="N"] { color: #475569; background: #f1f5f9; border-color: #cbd5e1; }
[data-progress-filter="D"] { accent-color: #16a34a; }
[data-progress-filter="I"] { accent-color: #d97706; }
[data-progress-filter="N"] { accent-color: #64748b; }
[data-progress-label]:has(input:checked) { outline: 2px solid currentColor; outline-offset: 1px; }
/* 상태 색과 독립된 현재 책 표시. 완료/필터의 강조 규칙보다 우선한다. */
@layer components {
  #bible-drawer .tile[aria-current="true"] {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #fff !important;
    font-weight: 700;
  }
}

/* SVG 좌표 속성으로 영역을 겹친다. 인라인 스타일은 쓰지 않는다. */
.remote-region, .remote-region-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.remote-region-overlay rect { fill: #fbbf2426; stroke: #dc2626; stroke-width: 3; vector-effect: non-scaling-stroke; }
.remote-crop img { max-width: 100%; height: auto; }
[data-remote-photo] iframe { width: 100%; height: 480px; border: 1px solid #dbe4ee; }
.remote-zoom-25 { width: 25%; }
.remote-zoom-50 { width: 50%; }
.remote-zoom-75 { width: 75%; }
.remote-zoom-100 { width: 100%; }
.remote-zoom-125 { width: 125%; }
.remote-zoom-150 { width: 150%; }
.remote-zoom-175 { width: 175%; }
.remote-zoom-200 { width: 200%; }
.remote-zoom-225 { width: 225%; }
.remote-zoom-250 { width: 250%; }
.remote-zoom-275 { width: 275%; }
.remote-zoom-300 { width: 300%; }
.remote-zoom-325 { width: 325%; }
.remote-zoom-350 { width: 350%; }
.remote-zoom-375 { width: 375%; }
.remote-zoom-400 { width: 400%; }
.remote-zoom-425 { width: 425%; }
.remote-zoom-450 { width: 450%; }
.remote-zoom-475 { width: 475%; }
.remote-zoom-500 { width: 500%; }

/* 책 이름은 두 줄 모두 유지하고 선택한 표기를 크게 표시한다. */
.book-labels { display: flex; flex-direction: column; align-items: center; gap: .15rem; white-space: normal; overflow-wrap: anywhere; }
.book-abbr { font-size: 1.1rem; font-weight: 700; }
.book-kjv { font-size: .7rem; font-weight: 400; }
.tile:has(.book-labels) { height: auto; min-height: 3.75rem; padding-block: .5rem; }
[data-book-label="kjv"] .book-kjv { order: -1; font-size: 1rem; font-weight: 700; }
[data-book-label="kjv"] .book-abbr { font-size: .7rem; font-weight: 400; }
.book-label-setting { display: grid; gap: .35rem; }
.source-links { display: grid; gap: .5rem; }
.source-links li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* 상태는 글자 배지와 함께 표시하며 판독 글은 보존한다. */
.font-serif.is-superseded, .is-superseded [data-ed-text], .is-superseded .diff, .is-superseded .font-serif { color: #64748b; }
