/* ==========================================================================
   app-v3.css — 전체 디자인 공통 (2026-11-03, Claude)
   screens-v2.css(GPT, 홈·주간·달력·내 정보 승인본) 의 디자인을 앱 전체로 넓힙니다.
   맨 마지막에 읽습니다. TOP10(#rankView) 이 보일 때는 아무 규칙도 적용되지 않습니다.
   요소 id·class 와 동작은 바꾸지 않고 모양만 덮어씁니다.
   ========================================================================== */

/* ① 공통 바탕 · 머리글 · 하단 메뉴 ------------------------------------------ */
body:not(:has(#rankView:not([hidden]))){
  --bg:#f8f8f3;--ink:#103b30;--text:#142d29;--signal:#d7ef8a;--ink-2:#637078;--line:#e2e5dd;
  --v3-card:#fff;--v3-radius:18px;--v3-radius-s:12px;--v3-shadow:0 6px 18px #143d3008;
  background:var(--bg)}
body:not(:has(#rankView:not([hidden]))) main{font-family:'Noto Sans KR','Malgun Gothic',sans-serif;color:var(--text)}
body:not(:has(#rankView:not([hidden]))) header{background:var(--bg);border:0}
body:not(:has(#rankView:not([hidden]))) .head-in{padding:16px 16px 12px}
body:not(:has(#rankView:not([hidden]))) .brand-name{font-size:23px;font-weight:800;letter-spacing:-.06em}
body:not(:has(#rankView:not([hidden]))) .brand-sub{font-size:11px;letter-spacing:.1em}
body:not(:has(#rankView:not([hidden]))) .brand img{width:43px}
body:not(:has(#rankView:not([hidden]))) .me-btn{background:#fff;border:1px solid var(--line);border-radius:99px;padding:6px 12px}
body:not(:has(#rankView:not([hidden]))) .me-btn.on{background:var(--ink);color:#fff;border-color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) .me-btn.bad{background:#fff4f4;color:#c0392b;border-color:#e6b3b3}
body:not(:has(#rankView:not([hidden]))) .wrap{padding-left:12px;padding-right:12px}
body:not(:has(#rankView:not([hidden]))) .tabbar{border-radius:0;background:#fafaf7f5;border-top:1px solid #e9ebe4;
  padding:5px 5px max(5px,env(safe-area-inset-bottom));box-shadow:0 -3px 18px #143d3004}
body:not(:has(#rankView:not([hidden]))) .tabbar button{min-height:54px;font-size:10px;gap:2px;border-radius:99px;position:relative;font-weight:500;color:var(--ink-2)}
body:not(:has(#rankView:not([hidden]))) .tabbar button[aria-pressed=true]{background:#e5f5ad;color:var(--ink);font-weight:700}
body:not(:has(#rankView:not([hidden]))) .tabbar svg{width:25px;height:25px;padding:0;border-radius:0}
body:not(:has(#rankView:not([hidden]))) .tabbar button[aria-pressed=true] svg{background:none}
@media(max-width:350px){
  body:not(:has(#rankView:not([hidden]))) .head-in{padding:12px}
  body:not(:has(#rankView:not([hidden]))) .brand{min-width:150px}
  body:not(:has(#rankView:not([hidden]))) .brand-name{font-size:20px}
  body:not(:has(#rankView:not([hidden]))) .brand img{width:37px}
}

/* 공통 화면 제목 (경기 기록·게시판 등 각 화면 맨 위) */
.v3-page-h{padding:18px 4px 4px}
.v3-page-h h1{font-size:24px;font-weight:800;letter-spacing:-.04em;margin:0;color:var(--ink)}
.v3-page-h p{font-size:12px;color:var(--ink-2);margin:5px 0 20px}
body:has(#rankView:not([hidden])) .v3-page-h{display:none}

/* ③ 경기 기록 (#resultView) — Codex 시안 out_v6/A/result.html ------------------- */
#resultView .mo-nav{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px;padding:0}
#resultView .mo-label{font-size:21px;font-weight:750;letter-spacing:-.04em;font-family:'Noto Sans KR',sans-serif;color:var(--ink)}
#resultView .mo-nav button{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:50%;font-size:22px;line-height:1;color:var(--ink);display:grid;place-items:center;padding:0}
#resultView .mo-nav button:disabled{opacity:.35}
#resultView .res-filter{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:17px}
#resultView .res-filter button{border:1px solid var(--line);background:transparent;border-radius:20px;padding:7px 16px;font-size:12px;color:var(--text);font-weight:500;height:auto}
#resultView .res-filter button.on{background:#163e32;color:#fff;border-color:#163e32}
#resultView .res-sum{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:0;padding:16px 0;background:#edf1e7;border-radius:14px;margin-bottom:23px}
#resultView .res-sum>div{padding:0 12px;min-width:0;background:none;border:0;border-radius:0;text-align:left}
#resultView .res-sum>div+div{border-left:1px solid #d9e0d1}
#resultView .res-sum .k{font-size:10px;color:var(--ink-2);margin-bottom:4px}
#resultView .res-sum .v{font-family:'Noto Sans KR',sans-serif;font-size:25px;font-weight:750;line-height:1.4;color:var(--ink);margin:0}
#resultView .res-sum .v.name{font-size:16px;padding-top:7px;white-space:normal;overflow-wrap:anywhere}
#resultView #resTabs{display:flex;border-bottom:1px solid var(--line);gap:0;margin-bottom:15px;background:none;padding:0;border-radius:0}
#resultView #resTabs button{flex:1;border:0;background:none;padding:11px 0;font-size:14px;color:var(--ink-2);border-bottom:3px solid transparent;border-radius:0;font-weight:500;box-shadow:none}
#resultView #resTabs button.on{font-weight:750;color:var(--ink);border-bottom-color:var(--ink);background:none}
#resultView .rcard{border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px 13px 0;margin-bottom:12px;overflow:hidden}
#resultView .rcard-h{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;margin:0}
#resultView .rcard-h .d{font-size:11px;font-weight:700}
#resultView .rcard-h .chip{font-size:10px;color:#163e32;background:#edf1e7;border:0;border-radius:5px;padding:3px 6px}
#resultView .rc-act{margin-left:auto;display:flex;gap:5px;flex-wrap:wrap}
#resultView .rc-act .br-btn{background:#fff;border:1px solid #dce2d6;border-radius:6px;padding:5px 7px;font-size:10px;color:var(--ink);height:auto;min-height:0}
#resultView .rcard-t{margin:12px 0 17px}
#resultView .rcard-t .t{font-weight:750;font-size:15px;color:var(--text);overflow-wrap:anywhere;letter-spacing:-.02em;white-space:normal}
#resultView .podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;align-items:end;text-align:center;padding:0 3px;border:0}
#resultView .pod-nm{display:block;font-size:12px;font-weight:600;padding:0 2px 8px;margin:0;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#resultView .pod-col.c1 .pod-nm{font-size:12px;font-weight:600}
#resultView .pod-bar{display:block;height:33px;background:#f0f2ec;border-radius:7px 7px 0 0;padding:5px;font-weight:750;font-size:12px;color:var(--ink-2);box-shadow:none}
#resultView .pod-col.c1 .pod-bar{height:48px;background:#d7ef8a;color:var(--ink)}
#resultView .pod-col.c2 .pod-bar{height:38px;background:#e5eade;color:var(--ink-2)}
#resultView .pod-col.c3 .pod-bar{height:33px;background:#f0f2ec;color:var(--ink-2)}
#resultView .pod-bar.empty{opacity:.6}
#resultView .prow-emp{font-size:12px;color:var(--ink-2);padding:4px 0 15px;border:0}
#resultView .plist{position:relative;margin-top:28px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:0 13px;overflow:visible;max-height:none}
#resultView .plist::before,#resultView .plist::after{position:absolute;top:-22px;font-size:10px;color:var(--ink-2)}
#resultView .plist::before{content:"순위 · 이름";left:5px}
#resultView .plist::after{content:"1위 / 2위 / 3위 횟수";right:5px}
#resultView .pline{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:64px;padding:12px 0;border:0}
#resultView .pline+.pline{border-top:1px solid #edf0e8}
#resultView .pline .no{font-family:inherit;font-size:12px;color:var(--ink-2);width:auto;font-variant-numeric:tabular-nums}
#resultView .pline:first-child .no{color:var(--ink);font-weight:800}
#resultView .pline .nk{font-size:14px;font-weight:650;white-space:normal;overflow-wrap:anywhere}
#resultView .pline .cnt{display:flex;gap:5px}
#resultView .pline .cnt span{display:grid;place-items:center;width:25px;height:28px;padding:0;border-radius:6px;font-family:inherit;font-weight:750;font-size:12px}
#resultView .pline .cnt .m1{background:#d7ef8a;color:var(--ink)}
#resultView .pline .cnt .m2{background:#e5eade;color:#465747}
#resultView .pline .cnt .m3{background:#f2ede2;color:#7b6549}
#resultView .empty{border:1px dashed var(--line);border-radius:14px;background:#fff;color:var(--ink-2);padding:28px 12px;text-align:center;font-size:13px}
@media(max-width:340px){
  #resultView .rcard{padding-left:10px;padding-right:10px}
  #resultView .rcard-h{gap:5px}
  #resultView .rc-act .br-btn{padding:5px}
  #resultView .res-sum>div{padding:0 10px}
}

/* ==== 공통 부품 (모든 화면·창) — 승인된 날짜 상세 창·홈 카드와 같은 언어 ==================== */
/* 기존 .pg-h(내 정보 제목)도 공통 제목과 같게 */
body:not(:has(#rankView:not([hidden]))) .pg-h{font-size:24px;font-weight:800;letter-spacing:-.04em;margin:18px 4px 18px}
/* 버튼 */
body:not(:has(#rankView:not([hidden]))) .btn{border-radius:12px;font-weight:700;padding:11px 16px;background:var(--ink);border-color:var(--ink);color:#fff}
body:not(:has(#rankView:not([hidden]))) .btn.ghost{background:#fff;color:var(--ink);border-color:#d7ded2}
body:not(:has(#rankView:not([hidden]))) .btn.ghost.on{background:var(--ink);color:#fff;border-color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) .btn.sm{font-size:12px;padding:8px 13px;border-radius:10px}
/* 입력칸 (인쇄용 대진표 이름칸 .nm 제외) */
body:not(:has(#rankView:not([hidden]))) :is(input[type=text],input[type=number],input[type=date],input[type=time],input[type=month],input[type=password],input[type=search],select,textarea):not(.nm){
  background:#fff;border:1px solid #dce4d7;border-radius:12px;padding:11px 12px;font-size:14px;color:var(--text)}
body:not(:has(#rankView:not([hidden]))) select:not(.nm){background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23637078' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center/12px 8px;padding-right:32px}
body:not(:has(#rankView:not([hidden]))) :is(input,select,textarea):not(.nm):focus{outline:2px solid var(--ink);outline-offset:-1px;border-color:transparent}
body:not(:has(#rankView:not([hidden]))) label.fld{font-size:12px;font-weight:700;color:var(--ink);margin:14px 0 6px}
body:not(:has(#rankView:not([hidden]))) .hint{color:var(--ink-2)}
body:not(:has(#rankView:not([hidden]))) label.ck{display:flex;align-items:center;gap:8px;font-size:13.5px;padding:10px 0;border-bottom:1px solid #edf0e9}
body:not(:has(#rankView:not([hidden]))) input[type=checkbox]{accent-color:var(--ink);width:18px;height:18px}
/* 상자 · 펼침 상자 */
body:not(:has(#rankView:not([hidden]))) main .box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--v3-shadow)}
body:not(:has(#rankView:not([hidden]))) main .box h3{font-size:15px;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) .disc{background:#fff;border:1px solid var(--line);border-radius:16px}
body:not(:has(#rankView:not([hidden]))) .empty{border-radius:14px}
/* 종류 고르기 탭(.rk-tabs) — 알약 */
body:not(:has(#rankView:not([hidden]))) main:not(#resultView) .rk-tabs{gap:6px}
body:not(:has(#rankView:not([hidden]))) main:not(#resultView) .rk-tabs button{border-radius:20px;padding:7px 14px;font-size:12px;border-color:var(--line);background:transparent;color:var(--text)}
body:not(:has(#rankView:not([hidden]))) main:not(#resultView) .rk-tabs button.on{background:#163e32;color:#fff;border-color:#163e32}

/* 아래에서 올라오는 창 — 모든 .modal 공통 (날짜 상세 창과 같은 모양) */
body:not(:has(#rankView:not([hidden]))) .modal{background:rgb(17 37 30 / 45%)}
body:not(:has(#rankView:not([hidden]))) .modal > .sheet{background:#f8f8f3;color:var(--ink);border-radius:28px 28px 0 0;max-height:88dvh;
  padding:14px 18px max(24px,env(safe-area-inset-bottom));box-sizing:border-box;overscroll-behavior:contain;
  font-family:'Noto Sans KR','Malgun Gothic',sans-serif;box-shadow:0 -12px 40px rgb(18 47 36 / 12%)}
body:not(:has(#rankView:not([hidden]))) .modal > .sheet::before{content:'';display:block;width:34px;height:4px;border-radius:8px;background:#cdd6cb;margin:0 auto 16px}
body:not(:has(#rankView:not([hidden]))) .modal > .sheet > .sheet-head{display:flex;align-items:center;gap:10px;margin:0 0 16px !important;padding:0 !important;border:0 !important;background:transparent}
body:not(:has(#rankView:not([hidden]))) .modal > .sheet > .sheet-head > b{font-size:21px !important;font-weight:800 !important;letter-spacing:-.045em;line-height:1.3;color:var(--ink);flex:1;min-width:0}
body:not(:has(#rankView:not([hidden]))) .modal > .sheet > .sheet-head > button:last-child{flex:none;border:1px solid #dce4d8;background:#fff;color:var(--ink);width:38px;height:38px;border-radius:50%;font-size:17px;display:grid;place-items:center;padding:0}
@media(max-width:350px){body:not(:has(#rankView:not([hidden]))) .modal > .sheet{padding-left:12px;padding-right:12px}}

/* ④ 게시판 (#usersView) — Codex 시안 out_v11/board.html ----------------------------- */
#usersView .rule-link{margin:0 0 22px;background:#f3f8e2;border:1px solid #e1ebc3;border-radius:14px;padding:14px;font-size:13px;font-weight:700;color:var(--ink);box-shadow:none}
#usersView .admin-h{font-size:18px;font-weight:800;letter-spacing:-.04em;margin:0 2px 2px;color:var(--ink);display:flex;align-items:center;gap:7px}
#usersView .admin-h::before{content:'';width:18px;height:18px;flex:none;background:var(--ink);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 14.5c0-3 2.4-4 5-4h4c2.4 0 3.5-1.1 3.5-2.7S14.4 5 12 5H5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='4' cy='5' r='1.8'/%3E%3Ccircle cx='3' cy='15.5' r='1.8'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 14.5c0-3 2.4-4 5-4h4c2.4 0 3.5-1.1 3.5-2.7S14.4 5 12 5H5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='4' cy='5' r='1.8'/%3E%3Ccircle cx='3' cy='15.5' r='1.8'/%3E%3C/svg%3E") center/contain no-repeat}
#usersView .admin-p{font-size:12px;color:var(--ink-2);margin:2px 2px 12px}
#usersView .trk-row{gap:10px;margin:0 0 6px}
#usersView .trk-cell{position:relative;gap:0}
#usersView .trk-btn{position:relative;align-items:flex-start;justify-content:flex-end;gap:2px;min-height:112px;padding:12px 14px;border:0;border-radius:16px;text-align:left;
  background:linear-gradient(180deg,#e9eee3 0,#e9eee3 54%,#163e32 54%);overflow:hidden}
#usersView .trk-btn::before{content:'';position:absolute;left:14px;top:14px;width:30px;height:30px;opacity:.55;background:var(--ink);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='18' height='13' rx='3' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='12.5' r='3.3' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M9 6l1.3-2h3.4L15 6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='18' height='13' rx='3' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='12.5' r='3.3' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M9 6l1.3-2h3.4L15 6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat}
#usersView .trk-btn b{font-size:14px;color:#fff;letter-spacing:-.03em}
#usersView .trk-btn span{font-size:11px;color:#c9d8cf}
#usersView .trk-btn.off{opacity:1}
#usersView .trk-btn.off span{color:#9fb3a8}
#usersView .trk-up{position:absolute;right:8px;bottom:10px;width:auto;margin:0;padding:6px 9px;font-size:10.5px;border-radius:8px;background:transparent;color:#fff;border:1px solid #ffffff66}
#usersView .bd-head{margin:26px 2px 12px;padding:0;border:0}
#usersView .bd-head h3{font-size:18px;font-weight:800;letter-spacing:-.04em;color:var(--ink)}
#usersView .bd-new{display:inline-flex;align-items:center;gap:5px;padding:8px 13px;font-size:13px;border-radius:999px}
#usersView .bd-new svg{width:15px;height:15px}
#usersView .bd-tabs{gap:6px;margin:0 0 14px}
#usersView .bd-tab{border-radius:20px;padding:8px 15px;font-size:12.5px;border:1px solid var(--line);background:transparent;color:var(--text);height:auto}
#usersView .bd-tab.on{background:#163e32;color:#fff;border-color:#163e32;font-weight:700}
#usersView .bd-item{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 14px;margin:0 0 10px;box-shadow:var(--v3-shadow);gap:12px}
#usersView .bd-item.is-pin{border:1px solid #c9e07a;background:#fbfdf3}
#usersView .bd-t{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 5px;font-size:15px;font-weight:700;letter-spacing:-.03em;color:var(--text)}
#usersView .bd-t .bd-badge:first-of-type{margin-left:auto}
#usersView .bd-badge{font-size:10px;font-weight:700;padding:3px 7px;border-radius:6px;background:#edf1e7;color:#163e32;line-height:1.3}
#usersView .bd-badge.pin{background:#d7ef8a;color:#163e32}
#usersView .bd-badge.yt{background:#163e32;color:#fff}
#usersView .bd-clip{flex-basis:100%;margin:0;font-size:11px}
#usersView .bd-meta{margin-top:8px;font-size:11.5px;color:var(--ink-2)}
#usersView .bd-meta .dt{font-family:inherit}
#usersView .bd-th{width:64px;height:64px;border-radius:12px}
#usersView .bd-pager{gap:6px;margin:18px 0 6px}
#usersView .bd-pager button{min-width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--text);font-size:13px;padding:0}
#usersView .bd-pager button.on{background:#163e32;color:#fff;border-color:#163e32}
#usersView .empty{background:#fff;border:1px dashed #d7ded2;color:var(--ink-2)}

/* 글 보기 · 글쓰기 창 */
#bdPost .bd-post-meta{font-size:12px;color:var(--ink-2);margin:-6px 0 16px;padding:0 0 14px;border-bottom:1px solid #e3e8df}
#bdPost .bd-body{font-size:14.5px;line-height:1.75;color:var(--text)}
#bdPost .nt-img,#bdPost .nt-yt{border-radius:14px}
#bdPost .bd-files{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px}
#bdPost .bd-file{border-radius:10px}
#bdPostTools{justify-content:flex-end}
#bdWrite .sheet .btnrow{position:sticky;bottom:calc(-1 * max(24px,env(safe-area-inset-bottom)));margin:18px -18px 0;padding:12px 18px max(14px,env(safe-area-inset-bottom));background:#f8f8f3;border-top:1px solid #e3e8df}
#bdWrite .sheet .btnrow .btn{flex:1}
#bdWrite #bdPopOpt{background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px 14px 12px;margin-top:8px}
#bdWrite .nt-th{border-radius:12px}
#bdWrite .nt-th button{background:#163e32;color:#fff}
#bdWrite input[type=file]{font-size:12.5px;width:100%}
#bdWrite input[type=file]::file-selector-button{font:inherit;font-weight:700;border:1px solid #d7ded2;background:#fff;color:var(--ink);border-radius:10px;padding:8px 12px;margin-right:10px}

/* 공지 팝업 (#ntModal) — 아래에서 올라오는 창으로 */
body:not(:has(#rankView:not([hidden]))) #ntModal{align-items:flex-end}
body:not(:has(#rankView:not([hidden]))) #ntModal .nt-in{width:100%;max-width:560px;max-height:88dvh;border-radius:28px 28px 0 0;background:#f8f8f3;color:var(--ink);
  padding:14px 18px max(22px,env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgb(18 47 36 / 12%);font-family:'Noto Sans KR','Malgun Gothic',sans-serif}
body:not(:has(#rankView:not([hidden]))) #ntModal .nt-in::before{content:'';display:block;width:34px;height:4px;border-radius:8px;background:#cdd6cb;margin:0 auto 20px}
body:not(:has(#rankView:not([hidden]))) #ntModal .nt-x{right:16px;top:28px;width:38px;height:38px;border:1px solid #dce4d8;background:#fff;border-radius:50%;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #ntModal h3{font-size:24px;font-weight:800;letter-spacing:-.05em;margin:0 0 16px;padding-right:48px;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #ntModal #ntBody{background:#fff;border:1px solid #e1e7dd;border-radius:19px;padding:16px 15px 6px}
body:not(:has(#rankView:not([hidden]))) #ntModal .nt-tx{font-size:14px;line-height:1.75;color:var(--text)}
body:not(:has(#rankView:not([hidden]))) #ntModal .nt-img,body:not(:has(#rankView:not([hidden]))) #ntModal .nt-yt{border-radius:14px}
body:not(:has(#rankView:not([hidden]))) #ntModal .nt-foot{border:0;padding:0;margin-top:14px}
body:not(:has(#rankView:not([hidden]))) #ntModal #ntLink{flex:1;text-align:center;padding:13px;border-radius:12px;font-size:14px}
body:not(:has(#rankView:not([hidden]))) #ntModal #ntLink[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #ntModal .nt-close-row .btn{padding:13px;border-radius:12px}
body:not(:has(#rankView:not([hidden]))) #usersView label.trk-up.btn{position:absolute;right:8px;bottom:11px;width:auto;margin:0;padding:6px 9px;font-size:10.5px;border-radius:8px;background:transparent;color:#fff;border:1px solid #ffffff70}
body:not(:has(#rankView:not([hidden]))) #ntModal .nt-in{margin:0}
body:not(:has(#rankView:not([hidden]))) #ntModal #ntLink{text-decoration:none}
body:not(:has(#rankView:not([hidden]))) #ntModal{padding:0}
/* 작은 폰(≤350): 관리자 버튼 3개여도 머리글이 한 줄에 들어가게 */
@media(max-width:350px){
  body:not(:has(#rankView:not([hidden]))) .head-row{flex-wrap:nowrap;gap:6px}
  body:not(:has(#rankView:not([hidden]))) .brand{min-width:0;flex:1 1 auto;overflow:hidden}
  body:not(:has(#rankView:not([hidden]))) .brand-name{font-size:19px}
  body:not(:has(#rankView:not([hidden]))) .brand-sub{font-size:9.5px;letter-spacing:.04em;white-space:nowrap}
  body:not(:has(#rankView:not([hidden]))) .brand img{width:34px}
  body:not(:has(#rankView:not([hidden]))) .head-btns{gap:4px}
  body:not(:has(#rankView:not([hidden]))) :is(.hd-btn,.bell-btn){width:32px;height:32px}
  body:not(:has(#rankView:not([hidden]))) .me-btn{padding:6px 10px;font-size:12px;max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body:not(:has(#rankView:not([hidden]))) #usersView label.trk-up.btn{top:10px;bottom:auto;color:var(--ink);border-color:#c5d0bf;background:#fff}
}

/* 창 닫기(✕) — 일부 창은 버튼에 직접 모양이 적혀 있어 강하게 덮어씀 */
body:not(:has(#rankView:not([hidden]))) .modal > .sheet > .sheet-head > button[aria-label="닫기"]{
  flex:none;border:1px solid #dce4d8 !important;background:#fff !important;color:var(--ink) !important;width:38px;height:38px;border-radius:50%;font-size:17px !important;display:grid;place-items:center;padding:0}

/* ⑤ 내 정보 (#infoView) — 시안 out_v11/info.html: 가운데 카드, 사진 대신 기본 아이콘 ---------- */
#infoView .info-card{flex-direction:column;align-items:center;text-align:center;gap:6px;padding:24px 18px 18px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:var(--v3-shadow)}
#infoView .info-av{width:64px;height:64px;border-radius:50%;background:#edf1e7;display:grid;place-items:center;margin-bottom:4px}
#infoView .info-av::before{content:'';width:34px;height:34px;background:var(--ink);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4.5 20.5c.8-4 3.8-6 7.5-6s6.7 2 7.5 6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4.5 20.5c.8-4 3.8-6 7.5-6s6.7 2 7.5 6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
#infoView .info-who{width:100%}
#infoView .info-who b{font-size:19px;font-weight:800;letter-spacing:-.04em;white-space:normal}
#infoView .info-who span{font-size:12.5px;margin-top:4px}
#infoView #infoMe{width:100%;margin-top:12px;padding:13px;font-size:15px;border-radius:12px}
#infoView .info-list{margin-top:14px;border-radius:20px;background:#fff;box-shadow:var(--v3-shadow)}
#infoView .info-item{padding:16px}
#infoView .info-item b{font-size:15px;font-weight:800;letter-spacing:-.03em}

/* 전적실 (#statView) */
#statView .box{margin-top:0 !important;margin-bottom:12px}
#statView .box > h2{font-size:15px !important;letter-spacing:-.02em !important;color:var(--ink) !important;font-weight:800 !important}
#statView #stLogin{text-align:center;padding:28px 18px}
#statView #stLogin p{font-weight:700}
#statView #stLogin .btn{width:100%;padding:13px}
#statView .st-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:0 0 12px;box-shadow:var(--v3-shadow)}
#statView .st-name{font-size:20px;font-weight:800;letter-spacing:-.04em;color:var(--ink)}
#statView .st-sub{color:var(--ink-2)}
#statView .st-grid{gap:0;background:#edf1e7;border-radius:14px;padding:12px 0;margin-top:14px}
#statView .st-grid > div{background:none;border-radius:0;padding:0 6px}
#statView .st-grid > div+div{border-left:1px solid #d9e0d1}
#statView .st-grid .v{font-family:'Noto Sans KR',sans-serif;font-size:22px;font-weight:800;color:var(--ink)}
#statView .st-medals span{border-radius:8px;font-weight:700}
#statView .st-sec{border-top:1px solid #edf0e9}
#statView .st-sec h4{font-size:13px;letter-spacing:-.02em;color:var(--ink);font-weight:800}
#statView .st-row .num{font-family:inherit}
#statView .st-row .bar{background:#edf1e7}
#statView .st-row .bar > i{background:#a9cf3c}

/* 로그인 창 (#meModal) · 내 메뉴 (#meMenu) — 시안 out_v11/login.html */
body:not(:has(#rankView:not([hidden]))) :is(#meModal,#meMenu) > .sheet{max-width:560px !important}
body:not(:has(#rankView:not([hidden]))) #meModal .sheet-head::before{content:'나의 레이스를 이어서'}
body:not(:has(#rankView:not([hidden]))) #meMenu .sheet-head::before{content:'나의 미니카이브'}
body:not(:has(#rankView:not([hidden]))) :is(#meModal,#meMenu) .sheet-head::before{flex:0 0 100%;order:-1;font-size:12px;color:var(--ink-2);font-weight:500;margin-bottom:-6px}
body:not(:has(#rankView:not([hidden]))) :is(#meModal,#meMenu) .sheet-head{flex-wrap:wrap}
body:not(:has(#rankView:not([hidden]))) #meModal .sheet > p.hint:first-of-type{font-size:13.5px;color:var(--ink-2);margin:0 0 16px !important}
body:not(:has(#rankView:not([hidden]))) #meModal #meName,body:not(:has(#rankView:not([hidden]))) #meModal #mePw{padding:15px 14px;font-size:15px;margin-top:10px}
body:not(:has(#rankView:not([hidden]))) #meModal .sheet > p.hint:nth-of-type(2){font-size:11.5px;margin:8px 0 0 !important}
body:not(:has(#rankView:not([hidden]))) #meModal .sheet > p.hint:nth-of-type(3){order:9;display:block;position:relative;padding-left:40px !important;background:#f3f8e2;border:1px solid #e1ebc3;border-radius:12px;padding:12px 14px;font-size:12.5px;color:var(--ink);margin:18px 0 0 !important}
body:not(:has(#rankView:not([hidden]))) #meModal .sheet > p.hint:nth-of-type(3)::before{content:'';position:absolute;left:14px;top:50%;margin-top:-9px;width:18px;height:18px;background:var(--ink);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3a4 4 0 0 0-4 4v3l-1.4 2.2a.6.6 0 0 0 .5.9h9.8a.6.6 0 0 0 .5-.9L14 10V7a4 4 0 0 0-4-4z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8.4 15.4a1.8 1.8 0 0 0 3.2 0' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3a4 4 0 0 0-4 4v3l-1.4 2.2a.6.6 0 0 0 .5.9h9.8a.6.6 0 0 0 .5-.9L14 10V7a4 4 0 0 0-4-4z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8.4 15.4a1.8 1.8 0 0 0 3.2 0' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat}
body:not(:has(#rankView:not([hidden]))) #meModal > .sheet{display:flex;flex-direction:column}
body:not(:has(#rankView:not([hidden]))) #meModal .btnrow{margin-top:16px}
body:not(:has(#rankView:not([hidden]))) #meModal #meSave{padding:15px;font-size:16px}
body:not(:has(#rankView:not([hidden]))) :is(#meModal #meReset,#meMenu #mmOut){display:block;margin:0 auto;background:none;border:0;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;font-weight:500}
body:not(:has(#rankView:not([hidden]))) #meModal .btnrow:has(#meReset),body:not(:has(#rankView:not([hidden]))) #meMenu .btnrow:has(#mmOut){justify-content:center;margin-top:10px}
body:not(:has(#rankView:not([hidden]))) #meMenu #mmName{font-size:24px !important}
body:not(:has(#rankView:not([hidden]))) #meMenu .mm-grid{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 6px;gap:0}
body:not(:has(#rankView:not([hidden]))) #meMenu .mm-cell{background:none;border:0;text-align:center}
body:not(:has(#rankView:not([hidden]))) #meMenu .mm-cell+.mm-cell{border-left:1px solid #edf0e9}
body:not(:has(#rankView:not([hidden]))) #meMenu .mm-cell b{font-size:22px;font-weight:800;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #meMenu #mmMore,body:not(:has(#rankView:not([hidden]))) #meMenu #mmAlarm{padding:14px;font-size:15px}

/* 선수 기록 창 (#playerModal 선수 전적 상태 — 날짜 상세가 아닐 때) */
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-h{font-size:14px;font-weight:800;color:var(--ink);margin:18px 2px 8px}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-sum{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 4px;gap:0}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-sum > div{background:none;border:0;text-align:center;padding:0 4px}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-sum > div+div{border-left:1px solid #edf0e9}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-sum .k{font-size:11px;color:var(--ink-2)}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-sum .v{font-family:'Noto Sans KR',sans-serif;font-size:22px;font-weight:800;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody :is(.pm-cls,.pm-line){background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:0 0 6px;display:flex;align-items:center;gap:8px}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-line .tt{flex:1;min-width:0;font-size:13px;font-weight:600}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-line .dt{font-size:12px;color:var(--ink-2);font-variant-numeric:tabular-nums}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .cnt span,body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .medal{display:inline-grid;place-items:center;min-width:24px;height:26px;border-radius:6px;font-weight:800;font-size:12px;font-family:inherit;padding:0 4px}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody :is(.m1){background:#d7ef8a;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody :is(.m2){background:#e5eade;color:#465747}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody :is(.m3){background:#f2ede2;color:#7b6549}
#statView #stHead > h2{display:none}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pm-line .dt{font-family:inherit}

/* ⑥ 스톱워치 (#swView) — 시안 out_v11/stopwatch.html. 화면 안 버튼·동작은 그대로 ------------ */
#swView::before{content:'스톱워치';display:block;margin:18px 4px 0;padding-left:14px;border-left:4px solid var(--signal);font-size:24px;font-weight:800;letter-spacing:-.04em;color:var(--ink);line-height:1.3}
#swView .sw-wrap{margin-top:4px}
#swView .sw-wrap::before{content:'나의 코스, 나의 기록.';display:block;padding-left:18px;margin:0 4px 18px;font-size:12px;color:var(--ink-2)}
#swView .sw-tabs{gap:0;padding:4px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:14px}
#swView .sw-tab{border:0;border-radius:10px;background:transparent;color:var(--text);font-weight:700;padding:10px 8px}
#swView .sw-tab.on{background:#163e32;color:#fff}
#swView .sw-card{height:330px;border:0;background:transparent;padding:6px 0 0}
#swView .sw-lcd{height:76px}
#swView :is(.sw-ghost,.sw-now){font-family:'Noto Sans KR',sans-serif;font-size:58px;font-weight:800;letter-spacing:-.04em;line-height:76px}
#swView .sw-ghost{opacity:0}
#swView .sw-laps{background:#fff;border:1px solid var(--line);border-radius:16px;padding:4px 14px;margin:10px 0 14px}
#swView .sw-lap{padding:10px 0;border-bottom:1px solid #edf0e9}
#swView .sw-lap:last-child{border-bottom:0}
#swView .sw-lap .nm{font-weight:700;color:var(--ink)}
#swView :is(.sw-lap .gp,.sw-lap .tt,.sw-split-row,.sw-len-input){font-family:'Noto Sans KR',sans-serif;font-variant-numeric:tabular-nums}
#swView .sw-lap .tt{font-size:16px;font-weight:800;color:var(--ink)}
#swView .sw-lap-emp{padding:22px 0}
#swView .sw-main{border-radius:14px;padding:16px;font-size:17px}
#swView .sw-main.go{background:#163e32;color:#fff}
#swView .sw-main.chk{background:#2c6b4f}
#swView .sw-len-row{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px}
#swView .sw-len-label{font-weight:700;color:var(--ink)}
#swView .sw-len-input{width:110px;padding:9px 10px;font-size:16px;font-weight:700;border-radius:10px;background:#fff;border:1px solid #dce4d7}
#swView .sw-under{gap:8px;margin-top:12px}
#swView .sw-sub{border-radius:12px;padding:13px;font-weight:700;background:#fff;border-color:#d7ded2}
#swView .sw-sub.keep{background:var(--signal);border-color:var(--signal);color:var(--ink)}
#swView .sw-sub.keep:disabled{background:#eef2e6;border-color:#eef2e6;color:#9aa69c}
#swView .sw-note{font-size:11px;color:var(--ink-2);text-align:center;margin-top:12px}
#swView .sw-empty{background:#fff;border:1px dashed #d7ded2;border-radius:16px}
@media(max-width:350px){#swView :is(.sw-ghost,.sw-now){font-size:48px}}

/* ⑦ 대진표 만들기·완성 (#brView) — 인쇄용 대진표 표(#brSheet 안)는 손대지 않음 --------------- */
#brView .brctx{margin:16px 2px 14px;font-size:13px;gap:8px}
#brView .brctx > :first-child{font-size:20px;font-weight:800;letter-spacing:-.04em;color:var(--ink)}
#brView .box > h3,#brView .box > div > h3,#brView .picker > h3{font-size:15px !important;font-weight:800 !important;letter-spacing:-.02em !important;color:var(--ink) !important}
#brView .brseg{display:flex;padding:4px;background:#f3f5ef;border:1px solid var(--line);border-radius:14px}
#brView .brseg button{flex:1;border-radius:10px;padding:10px 8px;font-weight:700;color:var(--text)}
#brView .brseg button.on{background:#163e32;color:#fff}
#brView .cfg input{width:70px;font-family:'Noto Sans KR',sans-serif;font-weight:800;font-size:16px}
#brView .cfg .f{font-weight:700;color:var(--ink)}
#brView .namerow .btn{border-radius:12px;padding:0 18px}
#brView .disc{border-radius:14px;background:#f8f8f3}
#brView .fam-bar{border-top:1px solid #edf0e9}
#brView #brList{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
#brView #brSuRow .btn{width:100%;padding:12px;border-style:dashed}
#brView #brGenBtn{border-radius:14px;padding:15px !important;font-size:16px !important}
#brView .picker{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--v3-shadow)}
#brView .pk-card{border:1px solid var(--line);border-radius:14px;background:#f8f8f3}
#brView .pk-card.on{border:2px solid #163e32;background:#fbfdf3}
#brView .pk-scale{font-family:'Noto Sans KR',sans-serif;font-weight:700;border-radius:6px}
#brView #brStage{border-radius:14px;overflow:auto}
body:not(:has(#rankView:not([hidden]))) #brView .brtoolbar{bottom:var(--navh);background:#f8f8f3f2;border-top:1px solid #e3e8df;margin:16px -12px 0;padding:10px 12px;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
body:not(:has(#rankView:not([hidden]))) #brView .brtoolbar[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #brView .brtoolbar .btn{padding:11px 4px;font-size:13px;border-radius:12px;white-space:nowrap}
body:not(:has(#rankView:not([hidden]))) #brView .brtoolbar .btn.sm{grid-column:span 2;padding:8px 4px;font-size:12px;background:transparent}
body:not(:has(#rankView:not([hidden]))) #brView .brtoolbar .btn[hidden]{display:none}

/* 대진표 보기 창 (#brModal) */
body:not(:has(#rankView:not([hidden]))) #brModal #brmBtns{display:flex;gap:8px;margin:12px 0 4px}
body:not(:has(#rankView:not([hidden]))) #brModal #brmBtns .br-btn{flex:1;border-radius:12px;padding:12px;font-weight:700;font-size:14px;border:1px solid #d7ded2;background:#fff;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #brModal #brmBtns .br-btn.on{background:#163e32;color:#fff;border-color:#163e32}
body:not(:has(#rankView:not([hidden]))) #brModal #brmBtns[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #brView .pk-grid{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}

/* ⑧ 경기 진행 (#runView) — 시안 out_v10 (트리 1안). 트리는 기존 SVG 계산 그대로, 크기·색만 ---------- */
#runView .run-top{margin:16px 2px 12px;gap:8px}
#runView .run-top .ttl{font-size:20px;font-weight:800;letter-spacing:-.04em;color:var(--ink);line-height:1.35}
#runView .run-step{font-size:11px;font-weight:700;padding:5px 10px;border-radius:999px;background:#f3f8e2;border:1px solid #e1ebc3;color:var(--ink)}
/* 단계 버튼 — 카드 모양, 긴 이름은 두 줄 */
#runView .run-bar{gap:6px;padding:2px 2px 10px;margin:0 -2px 6px;scrollbar-width:thin}
#runView .run-bar button{min-width:76px;max-width:96px;min-height:64px;padding:9px 8px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--text);
  font-size:12.5px;font-weight:800;line-height:1.3;white-space:normal;word-break:keep-all;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#runView .run-bar button::after{content:'';display:block;font-size:10px;font-weight:500;color:var(--ink-2)}
#runView .run-bar button.done{color:var(--ink-2);border-color:var(--line)}
#runView .run-bar button.done::after{content:'완료'}
#runView .run-bar button.on{background:#163e32;color:#fff;border-color:#163e32}
#runView .run-bar button.on::after{content:'보는 중';color:#c9e07a}
/* 라운드 이동 줄 */
#runView .rnav .arw{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink)}
#runView .rnav .mid b{font-size:15px;font-weight:800;color:var(--ink)}
#runView .rnav .mid span{color:var(--ink-2)}
#runView .rdots i.on{background:#163e32}
/* 트리 — 바탕 판 위에 카드 */
#runView .bkt-wrap{background:#eef2e8;border-radius:18px;padding:14px 12px 16px;margin:4px 0 8px}
#runView .bkt-svg{zoom:1.42;display:block}
#runView .bkt-svg :is(text){font-family:'Noto Sans KR','Malgun Gothic',sans-serif}
#runView .bkt-svg .bs-bg{fill:#fff;stroke:#dfe6da;stroke-width:.8}
#runView .bkt-svg .bs-hd{fill:#f4f6f0}
#runView .bkt-svg .bs-sep{stroke:#edf0e9;stroke-width:.7}
#runView .bkt-svg .bs-line{stroke:#a9b7a6;stroke-width:1}
#runView .bkt-svg .bs-col{font-size:8.5px;font-weight:800;fill:var(--ink)}
#runView .bkt-svg .bs-col.gh{fill:#8a988f}
#runView .bkt-svg .bs-lb{font-size:7.5px;font-weight:700;fill:var(--ink)}
#runView .bkt-svg .bs-lb.now{fill:var(--ink)}
#runView .bkt-svg .bs-ln{font-size:6.5px;fill:#8a988f}
#runView .bkt-svg .bs-nm{font-size:8.5px;fill:var(--text);font-weight:500}
#runView .bkt-svg .bs-nm.up{font-weight:800;fill:var(--ink)}
#runView .bkt-svg .bs-nm.out{fill:#9aa69c}
#runView .bkt-svg .bs-rk{font-size:7px;font-weight:700;fill:#8a988f}
#runView .bkt-svg .bs-rk.up{fill:var(--ink)}
#runView .bkt-svg .bs-win{fill:#f3f8e2}
#runView .bkt-svg .bs-box.done .bs-bg{fill:#fff}
#runView .bkt-svg .bs-box.done .bs-hd{fill:#e5ecdf}
#runView .bkt-svg .bs-box.now .bs-bg{stroke:#a9cf3c;stroke-width:1.6}
#runView .bkt-svg .bs-box.now .bs-hd{fill:#d7ef8a}
#runView .bkt-svg .bs-box.gh .bs-bg{fill:#f8faf5;stroke:#c9d3c4;stroke-dasharray:3 2}
#runView .bkt-svg .bs-pick{fill:#d7ef8a}
#runView .bkt-svg .bs-qb{fill:#163e32}
#runView .bkt-svg .bs-lb.up{fill:#2c6b4f}
#runView .bkt-wrap + .hint{font-size:11.5px;text-align:center}
/* 방식 고르기 */
#runView #runPick > .hint{font-size:14px;font-weight:700;color:var(--ink)}
#runView .fmt-grid{gap:10px}
#runView .fmt-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:16px 14px}
#runView .fmt-card.on{border:0;background:#163e32;color:#fff;padding:17px 15px}
#runView .fmt-card.on .fmt-desc{color:#c9d8cf}
#runView .fmt-name{font-size:16px;font-weight:800;letter-spacing:-.03em}
#runView #runStartBtn{border-radius:14px;padding:15px !important}
/* 아래 도구줄 — 메뉴 위에 고정, 라운드 종료가 주 버튼 */
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar{bottom:var(--navh);background:#f8f8f3f2;border-top:1px solid #e3e8df;margin:16px -12px 0;padding:10px 12px;
  display:grid;grid-template-columns:auto auto 1fr;gap:6px}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar .btn{padding:11px 12px;font-size:13px;border-radius:12px;white-space:nowrap}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar .btn[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runClose{grid-column:3;grid-row:1;background:#163e32;color:#fff;border-color:#163e32;font-size:13px;padding:11px}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar :is(#runSkipRound,#runReshuffle){grid-column:span 3}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar :is(#runReset,#runExit){background:none;border:0;padding:4px 2px;font-size:12px;font-weight:500;color:var(--ink-2)}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runExit{grid-column:1 / span 2;grid-row:2;justify-self:start}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runReset{grid-column:3;grid-row:2;justify-self:end;color:#b0453b}

/* 순위 입력 창 (#mtModal) */
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-grid{border-top:0;gap:8px}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in{border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px 8px}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .nm{font-size:14px;font-weight:700;color:var(--text)}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s1{border:2px solid #a9cf3c;background:#f3f8e2}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s1 .mk{background:#d7ef8a;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s2{border:2px solid #c7d1c2}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s2 .mk{background:#e5eade;color:#465747}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s3{border:2px solid #d9cdb6}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s3 .mk{background:#f2ede2;color:#7b6549}
body:not(:has(#rankView:not([hidden]))) #mtModal .btnrow .btn{padding:14px;border-radius:12px;font-size:15px}
/* 경기 현황 창 (#runModal) */
body:not(:has(#rankView:not([hidden]))) #runModal .vw-stage{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px}
body:not(:has(#rankView:not([hidden]))) #runModal .vw-stage h4{font-size:14px;font-weight:800;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #runModal .vw-m .lb{font-family:inherit}
body:not(:has(#rankView:not([hidden]))) #runModal #rvRefresh{border-radius:999px}

/* ⑨ 관리 화면 (#adminView) · 관리자 창 ------------------------------------------------- */
#adminView .admin-h{font-size:24px;font-weight:800;letter-spacing:-.04em;color:var(--ink);margin:18px 4px 4px}
#adminView .admin-p{font-size:12px;color:var(--ink-2);margin:0 4px 20px;line-height:1.6}
#adminView .adm-menu{gap:10px}
#adminView .adm-item{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px 14px;box-shadow:var(--v3-shadow)}
#adminView .adm-item .ic{width:44px;height:44px;border-radius:14px;background:#f3f8e2;display:grid;place-items:center}
#adminView .adm-item .ic svg{width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#adminView .adm-item .tx b{font-size:16px;font-weight:800;letter-spacing:-.03em}
#adminView .adm-item .tx i{color:var(--ink-2)}
#adminView .warn{border-radius:14px}
#adminView #backBtn{background:none;border:0;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;font-weight:500;padding:6px 4px}
body:not(:has(#rankView:not([hidden]))) .adm-sheet .box{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:none}
body:not(:has(#rankView:not([hidden]))) .adm-sheet details.disc > summary{padding:13px 14px}
body:not(:has(#rankView:not([hidden]))) .adm-sheet details.disc[open] > summary{border-bottom:1px solid #edf0e9}
body:not(:has(#rankView:not([hidden]))) .adm-sheet details.disc > .inner{padding:12px 14px 14px}
body:not(:has(#rankView:not([hidden]))) .adm-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
body:not(:has(#rankView:not([hidden]))) .adm-tabs button{border-radius:20px;padding:7px 14px;font-size:12px;border:1px solid var(--line);background:transparent;color:var(--text);font-weight:500}
body:not(:has(#rankView:not([hidden]))) .adm-tabs button.on{background:#163e32;color:#fff;border-color:#163e32;font-weight:700}

/* 날짜 수정 창 (#dayModal, 관리자) — 날짜 상세 창과 같은 카드 */
body:not(:has(#rankView:not([hidden]))) #dayModal #dmTitle{background:linear-gradient(transparent 78%,#d7ef8a 78%,#d7ef8a 94%,transparent 94%)}
body:not(:has(#rankView:not([hidden]))) #dayModal .dm-sec{font-size:14px;font-weight:800;color:var(--ink);border-top:0;padding-top:4px}
body:not(:has(#rankView:not([hidden]))) #dayModal .res-blk{background:#fff;border:1px solid #e1e7dd;border-radius:19px;padding:15px 14px;margin:0 0 12px;box-shadow:0 3px 10px rgb(24 59 45 / 3%)}
body:not(:has(#rankView:not([hidden]))) #dayModal .res-blk-h .d{font-size:18px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
body:not(:has(#rankView:not([hidden]))) #dayModal .res-blk-t .t{font-size:16px;font-weight:700;color:var(--ink);white-space:normal}
body:not(:has(#rankView:not([hidden]))) #dayModal .res-blk-btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
body:not(:has(#rankView:not([hidden]))) #dayModal .res-blk-btns .br-btn{border:1px solid #dce5d6;border-radius:10px;padding:9px 12px;background:#f5f7ef;color:#345444;font-size:12.5px;font-weight:700;min-height:38px}
body:not(:has(#rankView:not([hidden]))) #dayModal .br-btn[data-course]{border:0;background:transparent;color:#64796d;font-size:12px}
body:not(:has(#rankView:not([hidden]))) #dayModal :is(.e-h,.e-m,.e-cls,.e-course){padding:8px 26px 8px 10px;font-size:13px;width:auto;border-radius:10px}
body:not(:has(#rankView:not([hidden]))) #dayModal .su-box{border-top:1px solid #edf0e9;margin-top:12px;padding-top:12px}
body:not(:has(#rankView:not([hidden]))) #dayModal #dmNew{border-style:dashed;width:100%;padding:12px;font-size:13px}
/* 코스 사진 창 (#courseModal) */
body:not(:has(#rankView:not([hidden]))) #courseModal #coImg{border-radius:16px}
body:not(:has(#rankView:not([hidden]))) #dayModal .sheet-head > #dmTitle{flex:0 1 auto;margin-right:auto}
body:not(:has(#rankView:not([hidden]))) .adm-sheet #admPopBody > .box{padding:14px !important;margin-bottom:12px}
body:not(:has(#rankView:not([hidden]))) .adm-sheet .box .box{border:0 !important;padding:0 !important;background:transparent;box-shadow:none}

/* ===== v2.1 수정 1 — 경기 기록 첫 화면 (Codex out_v12/result-fix.css, 2026-11-04) ===== */
/* v2.1 · app-v3.css 다음에 로드하는 경기 기록 전용 덮어쓰기 */
#resultView #resTabs {
  display: flex;
  gap: 0;
  padding: 0;
  margin-bottom: 16px;
  border: 1px solid #c4cdbd;
  border-radius: 999px;
  background: transparent;
}
#resultView #resTabs > button {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #163e32;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: none;
}
#resultView #resTabs > button.on {
  border: 0;
  background: #163e32;
  color: #fff;
  font-weight: 750;
}
#resultView #resTabs > button:focus-visible {
  outline: 2px solid #163e32;
  outline-offset: 3px;
}
#resultView .rcard-t {
  margin: 12px 0 3px;
}
#resultView .rcard-t > .t {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.04em;
  color: #142d29;
  white-space: normal;
  overflow-wrap: anywhere;
}
#resultView .rc-act .br-btn[data-rv]::after {
  content: " ↗";
  white-space: pre;
}
#resultView .podium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 0 0 9px;
}
#resultView .pod-col {
  min-width: 0;
}
#resultView .pod-nm {
  padding: 0 2px 10px;
  color: #163e32;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
#resultView .pod-col.c1 .pod-nm {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.04em;
}
#resultView .pod-col.c1 .pod-nm::before {
  content: "";
  display: block;
  width: 48px;
  height: 25px;
  margin: 0 auto 7px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 36' fill='none' stroke='%23d7ef8a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M27 5h18c0 12-3 18-9 18S27 17 27 5ZM27 8h-6c0 7 3 10 9 11M45 8h6c0 7-3 10-9 11M36 23v8m-6 0h12M8 10l4 3M6 18h6M8 26l4-3M64 10l-4 3M66 18h-6M64 26l-4-3'/%3E%3C/svg%3E");
  pointer-events: none;
}
#resultView .pod-bar {
  box-sizing: border-box;
  padding: 6px 3px;
  border-radius: 11px 11px 0 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
#resultView .pod-col.c1 .pod-bar {
  height: 62px;
  background: #163e32;
  color: #d7ef8a;
  font-size: 32px;
}
#resultView .pod-col.c2 .pod-bar {
  height: 45px;
  background: #dfe5d7;
  color: #163e32;
}
#resultView .pod-col.c3 .pod-bar {
  height: 41px;
  background: #dfe5d7;
  color: #163e32;
}
@media (max-width: 340px) {
  #resultView .rcard-t > .t { font-size: 20px; }
  #resultView .pod-nm { font-size: 14px; }
  #resultView .pod-col.c1 .pod-nm { font-size: 20px; }
}

/* ======================= v2.1 수정 묶음 2 (2026-11-04 오후) ======================= */
/* ① 로고 크게 — 머리글 높이·글자·버튼 크기는 그대로. 관리 버튼은 내 정보로 옮김 */
body:not(:has(#rankView:not([hidden]))) .brand img#logoTop{width:80px !important}
body:not(:has(#rankView:not([hidden]))) .me-btn{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:389px){body:not(:has(#rankView:not([hidden]))) .brand img#logoTop{width:52px !important}}
@media(max-width:359px){body:not(:has(#rankView:not([hidden]))) .brand img#logoTop{width:45px !important}}
@media(max-width:350px){
  body:not(:has(#rankView:not([hidden]))) .brand img#logoTop{width:56px !important}
  #usersView .trk-btn{padding-left:10px}
  #usersView .trk-btn b{font-size:12.5px}
  body:not(:has(#rankView:not([hidden]))) #usersView label.trk-up.btn{right:6px;padding:4px 7px;font-size:10px}
  /* 관리자 로고 둘레(연두)가 잘리지 않게 — 넘치는 것은 글자 줄에서만 자릅니다 */
  body:not(:has(#rankView:not([hidden]))) .brand{overflow:visible}
  body:not(:has(#rankView:not([hidden]))) .brand-tx{min-width:0;overflow:hidden}
  body:not(:has(#rankView:not([hidden]))) .brand-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
/* 내 정보 맨 위 "관리" 줄 (관리자에게만) */
#infoView .info-item[hidden]{display:none}
#infoView .info-adm{background:#f3f8e2}
#infoView .info-adm[aria-pressed="true"]{background:#e5f5ad}

/* ② 주간·달력 머리줄 — 날짜는 정확히 가운데, 이번 주/오늘은 그 오른쪽 */
#weekView .cal-nav,#monthView .cal-nav{display:grid !important;grid-template-columns:40px 1fr auto 1fr 40px;align-items:center;column-gap:0}
#weekView .cal-nav > button:first-child,#monthView .cal-nav > button:first-child{grid-column:1}
#weekView .cal-nav .cal-title,#monthView .cal-nav .cal-title{grid-column:3;margin:0 !important;text-align:center;white-space:nowrap}
#weekView .cal-nav .wk-this,#monthView .cal-nav .wk-this{grid-column:4;justify-self:start;margin:0 0 0 8px !important;height:32px !important;padding:0 12px !important;font-size:12px !important;font-weight:700;border-radius:999px;white-space:nowrap}
#weekView .cal-nav > button:last-child,#monthView .cal-nav > button:last-child{grid-column:5;justify-self:end}

/* ③ 달력 칸 — 종목 줄도 시간·제목과 같이 왼쪽 정렬 */
body:not(:has(#rankView:not([hidden]))) #monthView #calBody .cal-cls{text-align:left;justify-content:flex-start;align-self:stretch}

/* ⑤ 경기 코스 — "사진 보기/사진 없음" 글씨 빼고 진한 띠를 낮게, 관리자 사진 등록은 띠 안 */
#usersView .trk-btn span{display:none}
#usersView .trk-btn{min-height:96px;padding:0 14px 10px;background:linear-gradient(180deg,#e9eee3 0,#e9eee3 calc(100% - 40px),#163e32 calc(100% - 40px))}
#usersView .trk-btn b{line-height:30px}
body:not(:has(#rankView:not([hidden]))) #usersView label.trk-up.btn,
body:not(:has(#rankView:not([hidden]))) #usersView label.trk-up.btn:is(*){top:auto !important;bottom:6px !important;right:8px;padding:5px 9px;font-size:10.5px;line-height:1.2;color:#fff !important;background:transparent !important;border:1px solid #ffffff70 !important}
#usersView .trk-btn.off{opacity:.72}

/* ⑥ 공인 규정 줄 — 높이 줄이기 */
#usersView .rule-link{padding:9px 14px;min-height:0}

/* ④ 일정-결과: 날짜 상세(끝난 경기) 시상대 — 경기 기록과 같은 모양 */
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:end;border:0;padding:6px 0 0}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pod-nm{display:block;font-size:12.5px;font-weight:700;padding:0 2px 8px;white-space:normal;overflow-wrap:anywhere;text-align:center}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pod-col.c1 .pod-nm{font-size:17px;font-weight:800;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pod-col.c1 .pod-nm::before{content:'WINNER';display:block;font-size:9px;letter-spacing:.14em;color:#4c7a38;font-weight:800;margin-bottom:4px}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pod-bar{height:56px;border-radius:12px 12px 0 0;background:#e6ebe0;color:var(--ink);font-size:20px;font-weight:800;box-shadow:none;display:flex;align-items:center;justify-content:center}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pod-col.c1 .pod-bar{height:84px;background:#163e32;color:#d7ef8a;font-size:26px}
body:not(:has(#rankView:not([hidden]))) #playerModal #pmBody .pod-col.c3 .pod-bar{height:46px}

/* ⑦ 경기 진행 — 포인트전 표 (진행 화면·결과 창 공통) */
.pt-tables{margin:6px 0 4px}
.pt-block{margin:0 0 18px}
.pt-title{display:flex;align-items:center;justify-content:space-between;padding:10px 10px 9px;border-top:2px solid #163e32;background:#eef2e7}
.pt-title b{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:800;letter-spacing:-.03em;color:var(--ink)}
.pt-title b::before{content:'';width:5px;height:14px;background:#bddc75;border-radius:1px}
.pt-title span{font-size:10px;color:#65765c}
.pt-block.cur .pt-title{background:#e5f0cc}
.pt-tab{width:100%;border-collapse:collapse;table-layout:fixed;background:transparent}
.pt-tab th{padding:7px 6px;text-align:left;border-bottom:1px solid #cfdac6;color:#77846d;font-size:10px;font-weight:600}
.pt-tab th:first-child{width:26px;text-align:center}
.pt-tab td{padding:6px 6px;border-bottom:1px solid #e0e6d8;font-size:11px;vertical-align:middle}
.pt-tab td+td{border-left:1px solid #e8ecdf}
.pt-tab tbody tr:nth-child(even){background:#f0f3eb}
.pt-tab .pt-g{text-align:center;font-size:10px;color:#75856d}
.pt-c{position:relative}
.pt-c .nm{display:block;font-size:11px;font-weight:600;line-height:1.35;letter-spacing:-.02em;overflow-wrap:anywhere;padding-right:22px;color:var(--text)}
.pt-c .pt{position:absolute;right:5px;top:50%;transform:translateY(-50%);min-width:16px;text-align:right;font-size:10px;color:#829078;font-variant-numeric:tabular-nums}
.pt-c.win .pt{min-width:19px;padding:1px 4px;border-radius:4px;background:#ddebba;color:#244b30;font-weight:700;text-align:center}
.pt-c.gone .nm{color:#a3ad9f}
/* 관리자(입력하는 화면)는 줄 높이를 지금처럼 넉넉하게, 누르기 쉽게 */
.pt-tables.edit .pt-tab td{padding:12px 6px}
.pt-tables.edit .pt-r{cursor:pointer}
.pt-tables.edit .pt-r:active{background:#e5f0cc}
.pt-tables.edit .pt-r.now{background:#f3f8e2 !important;box-shadow:inset 3px 0 #a9cf3c}
.pt-tables + .hint{font-size:11.5px;text-align:center}
/* 포인트 순위 (진행 화면 버튼·결과 창) — 상위 5위(공동 포함) + 펼치기 */
body:not(:has(#rankView:not([hidden]))) .ptpop{background:#fff;border:1px solid var(--line);border-top:2px solid #163e32;border-radius:0 0 14px 14px;padding:0 0 8px;margin:6px 0 14px}
body:not(:has(#rankView:not([hidden]))) .ptpop h5{display:flex;justify-content:space-between;align-items:center;margin:0;padding:12px 12px 8px;font-size:14px;font-weight:800;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) .ptpop h5 span{font-size:10px;font-weight:500;color:#65765c}
body:not(:has(#rankView:not([hidden]))) .ptpop .r{display:grid;grid-template-columns:40px 1fr auto;align-items:center;padding:10px 12px;border-top:1px solid #edf0e9;font-size:13px}
body:not(:has(#rankView:not([hidden]))) .ptpop .r.hd{background:#eef2e7;font-size:10px;color:#77846d;padding:7px 12px}
body:not(:has(#rankView:not([hidden]))) .ptpop .r.first{background:#eaf2d8;font-weight:800}
body:not(:has(#rankView:not([hidden]))) .ptpop .r .no{color:#75856d;font-variant-numeric:tabular-nums}
body:not(:has(#rankView:not([hidden]))) .ptpop .r .pt{font-weight:700;font-variant-numeric:tabular-nums}
body:not(:has(#rankView:not([hidden]))) .ptpop .pt-more summary{padding:10px 12px;font-size:12px;color:var(--ink-2);cursor:pointer;border-top:1px solid #edf0e9}
body:not(:has(#rankView:not([hidden]))) .ptpop .pt-note{font-size:10.5px;color:var(--ink-2);margin:6px 12px 0}

/* ⑦ 토너먼트 트리 — 기존 연결 계산 그대로, 카드·승자·결정 칸 모양 + 확대/축소 */
.bk-tools{display:flex;justify-content:flex-end;margin:2px 0 6px}
.bk-zoom{border:1px solid #c9d5bf;background:#fff;color:var(--ink);border-radius:10px;padding:8px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.bk-zoom[aria-pressed="true"]{background:#163e32;color:#fff;border-color:#163e32}
#runView .bkt-svg .bs-bg{rx:4;fill:#fff;stroke:#d8e0d1}
#runView .bkt-svg .bs-hd,#runModal .bkt-svg .bs-hd{fill:#fbfcf9}
#runView .bkt-svg .bs-win,#runModal .bkt-svg .bs-win{fill:#edf4dc}
#runView .bkt-svg .bs-line,#runModal .bkt-svg .bs-line{stroke:#99ad86;stroke-width:1.1}
#runView .bkt-svg .bs-box.fin .bs-bg,#runModal .bkt-svg .bs-box.fin .bs-bg{stroke:#376343}
#runView .bkt-svg .bs-box.fin .bs-hd,#runModal .bkt-svg .bs-box.fin .bs-hd{fill:#163e32}
#runView .bkt-svg .bs-box.fin .bs-lb,#runModal .bkt-svg .bs-box.fin .bs-lb{fill:#e9f2dd}
#runView .bkt-svg .bs-box.fin .bs-win,#runModal .bkt-svg .bs-box.fin .bs-win{fill:#d7ef8a}
#runView .bkt-svg .bs-box.now:not(.fin) .bs-hd{fill:#d7ef8a}
body.bk-big #runView .bkt-svg{zoom:2}
#runModal .bkt-wrap{background:#eef2e8;border-radius:16px;padding:12px 10px}
#runModal .bkt-svg{zoom:1.25;display:block}
#runModal .bkt-svg text{font-family:'Noto Sans KR','Malgun Gothic',sans-serif}
body.bk-big #runModal .bkt-svg{zoom:1.9}

/* "라운드 종료"는 경기를 일찍 끝내고 최종 인원을 고르는 기능 — 주 버튼처럼 보이지 않게 되돌림 */
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar{grid-template-columns:auto auto 1fr}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runClose{grid-column:3;justify-self:end;background:#fff;color:var(--ink);border-color:#d7ded2}

/* ⑦ 결과 창 (#runModal) — 시안 "최종 결과" */
body:not(:has(#rankView:not([hidden]))) #runModal #rvTitle{font-size:21px !important;font-weight:800 !important}
body:not(:has(#rankView:not([hidden]))) #runModal #rvRefresh{background:none;border:0;text-decoration:underline;text-underline-offset:3px;color:var(--ink-2);font-weight:500;padding:4px}
body:not(:has(#rankView:not([hidden]))) #runModal #rvBrRow{display:flex;justify-content:flex-end;margin:-4px 0 12px}
body:not(:has(#rankView:not([hidden]))) #runModal #rvBrRow[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #runModal #rvBracket{background:#fff;color:var(--ink);border:1px solid #d7ded2;border-radius:10px}
body:not(:has(#rankView:not([hidden]))) #runModal #rvBracket::after{content:' ↗'}
body:not(:has(#rankView:not([hidden]))) #runModal .rv-round-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:4px 0 12px;margin:0 0 6px;border-bottom:1px solid #e3e8df;background:transparent;position:static}
body:not(:has(#rankView:not([hidden]))) #runModal .rv-round-tabs button{flex:none;border-radius:10px;border:1px solid #dce4d7;background:#fff;color:var(--text);padding:9px 12px;font-size:12px}
body:not(:has(#rankView:not([hidden]))) #runModal .rv-round-tabs button.on{background:#163e32;color:#fff;border-color:#163e32;box-shadow:inset 0 -3px #d7ef8a}
body:not(:has(#rankView:not([hidden]))) .run-done{background:transparent;border:0;padding:0;margin:14px 0}
body:not(:has(#rankView:not([hidden]))) .run-done h3{font-size:15px;font-weight:800;color:var(--ink);margin:0 0 10px}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line{display:flex;align-items:center;gap:14px;padding:14px 6px;border-bottom:1px solid #e3e8df;background:none !important;font-size:15px}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line .no{width:22px;text-align:center;font-size:20px;font-weight:500;color:var(--ink-2)}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line .who{flex:1;font-weight:700;color:var(--ink)}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line .rkno{font-size:11px;color:var(--ink-2)}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line.top1{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:16px;background:#163e32 !important;border-radius:16px;padding:20px 22px;margin-bottom:6px;border:0}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line.top1 .no{grid-row:1 / span 2;font-size:44px;font-weight:300;color:#d7ef8a;width:auto}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line.top1 .win-k{grid-column:2;font-size:10px;letter-spacing:.14em;color:#d7ef8a;font-weight:700}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line.top1 .who{grid-column:2;color:#fff;font-size:24px;font-weight:800}
body:not(:has(#rankView:not([hidden]))) .run-done .rk-line.top1 .rkno{display:none}

/* ⑧ 인쇄 — "인쇄 모양" 고르기는 인쇄 버튼을 누른 뒤 아래 창으로 (인쇄 동작은 그대로) */
body:not(.br-choose) #brView #brPicker{display:none !important}
body.br-choose #brView #brPicker{display:block !important;position:fixed;left:0;right:0;bottom:0;z-index:80;max-width:560px;margin:0 auto;border-radius:28px 28px 0 0;border:0;
  padding:14px 18px max(20px,env(safe-area-inset-bottom));background:#f8f8f3;box-shadow:0 -12px 40px rgb(18 47 36 / 18%)}
body.br-choose #brView #brPicker::before{content:'';display:block;width:34px;height:4px;border-radius:8px;background:#cdd6cb;margin:0 auto 14px}
body.br-choose::after{content:'';position:fixed;inset:0;z-index:79;background:rgb(17 37 30 / 45%)}
#brPkGo{display:flex;gap:8px;margin-top:14px}
#brPkGo .btn{flex:1;padding:13px;border-radius:12px}
body:not(.br-choose) #brPkGo{display:none}
@media print{#brPkGo{display:none !important}}

/* ======================= v2.2 추가 (2026-11-04 15:30) ======================= */
/* 포인트 순위 — Codex 시안(points-table.html #ranking) 그대로: 화면 위에 뜨는 창 */
.pt-open-row{display:flex;justify-content:flex-end;margin:0 0 10px}
body:not(:has(#rankView:not([hidden]))) .ptbtn{background:#163e32;color:#fff;border:1px solid #163e32;border-radius:7px;padding:10px 13px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.pt-dlg{position:fixed;inset:0;z-index:95;background:#132e3259;display:flex;align-items:center;justify-content:center;padding:12px}
.pt-dlg[hidden]{display:none}
.pt-dlg-in{width:min(390px,100%);max-height:85dvh;overflow:auto;background:#f8f8f3;color:#163e32;border-radius:16px;box-shadow:0 18px 70px #142e3233;font-family:'Noto Sans KR','Malgun Gothic',sans-serif;text-align:left}
.pt-dlg-h{padding:20px;display:flex;justify-content:space-between;align-items:center;padding-bottom:10px}
.pt-dlg-h h2{font-size:19px;margin:0;letter-spacing:-.6px;font-weight:800}
.pt-x{width:36px;height:36px;border-radius:50%;border:1px solid #dce4d4;background:#fff;color:#163e32;font-size:20px;line-height:1;cursor:pointer}
.pt-dlg-b{padding:6px 20px 22px}
.pt-dlg-b > p{font-size:11px;color:#61745a;line-height:1.7;margin:0 0 16px}
.pt-dlg .rank-scroll{max-height:430px;overflow:auto;border-top:2px solid #163e32}
.leaderboard{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.leaderboard th{padding:9px 8px;background:#edf1e7;font-size:10px;color:#637660;font-weight:500;text-align:left}
.leaderboard td{padding:12px 8px;border-bottom:1px solid #e1e6db;font-size:12px;color:#163e32;height:43px;box-sizing:border-box}
.leaderboard td:first-child{width:43px;color:#6e8069}
.leaderboard td:nth-child(2){font-weight:600}
.leaderboard td:last-child,.leaderboard th:last-child{text-align:right}
.pt-dlg .leaderboard tbody tr:first-child{background:#eaf2d8;font-weight:700}
.pt-dlg .leaderboard tbody tr:first-child td:first-child{color:#163e32}
.pt-dlg .pt-more summary{padding:11px 8px;font-size:11.5px;color:#61745a;cursor:pointer;border-bottom:1px solid #e1e6db}
.pt-dlg .pt-more .leaderboard tbody tr:first-child{background:transparent;font-weight:400}
.pt-dlg .pt-foot{margin:14px 0 0 !important;font-size:11px;color:#61745a}

/* 포인트전 진출자 고르기 — 순위표에서 눌러 선택 */
#runView .ask-pt .ask-tab{margin:12px 0 4px;border-top:2px solid #163e32}
#runView .ask-pt .ask-tab tbody tr{cursor:pointer}
#runView .ask-pt .ask-tab tbody tr:active{background:#e5f0cc}
#runView .ask-pt .ask-tab tbody tr.on{background:#eaf2d8}
#runView .ask-pt .ask-tab tbody tr.on td{font-weight:700;color:#163e32}
#runView .ask-pt .ask-tab .ck{width:52px;text-align:center !important}
#runView .ask-pt .ckb{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;border:1.5px solid #c5d0bf;background:#fff;color:#fff;font-size:14px;font-weight:800}
#runView .ask-pt tr.on .ckb{background:#163e32;border-color:#163e32}
#runView .ask-pt .gate-n{margin:10px 0 0}

/* Codex v13 대조 보정 — 포인트 순위 창 여백 */
.pt-dlg{padding:17px}
.pt-dlg .pt-dlg-h{padding-bottom:20px}

/* v2.3 경기 코스 — 진한 띠를 글자 높이만큼 얇게, 등록된 사진 미리보기 */
#usersView .trk-btn{min-height:92px;padding:0 12px 5px;background:linear-gradient(180deg,#e9eee3 0,#e9eee3 calc(100% - 27px),#163e32 calc(100% - 27px))}
#usersView .trk-btn b{line-height:22px;font-size:13px}
#usersView .trk-btn.has-pic{background:linear-gradient(180deg,transparent 0,transparent calc(100% - 27px),#163e32 calc(100% - 27px)),var(--pic) center 40%/cover no-repeat,#e9eee3}
#usersView .trk-btn.has-pic::before{display:none}
body:not(:has(#rankView:not([hidden]))) #usersView label.trk-up.btn{bottom:4px !important;padding:2px 8px;font-size:10px;line-height:15px;border-radius:6px}
/* v2.3 공인 규정 줄 — 더 얇게, 아래 내용을 그만큼 위로 */
#usersView .rule-link{padding:5px 12px;margin:0 0 14px;font-size:12.5px;border-radius:12px}
#usersView .rule-link svg{width:18px;height:18px}
#usersView .rule-link i{font-size:17px}
@media(max-width:350px){#usersView .rule-link{font-size:11.5px;gap:8px}#usersView .rule-link span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}


/* ======================= v2.4 경기 진행 — 다음 라운드 / 강제 종료 ======================= */
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar{grid-template-columns:auto auto 1fr auto auto !important}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runUndo{grid-column:1;grid-row:1}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runFix{grid-column:2;grid-row:1}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runNext{grid-column:3 / span 3;grid-row:1;background:#163e32;color:#fff;border-color:#163e32}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runNext[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar:has(#runNext[hidden]) #runFix{grid-column:2 / span 4;justify-self:start}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar :is(#runSkipRound,#runReshuffle){grid-column:1 / -1;grid-row:3}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runExit{grid-column:1 / span 2;grid-row:2;justify-self:start}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runClose{grid-column:4;grid-row:2;justify-self:end;background:none !important;border:0 !important;padding:4px 6px;font-size:12px;font-weight:500;color:#8a5a2b !important}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runClose[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runReset{grid-column:5;grid-row:2;justify-self:end}
/* 결과 없는 조·확정 필요한 곳 하이라이트 */
#runView .pt-r.need td{background:#fff1e3 !important}
#runView .pt-r.need td:first-child{box-shadow:inset 3px 0 #e07a3f}
#runView .bkt-svg .bs-box.need .bs-bg{stroke:#e07a3f !important;stroke-width:2 !important;fill:#fff7ef !important}
#runView .gate.need,#runView .tie-pick.need,#runView .run-msg.need{outline:3px solid #e07a3f;outline-offset:3px;border-radius:12px}
/* 다음 라운드 팝업 */
.run-alert{position:fixed;inset:0;z-index:96;background:#132e3259;display:flex;align-items:center;justify-content:center;padding:17px}
.run-alert-in{width:min(360px,100%);background:#f8f8f3;border-radius:16px;box-shadow:0 18px 70px #142e3233;padding:22px 20px 18px;font-family:'Noto Sans KR','Malgun Gothic',sans-serif;color:#163e32}
.run-alert-in p{margin:0 0 16px;font-size:14px;line-height:1.7}
.run-alert-in p small{font-size:12px;color:#61745a}
.run-alert-in .btn{width:100%;padding:12px;border-radius:12px}

/* ===== v2.6 선수 배치(라운드 준비) — 디자인 v2. #runView 의 .gate.pl2 안에서만 적용 ===== */
#runView .gate.pl2{padding:0;overflow:hidden;border:1px solid #d8e1cc;border-radius:16px;background:#fafbf6;color:#193f32}
#runView .pl2-mast{background:#193f32;color:#f5f8ec;padding:18px 18px 16px}
#runView .pl2-eye{display:block;font-size:10px;letter-spacing:1.4px;color:#c0d1b5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#runView .pl2-mast h3{display:flex;gap:12px;align-items:center;margin:7px 0 0;font-size:22px;letter-spacing:-1px;font-weight:700;color:#f5f8ec}
#runView .pl2-mast h3 span{color:#d7ef8a;font-weight:500;padding-left:12px;border-left:1px solid #618166}
#runView .pl2-qual{margin:0 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 0 10px}
#runView .pl2-cap{font-size:13px;font-weight:700}
#runView .pl2-qual p{font-size:11px;color:#7b8971;margin:4px 0 0;line-height:1.5}
#runView .pl2-count{display:flex;align-items:center;gap:7px;flex:none}
#runView .pl2-count .rgbtn{height:34px;width:32px;min-width:0;padding:0;background:#edf1e5;border:0;border-radius:7px;font-size:17px;color:#193f32}
#runView .pl2-count strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;min-width:22px;text-align:center}
#runView .pl2-count>span{font-size:11px;color:#77876d;margin-left:-3px}
#runView .pl2-sub{margin:0 16px;padding:0 0 14px;border-bottom:1px solid #dbe3d2;font-size:11px;color:#7b8971}
#plDlg .pl2-board{padding:16px 12px 0}
#plDlg .pl2-head{display:flex;align-items:center;justify-content:space-between;padding:0 4px}
#plDlg .pl2-head>div{display:flex;align-items:baseline;gap:8px}
#plDlg .pl2-head h4{margin:0;font-size:16px;letter-spacing:-.6px}
#plDlg .pl2-head span{font-size:11px;color:#7b8a70}
#plDlg .pl2-head button{background:#193f32;color:#fff;border:0;border-radius:7px;font-size:12px;font-weight:700;padding:8px 14px;min-height:36px}
#plDlg .pl2-head button[aria-pressed=true]{background:#d7ef8a;color:#193f32}
/* ① 고정 높이 안내 줄 — 선택해도 높이가 같아 표가 밀리지 않습니다 */
#plDlg .pl2-slot{height:44px;margin:10px 0 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;border-radius:8px;box-sizing:border-box}
#plDlg .pl2-slot p{margin:0;font-size:11px;line-height:1.45;color:#74856a;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#plDlg .has-sel .pl2-slot{background:#edf3df}
#plDlg .pl2-slot strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#plDlg .pl2-slot button{flex:none;border:0;background:none;font-size:11px;color:#637b52;padding:8px 2px;min-height:36px}
#plDlg .pl2-new{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 2px 10px}
#plDlg .pl2-new span{font-size:11px;font-weight:700;margin-right:2px}
#plDlg .pl2-new button{border:1px solid #c9d6bd;background:#fff;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:600;min-height:34px;color:#193f32}
#plDlg .pl2-new button.on{background:#193f32;color:#e3f5b5;border-color:#193f32}
#plDlg .pl2-tab{table-layout:fixed;width:100%;border-collapse:collapse;margin:0}
#plDlg .pl2-tab th{font-size:10px;color:#859277;font-weight:400;text-align:left;padding:8px 5px;background:#eef2e7;border-top:1px solid #d8e1cc;border-bottom:1px solid #d8e1cc}
#plDlg .pl2-tab th b{font-size:12px;color:#4b6940;font-variant-numeric:tabular-nums}
#plDlg .pl2-tab th:first-child{width:30px;text-align:center}
#plDlg .pl2-tab td{padding:2px 3px;border-bottom:1px solid #e6ecdf}
#plDlg .pl2-tab td.pl-gn{text-align:center;font-size:11px;color:#6c815c;font-variant-numeric:tabular-nums}
#plDlg .pl2-tab tbody tr:nth-child(even){background:#f3f6ed}
#plDlg .pl-seat{width:100%;min-height:40px;text-align:left;padding:6px 6px;font-size:12.5px;font-weight:600;letter-spacing:-.35px;border:0;background:none;border-radius:6px;color:#193f32;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
#plDlg .pl-seat.pl-vac{color:#b2bda6;font-weight:400}
#plDlg .pl2-board.editing .pl-seat.occupied{cursor:grab;touch-action:none}
#plDlg .pl-seat.selected{background:#193f32;color:#e3f5b5;touch-action:none;outline:2px solid #c1dd8a;outline-offset:-2px;animation:pl2Glow 1.6s ease-in-out infinite}
#plDlg .pl-seat.allowed{background:#eaf3d6;color:#3a6326;box-shadow:inset 0 0 0 1px #bed49b;font-size:12px;font-weight:600}
#plDlg .pl-seat.over{background:#d7ef8a;outline:2px solid #53782f}
#plDlg .pl2-warn{padding:10px 4px;margin:0;font-size:11px;line-height:1.6;color:#827451}
#plDlg .pl2-empty{font-size:12px;color:#7b8a70;padding:10px 4px}
#plDlg .pl2-foot{display:flex;justify-content:space-between;gap:10px;padding:4px 2px 8px}
#plDlg .pl2-foot button{border:0;padding:10px 13px;border-radius:7px;font-size:12px;font-weight:600;background:#edf1e5;color:#193f32;min-height:40px}
#plDlg .pl2-foot button:disabled{opacity:.4}
#plDlg .pl2-foot #previewPlaceDone{background:#193f32;color:#fff}
#runView .pl2-start{padding:14px 16px 14px;border-top:1px solid #e0e7d7;margin-top:6px}
#runView .pl2-start>div{display:flex;flex-direction:column;gap:4px;margin-bottom:11px}
#runView .pl2-start>div>span{font-size:13px;font-weight:600}
#runView .pl2-start small{font-size:11px;color:#859278}
#runView .pl2-start #askGo{display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px 16px;background:#d7ef8a;color:#193f32;border:0;border-radius:9px;font-size:14px}
#runView .pl2-start #askGo span{font-size:19px;line-height:1}
#runView .pl2-start #askGo:disabled{background:#e6eadf;color:#8d988a}
#runView .pl2-start p{font-size:11px;color:#8a967e;text-align:center;margin:9px 0 0}
.pl2-ghost{position:fixed;z-index:120;pointer-events:none;padding:11px 16px;border-radius:8px;color:#e6f7c4;background:#193f32;font-size:13px;font-weight:700;box-shadow:0 8px 24px #193f3230;transform:translate(-50%,-125%)}
@keyframes pl2Glow{50%{outline-color:#759e42}}
@media(prefers-reduced-motion:reduce){#plDlg .pl-seat.selected{animation:none;outline-width:3px}}
@media(max-width:350px){#runView .pl2-mast{padding:16px 14px}#runView .pl2-qual,#runView .pl2-sub{margin-left:13px;margin-right:13px}#plDlg .pl2-board{padding-left:8px;padding-right:8px}#plDlg .pl-seat{font-size:11.5px;padding:6px 4px}#runView .pl2-start{padding-left:13px;padding-right:13px}}

/* ===== v2.6 경기 진행 — 코덱스 v20 디자인 (진녹 #193f32 · 연두 #d7ef8a · 종이 #fafbf6) ===== */
body:not(:has(#rankView:not([hidden]))) #runView .run-top{display:block;margin:0 -16px 0;padding:20px 20px 18px;background:#193f32;color:#f5f8ec}
body:not(:has(#rankView:not([hidden]))) #runView .run-top .ttl{color:#f5f8ec;font-size:22px;letter-spacing:-.04em}
body:not(:has(#rankView:not([hidden]))) #runView .run-top .run-step{display:block;margin-top:6px;font-size:12px;color:#c0d1b5;background:none;border:0;padding:0}
/* 경기 시작 */
body:not(:has(#rankView:not([hidden]))) #runView #runPick{padding-top:16px}
body:not(:has(#rankView:not([hidden]))) #runView #runPick > .hint{font-size:17px;font-weight:700;letter-spacing:-.6px;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #runView .fmt-grid{grid-template-columns:1fr 1fr;gap:9px}
body:not(:has(#rankView:not([hidden]))) #runView .fmt-card{border:1px solid #dbe3d2;border-radius:8px;background:#fff;padding:14px 12px;min-height:84px;cursor:pointer}
body:not(:has(#rankView:not([hidden]))) #runView .fmt-card.on{background:#193f32;color:#fff;border-color:#193f32;padding:14px 12px}
body:not(:has(#rankView:not([hidden]))) #runView .fmt-card .fmt-desc{font-size:11px;line-height:1.5;color:#74856a}
body:not(:has(#rankView:not([hidden]))) #runView .fmt-card.on .fmt-desc{color:#c0d1b5}
body:not(:has(#rankView:not([hidden]))) #runView #runPickSet{margin-top:18px;border-top:1px solid #dbe3d2;padding-top:16px}
body:not(:has(#rankView:not([hidden]))) #runView .pk-hint{font-size:12px;color:#74856a;margin:0}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-h{display:flex;justify-content:space-between;align-items:baseline}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-h h4{margin:0;font-size:17px;letter-spacing:-.6px;color:#193f32}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-h small{font-size:12px;color:#74856a}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-route{margin:12px 0 4px;padding:12px 0;border-top:1px solid #dbe3d2;border-bottom:1px solid #dbe3d2;font-size:12px;line-height:1.8;color:#193f32}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-route b{color:#53782f}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #e6ecdf}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-row>span{font-size:13px;font-weight:600;color:#193f32}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-row small{font-size:10px;color:#74856a;font-weight:400}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-count{display:flex;align-items:center;gap:6px;flex:none}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-count button{width:32px;height:34px;border:0;border-radius:6px;background:#edf1e5;color:#193f32;font-size:17px;padding:0}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-count strong{min-width:26px;text-align:center;font-size:23px;font-weight:600;font-variant-numeric:tabular-nums;color:#193f32}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-count em{font-style:normal;font-size:11px;color:#74856a}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-note{font-size:11px;line-height:1.7;color:#74856a;margin:10px 0 0}
body:not(:has(#rankView:not([hidden]))) :is(#runView,#qdDlg) .pk-note b{color:#193f32}
body:not(:has(#rankView:not([hidden]))) #runView #runStartBtn{background:#d7ef8a;color:#193f32;border:0;border-radius:8px;font-weight:700}
body:not(:has(#rankView:not([hidden]))) #runView #runStartBtn:disabled{background:#e6eadf;color:#8d988a}
/* 단계 버튼 */
body:not(:has(#rankView:not([hidden]))) #runView .run-bar{padding:12px 0 12px;margin:0 0 4px;border-bottom:1px solid #dbe3d2}
body:not(:has(#rankView:not([hidden]))) #runView .run-bar button{min-width:0;max-width:none;min-height:36px;padding:8px 12px;border:0;border-radius:6px;background:#edf1e5;color:#193f32;font-size:12px;font-weight:600;white-space:nowrap}
body:not(:has(#rankView:not([hidden]))) #runView .run-bar button::after{display:none}
body:not(:has(#rankView:not([hidden]))) #runView .run-bar button.done{color:#53782f}
body:not(:has(#rankView:not([hidden]))) #runView .run-bar button.done::before{content:'✓ '}
body:not(:has(#rankView:not([hidden]))) #runView .run-bar button.on{background:#193f32;color:#fff}
/* 라운드 이동 */
body:not(:has(#rankView:not([hidden]))) #runView .rnav .arw{width:36px;height:36px;border-radius:6px;border:0;background:#eef2e7;color:#193f32;font-size:22px}
body:not(:has(#rankView:not([hidden]))) #runView .rnav .mid b{font-size:17px;letter-spacing:-.6px;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #runView .rnav .mid span{font-size:11px;color:#74856a}
/* 대진표 | 경기 흐름 */
body:not(:has(#rankView:not([hidden]))) #runView .run-tabs{display:flex;border-bottom:1px solid #dbe3d2;margin:6px 0 12px}
body:not(:has(#rankView:not([hidden]))) #runView .run-tabs button{flex:1;min-height:40px;border:0;background:none;font-size:13px;color:#74856a;border-bottom:2px solid transparent;margin-bottom:-1px}
body:not(:has(#rankView:not([hidden]))) #runView .run-tabs button.on{color:#193f32;font-weight:700;border-color:#193f32}
body:not(:has(#rankView:not([hidden]))) #runView .wave-chips{display:flex;gap:6px;overflow-x:auto;margin:0 0 10px;padding-bottom:2px}
body:not(:has(#rankView:not([hidden]))) #runView .wave-chips button{flex:none;min-height:34px;padding:7px 12px;border:1px solid #dbe3d2;border-radius:99px;background:#fff;color:#193f32;font-size:12px;font-weight:600;white-space:nowrap}
body:not(:has(#rankView:not([hidden]))) #runView .wave-chips button.done{color:#53782f}
body:not(:has(#rankView:not([hidden]))) #runView .wave-chips button.on{background:#193f32;color:#fff;border-color:#193f32}
body:not(:has(#rankView:not([hidden]))) #runView .wave-locked{margin:0 0 10px;padding:10px 12px;border-radius:6px;background:#eef2e7;font-size:12px;line-height:1.6;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #runView .rtab{width:100%;table-layout:fixed;border-collapse:collapse;background:transparent}
body:not(:has(#rankView:not([hidden]))) #runView .rtab th{font-size:10px;color:#859277;font-weight:400;text-align:left;padding:9px 5px;background:#eef2e7;border-top:1px solid #d8e1cc;border-bottom:1px solid #d8e1cc}
body:not(:has(#rankView:not([hidden]))) #runView .rtab th b{font-size:12px;color:#4b6940}
body:not(:has(#rankView:not([hidden]))) #runView .rtab th.ck{width:26px}
body:not(:has(#rankView:not([hidden]))) #runView .rtab th.gp{width:30px;text-align:center}
body:not(:has(#rankView:not([hidden]))) #runView .rtab td{padding:12px 5px;border-bottom:1px solid #e6ecdf;font-size:12.5px;font-weight:600;color:#193f32;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(:has(#rankView:not([hidden]))) #runView .rtab td.gp{text-align:center;font-size:11px;font-weight:400;color:#6c815c}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tbody tr{cursor:pointer}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tbody tr:nth-child(even){background:#f3f6ed}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.now{box-shadow:inset 3px 0 #d7ef8a}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.done td.gp{color:#193f32;font-weight:700}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .ckbox{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:4px;border:1px solid #c9d6bd;font-size:11px;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .ckbox.on{background:#d7ef8a;border-color:#a9cf3c}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .pmark{display:inline-grid;place-items:center;min-width:16px;height:16px;margin-right:4px;border-radius:4px;font-size:10px;font-family:inherit}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .pmark.p1c{background:#193f32;color:#d7ef8a}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .pmark.p2c{background:#d7ef8a;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .pmark.p3c{background:#efe3c9;color:#6d5730}
/* 도구줄 */
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runNext{background:#d7ef8a;color:#193f32;border-color:#d7ef8a;font-weight:700}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runPreset{background:none;border:0;padding:4px 2px;font-size:12px;font-weight:500;color:#193f32}
/* 진출자 선택 · 진출 인원 고치기 창 */
#qdDlg .qd-sub{font-size:12px;line-height:1.7;color:#74856a;margin:0 0 10px}
#qdDlg .qd-sub b{color:#193f32}
#qdDlg .qd-tab tr[data-qd]{cursor:pointer}
#qdDlg .qd-tab tr.tie{background:#f4edda !important;box-shadow:inset 3px 0 #b2924b}
#qdDlg .qd-tab tr.on td{font-weight:700;color:#193f32}
#qdDlg .qd-tab tr.ro{opacity:.55}
#qdDlg .qd-tab .ck{width:44px;text-align:center}
#qdDlg .qd-tab .ckb{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:5px;border:1px solid #c9d6bd;background:#fff;font-size:12px}
#qdDlg .qd-tab tr.on .ckb{background:#193f32;border-color:#193f32;color:#d7ef8a}
:is(#qdDlg,#plDlg) .qd-f{display:flex;gap:8px;padding:12px 18px 16px;border-top:1px solid #dbe3d2}
:is(#qdDlg,#plDlg) .qd-f .btn{flex:1;padding:13px;border-radius:8px}
:is(#qdDlg,#plDlg) .qd-f .btn:disabled{opacity:.4}
#runView .qd-card .btn{background:#193f32;color:#fff;border-radius:8px;padding:13px}
/* 선수 배치 창 */
#plDlg .pl-in{max-width:400px;width:calc(100vw - 24px)}
#plDlg .pl2-board{padding:0}
#plDlg .pl2-slot{height:44px;margin:8px 0}
#plDlg .pl2-slot p b{color:#193f32}
/* 순위 입력 창 — 화면 가운데 팝업, 1·2·3위 색 구분 */
body:not(:has(#rankView:not([hidden]))) #mtModal{align-items:center;justify-content:center;padding:16px}
body:not(:has(#rankView:not([hidden]))) #mtModal > .sheet{border-radius:14px;max-width:358px;width:100%;margin:auto;max-height:84dvh;animation:none}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-grid{display:flex !important;flex-direction:column;gap:0;border-top:1px solid #dbe3d2}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-cell{display:grid;grid-template-columns:44px 1fr;align-items:center;padding:0;border-bottom:1px solid #dbe3d2}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-lane{font-size:10px;color:#74856a;text-align:center;line-height:1.3}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-lane b{display:block;font-size:13px;color:#4b6940}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:10px;min-height:58px;border:0;border-radius:0;background:transparent;padding:10px 12px;text-align:left}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .nm{font-size:15px;font-weight:700;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .mk{width:auto;height:auto;min-width:46px;padding:6px 8px;border-radius:7px;background:#eef2e7;color:#9aa58f;font-size:17px;font-weight:700;text-align:center;line-height:1.1}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .mk small{display:block;font-size:10px;font-weight:600}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s1{background:#193f32}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s1 .nm{color:#e3f5b5}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s1 .mk{background:#d7ef8a;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s2{background:#eaf5c6}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s2 .mk{background:#193f32;color:#d7ef8a}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s3{background:#f3ead6}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s3 .mk{background:#8a6d3b;color:#fff}
body:not(:has(#rankView:not([hidden]))) #mtModal .btnrow .btn{border-radius:8px;padding:13px}

body:not(:has(#rankView:not([hidden]))) #runView .rtab :is(th,td):is(.ln1,.ln2,.ln3){border-left:0}
body:not(:has(#rankView:not([hidden]))) #runView .rtab td.gp{background:transparent;font-family:inherit}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.done{opacity:1}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.done td:not(.ck):not(.gp){color:#3a5a45}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.now td{background:#f6fbe6;border-top:0;border-bottom:1px solid #e6ecdf;padding:12px 5px}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.now td.gp{font-size:11px}
body:not(:has(#rankView:not([hidden]))) #runView .rtab td.ck{padding:12px 2px;text-align:center}
body:not(:has(#rankView:not([hidden]))) #mtModal > .sheet::before{display:none}
body:not(:has(#rankView:not([hidden]))) #runView .run-bar button{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;height:36px;flex:none;line-height:1}

/* v2.6b 순위 입력 — PC 시안 모양(금·청회·동) */
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-grid{display:block !important;border:0}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-cell{display:block;padding:0;border:0}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;margin:8px 0;padding:14px 16px;min-height:0;border:1px solid #dce3d4;border-radius:9px;background:#fff;text-align:left;cursor:pointer}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.off{opacity:.45;cursor:default}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-l{display:flex;flex-direction:column;gap:5px;min-width:0}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-l small{font-size:10px;color:#74836a;font-weight:400;letter-spacing:0}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-l strong{font-size:16px;font-weight:700;color:#193f32;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .mk{flex:none;display:flex;flex-direction:column;align-items:flex-end;min-width:52px;width:auto;height:auto;padding:0;border-radius:0;background:none !important;color:#819073;font-size:13px;font-weight:700;line-height:1.1;text-align:right}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .mk small{display:block;margin-top:4px;font-size:10px;font-weight:600}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s1{background:#f7efd7;border-color:#d7b957}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s1 .mk{color:#775313;font-size:21px}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s2{background:#e9eff4;border-color:#a9becf}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s2 .mk{color:#45637c;font-size:21px}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s3{background:#f4e5dd;border-color:#d5ab93}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in.s3 .mk{color:#895333;font-size:21px}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in :is(.nm){display:none}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .pmark.p1c{background:#f5e6ae;color:#775313}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .pmark.p2c{background:#dce8f1;color:#45637c}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .pmark.p3c{background:#f0d8c8;color:#895333}
#runView .bkt-svg .bs-win{fill:#f7efd7}
/* 지금 할 경기 — 주황 */
body:not(:has(#rankView:not([hidden]))) #runView .live-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:9px 12px;border-radius:6px;background:#fff0dd;color:#8b400c}
body:not(:has(#rankView:not([hidden]))) #runView .live-line span{display:flex;align-items:center;gap:8px;font-size:12px}
body:not(:has(#rankView:not([hidden]))) #runView .live-line i{width:8px;height:8px;border-radius:50%;background:#e57619}
body:not(:has(#rankView:not([hidden]))) #runView .live-line button{border:0;background:none;padding:4px 0;min-height:30px;font-size:11px;color:#8b400c;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.now td{background:#fff2df}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.now{box-shadow:inset 3px 0 #e28a32}
#runView .bkt-svg .bs-box.now .bs-bg{stroke:#e28a32;stroke-width:2}
#runView .bkt-svg .bs-box.now .bs-hd{fill:#ffecd3}
/* PC 1024px 이상 — 경기 진행 화면만 */
@media(min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start;margin-top:8px}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-card{background:#fff;border:1px solid #dfe5d6;border-radius:14px;padding:18px 18px 16px;min-width:0}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-h h4{margin:0;font-size:18px;letter-spacing:-.6px;color:#193f32}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-h small{font-size:11px;color:#74856a}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r .bkt-wrap,body:not(:has(#rankView:not([hidden]))) #runView .pc-r .bk-scroll{max-height:none}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r{overflow:auto}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-pts{display:flex;flex-direction:column}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-pt{display:grid;grid-template-columns:28px 1fr auto;align-items:center;padding:10px 4px;border-bottom:1px solid #e6ecdf;font-size:13px}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-pt span{color:#74856a;font-size:12px}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-pt b{color:#193f32;font-weight:600}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-pt em{font-style:normal;font-weight:700;color:#193f32;font-variant-numeric:tabular-nums}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-more{font-size:11px;color:#74856a;margin:10px 0 0}
}

body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .mk{margin:0 !important}
body:not(:has(#rankView:not([hidden]))) #runView .rtab td.ck{font-size:0}
@media(min-width:1024px){
  /* 경기 진행 화면이 열려 있을 때만 PC 폭을 넓힙니다 (다른 화면은 그대로) */
  body:not(:has(#rankView:not([hidden]))) #runView .run-top{margin:0 -24px;padding:26px 24px 22px;border-radius:0}
  body:not(:has(#rankView:not([hidden]))) #runView .run-top .ttl{font-size:28px}
  body:not(:has(#rankView:not([hidden]))) #runView #runPick{max-width:720px}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px}
}

body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .mk{font-family:inherit}

/* ===== v2.7 / v23 — reference alignment, screen-only and view scoped ===== */
body:not(:has(#rankView:not([hidden]))) #runView,#mtModal,#qdDlg,#plDlg{font-family:'Noto Sans KR','Malgun Gothic',sans-serif;font-variant-numeric:tabular-nums}
body:not(:has(#rankView:not([hidden]))) #runView{padding-bottom:calc(var(--navh) + 210px)}
body:not(:has(#rankView:not([hidden]))) #runView #runPick,#runView #runMain{padding-inline:8px}
body:not(:has(#rankView:not([hidden]))) #runView #runPick>.hint{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px!important}
body:not(:has(#rankView:not([hidden]))) #runView #runPick>.hint small{font-size:12px;font-weight:400;color:#74856a;letter-spacing:0}
body:not(:has(#rankView:not([hidden]))) #runView .fmt-card{background:#fafbf6;min-height:87px}
body:not(:has(#rankView:not([hidden]))) #runView .fmt-name{font-size:14px;font-weight:700;letter-spacing:0}
body:not(:has(#rankView:not([hidden]))) #runView .fmt-desc{font-size:11px;line-height:1.6}
body:not(:has(#rankView:not([hidden]))) #runView .pk-route{padding:13px 0}
body:not(:has(#rankView:not([hidden]))) #runView .pk-row{padding:12px 0}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tbody tr{height:51px}
body:not(:has(#rankView:not([hidden]))) #runView .rtab th.ck{width:20px}
body:not(:has(#rankView:not([hidden]))) #runView .rtab th.gp{width:22px}
body:not(:has(#rankView:not([hidden]))) #runView .rtab .ckbox{width:14px;height:14px;border-radius:3px}
body:not(:has(#rankView:not([hidden]))) #runView .rtab td{font-weight:700}
body:not(:has(#rankView:not([hidden]))) #runView .rtab td.ck{padding-inline:1px}
body:not(:has(#rankView:not([hidden]))) #runView .pt-open-row{justify-content:stretch;margin:15px 8px}
body:not(:has(#rankView:not([hidden]))) #runView .ptbtn{width:100%;background:#eef2e7;color:#193f32;border:0;padding:12px 14px;text-align:left;font-size:13px}
body:not(:has(#rankView:not([hidden]))) #runView .rdots{margin:8px auto 12px;gap:5px}
body:not(:has(#rankView:not([hidden]))) #runView .live-line{border-radius:0;min-height:44px;padding:8px 12px;white-space:nowrap}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar{grid-template-columns:1fr 1fr 1.7fr!important;padding:10px 14px 9px;gap:7px;background:#fafbf6;box-shadow:none}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar .btn{border-radius:7px;min-width:0;padding:10px 5px}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runNext{grid-column:3;grid-row:1}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runUndo{grid-column:1;grid-row:1}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runFix{grid-column:2;grid-row:1}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar:has(#runNext[hidden]) #runFix{grid-column:2 / -1}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runPreset{grid-column:2;grid-row:2;font-size:10px}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runExit{grid-column:1;grid-row:2}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runReset{grid-column:3;grid-row:2}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runClose{grid-column:3;grid-row:3;justify-self:end}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runSkipRound{grid-column:1 / -1;grid-row:4}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runReshuffle{grid-column:1 / -1;grid-row:5}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar :is(#runExit,#runReset,#runClose){font-size:10px;min-height:30px;white-space:normal}
body:not(:has(#rankView:not([hidden]))) #mtModal>.sheet{background:#fafbf6;padding:20px 18px 16px;overflow:auto}
body:not(:has(#rankView:not([hidden]))) #mtModal #mtTitle{font-size:19px!important;letter-spacing:-.6px}
body:not(:has(#rankView:not([hidden]))) #mtModal #mtClose{width:34px;height:34px;background:#eef2e7!important;border-radius:50%;color:#193f32!important}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-guide{font-size:12px;color:#74856a;line-height:1.7;margin:12px 0 10px}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in{box-shadow:none!important;border-width:1px!important}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-summary{border-bottom:1px solid #dbe3d2;padding:12px 0;margin:0 0 12px;font-size:12px;color:#74856a;line-height:1.7}
body:not(:has(#rankView:not([hidden]))) #mtModal .mt-summary span{display:block;font-size:11px;margin-top:4px}
body:not(:has(#rankView:not([hidden]))) #mtModal #mtBody>.hint{font-size:11px;line-height:1.7}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-sub{padding:12px;background:#eef2e7;border-radius:6px;color:#193f32;margin-bottom:12px}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tie{padding:12px;background:#f4edda;border-radius:6px;color:#7a5c27;font-size:12px;margin:0 0 12px}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab{table-layout:fixed;width:100%;border-collapse:collapse}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab th{background:transparent;border:0;font-size:10px;color:#74856a}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab th:nth-child(2){width:30px}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab th:last-child{width:64px;text-align:right}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab :is(th,td).ck{width:36px;text-align:center}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab td{height:46px;border-bottom:1px solid #dbe3d2;font-size:13px;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab td:nth-child(2){font-size:12px;color:#74856a}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab td:nth-child(3){font-weight:700}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab .qd-points{text-align:right;font-weight:700}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab .ckb{border-radius:2px;width:18px;height:18px;color:white}
body:not(:has(#rankView:not([hidden]))) #qdDlg .qd-tab tr.on:not(.tie){background:transparent}
body:not(:has(#rankView:not([hidden]))) #plDlg .pl2-slot,#plDlg .has-sel .pl2-slot{background:transparent;padding:10px 5px 13px;height:auto;min-height:44px;margin:0}
body:not(:has(#rankView:not([hidden]))) #plDlg .pl-seat.allowed{background:#eaf3d6;box-shadow:inset 0 0 0 1px #bed49b;color:#3a6326;font-size:11px}
body:not(:has(#rankView:not([hidden]))) #plDlg .pl-seat{min-height:39px}
body:not(:has(#rankView:not([hidden]))) #plDlg .pl2-head h4{font-size:17px;font-weight:700}
body:not(:has(#rankView:not([hidden]))) #plDlg .pl2-warn{padding:12px 5px;font-size:10px;line-height:1.7}
body:not(:has(#rankView:not([hidden]))) #runView .bkt-svg .bs-box.now .bs-hd{fill:#fff0dd}
@media(min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView #runMain{padding-inline:0}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-card{padding:0;border-radius:12px;overflow:hidden}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-h{padding:24px;margin:0;border-bottom:1px solid #dbe3d2}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-l>.live-line{margin:0;border-radius:0;border-bottom:1px solid #edc69c}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-l>.wave-chips{padding:12px 20px;margin:0}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-l>.hint{padding:0 26px 20px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper{padding:26px;background:white}
  body:not(:has(#rankView:not([hidden]))) #runView .paper-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #193f32;border-radius:2px;padding:16px;min-height:75px;margin-bottom:24px;color:#193f32}
  body:not(:has(#rankView:not([hidden]))) #runView .paper-head>b{font-size:16px}
  body:not(:has(#rankView:not([hidden]))) #runView .paper-head>div{text-align:center;min-width:0}
  body:not(:has(#rankView:not([hidden]))) #runView .paper-head strong{display:block;font-size:18px;overflow-wrap:anywhere}
  body:not(:has(#rankView:not([hidden]))) #runView .paper-head small{display:block;font-size:10px;color:#74856a;margin-top:6px}
  body:not(:has(#rankView:not([hidden]))) #runView .paper-round{background:#edf3df;padding:7px 10px;border-top:1px solid #8ca571;font-size:11px;font-weight:700;color:#3f6130}
  body:not(:has(#rankView:not([hidden]))) #runView .paper-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
  body:not(:has(#rankView:not([hidden]))) #runView .paper-cols.two{grid-template-columns:repeat(2,minmax(0,1fr))}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper :is(.rtab,.pt-tab){width:100%;table-layout:fixed;border-collapse:collapse;margin:0}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper :is(.rtab,.pt-tab) th{font-size:9px;font-weight:400;background:#f5f7ef;padding:8px 3px;border-top:0;border-bottom:1px solid #193f32;color:#193f32}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper .rtab th b{font-size:9px;font-weight:400}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper :is(.rtab,.pt-tab) td{font-size:10px;font-weight:400;padding:9px 3px;border-bottom:1px solid #e6ecdf;border-left:1px solid #edf0e9;white-space:normal;overflow-wrap:anywhere;background:transparent}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper .rtab tbody tr{height:38px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper .rtab th.ck{width:18px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper .rtab th.gp{width:22px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper :is(.rtab,.pt-tab) tr:nth-child(even){background:transparent}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper :is(.rtab,.pt-tab) tr.now td{background:#fff2df}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper .pt-c .nm{font-size:10px;white-space:normal}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper .pt-c .pt{float:right;font-size:10px}
  body:not(:has(#rankView:not([hidden]))) #runView .pt-block{background:white;border:1px solid #dbe3d2;border-radius:12px;overflow:hidden;margin-bottom:20px}
  body:not(:has(#rankView:not([hidden]))) #runView .pt-title{padding:24px;background:white;border:0;color:#193f32}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r .bkt-wrap{background:#f3f6ed;border-radius:0;padding:20px;overflow:auto}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r .bkt-svg{zoom:1.3;max-width:none;flex:none}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r .bk-tools{padding:12px 20px;margin:0}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar{grid-template-columns:1fr 1fr 1.7fr!important;margin-inline:0;padding-inline:24px}
  body:not(:has(#rankView:not([hidden]))) #mtModal>.sheet{max-width:540px;padding:26px;border-radius:15px}
  body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in{padding:17px 18px;margin:9px 0;min-height:81px}
  body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in .mk{font-size:13px}
  body:not(:has(#rankView:not([hidden]))) #mtModal .mt-in:is(.s1,.s2,.s3) .mk{font-size:24px}
}
/* Keep the points entry after the match content without changing its event wiring. */
body:not(:has(#rankView:not([hidden]))) #runView #runMain{display:flex;flex-direction:column}
body:not(:has(#rankView:not([hidden]))) #runView #runMain>.pt-open-row{order:2}
@media(min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView{position:relative;left:50%;transform:translateX(-50%);width:min(1240px,calc(100vw - 40px));max-width:none}
  body:not(:has(#rankView:not([hidden]))) #runView .run-top{margin-inline:0}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
}

/* v24 — 승인된 PC 상단: pc1/screen.css의 page-title / nav 값 */
@media screen and (min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView .run-top{display:grid;grid-template-columns:minmax(0,1fr) fit-content(60%);align-items:end;justify-content:space-between;column-gap:20px;row-gap:0;margin:0;padding:32px 0 28px;background:none;color:#193f32;border-radius:0}
  body:not(:has(#rankView:not([hidden]))) #runView .run-top .ttl{grid-column:1;grid-row:1;font-size:32px;font-weight:700;letter-spacing:-1.5px;line-height:normal;color:#193f32;margin:0}
  body:not(:has(#rankView:not([hidden]))) #runView .run-eyebrow{display:block;font-size:11px;font-weight:400;letter-spacing:1px;margin:0 0 8px;color:#75826a}
  body:not(:has(#rankView:not([hidden]))) #runView .run-heading{display:block;overflow-wrap:anywhere}
  body:not(:has(#rankView:not([hidden]))) #runView .run-top .run-step{grid-column:1;grid-row:2;white-space:normal;font-size:12px;font-weight:400;color:#75826a;margin:10px 0 0;padding:0;border:0;background:none;line-height:normal}
  body:not(:has(#rankView:not([hidden]))) #runView .run-top #runBar{grid-column:2;grid-row:1 / 3;display:flex;gap:6px;padding:5px;margin:0;border:1px solid #dce3d3;border-radius:9px;background:#eef2e6;min-width:0;overflow-x:auto;align-self:end}
  body:not(:has(#rankView:not([hidden]))) #runView .run-top #runBar[hidden]{display:none}
  body:not(:has(#rankView:not([hidden]))) #runView #runBar button{padding:11px 18px;border-radius:6px;font-size:12px;font-weight:400;white-space:nowrap;background:none;border:0;color:#193f32;min-height:0;height:auto;line-height:normal;letter-spacing:normal}
  body:not(:has(#rankView:not([hidden]))) #runView #runBar button.on{background:#193f32;color:#fff}
  body:not(:has(#rankView:not([hidden]))) #runView :is(.rnav,.rdots){display:none}
}

/* v25 — 승인 1~4: PC 경기 진행 여백 및 버튼 배치. 기존 DOM/동작 유지. */
@media screen and (min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView .run-top{padding-block:16px 12px}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-h{padding-block:12px}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r:has(> .bk-tools){position:relative}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r:has(> .bk-tools) > .pc-h{min-height:61px;padding-right:160px;align-items:center}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r > .bk-tools{position:absolute;top:12px;right:24px;padding:0;margin:0}
  body:not(:has(#rankView:not([hidden]))) #runView .pc-r > .bk-tools .bk-zoom{height:36px;padding-block:0}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar::before{content:"";order:3;flex-basis:100%;height:0}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar :is(#runUndo,#runFix){flex:1 1 calc((100% - 14px) / 3.7)}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runNext{order:2;flex:1.7 1 calc((100% - 14px) * 1.7 / 3.7)}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar :is(#runExit,#runPreset,#runSkipRound,#runReshuffle,#runClose,#runReset){flex:0 0 auto;width:auto;white-space:nowrap}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runUndo{order:0}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runFix{order:1}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runExit{order:4}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runPreset{order:5}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runSkipRound{order:6;padding-inline:12px}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runReshuffle{order:7;padding-inline:12px}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runClose{order:8;margin-left:12px}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar #runReset{order:9;margin-left:12px}
}

/* v26 — 승인된 PC 카드 머리와 기존 확대 버튼 상태에 따른 배치만 변경. */
@media screen and (min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView .pc-l > :is(.pc-h,.live-line){display:none}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc{align-items:start}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper > .sheet-head{display:flex;align-items:center;gap:10px;border:2px solid var(--ink);border-radius:6px;padding:3mm 4mm;margin:0 0 24px;color:var(--ink)}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper > .sheet-head img{height:11mm;width:auto;flex-shrink:0}
  body:not(:has(#rankView:not([hidden]))) #runView .run-paper .sheet-mid{flex:1;min-width:0;text-align:center;overflow-wrap:anywhere}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]){grid-template-columns:minmax(0,.65fr) minmax(0,1.43fr)}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-l .paper-cols.two{grid-template-columns:minmax(0,1fr)}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-l .run-paper{padding:14px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-l .run-paper :is(.rtab,.pt-tab) :is(th,td){font-size:9px;padding:6px 2px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-l .run-paper .rtab th b{font-size:9px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-l .run-paper .rtab th.ck{width:16px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-l .run-paper .rtab th.gp{width:18px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-l .run-paper .rtab tbody tr{height:32px}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-r .bkt-wrap{padding:14px;min-width:0}
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-r .bkt-svg{zoom:1;width:100%;height:auto;max-width:100%;display:block}
}

/* v2.6c 경기 흐름 선 — 확정 전 연한 선, 1위가 정해지면 진한 선 */
#runView .bkt-svg .bs-line.wait,#runModal .bkt-svg .bs-line.wait{stroke:#cdd8c2;stroke-width:1}
#runView .bkt-svg .bs-line.on,#runModal .bkt-svg .bs-line.on{stroke:#3f6b4a;stroke-width:1.6}
/* v2.6c PC 도구줄 — 바탕을 불투명하게 해서 뒤의 대진표 카드가 비쳐 보이지 않게 */
@media screen and (min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar{background:#f8f8f3;box-shadow:0 -6px 14px #193f320d}
  body:not(:has(#rankView:not([hidden]))) #runView #runBody{padding-bottom:16px}
}

/* ===== v2.6 도구줄 한 줄 + ⋯ 메뉴 (휴대폰·PC 공통) ===== */
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4{display:grid !important;grid-template-columns:1fr 1.25fr 1.55fr 46px !important;gap:7px;align-items:stretch}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4 > .btn{grid-column:auto !important;grid-row:1 !important;order:0 !important;flex:none !important;width:auto;min-width:0;margin:0 !important;padding:11px 6px;border-radius:8px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4 > .btn[hidden]{display:none !important}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4::before{display:none !important}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4:has(#runNext[hidden]){grid-template-columns:1fr 1.25fr 46px !important}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4:has(#runMore[hidden]){grid-template-columns:1fr 1.25fr 1.55fr !important}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4:has(#runNext[hidden]):has(#runMore[hidden]){grid-template-columns:1fr 1.25fr !important}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4 #runFix .sm{display:none}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4 #runMore{font-size:18px;line-height:1;padding:8px 0;letter-spacing:1px}
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4 #runMore[aria-expanded=true]{background:#193f32;color:#fff;border-color:#193f32}
@media (max-width:600px){
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4 #runFix .lg{display:none}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4 #runFix .sm{display:inline}
  body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4{grid-template-columns:1fr 1fr 1.5fr 44px !important}
}
body:not(:has(#rankView:not([hidden]))) #runView .run-more-menu{position:fixed;right:max(12px, calc((100vw - 1240px)/2 + 24px));bottom:calc(var(--navh, 64px) + 72px);z-index:70;min-width:200px;display:flex;flex-direction:column;padding:6px;background:#fff;border:1px solid #dbe3d2;border-radius:12px;box-shadow:0 14px 34px #193f3226}
body:not(:has(#rankView:not([hidden]))) #runView .run-more-menu[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #runView .run-more-menu .rm-item{display:block;width:100%;text-align:left;min-height:44px;padding:11px 14px;border:0;border-radius:8px;background:none;font-size:14px;font-weight:600;color:#193f32;white-space:nowrap}
body:not(:has(#rankView:not([hidden]))) #runView .run-more-menu .rm-item[hidden]{display:none}
body:not(:has(#rankView:not([hidden]))) #runView .run-more-menu .rm-item.danger{color:#b0453b}
body:not(:has(#rankView:not([hidden]))) #runView .run-more-menu .rm-item:hover{background:#f3f6ed}
body:not(:has(#rankView:not([hidden]))) #runView .run-more-menu .rm-item + .rm-item.danger:not([hidden]){border-top:0}
@media (max-width:1023px){body:not(:has(#rankView:not([hidden]))) #runView .run-top{margin-left:-12px;margin-right:-12px}}
/* v2.6 앞 결과 수정으로 이름이 바뀐 경기 — 다음 결과를 넣을 때까지 표시 */
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.chg td{background:#e9eff4}
body:not(:has(#rankView:not([hidden]))) #runView .rtab tr.chg td.gp::after{content:"바뀜";display:block;font-size:9px;color:#45637c;font-weight:700}
#runView .bkt-svg .bs-box.chg .bs-bg{stroke:#45637c;stroke-width:2;stroke-dasharray:4 3}
#runView .bkt-svg .bs-box.chg .bs-hd{fill:#e9eff4}

/* v2.6d 확대 보기 — 크게 키우지 않고, 미리 그린 칸이 카드 폭 안에 다 들어오게만 맞춥니다 */
@media screen and (min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView .run-pc:has(.pc-r > .bk-tools .bk-zoom[aria-pressed="true"]) .pc-r .bkt-svg{width:auto !important;max-width:100% !important;height:auto !important}
}

/* v2.6e 도구줄 hidden 우선 (경기 방식 고르는 화면에서는 숨김) */
body:not(:has(#rankView:not([hidden]))) #runView .runtoolbar.tb4[hidden], #runToolbar[hidden]{display:none !important}

/* v2.6e 지금 할 조 테두리 — 머리말이 테두리를 가려 깨져 보이던 것 수정 */
#runView .bkt-svg .bs-ol{fill:none;stroke:#e28a32;stroke-width:2;pointer-events:none}

/* v2.6e 대진표 보기 — [기본 | 전체] 두 칸. 처음은 기본, 전체를 누르면 대진표 전체가 폭 안에 다 보입니다 */
.bk-zoom{display:inline-flex;gap:2px;padding:3px !important;height:auto !important}
.bk-zoom span{padding:5px 12px;border-radius:7px;line-height:1.2;white-space:nowrap}
.bk-zoom[aria-pressed="true"]{background:#fff;color:var(--ink);border-color:#c9d5bf}
.bk-zoom[aria-pressed="false"] .bz-a,.bk-zoom[aria-pressed="true"] .bz-b{background:#163e32;color:#fff}
body:not(:has(#rankView:not([hidden]))) #runView .pc-r > .bk-tools .bk-zoom{height:36px !important;align-items:stretch}
body:not(:has(#rankView:not([hidden]))) #runView .pc-r > .bk-tools .bk-zoom span{display:flex;align-items:center}
@media screen and (max-width:1023px){
  body.bk-big #runView .bkt-svg{zoom:1 !important;width:100% !important;max-width:100% !important;height:auto !important}
  body.bk-big #runView .bkt-wrap{overflow-x:hidden}
}
body.bk-big #runModal .bkt-svg{zoom:1 !important;width:100% !important;max-width:100% !important;height:auto !important}

/* v2.6h 포인트전 진출자 선택 창 — 제목·안내·하단(선택 수·닫기·완료)은 고정, 선수 목록만 스크롤 */
#qdDlg .pt-dlg-in:has(.qd-tab){display:flex;flex-direction:column;overflow:hidden;max-height:min(85dvh,760px)}
#qdDlg .pt-dlg-in:has(.qd-tab) > .pt-dlg-h,#qdDlg .pt-dlg-in:has(.qd-tab) > .qd-f{flex:none}
#qdDlg .pt-dlg-in:has(.qd-tab) > .pt-dlg-b{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding-bottom:10px}
#qdDlg .pt-dlg-b > :is(.qd-sub,.qd-tie,.pt-foot){flex:none}
#qdDlg .pt-dlg-b > .rank-scroll{flex:1 1 auto;min-height:120px;max-height:none !important;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#qdDlg .pt-dlg-b > .pt-foot{margin:10px 0 0}
#qdDlg .qd-tab thead th{position:sticky;top:0;z-index:1;background:#f8f8f3 !important}

/* v2.6h 선수 명단 수정 — 지금 고른 사람을 배치 창(v2)과 같은 모양으로 또렷하게 */
#runView table.rtab td.seat.picked,#runView table.rtab td.picked{background:#193f32 !important;color:#e3f5b5 !important;font-weight:800 !important;outline:2px solid #c1dd8a;outline-offset:-2px;animation:pl2Glow 1.6s ease-in-out infinite}
#runView table.rtab td.picked .pmark{filter:brightness(1.2)}
#runView table.rtab td.seat{cursor:pointer}
#runView .bkt-svg .bs-pick{fill:#193f32 !important;stroke:#c1dd8a;stroke-width:2;animation:bsPickGlow 1.6s ease-in-out infinite}
#runView .bkt-svg .bs-pick-t{fill:#e3f5b5;font-size:8.5px;font-weight:800;pointer-events:none}
@keyframes bsPickGlow{50%{stroke:#759e42}}
@media(prefers-reduced-motion:reduce){#runView table.rtab td.picked,#runView .bkt-svg .bs-pick{animation:none}}

/* v2.6h PC 하단 도구줄 — 양옆과 아래(메뉴 줄 옆)로 본문이 비치지 않게 같은 바탕색으로 가립니다 */
@media screen and (min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView #runToolbar:not([hidden]){background:#f8f8f3;box-shadow:0 0 0 100vmax #f8f8f3;clip-path:inset(-14px -100vmax -160px -100vmax)}
}

/* v2.6h PC 경기 진행 화면 넓히기 — transform 대신 여백으로 가운데 정렬
   (transform 이 있으면 안쪽의 ⋯ 메뉴 같은 화면 고정 요소가 화면 밖으로 밀려 납니다) */
@media screen and (min-width:1024px){
  body:not(:has(#rankView:not([hidden]))) #runView{left:auto;transform:none;margin-left:calc((100% - min(1240px, calc(100vw - 40px))) / 2)}
}

/* v2.6h 조 번호 — 체크 칸 없이, 결과를 넣은 조는 번호를 연두 박스로 (시안 가) */
.rtab :is(th,td).gp{width:40px !important;padding-left:4px !important;padding-right:4px !important;text-align:center !important}
.rtab td.gp .gpn{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:6px;box-sizing:border-box;color:#8a967e;font-weight:500;font-size:11px;line-height:1}
.rtab tr.done td.gp .gpn{background:#d7ef8a;color:#193f32;font-weight:800}
.pt-tab :is(th:first-child,td.pt-g){width:40px !important;padding-left:4px !important;padding-right:4px !important;text-align:center !important}
.pt-tab td.pt-g .gpn{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:6px;box-sizing:border-box;color:#8a967e;font-weight:500;font-size:11px;line-height:1}
.pt-tab tr.done td.pt-g .gpn{background:#d7ef8a;color:#193f32;font-weight:800}

/* ===== v2.7 승인 A안: 일정 고정 띠 · 지난 날짜 · 기록 종목 선택 ===== */
body:not(:has(#rankView:not([hidden]))) :is(#weekView,#monthView) .sched-sticky{position:sticky;top:var(--sched-top,0px);z-index:19;display:flow-root;background:#f8f8f3;border-bottom:1px solid #e2e5dd;padding:1px 0 8px;box-shadow:none;border-radius:0}
body:not(:has(#rankView:not([hidden]))) :is(#weekView,#monthView) .sched-sticky .sched-tabs{margin:10px auto 8px}
body:not(:has(#rankView:not([hidden]))) :is(#weekView,#monthView) .sched-sticky .cal-nav{display:grid;grid-template-columns:32px minmax(0,1fr) auto 32px;gap:5px;margin:6px 0 10px;align-items:center}
body:not(:has(#rankView:not([hidden]))) :is(#weekView,#monthView) .sched-sticky .cal-title{grid-column:auto;grid-row:auto;min-width:0;text-align:center;font-size:17px;white-space:normal;line-height:1.35}
body:not(:has(#rankView:not([hidden]))) :is(#weekView,#monthView) .sched-sticky .cal-nav button{grid-column:auto;grid-row:auto;min-width:0}
body:not(:has(#rankView:not([hidden]))) :is(#weekView,#monthView) .sched-sticky :is(#weekStrip,#calHead){display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-bottom:0}
body:not(:has(#rankView:not([hidden]))) #weekView .wk-cell.past :is(.wk-date,.wk-dow,.wk-time,.wk-title,.wk-course){color:#727c78}
body:not(:has(#rankView:not([hidden]))) #weekView .wk-cell.past .chip{background:#edf0eb !important;color:#727c78 !important}
body:not(:has(#rankView:not([hidden]))) #weekView .wk-chip.past :is(span,b){color:#727c78}
body:not(:has(#rankView:not([hidden]))) #monthView #calBody .cal-cell.past:not(.today) :is(.cal-num,.cal-ev,.t,.cal-cls){color:#727c78}
#resultView #resCls{display:flex;width:100%;min-width:0;align-items:center;gap:12px;background:#fff;border:1px solid #dce4d7;border-radius:12px;padding:0 12px;margin:0 0 16px;box-sizing:border-box}
#resultView #resCls label{flex:none;font-size:14px;color:#637078}
#resultView #resCls select{flex:1;width:0;min-width:0;min-height:46px;border:0;border-radius:10px;font-size:15px;padding-left:0;color:#142d29}
#resultView #resCls:focus-within{outline:2px solid #3f6b4a;outline-offset:2px}
@media(max-width:360px){body:not(:has(#rankView:not([hidden]))) :is(#weekView,#monthView) .sched-sticky .cal-title{font-size:15px}}
/* v2.7 검수 보정(Claude) — 고정 띠를 화면 좌우 여백까지 넓혀 뒤 내용이 양옆으로 비치지 않게, 종목 선택 상자에 ▾ 표시 */
body:not(:has(#rankView:not([hidden]))) :is(#weekView,#monthView) .sched-sticky{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}
#resultView #resCls{position:relative}
#resultView #resCls select{appearance:none;-webkit-appearance:none;background:transparent;padding-right:28px;cursor:pointer}
#resultView #resCls::after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;border-right:2px solid #193f32;border-bottom:2px solid #193f32;transform:translateY(-70%) rotate(45deg);pointer-events:none}
/* v2.7 홈 대표 글씨 — 첫 시안 모양: 이번 달 작은 글씨 + 바로 선 굵은 제목 + 마지막 줄 연두 밑줄 */
body:not(:has(#rankView:not([hidden]))) #listView .hero-tx{padding:18px 18px 0}
body:not(:has(#rankView:not([hidden]))) #listView .hero-kicker{display:block !important;margin:0 0 4px;font-size:14px;font-weight:600;color:#3d5a4c;letter-spacing:-.02em}
body:not(:has(#rankView:not([hidden]))) #listView .hero-title{font-size:clamp(26px,8.2vw,33px) !important;font-style:normal !important;font-weight:900;line-height:1.14;letter-spacing:-.05em;max-width:62%;color:#193f32}
body:not(:has(#rankView:not([hidden]))) #listView .hero-title .hl{background:linear-gradient(transparent 70%,#c9ea6b 70%,#c9ea6b 92%,transparent 92%) !important}

/* v2.8 선수 수정 줄 — 아래 도구줄 바로 위 고정 + 삭제 확인 창 */
#runView .runtoolbar > #fixBar{position:absolute;left:0;right:0;bottom:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;background:#163e32;border-radius:12px 12px 0 0}
#fixBar .fix-hint{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:#eaf2d8}
#fixBar #fixDel{flex:none;border:0;border-radius:8px;padding:9px 18px;font:inherit;font-size:13px;font-weight:700;background:#c8473b;color:#fff;cursor:pointer}
#fixBar #fixDel:disabled{background:#ffffff24;color:#ffffff8c;cursor:default}
#runView:has(#fixBar) #runMain{padding-bottom:56px}
#fxDlg .pt-dlg-h{padding-bottom:6px}
#fxDlg .pt-dlg-b > p{font-size:12.5px;margin-bottom:14px}
#fxDlg .pt-dlg-b > p b{color:#b0453b}
#fxDlg .fx-btns{display:grid;gap:8px}
#fxDlg .fx-b{display:block;width:100%;border:1px solid #163e32;border-radius:12px;padding:12px 14px;background:#163e32;color:#fff;font:inherit;font-size:15px;font-weight:700;text-align:center;cursor:pointer}
#fxDlg .fx-b small{display:block;margin-top:3px;font-size:11px;font-weight:400;opacity:.8}
#fxDlg .fx-b.danger{background:#c8473b;border-color:#c8473b}
#fxDlg .fx-b.ghost{background:#fff;color:#163e32;border-color:#d7ded2;font-weight:600}
@media (min-width:900px){
  body:not(:has(#rankView:not([hidden]))) #runView #runToolbar:not([hidden]):has(#fixBar){clip-path:inset(-64px -100vmax -160px -100vmax)}
  #runView .runtoolbar > #fixBar{justify-content:center;gap:18px}
}
/* v2.8 대진표 인쇄 — 대회 정보 줄과 위쪽 여백이 같이 찍혀 둘째 장이 생기던 것을 막습니다 */
@media print{
  body.printing{padding:0 !important;margin:0 !important}
  body.printing .wrap,body.printing #brView{padding:0 !important;margin:0 !important}
  body.printing #brCtx,body.printing #toast,body.printing #viewSeg{display:none !important}
}
