/* 화면 담당 전용 — css/ds-arena.css. 디자인 시스템 v1(ds.css)의 st-* 컴포넌트를 쓰는 이 화면의 스타일만 둔다.
   경기장(.ar-*)과 제출 상세(.sub-*) 두 화면. app.css의 옛 규칙(.lb-* .feed-* .stat* .panel .table …)은 홈이 아직 쓰므로 건드리지 않고,
   이 화면 안에서만 .ar-page·.sub-page 아래로 덮는다. */

/* 한글은 낱말 단위로 줄을 바꾼다(글자 사이에서 끊지 않는다). 낱말이 칸보다 길면(주소·해시) 그때만 아무 데서나 끊는다. */
.ar-page, .sub-page { word-break: keep-all; overflow-wrap: anywhere; }

/* ============================================================
   경기장
   ============================================================ */
.ar-page .page-head { margin-bottom: var(--st-space-8); }
.ar-page .page-head p { max-width: 620px; line-height: 1.65; }
.ar-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-2) var(--st-space-3); margin-top: var(--st-space-5); }

/* 연결 상태: 알약 옆의 작은 글 + 점 */
.ar-page .conn { gap: 8px; font: 600 13px/1 var(--st-font-sans); letter-spacing: -0.01em; color: var(--st-ink-3); }
.ar-page .conn i { width: 8px; height: 8px; background: var(--st-ink-3); box-shadow: none; animation: none; }
.ar-page .conn.live { color: var(--st-ink-2); }
.ar-page .conn.live i { background: var(--st-ok); color: var(--st-ok); box-shadow: 0 0 0 0 currentColor; animation: ar-ping 1.8s ease-out infinite; }
.ar-page .conn.poll i { background: var(--st-warn); }
@keyframes ar-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* 숫자 보드 */
.ar-stats { margin-bottom: var(--st-space-6); }
.ar-stats .st-stat-value { font-size: clamp(34px, 4.2vw, 44px); white-space: nowrap; }
.ar-stats .st-stat-value small { font-size: 16px; }
.ar-stats .meter { height: 6px; margin-top: var(--st-space-3); border-radius: var(--st-radius-pill); background: var(--st-paper-deep); overflow: hidden; }
.ar-stats .meter > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--st-brand); box-shadow: none; transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

/* 로그인 안내 말풍선 */
.ar-note { margin: 0 0 var(--st-space-8); max-width: 780px; }
.ar-note .st-callout-bubble p { margin-bottom: var(--st-space-3); max-width: 62ch; }

/* 두 칸: 순위표 | 피드 */
.ar-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--st-space-10); align-items: start; margin-top: var(--st-space-8); }
.ar-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-2) var(--st-space-3); margin-bottom: var(--st-space-4); min-height: 32px; }
.ar-sec-head h2 { margin: 0; font: var(--st-type-h3); letter-spacing: var(--st-type-h3-ls); }
.ar-sec-head .spacer { flex: 1; }
.ar-sec-head .st-pill { height: 26px; font-size: 12.5px; }
.ar-asof { color: var(--st-ink-3); font: 600 12.5px/1.2 var(--st-font-sans); font-variant-numeric: tabular-nums; }

/* 순위표 */
.ar-board { box-shadow: var(--st-shadow-sm); }
.ar-board[hidden], .ar-ver-note[hidden] { display: none; }
.ar-ver-note { margin: 0 0 var(--st-space-6); max-width: 70ch; }
.ar-vstats { margin-bottom: var(--st-space-3); }
.ar-sec-head .st-tabs { max-width: 100%; }
.ar-board .st-board-head > :last-child { text-align: right; }
.ar-lb { display: block; position: relative; }
.ar-lb .st-rank-row { position: relative; transition: background-color 0.3s; }
.ar-lb .st-rank-row:first-child { border-top: 0; }
.ar-lb .st-rank-row.flash::after { content: ''; position: absolute; inset: 0; background: var(--st-brand-soft); pointer-events: none; animation: ar-flash 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes ar-flash { from { opacity: 1; } to { opacity: 0; } }
.ar-lb .st-rank-row > * { position: relative; z-index: 1; }
.ar-lb .st-who-name { display: flex; align-items: center; gap: var(--st-space-2); }
.ar-lb .st-who-name .ar-me { flex: none; height: 22px; padding: 0 8px; font-size: 12px; }
.ar-amt { display: grid; justify-items: end; gap: 4px; }
.ar-amt .st-pill { height: 22px; padding: 0 8px; font-size: 12px; }

/* 비어 있음·불러오지 못함·기다리는 중 */
.ar-empty { display: grid; justify-items: center; gap: var(--st-space-3); padding: var(--st-space-12) var(--st-space-6); text-align: center; color: var(--st-ink-2); }
.ar-empty p { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.6; text-wrap: balance; }
.ar-sec .loader { min-height: 0; padding: var(--st-space-4) 0 var(--st-space-2); }
.ar-skel { display: grid; gap: var(--st-space-3); padding: var(--st-space-4) var(--st-space-6); }
.ar-feed > .ar-skel { padding: 0; }
.ar-skel i { display: block; border-radius: var(--st-radius-md); }

/* 피드(말풍선) */
.ar-feed { gap: var(--st-space-3); }
.ar-feed > .ar-empty { padding-top: var(--st-space-8); }
.ar-feed .st-feed-item { color: inherit; text-decoration: none; animation: ar-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes ar-pop { from { opacity: 0; transform: translateY(-10px) scale(0.96); } to { opacity: 1; transform: none; } }
.ar-feed a.st-feed-item:hover .st-bubble { background: var(--st-paper-deep); }
.ar-feed .st-bubble { transition: background-color 0.2s; }
.ar-feed .st-bubble p { color: var(--st-ink); overflow-wrap: anywhere; }
.ar-feed .feed-name { font-weight: 700; letter-spacing: -0.02em; }
.ar-feed .st-feed-item.wd .st-bubble { background: var(--st-paper-sunk); }
.ar-feed .st-feed-item.wd .feed-name { text-decoration: line-through; text-decoration-color: var(--st-danger); text-decoration-thickness: 1.5px; color: var(--st-ink-2); }
.ar-feed .st-feed-item.wd .st-bubble p { color: var(--st-ink-2); }
.ar-feed .feed-hold { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-2); }
.ar-feed .feed-amts { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--st-space-2); }
.ar-feed .feed-amt { font: 800 16px/1.3 var(--st-font-sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--st-ink); }
.ar-feed .feed-amt.neg { color: var(--st-danger); }
.ar-feed .feed-amt.dim { color: var(--st-ink-2); font-weight: 600; }
.ar-feed .feed-sub { font: 600 12.5px/1.3 var(--st-font-sans); color: var(--st-ink-3); font-variant-numeric: tabular-nums; }
.ar-feed .st-feed-item.held .feed-amt { opacity: 1; }
/* 보류 표지: 알약(경고색 + 글자) — 마크업은 ui.js feedAmtHTML이 만든다 */
.ar-feed .held-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 0; border-radius: var(--st-radius-pill); background: var(--st-warn-soft); color: var(--st-warn); font: 700 12px/1 var(--st-font-sans); letter-spacing: -0.01em; cursor: help; }
.ar-feed .held-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ar-more { justify-self: center; margin-top: var(--st-space-2); }

@media (max-width: 1080px) {
  .ar-grid { grid-template-columns: minmax(0, 1fr); gap: var(--st-space-12); }
}
@media (max-width: 720px) {
  .ar-page .page-head { margin-bottom: var(--st-space-6); }
  /* 숫자 보드는 휴대폰에서도 2×2로 — 한 줄씩 세우면 첫 화면이 숫자만 남는다 */
  .ar-stats { grid-template-columns: 1fr 1fr; }
  .ar-stats .st-stat { padding: var(--st-space-5) var(--st-space-4); box-shadow: none; }
  .ar-stats .st-stat:nth-child(2) { box-shadow: inset 1px 0 0 var(--st-line); }
  .ar-stats .st-stat:nth-child(3) { box-shadow: inset 0 1px 0 var(--st-line); }
  .ar-stats .st-stat:nth-child(4) { box-shadow: inset 1px 0 0 var(--st-line), inset 0 1px 0 var(--st-line); }
  .ar-stats .st-stat-value { font-size: 30px; }
  .ar-stats .st-stat:first-child .st-stat-value { font-size: clamp(24px, 7vw, 30px); }
  .ar-stats .st-stat-label { font-size: 13px; }
  .ar-grid { margin-top: var(--st-space-6); gap: var(--st-space-10); }
  /* 긴 핸들(24자)도 잘리지 않게 이름은 줄바꿈을 허용한다 */
  .ar-lb .st-who-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; display: block; }
  .ar-lb .st-who-name .ar-me { margin-left: 6px; vertical-align: 1px; }
  .ar-lb .st-rank-row { padding-block: var(--st-space-3); align-items: center; }
  .ar-lb .st-amount { font-size: 16px; }
}

/* ============================================================
   제출 상세 (아래 .sub-*)
   ============================================================ */
.sub-page .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--st-space-2); margin-bottom: var(--st-space-5); font: 600 14px/1.4 var(--st-font-sans); letter-spacing: -0.01em; color: var(--st-ink-3); }
.sub-page .crumbs a { color: var(--st-ink-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.sub-page .crumbs a:hover { color: var(--st-ink); text-decoration-color: var(--st-brand); }
.sub-page .crumbs span:last-child { font-variant-numeric: tabular-nums; }

/* 머리 */
.sub-head { margin-bottom: var(--st-space-10); }
.sub-pills { gap: var(--st-space-2); }
.sub-head h1 { margin: var(--st-space-4) 0 var(--st-space-4); font: var(--st-type-h1); letter-spacing: var(--st-type-h1-ls); font-size: clamp(30px, 4.2vw, 44px); text-wrap: balance; overflow-wrap: anywhere; }
.sub-head h1.sub-untitled { font-size: clamp(22px, 3vw, 28px); color: var(--st-ink-2); font-weight: 700; }
.sub-by { display: flex; align-items: center; gap: var(--st-space-3); }
.sub-by b { font: 700 17px/1.3 var(--st-font-sans); letter-spacing: -0.02em; }
#reject-note { margin-top: var(--st-space-5); max-width: 68ch; } /* 운영진 반려 안내(본인에게만) */
#reject-note .st-callout-bubble p { line-height: 1.7; }
.sub-caption { max-width: 68ch; margin: var(--st-space-4) 0 0; color: var(--st-ink-2); font: var(--st-type-small); letter-spacing: var(--st-type-small-ls); line-height: 1.65; }

/* 내 근거 점검 결과(나에게만 보임): 움푹한 면 */
.sub-lint { display: grid; gap: var(--st-space-3); margin-top: var(--st-space-5); padding: var(--st-space-5) var(--st-space-6); border-radius: var(--st-radius-lg); background: var(--st-paper-sunk); }
.sub-lint-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--st-space-1) var(--st-space-4); font-size: 15px; }
.sub-quiet { color: var(--st-ink-2); font-weight: 500; font-size: 14px; line-height: 1.6; }
.sub-meta { color: var(--st-ink-2); font: 600 12.5px/1.4 var(--st-font-sans); font-variant-numeric: tabular-nums; }
.sub-fact { color: var(--st-ink); font-weight: 700; white-space: nowrap; }
.sub-lint-line { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: var(--st-space-2) var(--st-space-3); align-items: center; font-size: 14px; }
.sub-lint-line code, .sub-table code { font: var(--st-type-code); font-size: 13px; letter-spacing: 0; color: var(--st-ink); overflow-wrap: anywhere; }
.sub-lint-line .reason { color: var(--st-ink-2); overflow-wrap: anywhere; line-height: 1.55; }
.sub-hints { margin: 0; padding-left: 20px; color: var(--st-ink-2); font-size: 14px; line-height: 1.6; }
.sub-lint-act { margin-top: var(--st-space-1); }
.sub-lint-act .st-callout-bubble p { margin-bottom: var(--st-space-3); }
.sub-lint-act .st-callout-bubble p:last-child { margin-bottom: 0; }

/* 숫자 보드 */
.sub-stats .st-stat-value.sub-dim, .sub-dim { color: var(--st-ink-3); }
.sub-stats .st-stat-value { overflow-wrap: anywhere; }
.sub-stats .st-stat-value.sub-state { font-size: 32px; padding-top: 6px; }

/* 섹션: 카드로 싸지 않고 위 여백 + 머리글로 나눈다 */
.sub-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--st-space-10); align-items: start; }
.sub-sec { margin-top: var(--st-space-12); }
.sub-two > .sub-sec { margin-top: var(--st-space-12); }
.sub-h { margin: 0 0 var(--st-space-4); font: var(--st-type-h2); letter-spacing: var(--st-type-h2-ls); font-size: clamp(24px, 3vw, 32px); }
.sub-sec-head { display: flex; align-items: center; gap: var(--st-space-3); margin-bottom: var(--st-space-3); }
.sub-sec-head .sub-h { margin: 0; }
.sub-sec-head .st-pill { height: 26px; font-size: 12.5px; }
.sub-note { max-width: 64ch; margin: 0 0 var(--st-space-4); color: var(--st-ink-2); font-size: 14.5px; line-height: 1.65; }
.sub-claim { margin: 0; max-width: 65ch; white-space: pre-wrap; overflow-wrap: anywhere; font: var(--st-type-body); letter-spacing: var(--st-type-body-ls); line-height: 1.7; }
.sub-scope { margin: var(--st-space-4) 0 0; color: var(--st-ink-2); font-size: 15px; line-height: 1.65; }
.sub-scope b { color: var(--st-ink); margin-right: 4px; }
.sub-code { margin-top: var(--st-space-5); }
.sub-code .st-code-head { padding-block: var(--st-space-3); }
.sub-code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.sub-empty { margin: 0; padding: var(--st-space-6) 0; color: var(--st-ink-2); font-size: 15px; }

/* 수정 이력 */
.sub-revs { border-top: 1px solid var(--st-line); }
.sub-rev { display: grid; gap: 4px; padding: var(--st-space-4) 0; border-bottom: 1px solid var(--st-line); }
.sub-rev-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--st-space-2) var(--st-space-4); }
.sub-rev-no { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-2); font: 700 16px/1.4 var(--st-font-sans); letter-spacing: -0.02em; }
.sub-rev-no .st-pill { height: 24px; font-size: 12px; }
.sub-rev-amt { font: 800 18px/1.3 var(--st-font-sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: right; }
.sub-rev-amt small { font-size: 13px; font-weight: 700; letter-spacing: 0; }
.sub-rev-sub { display: flex; flex-wrap: wrap; gap: 2px var(--st-space-4); color: var(--st-ink-2); font: 600 13px/1.5 var(--st-font-sans); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sub-up { color: var(--st-ok); font-weight: 700; }
.sub-down { color: var(--st-danger); font-weight: 700; }

/* 납품 사실 표 */
.sub-lines > .st-callout { margin-bottom: var(--st-space-4); }
.sub-page .ex-table { margin-top: var(--st-space-4); border: 1px solid var(--st-line); border-radius: var(--st-radius-lg); background:
    linear-gradient(to right, var(--st-paper) 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--st-paper) 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(25, 23, 20, 0.14), rgba(25, 23, 20, 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(25, 23, 20, 0.14), rgba(25, 23, 20, 0)) right center / 14px 100% no-repeat scroll; }
.sub-page .ex-hint { margin: var(--st-space-3) 0 0; color: var(--st-ink-3); }
.sub-table { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sub-table th { padding: 0 var(--st-space-5); height: 44px; background: var(--st-paper-sunk); color: var(--st-ink-2); font: 600 12.5px/1 var(--st-font-sans); letter-spacing: 0; text-align: left; white-space: nowrap; }
.sub-table td { padding: var(--st-space-4) var(--st-space-5); border-top: 1px solid var(--st-line); font: 600 15px/1.4 var(--st-font-sans); }
.sub-table tbody tr:first-child td { border-top: 0; }
.sub-table .num { text-align: right; white-space: nowrap; }
.sub-table td.sub-strong { font-weight: 800; }
.sub-table td.sub-dim { color: var(--st-ink-3); }
.sub-evidence { margin-top: var(--st-space-6); }
.sub-evidence > .dim { color: var(--st-ink-2); font-size: 14px; font-weight: 600; }
.sub-evidence .stack { gap: var(--st-space-3); margin-top: var(--st-space-3); }
.sub-evidence .ev-row { display: grid; gap: var(--st-space-3); padding: var(--st-space-4) var(--st-space-5); border-radius: var(--st-radius-md); background: var(--st-paper-sunk); font-size: 14px; color: var(--st-ink-2); }
.sub-evidence .ev-row .dim { color: var(--st-ink-2); }
.sub-evidence .ev-row .pill { height: 26px; padding: 0 10px; background: var(--st-paper); box-shadow: inset 0 0 0 1px var(--st-line); color: var(--st-ink); font-size: 12px; font-weight: 700; }
.sub-evidence .ev-row .pill.mono { font-family: var(--st-font-mono); font-weight: 500; }
.sub-page .ev-link:hover { color: var(--st-brand-ink); }
.sub-evidence .ev-src { font-size: 13px; font-weight: 600; color: var(--st-brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.sub-evidence .ev-facts { color: var(--st-ink-2); font: 600 12.5px/1.4 var(--st-font-sans); }
.sub-evidence .ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-2) var(--st-space-3); }
.sub-evidence .ev-kind { color: var(--st-ink); font: 700 15px/1.3 var(--st-font-sans); letter-spacing: -0.02em; }
.sub-evidence .ev-cells { display: flex; flex-wrap: wrap; gap: var(--st-space-2) var(--st-space-6); }
.sub-evidence .ev-cell { display: grid; gap: 2px; }
.sub-evidence .ev-cell small { color: var(--st-ink-2); font: 600 12px/1.3 var(--st-font-sans); }
.sub-evidence .ev-cell b { color: var(--st-ink); font: 700 15px/1.35 var(--st-font-sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sub-dev { margin-top: var(--st-space-4); color: var(--st-ink-2); font-size: 13px; }
.sub-dev summary { cursor: pointer; font-weight: 600; width: fit-content; }
.sub-dev dl { display: grid; gap: var(--st-space-1); margin: var(--st-space-3) 0 0; }
.sub-dev dl div { display: flex; flex-wrap: wrap; gap: var(--st-space-3); }
.sub-dev dt { min-width: 7em; font-weight: 600; }
.sub-dev dd { margin: 0; }
.sub-dev code { font: var(--st-type-code); font-size: 12.5px; letter-spacing: 0; color: var(--st-ink); overflow-wrap: anywhere; }
.sub-evidence .ev-quote { flex-basis: 100%; margin: var(--st-space-1) 0 0 !important; padding: 0 !important; border-left: 0 !important; color: var(--st-ink) !important; font-size: 14px !important; line-height: 1.6; }

/* 공개 반증 */
.sub-ctrs { margin-bottom: var(--st-space-6); }
.sub-ctr .st-bubble p { color: var(--st-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.sub-ctr .st-bubble-top .st-pill { height: 22px; font-size: 12px; padding: 0 8px; }
.sub-ctr .st-row .pill { height: 26px; padding: 0 10px; background: var(--st-paper); color: var(--st-ink); font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--st-line); text-decoration: none; }
.sub-form { display: grid; gap: var(--st-space-5); max-width: none; padding-top: var(--st-space-6); border-top: 1px solid var(--st-line); }
.sub-form .st-label .st-hint { margin-left: 6px; font-weight: 600; }
.sub-drop { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--st-space-2); min-height: 140px; padding: var(--st-space-6); border: 1.5px dashed var(--st-line-strong); border-radius: var(--st-radius-lg); background: var(--st-paper-warm); text-align: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.sub-drop:hover, .sub-drop.drag { border-color: var(--st-brand-ink); background: var(--st-brand-soft); }
.sub-drop svg { width: 28px; height: 28px; color: var(--st-brand-ink); }
.sub-drop b { font: 700 15px/1.3 var(--st-font-sans); }
.sub-drop small { max-width: 52ch; color: var(--st-ink-2); font-size: 13px; line-height: 1.55; }
.sub-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sub-drop:focus-within { box-shadow: var(--st-shadow-focus); }
.sub-files { display: grid; gap: var(--st-space-2); }
.sub-files:empty { display: none; }
.sub-file { display: flex; align-items: center; gap: var(--st-space-3); padding: var(--st-space-2) var(--st-space-3) var(--st-space-2) var(--st-space-4); border-radius: var(--st-radius-md); background: var(--st-paper-sunk); min-width: 0; }
.sub-file b { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-file-st { flex: none; color: var(--st-ink-2); font: 600 12.5px/1.3 var(--st-font-sans); font-variant-numeric: tabular-nums; }
.sub-err { color: var(--st-danger); font-weight: 700; }
.sub-file .upl-del { margin-left: auto; flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--st-ink-2); font-size: 18px; }
.sub-file .upl-del:hover { background: var(--st-danger-soft); color: var(--st-danger); }
.sub-page .form-msg { min-height: 22px; font: 600 14px/1.5 var(--st-font-sans); color: var(--st-ink-2); }
.sub-page .form-msg:empty { min-height: 0; }
.sub-page .form-msg.err { color: var(--st-danger); }
.sub-page .form-msg.ok { color: var(--st-ok); }
.sub-withdraw { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--st-space-5) var(--st-space-8); padding: var(--st-space-6) var(--st-space-8); border-radius: var(--st-radius-xl); background: var(--st-paper-sunk); }
.sub-withdraw > div { flex: 1; min-width: 260px; }
.sub-withdraw .sub-note { margin: 0; }

@media (max-width: 1080px) {
  .sub-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 720px) {
  .sub-head { margin-bottom: var(--st-space-8); }
  .sub-sec, .sub-two > .sub-sec { margin-top: var(--st-space-10); }
  .sub-lint { padding: var(--st-space-4); }
  .sub-lint-line { grid-template-columns: auto minmax(0, 1fr); }
  .sub-lint-line .reason { grid-column: 1 / -1; }
  .sub-lint-line .st-pill { justify-self: start; }
  .sub-stats .st-stat { padding: var(--st-space-5) var(--st-space-6); }
  .sub-stats .st-stat-value { font-size: 36px; }
  .sub-withdraw { padding: var(--st-space-5); }
  .sub-withdraw .st-btn { width: 100%; }
  .sub-evidence .ev-row { padding: var(--st-space-3) var(--st-space-4); }
}

/* ---------- 제출 상세: 검증 결과 칸 ---------- */
.sub-form[hidden] { display: none; }
.sub-verdict { padding: var(--st-space-6); border: 1px solid var(--st-line); border-radius: var(--st-radius-lg); background: var(--st-paper); box-shadow: var(--st-shadow-sm); }
.sub-vamt { display: flex; flex-wrap: wrap; gap: var(--st-space-3) var(--st-space-8); margin-bottom: var(--st-space-3); }
.sub-vamt > div { display: grid; gap: 2px; }
.sub-vamt b { font: 800 20px/1.3 var(--st-font-sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sub-vamt .sub-vamt-main { font-size: 28px; }
.sub-h3 { margin: 0 0 var(--st-space-2); font: 700 15px/1.4 var(--st-font-sans); }
.sub-reason, .sub-vlinks, .sub-spec, .sub-appeal-area, .sub-appeals { margin-top: var(--st-space-6); }
.sub-reason-text { margin: 0; padding: var(--st-space-4) var(--st-space-5); border-radius: var(--st-radius-md); background: var(--st-paper-warm); color: var(--st-ink); font: 500 15px/1.7 var(--st-font-sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.sub-hint { margin-top: var(--st-space-6); }
.sub-hint .sub-reason-text { margin-bottom: var(--st-space-3); }
.sub-vlinks ul { margin: 0; padding-left: 1.2em; }
.sub-vlinks li { overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.7; }
.sub-core-toggle { margin-left: auto; }
.sub-spec-table caption { padding: var(--st-space-3) var(--st-space-5); text-align: left; color: var(--st-ink-2); font: 600 13px/1.5 var(--st-font-sans); overflow-wrap: anywhere; }
.sub-spec-table { min-width: 560px; }
.sub-spec-table td { overflow-wrap: anywhere; }
.sub-spec.core-only tbody tr:not([data-core]) { display: none; }
.sub-spec-src { margin-top: 2px; font-size: 13px; }
.sub-line-reason { margin-top: var(--st-space-2); max-width: 46ch; color: var(--st-ink-2); font: 500 13px/1.55 var(--st-font-sans); overflow-wrap: anywhere; }
.sub-appeal { padding: var(--st-space-4) 0; border-top: 1px solid var(--st-line); }
.sub-appeal-body { margin: var(--st-space-2) 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.65; }
@media (max-width: 720px) {
  .sub-verdict { padding: var(--st-space-5) var(--st-space-4); }
  .sub-vamt .sub-vamt-main { font-size: 24px; }
}
/* 확정 전 「이의 신청 기간」 안내는 문장이라 줄바꿈을 허용하고 금액보다 작게 */
.ar-vstats .st-stat-value.ar-vperiod { white-space: normal; font-size: clamp(18px, 2vw, 22px); }
