/* SPORT 7.14.227 — session mode preference, shared by Session & TV. */
.pp227-mode-control{border:1px solid var(--line);border-radius:13px;background:var(--surface-2);margin:13px 0;padding:10px 13px 12px;min-width:0}
.pp227-mode-control legend{padding:0 6px;font-size:12px;color:var(--text);font-weight:900}
.pp227-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pp227-mode-options label{position:relative;min-width:0;cursor:pointer}
.pp227-mode-options input{position:absolute;opacity:0;width:1px;height:1px}
.pp227-mode-options label>span{display:flex;flex-wrap:wrap;gap:5px;align-items:center;min-height:43px;border:1.5px solid var(--line);border-radius:11px;padding:8px 11px;background:var(--surface);color:var(--text);transition:background .15s,border-color .15s}
.pp227-mode-options label>span .sport-icon{width:17px;height:17px;color:var(--primary)}
.pp227-mode-options strong{font-size:13px}
.pp227-mode-options small{font-size:10px;color:var(--muted);font-weight:650}
.pp227-mode-options input:checked+span{border-color:var(--primary);background:var(--primary-soft);box-shadow:inset 0 0 0 1px var(--primary)}
.pp227-mode-options input:focus-visible+span{outline:2px solid var(--primary);outline-offset:2px}
.pp227-mode-tip{font-size:10px;line-height:1.45;color:var(--muted);margin:8px 0 0}
.pp227-preference-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--primary-border);background:color-mix(in srgb,var(--primary-soft) 37%,var(--surface));border-radius:13px;padding:11px 13px;margin:0 0 10px;min-width:0}
.pp227-preference-summary{display:grid;gap:4px;flex:1;min-width:0}
.pp227-preference-summary>strong{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:12px;color:var(--text)}
.pp227-preference-summary>strong .sport-icon{width:18px;height:18px;color:var(--primary)}
.pp227-current-mode{font-size:11px;font-weight:950;background:var(--primary);color:white;padding:3px 8px;border-radius:7px}
.pp227-preference-summary>small{font-size:10px;line-height:1.35;color:var(--muted)}
.pp227-mode-actions{display:flex;flex-wrap:wrap;gap:6px}
.pp227-mode-actions form{margin:0}
.pp227-mode-action{padding:9px 12px;min-height:38px;background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--text);font-size:11px;font-weight:800;font-family:inherit;line-height:1.2;cursor:pointer;white-space:nowrap}
.pp227-mode-action.active{background:var(--primary);color:white;border-color:var(--primary);cursor:default}
.pp227-mode-action:not(.active):hover{border-color:var(--primary);background:var(--primary-soft)}
.pp227-mode-action:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.pp227-suggestions-hint{font-size:10px;line-height:1.4;background:var(--primary-soft);color:var(--text-soft);padding:8px 10px;border-radius:8px;margin-bottom:8px}
.pp227-suggestions-hint strong{color:var(--primary)}
@media(max-width:740px){.pp227-preference-bar{align-items:stretch;flex-direction:column}.pp227-mode-actions{width:100%}.pp227-mode-actions form{flex:1;min-width:0}.pp227-mode-action{width:100%}.pp227-mode-options label>span{padding:8px;gap:4px}.pp227-mode-options small{font-size:9px}}
/* TV priority: the chosen mode is placed first and visually emphasized. */
.tv-body .pp227-tv-pref{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-top:5px;padding:3px 8px;border-radius:999px;background:rgba(41,117,225,.17);border:1px solid rgba(115,168,255,.32);color:#b8d5ff;font-size:12px;font-weight:850;letter-spacing:.01em}
[data-tv-theme="light"] .tv-body .pp227-tv-pref{background:#e3eeff;border-color:#bcd5f7;color:#1555b8}
.tv-body .pp227-tv-round{order:1;transition:order .15s,box-shadow .15s,border-color .15s}
.tv-body .pp227-tv-round.pp227-tv-is-preferred{order:0;box-shadow:inset 0 0 0 1px #478de8;border-color:#478de8}
.tv-body .pp227-tv-rank-column{order:1;transition:order .15s}
.tv-body .pp227-tv-rank-column.pp227-tv-is-preferred{order:0}
.tv-body .pp227-tv-rank-column.pp227-tv-is-preferred>h3{color:#73b1ff;font-weight:900}
[data-tv-theme="light"] .tv-body .pp227-tv-rank-column.pp227-tv-is-preferred>h3{color:#1555b8}
@media(max-width:500px){.pp227-preference-summary>small{font-size:9px}}
