/* Swedish Chicago scoring calculator (assets/js/tools/chicago.js) */
.tl-ch { display: grid; gap: .6rem; }
.tl-ch-phase { border: 1px solid var(--card-line); border-radius: 8px; padding: .5rem .7rem; background: rgba(0, 0, 0, .015); }
.tl-ch-phase.skipped { opacity: .55; }
.tl-ch-phase-h { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.tl-ch-step { font-size: .8rem; font-weight: 400; color: var(--card-soft); font-variant-caps: all-small-caps; letter-spacing: .05em; }
.tl-ch-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .3rem 0; }
.tl-ch-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: .35rem; margin: .3rem 0; }
.tl-ch-players .tl-btn { min-width: 0; padding: .3rem .4rem; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ch-select { font: inherit; min-height: 44px; padding: .3rem .5rem; border: 1px solid var(--card-line); border-radius: 6px; background: #fff; color: var(--card-ink); max-width: 100%; width: 100%; box-sizing: border-box; }
.tl-ch-freeze { background: rgba(26, 82, 118, .08); border: 1px solid rgba(26, 82, 118, .3); border-radius: 8px; padding: .5rem .7rem; color: #1a5276; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.tl-ch-freeze-icon { font-size: 1.15rem; flex-shrink: 0; }
.tl-ch-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: .4rem; margin-top: .4rem; }
.tl-ch-score-card { display: flex; flex-direction: column; align-items: center; padding: .4rem .3rem; border: 1px solid var(--card-line); border-radius: 6px; min-width: 0; background: #fff; }
.tl-ch-score-card.winner { border-width: 2px; border-color: #b7950b; }
.tl-ch-score-card.freeze { border-width: 2px; border-color: #1a5276; }
.tl-ch-score-name { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; text-align: center; }
.tl-ch-score-round { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: .1rem 0; }
.tl-ch-score-round.neg { color: var(--card-red); }
.tl-ch-score-total { font-size: .85rem; color: var(--card-soft); font-variant-numeric: tabular-nums; }
.tl-ch-score-badge { font-size: .72rem; font-weight: 700; padding: .1rem .35rem; border-radius: 4px; margin-top: .25rem; white-space: nowrap; text-align: center; }
.tl-ch-badge-freeze { background: rgba(26, 82, 118, .12); color: #1a5276; }
.tl-ch-badge-win { background: #fef9e7; color: #7d6608; border: 1px solid #b7950b; }
.tl-ch-win-banner { background: #fef9e7; border: 1px solid #b7950b; border-radius: 8px; padding: .6rem .8rem; font-weight: 700; font-size: 1rem; color: #7d6608; text-align: center; }
.tl-ch-start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: .4rem; margin: .3rem 0; }
.tl-ch-start-item { display: flex; flex-direction: column; gap: .2rem; }
.tl-ch-start-item label { font-size: .85rem; color: var(--card-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ch-start-input { font: inherit; min-height: 40px; width: 100%; box-sizing: border-box; padding: .2rem .4rem; border: 1px solid var(--card-line); border-radius: 6px; font-variant-numeric: tabular-nums; }
.tl-ch-warn { color: var(--card-red); font-size: .85rem; margin-top: .3rem; }
.tl-ch-note { color: var(--card-soft); font-size: .85rem; font-style: italic; margin-top: .2rem; }
.tl-ch-variant { margin-top: .4rem; }
.tl-ch-variant summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--card-soft); font-size: .95rem; }
