/* 得点調整・100点換算くん */
.tokuten-wrap { display: contents; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1020px) { .tk-layout { grid-template-columns: 1fr; } .tk-side { order: -1; } }
.tk-main { min-width: 0; display: grid; gap: 12px; }
.tk-side { display: grid; gap: 10px; min-width: 0; }
.tk-box { border: 2px solid var(--line); border-radius: 14px; background: var(--card2); }
.tk-box > summary { cursor: pointer; padding: 10px 14px; font-weight: 900; list-style: none; }
.tk-box > summary::-webkit-details-marker { display: none; }
.tk-box > summary::after { content: ' ▾'; color: var(--ink3); }
.tk-box:not([open]) > summary::after { content: ' ▸'; }
.tk-box > div { padding: 0 14px 14px; }
.tk-secs { display: grid; gap: 10px; }
.tk-sect { font-size: 13px; }
.tk-sect td, .tk-sect th { padding: 4px 5px; }
.tk-sect td:first-child .input { min-width: 78px; }
.tk-sect .input.num { width: 50px; padding: 4px 2px; }
.tk-sect select.input { min-width: 52px; padding: 4px 2px; }
.tk-sect th.num { text-align: center; }
.tk-tw { max-height: 70vh; overflow: auto; }
.tk-table { font-size: 13.5px; }
.tk-table th, .tk-table td { padding: 3px 5px; white-space: nowrap; }
.tk-table th small { font-weight: 400; color: var(--ink3); margin-left: 2px; }
.tk-table .tk-no { width: 52px; text-align: center; padding: 3px; }
.tk-table .tk-name { width: 120px; }
.tk-table .tk-sc { width: 58px; padding: 3px; }
.tk-table .tk-sc.over { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.tk-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tk-table td.center { text-align: center; font-weight: 800; }
.tk-table .adj { background: color-mix(in srgb, var(--yellow) 22%, var(--card)); font-weight: 900; }
.tk-table td.adj.up { color: var(--ok); }
.tk-table td.gA, .tk-kan .gA { color: var(--ok); }
.tk-table td.gC, .tk-kan .gC { color: var(--bad); }
.tk-empty { padding: 24px 12px; text-align: center; }
.tk-addrow { padding: 8px; border-top: 1px solid var(--line-soft); }
.tk-sum { display: grid; gap: 10px; }
.tk-sum .note { margin: 0; }
.tk-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1200px) { .tk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tk-stat { border: 2px solid var(--line); border-radius: 12px; background: var(--card); padding: 8px 10px; display: grid; gap: 1px; min-width: 0; }
.tk-stat span { font-size: 11.5px; font-weight: 800; color: var(--ink2); }
.tk-stat b { font-family: var(--head); font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.tk-stat small { font-size: 11.5px; color: var(--ink3); }
.tk-hist { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 10px; color: #1d2433; }
.tk-svg svg { width: 100%; height: auto; display: block; }
.tk-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.tk-legend i.lb { background: #9aa4b8; } .tk-legend i.la { background: #f2a33a; margin-left: 8px; }
.tk-kans { display: grid; gap: 6px; }
.tk-kan { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; border: 2px solid var(--line-soft); border-radius: 10px; padding: 6px 10px; font-size: 13.5px; }
.tk-kan b { min-width: 9em; }
.tk-kan span { font-weight: 800; }
