.wk-page { margin-top: 8px; }
.wk-board, .wk-focused { padding: 20px 22px; border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); }
.wk-focused { margin-top: 16px; }
.wk-focused[hidden], [data-side-panel][hidden] { display: none; }
.wk-period-pick { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.wk-period-pick select { appearance: auto; min-width: 0; max-width: 100%; padding: 9px; border: 1px solid #42444a; border-radius: 6px; background: #282a2e; color: var(--ink); font: inherit; }
.wk-period-head, .wk-period-end, .wk-line, .wk-attack-title, .wk-board-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wk-period-head { padding: 18px 0 14px; }
.wk-kind, .wk-period-end small, .wk-stamp, .wk-line > span, .wk-no-summary, .wk-nodata, .wk-progress { font-size: 13px; color: var(--muted); }
.wk-period-head h3, .wk-line h3, .wk-focused > h3 { margin: 0; font-size: 19px; font-weight: 720; letter-spacing: -.045em; }
.wk-period-end { align-items: flex-end; flex-direction: column; }
.wk-period-end b { color: var(--gold); font-size: 14px; }
.wk-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wk-side { display: grid; justify-items: start; align-content: start; gap: 8px; min-width: 0; padding: 12px 14px; border: 1px solid #3c3e43; border-radius: 8px; background: #28292d; color: var(--ink); text-align: left; }
.wk-side[aria-pressed="true"] { border-color: #9a8050; background: #302d28; }
.wk-side:hover, .wk-side:focus-visible { border-color: var(--gold); }
.wk-side-title, .wk-head > span:not(:first-child) { display: inline-flex; align-items: center; gap: 5px; }
.wk-side-title { font-size: 14px; font-weight: 650; color: #c7c7ca; }
.wk-side[aria-pressed="true"] .wk-side-title, .wk-head > span:nth-child(2) svg { color: var(--gold); }
.wk-score { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-variant-numeric: tabular-nums; }
.wk-score-value { white-space: nowrap; line-height: 1.3; }
.wk-score-value strong { font-size: 17px; color: var(--ink); font-weight: 730; letter-spacing: -.035em; }
.wk-score small, .wk-cap, .wk-unknown { color: var(--muted); font-size: 12px; }
.wk-score small { line-height: 1.5; }
.wk-partial { color: #cdbb99; }
.wk-side .wk-score-value strong { font-size: 24px; }
.wk-side .wk-cap { font-size: 14px; }
.wk-attack-title { margin: 18px 0 8px; }
.wk-attack-title h4 { margin: 0; font-size: 16px; }
.wk-battle-list { list-style: none; padding: 0; margin: 0; }
.wk-battle-head, .wk-battle { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) minmax(74px, 23%) minmax(60px, 18%); gap: 8px; text-align: right; }
.wk-battle-head > :first-child, .wk-battle > :first-child { min-width: 0; text-align: left; }
.wk-battle-head { padding: 5px 0 7px; font-size: 12px; color: var(--muted); }
.wk-battle { padding: 9px 0; border-top: 1px solid #37383c; }
.wk-battle-result, .wk-hit-points { display: grid; justify-items: end; }
.wk-stars { color: #64666c; font-size: 14px; white-space: nowrap; }
.wk-stars .on { color: var(--gold); }
.wk-battle-result small, .wk-attack-name small, .wk-player small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.wk-hit-points strong { color: var(--ink); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wk-hit-points small { margin-left: 1px; font-size: 12px; font-weight: 500; color: var(--muted); }
.wk-attack-name b, .wk-player b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.wk-stamp { padding-top: 13px; margin-top: 12px; border-top: 1px solid #3b3c40; font-size: 12px; }
.wk-line { margin: 20px 0 10px; }
.wk-empty { margin: 16px 0; color: #b4b5bb; font-size: 14px; line-height: 1.5; }
.wk-list { overflow: hidden; border: 1px solid #36373b; border-radius: 8px; }
.wk-row { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) minmax(0,24%) minmax(0,24%); gap: 10px; width: 100%; min-height: 54px; padding: 10px 16px; text-align: right; font-variant-numeric: tabular-nums; }
.wk-row > span:first-child { min-width: 0; text-align: left; }
.wk-row .wk-score-value { white-space: normal; }
.wk-row .wk-score-value strong, .wk-row .wk-cap { display: inline-block; white-space: nowrap; }
.wk-row + .wk-row { border-top: 1px solid #343538; }
.wk-head { min-height: 0; padding-block: 8px; background: #28292d; color: #b8b9be; font-size: 12px; }
.wk-head > span:not(:first-child) { justify-content: flex-end; }
.wk-row:is(button):hover, .wk-row:is(button):focus-visible { background: #292a2d; }
.wk-board-actions { justify-content: flex-end; margin-top: 12px; }
.wk-progress { margin-right: auto; font-size: 12px; }
.wk-retry { padding: 6px 10px; border: 1px solid #494b4f; border-radius: 6px; color: #d1d2d5; font-size: 13px; }
.wk-retry:disabled { opacity: .55; }
.wk-no-summary { line-height: 1.5; }
.info-content .sources { flex-wrap: wrap; }
.wk-profile-link { display: inline-block; color: #ccb782; font-size: 13px; margin-top: 9px; text-decoration: none; }
.wk-profile-link:hover { text-decoration: underline; }
@media (max-width:970px) and (min-width:761px) {
 .desk-nav { gap: 0; }
 .desk-nav .nav-link { padding: 0 10px; }
 .top-inner { gap: 15px; }
}
@media (max-width:580px) {
 .wk-board, .wk-focused { padding: 14px 12px; }
 .wk-period-pick { font-size: 13px; gap: 8px; }
 .wk-period-pick select { flex: 1; width: 0; padding: 9px 4px; }
 .wk-line { margin: 16px 0 8px; }
 .wk-line h3 { font-size: 17px; }
 .wk-line > span { font-size: 12px; }
 .wk-row { grid-template-columns: minmax(0,1fr) minmax(0,30%) minmax(0,30%); gap: 5px; padding: 9px 8px; }
 .wk-head { padding-block: 7px; }
 .wk-score-value strong { font-size: 15px; }
 .wk-side { padding: 10px; }
 .wk-side .wk-score-value strong { font-size: 21px; }
 .wk-period-head h3 { font-size: 18px; }
 .wk-board-actions { flex-wrap: wrap; }
}
@media (max-width:360px) {
 .wk-row { grid-template-columns: minmax(0,1fr) minmax(0,32%) minmax(0,32%); }
}
