/* Suxism Tools — v1 */
.sxt, .sxt-hub, .sxt-pnav { --ink:#1a3650; --text:#26303b; --mute:#6b7280; --soft:#8a8a92; --line:#e3e8ee; --bg:#f7f9fb; --tint:#eaf0f6; --accent:#e2572b; }
.sxt { container-type: inline-size; container-name: sxt; color: var(--text); font-size: 15px; line-height: 1.55; margin: 6px 0 30px; font-family: inherit; }
.sxt *, .sxt *::before, .sxt *::after { box-sizing: border-box; }
.sxt [hidden] { display: none !important; }
.sxt table, .sxt th, .sxt td { border: 0; margin: 0; background: none; }
.sxt button, .sxt input, .sxt select { font-family: inherit; }

.sxt-gap { height: 16px; }
.sxt-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@container sxt (min-width: 700px) { .sxt-split { grid-template-columns: 316px minmax(0, 1fr); gap: 20px; } .sxt-split.sxt-one { grid-template-columns: minmax(0, 1fr); } .sxt-split > .sxt-panel { position: sticky; top: 16px; } .sxt-split.sxt-one > .sxt-panel { position: static; } }
.sxt-res > .sxt-card { margin-bottom: 16px; }
.sxt-res > .sxt-card:last-child { margin-bottom: 0; }

.sxt-panel { background: var(--bg); border: 1px solid #edf0f4; border-radius: 14px; padding: 18px; }
.sxt-top { padding: 14px 18px; }
.sxt-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.sxt-empty { color: var(--soft); text-align: center; padding: 38px 20px; }
.sxt-cap { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--soft); }
.sxt-note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--mute); }
.sxt-note sub, .sxt-note sup { font-size: .75em; }
.sxt-sit { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--ink); }

/* 입력 */
.sxt-f { display: block; margin: 0 0 12px; }
.sxt-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.sxt-one .sxt-f2 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.sxt-l { display: block; margin: 0 0 5px; font-size: 12.5px; font-weight: 500; color: #57575f; }
.sxt-h { display: block; margin: 4px 0 0; font-size: 12px; color: var(--soft); line-height: 1.45; }
.sxt-i { position: relative; display: block; }
.sxt-i input, .sxt-i select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d8dee6; border-radius: 9px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.2; font-variant-numeric: tabular-nums; box-shadow: none; outline: none; margin: 0; transition: border-color .15s, box-shadow .15s; }
.sxt-i input[type=text] { padding-right: 34px; }
.sxt-i em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12.5px; color: var(--soft); pointer-events: none; }
.sxt-i input:focus, .sxt-i select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,54,80,.12); }
.sxt-sel select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a8a92' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* 탭 */
.sxt-tabs { display: flex; gap: 4px; padding: 4px; background: #eef2f6; border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.sxt-tabs::-webkit-scrollbar { display: none; }
.sxt .sxt-tab { flex: 1 0 auto; white-space: nowrap; border: 0; background: transparent; color: #57575f; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1.3; box-shadow: none; transition: background .15s, color .15s; }
.sxt .sxt-tab:hover { color: var(--ink); background: transparent; }
.sxt .sxt-tab[aria-selected=true] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(26,54,80,.14); }

/* 버튼 */
.sxt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sxt .sxt-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 9px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1; box-shadow: none; transition: background .15s, opacity .15s; }
.sxt .sxt-btn:hover { background: #24496b; color: #fff; }
.sxt .sxt-btn.ghost { background: #fff; color: var(--ink); }
.sxt .sxt-btn.ghost:hover { background: var(--tint); color: var(--ink); }
.sxt .sxt-btn:disabled { opacity: .5; cursor: default; }
.sxt-panel > .sxt-btn { margin-bottom: 10px; width: 100%; }

/* 결과 숫자 */
.sxt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 20px; }
.sxt-stat { min-width: 0; }
.sxt-sl { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--soft); line-height: 1.35; }
.sxt-sv { display: block; margin-top: 3px; font-family: Inter, "Noto Sans KR", system-ui, sans-serif; font-size: 24px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; word-break: keep-all; }
.sxt-stat.big .sxt-sv { font-size: 38px; font-weight: 500; }
.sxt-ss { display: block; margin-top: 3px; font-size: 12px; color: var(--mute); line-height: 1.4; }
.sxt-math { margin: 6px 0 4px; padding: 13px 18px; background: var(--bg); border-left: 3px solid var(--ink); border-radius: 0 6px 6px 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 15.5px; line-height: 1.9; overflow-x: auto; color: var(--text); }

/* 표 */
.sxt-tw { overflow-x: auto; }
.sxt-t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sxt-t th { padding: 8px 10px; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.sxt-t td { padding: 9px 10px; border-bottom: 1px solid #eef1f5; }
.sxt-t tr:last-child td { border-bottom: 0; }
.sxt-t td:not(:first-child), .sxt-t th:not(:first-child) { text-align: right; }
.sxt-heat { border-collapse: separate; border-spacing: 3px; }
.sxt-heat.sxt-wide { min-width: 520px; }
.sxt-heat th, .sxt-heat td { border: 0; text-align: center !important; padding: 7px 3px; }
.sxt-heat .sxt-bh { font-size: 10.5px; font-weight: 500; color: #57575f; line-height: 1.25; vertical-align: bottom; white-space: normal; }
.sxt-heat .sxt-bh span { display: block; margin-top: 1px; }
.sxt-heat .sxt-rh { font-size: 12px; font-weight: 600; color: #57575f; text-align: left !important; white-space: nowrap; padding-right: 8px; }
.sxt-hc { border-radius: 7px; font-weight: 500; font-size: 14px; }
.sxt-hc small { font-size: 11px; font-weight: 400; opacity: .85; }
.sxt-click { cursor: pointer; }
.sxt-click:hover td { background: #f4f7fa; }
.sxt-click.on td { background: var(--tint); font-weight: 600; color: var(--ink); }
.sxt-lt td:first-child { font-weight: 600; color: var(--ink); }
.sxt-wpa { min-width: 120px; text-align: right; }
.sxt-wb { display: block; height: 5px; border-radius: 3px; margin: 0 0 3px auto; opacity: .85; }
.sxt-wpa b { font-weight: 600; font-size: 13.5px; }

/* 차트·막대 */
.sxt-chart { margin: 0 -4px; }
.sxt svg text { font-family: inherit; font-size: 11px; fill: #8a8a92; }
.sxt-bars { display: grid; gap: 10px; }
.sxt-bar { display: grid; grid-template-columns: 78px minmax(0, 1fr) 60px; align-items: center; gap: 12px; font-size: 13.5px; }
.sxt-bl { color: #57575f; }
.sxt-btrack { position: relative; height: 12px; background: #eef1f5; border-radius: 6px; overflow: hidden; }
.sxt-btrack b { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.sxt-bmid { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #cdd5de; z-index: 1; }
.sxt-bv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.sxt-stack { margin-top: 18px; }
.sxt-stk { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #eef1f5; }
.sxt-stk span { display: block; height: 100%; }
.sxt-stl { display: flex; gap: 18px; margin-top: 8px; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.sxt-stl i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.sxt-stl b { color: var(--ink); font-weight: 600; margin-left: 2px; }

/* 접기 */
.sxt-d { margin: 4px 0 0; }
.sxt-d > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 8px 0; list-style: none; }
.sxt-d > summary::-webkit-details-marker { display: none; }
.sxt-d > summary::before { content: '＋'; display: inline-block; width: 18px; color: var(--soft); font-weight: 400; }
.sxt-d[open] > summary::before { content: '－'; }
.sxt-dd { padding-top: 6px; }

/* 다이아몬드 */
.sxt-dia { margin-top: 4px; }
.sxt-base { cursor: pointer; outline: none; }
.sxt-base rect { transition: fill .15s; }
.sxt-base:hover rect { fill: var(--tint); }
.sxt-base[aria-checked=true]:hover rect { fill: #24496b; }
.sxt-base:focus-visible rect { stroke-width: 3; }

/* 타순 · 팀 목록 */
.sxt-lh, .sxt-lr { display: grid; grid-template-columns: 56px 64px minmax(0, 1fr) 54px; gap: 8px; align-items: center; }
.sxt-lc { display: flex; align-items: center; gap: 6px; }
.sxt-lh { font-size: 11px; font-weight: 600; color: var(--soft); padding: 0 0 6px; }
.sxt-lr { margin-bottom: 7px; }
.sxt-ls { font-size: 13px; font-weight: 600; color: var(--soft); text-align: center; font-variant-numeric: tabular-nums; width: 18px; flex: none; }
.sxt-chip { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.sxt-lr .sxt-i input, .sxt-lr .sxt-i select, .sxt-trr .sxt-i input { height: 38px; font-size: 14.5px; padding: 0 8px; }
.sxt-lr .sxt-sel select { padding-right: 24px; background-position: right 8px center; }
.sxt-w input { text-align: center; padding: 0 6px !important; }
.sxt-ud { display: flex; gap: 4px; }
.sxt .sxt-ud button { width: 25px; height: 38px; border: 1px solid #d8dee6; border-radius: 7px; background: #fff; color: #57575f; font-size: 9px; padding: 0; cursor: pointer; box-shadow: none; line-height: 1; }
.sxt .sxt-ud button:hover:not(:disabled) { background: var(--tint); color: var(--ink); }
.sxt .sxt-ud button:disabled { opacity: .3; cursor: default; }
.sxt-lh2, .sxt-trr { grid-template-columns: 22px minmax(0, 1fr) 78px; }
.sxt-trr { display: grid; gap: 8px; align-items: center; margin-bottom: 7px; }
.sxt-lh2 { display: grid; gap: 8px; font-size: 11px; font-weight: 600; color: var(--soft); padding: 8px 0 6px; }
.sxt-tr { max-height: 440px; overflow-y: auto; padding-right: 2px; }
.sxt-ser { margin: 0 0 12px; display: grid; gap: 7px; }
.sxt-sh, .sxt-sr { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.sxt-sh { font-size: 11px; font-weight: 600; color: var(--soft); }
.sxt-sr > span:first-child { font-size: 12.5px; color: #57575f; }
.sxt-sr .sxt-i input { height: 38px; font-size: 14.5px; padding: 0 10px; }

/* 좁은 화면 */
@container sxt (max-width: 460px) {
  .sxt-card, .sxt-panel { padding: 16px; border-radius: 12px; }
  .sxt-stat.big .sxt-sv { font-size: 32px; }
  .sxt-sv { font-size: 21px; }
  .sxt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .sxt-bar { grid-template-columns: 62px minmax(0, 1fr) 54px; gap: 8px; }
  .sxt .sxt-tab { padding: 9px 12px; }
}

/* 허브 · 페이지 하단 이동 */
.sxt-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 22px 0 8px; }
.sxt-hub .sxt-tile { display: block; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none !important; border-bottom: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.sxt-hub .sxt-tile:hover { border-color: var(--ink); box-shadow: 0 8px 22px rgba(26,54,80,.09); transform: translateY(-1px); }
.sxt-tile-tag { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sxt-tile-tag span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5f7f9e; background: #eef3f8; padding: 3px 8px; border-radius: 6px; }
.sxt-tile-t { display: block; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 6px; }
.sxt-tile-d { display: block; font-size: 13.5px; color: var(--mute); line-height: 1.55; }
.sxt-pnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.sxt-pnav li { margin: 0; }
.sxt-pnav a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--ink); text-decoration: none !important; background: #fff; border-bottom: 1px solid var(--line); }
.sxt-pnav a:hover { background: var(--tint); }
.sxt-pnav a[aria-current=page] { background: var(--ink); color: #fff; border-color: var(--ink); }
