/* Desktop product templates only. Mobile and phone-preview retain their current styles. */
@media (min-width:1100px) {
 .desktop-skip{position:fixed;inset-block-start:12px;inset-inline-start:16px;z-index:1000;transform:translateY(-150%);padding:12px 16px;border-radius:8px;background:var(--ug-accent);color:#191e26;text-decoration:none;font-size:14px}
 .desktop-skip:focus{transform:translateY(0)}
 .ug-desktop #app-main:has(>.page.active:not(#home-page)) {padding-inline:40px;padding-top:32px}
 .ug-desktop #app-main>.page:not(#home-page) {max-width:1240px;margin-inline:auto}
 .ug-desktop :is(#schedule-page,#ranking-page,#library-page,#favorites-page)>.page-intro {display:flex;align-items:flex-end;flex-wrap:wrap;justify-content:flex-start;gap:8px 24px;min-height:0;padding:0 0 24px;margin-bottom:24px;border:0}
 .ug-desktop .page:not(#home-page)>.page-intro h1 {font-size:34px;font-weight:650;line-height:1.2;letter-spacing:-.035em}
 .ug-desktop .page:not(#home-page)>.page-intro>.eyebrow {display:none}
 .ug-desktop .page:not(#home-page)>.page-intro>p {flex-basis:100%;max-width:none;margin:0;text-align:start;font-size:13px;line-height:1.6;color:var(--ug-text-muted)}
 .ug-desktop #today-date {margin-inline-start:auto;font-size:14px;color:var(--ug-text-muted)}
 .ug-desktop .page:not(#home-page) :is(.empty,.empty-state) {padding:48px 32px;background:var(--ug-surface);border:1px solid var(--ug-border);border-radius:12px;box-shadow:none}
 .ug-desktop .page:not(#home-page) :is(.empty,.empty-state) strong {font-size:18px;color:var(--ug-text);margin-bottom:8px}
 .ug-desktop .page:not(#home-page) :is(.empty,.empty-state) span {font-size:14px;color:var(--ug-text-muted);line-height:1.7}
 .ug-desktop .page:not(#home-page) :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid var(--ug-focus);outline-offset:4px}
 .ug-desktop .page:not(#home-page) :is(input,textarea,select) {border-color:var(--ug-border);border-radius:8px;color:var(--ug-text);background:#141920;font-size:14px}
 .ug-desktop .page:not(#home-page) button {font-weight:500}

 /* Matchday: one comparison and action surface per fixture, stable left/right teams. */
 .ug-desktop #schedule-page .game-switch {display:flex;gap:8px;width:fit-content;margin-bottom:24px;padding:0;border:0;border-radius:0;background:transparent}
 .ug-desktop #schedule-page .game-switch button {display:flex;align-items:center;gap:8px;flex:none;min-height:48px;padding:12px 20px;border:1px solid var(--ug-border);border-radius:8px;background:var(--ug-surface);color:var(--ug-text-muted)}
 .ug-desktop #schedule-page .game-switch button span {font-family:inherit;font-size:16px;line-height:1.2;font-weight:650;letter-spacing:0}
 .ug-desktop #schedule-page .game-switch button small {font-size:12px;font-weight:400}
 .ug-desktop #schedule-page .game-switch button.active {background:var(--ug-surface-selected);border-color:var(--ug-accent);color:var(--ug-text)}
 .ug-desktop #schedule-page .status-tabs {gap:32px;margin-bottom:28px}
 .ug-desktop #schedule-page .status-tabs button {font-size:14px;min-height:48px}
 .ug-desktop #schedule-page .status-tabs button b {font-variant-numeric:tabular-nums;font-size:12px;padding:3px 7px;background:var(--ug-surface-selected);border-radius:5px}
 .ug-desktop #schedule-page .schedule-list-heading {margin-bottom:20px}
 .ug-desktop #schedule-page .schedule-list-heading h2 {font-size:22px;font-weight:600}
 .ug-desktop #schedule-list.card-list {gap:32px}
 .ug-desktop .matchday-group {background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
 .ug-desktop .matchday-group-head {padding:0 0 14px;min-height:0;background:transparent;gap:16px}
 .ug-desktop .matchday-group-head strong {font-size:17px;font-weight:600;letter-spacing:0;color:var(--ug-text)}
 .ug-desktop .matchday-group-head span {font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop .matchday-group-rows {display:grid;gap:12px}
 .ug-desktop .matchday-row.schedule-row {display:grid;grid-template-columns:minmax(0,1fr) 242px;align-items:stretch;min-width:0;margin:0;border:1px solid var(--ug-border);border-radius:12px;overflow:hidden;background:var(--ug-surface);box-shadow:none}
 .ug-desktop .matchday-row.schedule-row:hover {border-color:#505b6b;background:var(--ug-surface)}
 .ug-desktop .matchday-row+.matchday-row {border-top:1px solid var(--ug-border)}
 .ug-desktop .matchday-row-main {grid-template-columns:88px minmax(0,1fr) 152px;min-height:132px;padding:0;align-items:center}
 .ug-desktop .matchday-time {height:100%;gap:8px;padding:20px 16px;justify-content:center;background:transparent;border-inline-end:1px solid var(--ug-border)}
 .ug-desktop .matchday-time time {font-size:23px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
 .ug-desktop .matchday-time span {font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop .matchday-fixture {gap:12px;padding:18px 20px;min-width:0}
 .ug-desktop .matchday-meta {gap:10px}
 .ug-desktop .matchday-meta span {font-size:12px;font-weight:500;color:var(--ug-text-muted)}
 .ug-desktop .matchday-meta small {font-size:11px;color:var(--ug-text-muted)}
 .ug-desktop .matchday-link {grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 12px;gap:12px}
 .ug-desktop .matchday-team,.ug-desktop .matchday-team-right {flex-direction:row;justify-content:flex-start;gap:10px;text-align:start}
 .ug-desktop .matchday-team strong {font-size:15px;line-height:1.4;font-weight:600}
 .ug-desktop .matchday-emblem {width:40px;height:40px;min-width:40px;flex:none;border-radius:8px;background:#11161f;border:1px solid #374354}
 .ug-desktop .matchday-emblem.dark-mark {background:#d6dde6}
 .ug-desktop .matchday-emblem img {padding:5px}
 .ug-desktop .matchday-versus {font-family:inherit;font-size:12px;font-weight:500;color:var(--ug-text-muted)}
 .ug-desktop .matchday-model {padding:20px 16px 20px 0;border:0;gap:10px}
 .ug-desktop .matchday-model>small {font-size:11px;color:var(--ug-text-muted)}
 .ug-desktop .matchday-prob {grid-template-columns:1fr 1fr;gap:8px;align-items:center}
 .ug-desktop .matchday-prob strong {font-family:inherit;font-size:17px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ug-text)}
 .ug-desktop .matchday-prob strong:last-child {color:var(--ug-accent)}
 .ug-desktop .matchday-prob i {grid-column:1/-1;grid-row:2;height:3px;background:linear-gradient(90deg,#90a7c1 0 var(--p),#efa48a var(--p));border-radius:4px}
 .ug-desktop .matchday-row .favorite-button {inset-block-start:12px;inset-inline-end:12px;width:30px;height:30px;color:var(--ug-text-muted);background:transparent}
 .ug-desktop .matchday-row .schedule-predict {display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:12px;min-height:0;padding:24px 18px;border:0;border-inline-start:1px solid var(--ug-border);background:#171c24}
 .ug-desktop .matchday-row .schedule-predict .predict-label {font-size:12px;color:var(--ug-text-muted);padding-inline-end:26px}
 .ug-desktop .matchday-row .predict-options {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .ug-desktop .matchday-row .schedule-predict button {display:flex;justify-content:center;align-items:center;gap:5px;min-width:0;min-height:42px;padding:8px;font-size:12px;text-align:center;color:var(--ug-text);background:var(--ug-surface-selected);border:1px solid #424c5c;border-radius:8px}
 .ug-desktop .schedule-predict button>span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ug-desktop .schedule-predict button>i:empty {display:none}
 .ug-desktop .matchday-row .schedule-predict button:hover {border-color:var(--ug-accent);background:#2a303b}
 .ug-desktop .matchday-row .schedule-predict button.selected {border-color:#6bb191;background:#213c30;color:#bce8d1}
 .ug-desktop .matchday-result {font-size:14px;font-weight:500;color:#a9d8bf}
 .ug-desktop .matchday-row:not(:has(.schedule-predict)) {grid-template-columns:minmax(0,1fr)}
 .ug-desktop .matchday-row:not(:has(.schedule-predict)) .matchday-row-main {grid-template-columns:88px minmax(0,1fr) 220px;padding-inline-end:34px;min-height:110px}

 /* Team database: ranked dossiers rather than oversized register rows. */
 .ug-desktop #library-page.active {display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:0 24px}
 .ug-desktop #library-page .library-intro {grid-column:1/-1}
 .ug-desktop #library-page .library-search {grid-column:2;grid-row:2;min-height:46px;padding:0 14px;margin:0 0 24px;border:1px solid var(--ug-border);border-radius:8px;background:var(--ug-surface)}
 .ug-desktop #library-page .library-search input {min-height:44px;font-size:13px;border:0;background:transparent;min-width:0}
 .ug-desktop #library-page .game-filter {grid-column:1;grid-row:2;gap:8px;margin:0 0 24px;background:transparent;align-items:center}
 .ug-desktop #library-page .game-filter button {min-height:44px;min-width:70px;padding:10px 16px;border:1px solid var(--ug-border);border-radius:8px;background:var(--ug-surface);font-size:13px}
 .ug-desktop #library-page .game-filter button.active {color:var(--ug-accent);background:var(--ug-surface-selected);border-color:#505b6b}
 .ug-desktop #library-results.library-grid {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;border-radius:0;background:transparent;overflow:visible}
 .ug-desktop #library-page .library-card.team-entry {grid-template-columns:40px 56px minmax(0,1fr) 88px;gap:14px;min-width:0;min-height:184px;padding:22px 20px;margin:0;border:1px solid var(--ug-border);border-radius:12px;background:var(--ug-surface);color:var(--ug-text);box-shadow:none}
 .ug-desktop #library-page .library-card.team-entry:hover {background:var(--ug-surface-selected);border-color:#566174}
 .ug-desktop #library-page .team-entry .team-rank {border:0;padding:0;text-align:start;align-content:center}
 .ug-desktop #library-page .team-rank span {font-family:inherit;font-size:23px;line-height:1.3;font-weight:600;color:var(--ug-text-muted)}
 .ug-desktop #library-page .team-entry:nth-child(-n+3) .team-rank span {color:var(--ug-accent)}
 .ug-desktop #library-page .team-rank small {font-size:10px;color:var(--ug-text-muted)}
 .ug-desktop #library-page .team-entry>img {width:56px;height:56px;padding:7px;border-radius:10px;border:1px solid #424c5c;background:#657080}
 .ug-desktop #library-page .team-entry .game-label {font-size:11px;color:var(--ug-text-muted);font-weight:500}
 .ug-desktop #library-page .team-entry h3 {font-size:19px;line-height:1.35;margin:5px 0 8px;font-weight:600;overflow-wrap:anywhere}
 .ug-desktop #library-page .team-entry p {font-size:12px;line-height:1.5;color:var(--ug-text-muted)}
 .ug-desktop #library-page .team-entry .team-power {display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:8px}
 .ug-desktop #library-page .team-entry .team-power strong {font-size:12px;color:var(--ug-accent);font-weight:500}
 .ug-desktop #library-page .team-entry .team-power span {font-size:11px;color:var(--ug-text-muted)}
 .ug-desktop #library-page .team-entry .entry-next {display:block;margin-top:8px;font-size:11px;line-height:1.6;color:var(--ug-text-muted)}
 .ug-desktop #library-page .team-entry .team-detail-cta {display:block;margin-top:12px;color:var(--ug-text)!important;font-size:12px;font-weight:500}
 .ug-desktop #library-page .team-entry .team-win-gauge {gap:8px;align-self:center}
 .ug-desktop #library-page .team-win-gauge strong {font-size:25px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ug-text)}
 .ug-desktop #library-page .team-win-gauge small {font-size:10px;line-height:1.4;color:var(--ug-text-muted)}
 .ug-desktop #library-page .team-entry .team-win-gauge:after {height:3px;background:linear-gradient(90deg,#86b8a0 var(--win-rate),#353f4d var(--win-rate))}
 .ug-desktop #library-results>.empty {grid-column:1/-1}

 /* Leaderboard: contextual sidebar, explicit comparison columns, no invented podium. */
 .ug-desktop #ranking-page .status-tabs {display:flex;justify-content:flex-start;gap:8px;border:0;margin-bottom:28px}
 .ug-desktop #ranking-page .status-tabs button {flex:none;min-height:46px;padding:10px 20px;border:1px solid var(--ug-border);border-radius:8px;background:var(--ug-surface);color:var(--ug-text-muted);font-size:14px}
 .ug-desktop #ranking-page .status-tabs button.active {border-color:#5a6474;background:var(--ug-surface-selected);color:var(--ug-accent);box-shadow:none}
 .ug-desktop #ranking-players:not([hidden]) {display:grid;grid-template-columns:264px minmax(0,1fr);gap:0 28px;align-items:start}
 .ug-desktop #ranking-players .ranking-lead {grid-column:1;grid-row:1/4;display:flex;flex-direction:column;align-items:flex-start;gap:28px;padding:24px;min-height:0;margin:0;background:var(--ug-surface);border:1px solid var(--ug-border);border-radius:12px}
 .ug-desktop #ranking-page .ranking-lead span {display:none}
 .ug-desktop #ranking-page .ranking-lead h2 {font-size:21px;line-height:1.4;margin:0 0 12px;font-weight:600}
 .ug-desktop #ranking-page .ranking-lead p {font-size:13px;line-height:1.9;color:var(--ug-text-muted)}
 .ug-desktop #ranking-page .ranking-lead>strong {font-family:inherit;font-size:44px;line-height:1.1;font-weight:600;color:var(--ug-accent);font-variant-numeric:tabular-nums}
 .ug-desktop #ranking-page .ranking-lead>strong small {font-size:12px;line-height:1.7;color:var(--ug-text-muted);margin-top:8px}
 .ug-desktop #ranking-players .ranking-filters {grid-column:2;grid-row:1;gap:16px;margin:0 0 20px}
 .ug-desktop #ranking-page .game-filter {background:transparent;gap:6px}
 .ug-desktop #ranking-page .game-filter button {min-height:42px;padding:10px 12px;border:1px solid var(--ug-border);border-radius:8px;background:var(--ug-surface);font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop #ranking-page .game-filter button.active {color:var(--ug-accent);background:var(--ug-surface-selected);border-color:#566174}
 .ug-desktop #ranking-page .ranking-period-label {font-size:12px;gap:10px;color:var(--ug-text-muted)}
 .ug-desktop #ranking-page .ranking-period-label select {min-height:42px;background:var(--ug-surface);border-color:var(--ug-border);padding:8px 12px;font-size:13px}
 .ug-desktop #ranking-page .ranking-table-head {grid-column:2;grid-row:2;grid-template-columns:minmax(0,1fr) 90px 110px 90px;min-height:48px;padding:0 24px;border:0;border-bottom:1px solid var(--ug-border);border-radius:10px 10px 0 0;background:var(--ug-surface-selected);font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop #ranking-list.ranking-list {grid-column:2;grid-row:3;margin:0;border:0;background:var(--ug-surface);border-radius:0 0 12px 12px}
 .ug-desktop #ranking-page .ranking-entry {display:grid;grid-template-columns:minmax(0,1fr) 90px 110px 90px;gap:0;min-height:94px;padding:20px 24px;background:var(--ug-surface);border:0;border-bottom:1px solid var(--ug-border)}
 .ug-desktop #ranking-page .ranking-entry:last-child {border-bottom:0}
 .ug-desktop #ranking-page .ranking-user {gap:14px}
 .ug-desktop #ranking-page .ranking-user strong {font-size:16px;font-weight:600;color:var(--ug-text)}
 .ug-desktop #ranking-page .ranking-user small {font-size:12px;line-height:1.7;margin-top:5px;color:var(--ug-text-muted)}
 .ug-desktop #ranking-page .ranking-place {width:34px;height:34px;background:var(--ug-surface-selected);border-radius:8px;color:var(--ug-accent);font-size:14px;font-family:inherit}
 .ug-desktop #ranking-page .ranking-cell {font-size:16px;font-weight:500;color:var(--ug-text);font-variant-numeric:tabular-nums}
 .ug-desktop #ranking-page .ranking-score {font-size:22px;color:var(--ug-accent);font-weight:600;font-variant-numeric:tabular-nums}
 .ug-desktop #ranking-page .ranking-accuracy i {height:3px;background:#35404f}
 .ug-desktop #ranking-page .ranking-accuracy i:before {background:#8fbaa2}
 .ug-desktop #ranking-experts .ranking-lead {background:transparent;padding:0;margin-bottom:24px;border:0;min-height:0}
 .ug-desktop #ranking-page .marketplace-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .ug-desktop #ranking-page .marketplace-list>.empty {grid-column:1/-1}
 .ug-desktop #ranking-page .expert-product {display:flex;flex-direction:column;gap:16px;padding:28px;background:var(--ug-surface);color:var(--ug-text);border:1px solid var(--ug-border);border-radius:12px}
 .ug-desktop #ranking-page .expert-product h3 {font-size:22px;line-height:1.5;margin:0;color:var(--ug-text)}
 .ug-desktop #ranking-page .product-foot {margin-top:auto;padding-top:20px;border-top:1px solid var(--ug-border)}
 .ug-desktop #ranking-page .product-preview {color:var(--ug-text-muted);font-size:14px;line-height:1.9}

 /* Match workspace: matchup summary, then comparisons, not nested boxes everywhere. */
 .ug-desktop #detail-page .detail-topline {margin:0 0 24px}
 .ug-desktop #detail-page .back-button {padding:10px 16px;min-height:44px;background:var(--ug-surface);border-color:var(--ug-border);border-radius:8px;font-size:13px}
 .ug-desktop #detail-page .state-pill {border-radius:6px;padding:7px 12px;font-size:12px}
 .ug-desktop #detail-page .detail-hero {display:grid;grid-template-columns:minmax(0,1fr) 350px;column-gap:32px;padding:24px 28px;border:1px solid var(--ug-border);border-radius:12px;background:var(--ug-surface)}
 .ug-desktop #detail-page .detail-hero .match-meta {grid-column:1/-1;background:transparent;padding:0 40px 20px 0;margin:0 0 24px;border:0;border-bottom:1px solid var(--ug-border);font-size:13px}
 .ug-desktop #detail-page .detail-hero .match-meta strong {font-size:14px;color:var(--ug-text)}
 .ug-desktop #detail-page .detail-hero .match-meta span {font-size:13px;padding:0;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .detail-hero .teams {padding:0;gap:20px;grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);align-self:center}
 .ug-desktop #detail-page .detail-hero .team,.ug-desktop #detail-page .detail-hero .team:last-child {flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}
 .ug-desktop #detail-page .detail-hero .team img {width:64px;height:64px;padding:8px;background:#657080;border:1px solid #424c5c;border-radius:12px}
 .ug-desktop #detail-page .detail-hero .team span {font-size:22px;line-height:1.35;font-weight:600}
 .ug-desktop #detail-page .detail-hero .detail-score {font-size:38px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;display:block;text-align:center}
 .ug-desktop #detail-page .detail-hero .versus {font-size:14px;line-height:1.2}
 .ug-desktop #detail-page .detail-probability {align-self:center;margin:0;padding:24px;border:1px solid var(--ug-border);border-radius:10px;background:#151a22}
 .ug-desktop #detail-page .probability {height:5px;border-radius:4px;background:linear-gradient(90deg,#94aac2 0 var(--p),#efa48a var(--p))}
 .ug-desktop #detail-page .probability-labels {font-family:inherit;gap:16px;margin-top:16px;font-size:19px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums}
 .ug-desktop #detail-page .probability-labels span {display:flex;flex-direction:column;gap:5px;align-items:flex-start}
 .ug-desktop #detail-page .probability-labels span:last-child {flex-direction:column-reverse;align-items:flex-end}
 .ug-desktop #detail-page .probability-labels strong {font-size:12px;font-weight:500;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .confidence-row {display:block;font-size:11px;line-height:1.8;margin-top:18px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .confidence-row span {display:block;text-align:start;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .history-result {grid-column:1/-1;text-align:center;margin-top:20px;padding:12px 0 0;border-top:1px solid var(--ug-border);font-size:14px}
 .ug-desktop #detail-page .detail-hero:not(:has(.detail-probability)) .teams {grid-column:1/-1}
 .ug-desktop #detail-page .analysis-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:28px;align-items:start}
 .ug-desktop #detail-page .analysis-card {min-width:0;padding:26px;border:1px solid var(--ug-border);border-radius:12px;background:var(--ug-surface);color:var(--ug-text)}
 .ug-desktop #detail-page .analysis-card.full {grid-column:1/-1}
 .ug-desktop #detail-page :is(.h2h-card,.recent-form-card).full {grid-column:1/-1}
 .ug-desktop #detail-page .analysis-card-header {display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--ug-border)}
 .ug-desktop #detail-page .analysis-card-header .eyebrow {display:none}
 .ug-desktop #detail-page .analysis-card-header h2 {font-size:22px;line-height:1.4;margin:0;color:var(--ug-text);font-weight:600}
 .ug-desktop #detail-page .analysis-card-header>p {flex-basis:100%;margin:0;text-align:start;font-size:12px;line-height:1.6;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .module-polymarket {grid-column:1/-1;padding:24px;text-align:center;background:var(--ug-surface-selected)}
 .ug-desktop #detail-page .module-polymarket .analysis-card-header {justify-content:center;border:0;margin-bottom:14px;padding:0}
 .ug-desktop #detail-page .module-polymarket .reference-value {font-size:27px;font-weight:600;color:var(--ug-accent);font-variant-numeric:tabular-nums}
 .ug-desktop #detail-page .h2h-summary {background:transparent;padding:0 0 20px}
 .ug-desktop #detail-page .h2h-summary strong {font-size:15px;font-weight:600}
 .ug-desktop #detail-page .h2h-summary span {font-size:12px;line-height:1.7;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .h2h-total b {font-family:inherit;font-size:30px;color:var(--ug-accent)}
 .ug-desktop #detail-page .h2h-balance {height:3px;background:linear-gradient(90deg,#94aac2 0 var(--h2h),#efa48a var(--h2h))}
 .ug-desktop #detail-page .h2h-list {border:0;border-radius:0;background:transparent}
 .ug-desktop #detail-page .h2h-row {min-height:72px;padding:14px 0;gap:10px;grid-template-columns:24px minmax(0,1fr) minmax(0,1.6fr);background:transparent;border-bottom:1px solid var(--ug-border)}
 .ug-desktop #detail-page .h2h-row:last-child {border:0}
 .ug-desktop #detail-page .h2h-row strong {font-size:12px;font-weight:500}
 .ug-desktop #detail-page .h2h-row small {font-size:11px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .h2h-score {grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:5px;font-size:11px}
 .ug-desktop #detail-page .h2h-score b {font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
 .ug-desktop #detail-page .form-sides {gap:18px}
 .ug-desktop #detail-page .form-side {padding:0;border:0;background:transparent;border-radius:0}
 .ug-desktop #detail-page .form-head {display:block;min-height:82px;padding:0}
 .ug-desktop #detail-page .form-head strong {font-size:16px;line-height:1.5;font-weight:600}
 .ug-desktop #detail-page .form-head span {font-size:11px;line-height:1.7;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .form-head>b {display:block;margin-top:9px;font-size:12px;font-weight:500;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .form-strip {margin:12px 0 18px;gap:4px}
 .ug-desktop #detail-page .form-strip i {height:5px;border-radius:2px}
 .ug-desktop #detail-page .form-strip i.win {background:#57b38a;box-shadow:none}
 .ug-desktop #detail-page .form-strip i.loss {background:#de6976;box-shadow:none}
 .ug-desktop #detail-page .form-row {grid-template-columns:20px 24px minmax(0,1fr) 38px;gap:7px;min-height:56px;padding:10px 0;border-bottom:1px solid var(--ug-border);font-size:12px}
 .ug-desktop #detail-page .form-row img {width:24px;height:24px;object-fit:contain}
 .ug-desktop #detail-page .form-row strong {font-size:12px;font-weight:500}
 .ug-desktop #detail-page .form-row small {font-size:10px;line-height:1.8;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .form-row>b {font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
 .ug-desktop #detail-page .form-result {min-width:20px;width:20px;height:22px;padding:3px;border-radius:5px;font-size:10px;line-height:1.5}
 .ug-desktop #detail-page .map-controls {gap:12px;padding:0 0 18px;background:transparent;border:0;font-size:12px}
 .ug-desktop #detail-page .map-controls>strong {font-size:16px}
 .ug-desktop #detail-page .map-controls select {min-height:36px;padding:6px 9px;font-size:12px}
 .ug-desktop #detail-page .map-summary {gap:12px;background:var(--ug-surface-selected);border-radius:8px;padding:16px;font-size:12px;line-height:1.8}
 .ug-desktop #detail-page .map-history-table {font-size:12px}
 .ug-desktop #detail-page .map-history-table th {font-size:11px;font-weight:500;color:var(--ug-text-muted);background:transparent}
 .ug-desktop #detail-page .map-history-table :is(td,th) {padding:13px 10px;border-color:var(--ug-border)}
 .ug-desktop #detail-page .map-history-table td {font-variant-numeric:tabular-nums}
 .ug-desktop #detail-page .bp-sides {gap:26px}
 .ug-desktop #detail-page .bp-side {padding:20px;border:1px solid var(--ug-border);background:#151a22;border-radius:10px;min-width:0}
 .ug-desktop #detail-page .bp-side>h3 {font-size:18px;line-height:1.4;margin:0 0 18px;font-weight:600}
 .ug-desktop #detail-page .hero-chip {border-color:var(--ug-border);border-radius:8px;background:var(--ug-surface-selected);padding:12px;min-width:104px}
 .ug-desktop #detail-page .hero-chip img {width:52px;height:52px;border-radius:6px;object-fit:cover}
 .ug-desktop #detail-page .hero-chip strong {font-size:12px;line-height:1.5}
 .ug-desktop #detail-page .hero-chip span {font-size:11px;color:var(--ug-text-muted);line-height:1.6}
 .ug-desktop #detail-page .hero-rail .rail-button {border-color:var(--ug-border);border-radius:7px;background:var(--ug-surface-selected);color:var(--ug-text);font-weight:400}
 .ug-desktop #detail-page .hero-rail .rail-button:hover {border-color:var(--ug-accent);color:var(--ug-accent)}
 .ug-desktop #detail-page .hero-chip span {white-space:normal;overflow:visible;text-overflow:clip}
 .ug-desktop #detail-page .roster-player {border-color:var(--ug-border);border-radius:10px;background:var(--ug-surface);padding:16px;margin-bottom:12px}
 .ug-desktop #detail-page .player-card {border-color:var(--ug-border);background:var(--ug-surface);border-radius:10px}
 .ug-desktop #detail-page .player-open {padding-bottom:14px;margin-bottom:14px;border-color:var(--ug-border);color:var(--ug-text)}
 .ug-desktop #detail-page .player-open strong {font-size:15px;font-weight:600}
 .ug-desktop #detail-page .player-open small {font-size:12px;line-height:1.8;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .player-open>b {font-size:12px;font-weight:500;color:var(--ug-accent)}
 .ug-desktop #detail-page .player-card>.hero-row {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
 .ug-desktop #detail-page .player-card .hero-chip {min-width:0;width:auto;padding:10px}
 .ug-desktop #detail-page .player-card .hero-chip img {width:44px;height:44px}
 .ug-desktop #detail-page .player-card .hero-chip strong {white-space:normal;overflow-wrap:anywhere}
 .ug-desktop #detail-page .map-compare-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .ug-desktop #detail-page .map-compare-row {display:grid;grid-template-columns:1fr 1fr;gap:16px;min-height:200px;padding:22px;border:1px solid #414c5a;border-radius:10px}
 .ug-desktop #detail-page .map-compare-row.has-map-art {background-image:linear-gradient(100deg,rgba(3,9,17,.54),rgba(3,9,17,.76)),var(--map-art)}
 .ug-desktop #detail-page .map-name {grid-column:1/-1}
 .ug-desktop #detail-page .map-name strong {font-size:20px;line-height:1.4}
 .ug-desktop #detail-page .map-team-head {display:none}
 .ug-desktop #detail-page .map-side-stat:before {content:attr(data-ug-map-team);color:#edf0f4;font-size:13px;font-weight:600;margin-bottom:6px;overflow-wrap:anywhere}
 .ug-desktop #detail-page .map-side-stat strong {font-size:26px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums}
 .ug-desktop #detail-page .map-side-stat :is(span,small) {font-size:12px;line-height:1.7;color:#d5dce6}
 .ug-desktop #detail-page .team-profile-hero {padding:28px;background:var(--ug-surface);border:1px solid var(--ug-border);border-radius:12px}
 .ug-desktop #detail-page .team-profile-hero>img {width:80px;height:80px;padding:10px;border:1px solid #424c5c;border-radius:12px;background:#657080}
 .ug-desktop #detail-page .team-profile-hero h1 {font-size:34px;font-weight:650;line-height:1.3}
 .ug-desktop #detail-page .team-profile-hero .eyebrow {display:none}
 .ug-desktop #detail-page .team-profile-hero>strong {font-family:inherit;font-size:42px;color:var(--ug-accent)}
 .ug-desktop #detail-page .team-profile-metrics {margin:20px 0 24px;padding:24px;background:var(--ug-surface);border:1px solid var(--ug-border);border-radius:12px}
 .ug-desktop #detail-page .team-profile-metrics span {font-size:13px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .team-profile-metrics b {font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.4}
 .ug-desktop #detail-page .team-history-card .form-head {min-height:0;display:flex}
 .ug-desktop #detail-page .team-history-card .form-row {grid-template-columns:26px 36px minmax(0,1fr) 72px;min-height:70px;gap:16px;padding:14px 0}
 .ug-desktop #detail-page .team-history-card .form-row strong {font-size:15px}
 .ug-desktop #detail-page .team-history-card .form-row img {width:36px;height:36px}
 .ug-desktop #detail-page .team-history-card .form-row small {font-size:12px}
 .ug-desktop #detail-page .team-history-card .form-row>b {font-size:18px}
 .ug-desktop #detail-page .community-card {border-color:var(--ug-border)!important;background:var(--ug-surface)!important;color:var(--ug-text)!important}
 .ug-desktop #detail-page .community-title {padding:26px;background:var(--ug-surface-selected)}
 .ug-desktop #detail-page .community-title h2 {font-size:22px}
 .ug-desktop #detail-page .community-title .eyebrow {display:none}
 .ug-desktop #detail-page .community-title p {font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .community-title>div:last-child :is(strong,span) {color:var(--ug-text-muted);font-family:inherit;font-size:12px}
 .ug-desktop #detail-page .community-block {padding:26px;border-color:var(--ug-border)}
 .ug-desktop #detail-page .community-block-head h3 {font-size:18px;font-weight:600}
 .ug-desktop #detail-page .community-block-head span {font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .community-teams {gap:24px}
 .ug-desktop #detail-page .community-team {gap:12px}
 .ug-desktop #detail-page .community-team>h3 {color:var(--ug-text);font-size:16px;margin-bottom:8px}
 .ug-desktop #detail-page .community-player {padding:18px;border-color:var(--ug-border);border-radius:10px;background:#151a22;box-shadow:none}
 .ug-desktop #detail-page .community-player-head strong {font-size:15px;font-weight:600}
 .ug-desktop #detail-page .community-player-head small {font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .community-average b {font-family:inherit;font-size:24px;color:var(--ug-accent);font-weight:600}
 .ug-desktop #detail-page .community-average span {font-size:11px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page :is(.community-rate,.community-player-feedback) {margin-top:14px;padding-top:14px;border-color:var(--ug-border)}
 .ug-desktop #detail-page .community-rate label {font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .community-rate output {color:var(--ug-accent);font-size:15px;font-weight:500}
 .ug-desktop #detail-page .community-rate input {accent-color:var(--ug-accent)}
 .ug-desktop #detail-page :is(.community-rate button,.community-form button,.player-comment-box form button) {min-height:40px;font-size:12px;font-weight:500;background:var(--ug-accent);color:#211b19;border-radius:8px}
 .ug-desktop #detail-page .community-player-feedback>button {min-height:40px;background:var(--ug-surface-selected);border-color:var(--ug-border);color:var(--ug-text);font-size:12px;font-weight:500}
 .ug-desktop #detail-page .community-player-feedback>button b {font-size:11px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page :is(.player-comment-box textarea,.community-form input,.community-form textarea) {font-size:13px;color:var(--ug-text);background:#11161f;border-color:var(--ug-border);padding:12px}
 .ug-desktop #detail-page :is(.player-comment-box form span,.player-remarks>p,.community-form>div span) {font-size:11px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page :is(.player-remark,.community-comment) {background:var(--ug-surface-selected);border-radius:8px;padding:16px}
 .ug-desktop #detail-page :is(.player-remark strong,.community-comment header strong) {font-size:13px}
 .ug-desktop #detail-page :is(.player-remark p,.community-comment p) {font-size:13px;line-height:1.8;color:var(--ug-text)}
 .ug-desktop #detail-page :is(.player-remark time,.community-comment time) {font-size:11px;color:var(--ug-text-muted)}
 .ug-desktop #detail-page :is(.community-empty,.community-loading) {padding:28px;border-color:var(--ug-border);background:transparent;color:var(--ug-text-muted)}
 .ug-desktop #detail-page .community-empty strong {font-size:14px;color:var(--ug-text)}
 .ug-desktop #detail-page .community-empty span {font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop img[data-ug-logo-tone=dark] {background:#d6dde6!important}
 .ug-desktop img[data-ug-logo-tone=light] {background:#11161f!important}

 /* Personal workspace: identity and performance stay visible beside account tools. */
 .ug-desktop #mine-page.active {display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px 28px;align-items:start}
 .ug-desktop #mine-page .profile-hero {grid-column:1;grid-row:1/7;position:sticky;top:24px;margin:0;padding:26px 24px;min-width:0;background:var(--ug-surface);border:1px solid var(--ug-border);border-radius:12px}
 .ug-desktop #mine-page .profile-main {display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:28px}
 .ug-desktop #mine-page .profile-main .eyebrow {display:none}
 .ug-desktop #mine-page .profile-main h1 {font-size:26px;line-height:1.3;margin:0 0 10px}
 .ug-desktop #mine-page .profile-main p:last-child {font-size:12px;line-height:1.8;color:var(--ug-text-muted)}
 .ug-desktop #mine-page .avatar {width:56px;height:56px;border-radius:10px;border:1px solid var(--ug-border)}
 .ug-desktop #mine-page .profile-stats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;background:transparent;border:0;border-radius:0}
 .ug-desktop #mine-page .profile-stats .stat,.ug-desktop #mine-page .profile-stats .stat.featured {min-height:86px;padding:0;background:transparent;border:0;border-radius:0;gap:8px}
 .ug-desktop #mine-page .profile-stats .stat span {font-size:12px;color:var(--ug-text-muted)}
 .ug-desktop #mine-page .profile-stats .stat strong {font-size:29px;line-height:1.2;font-weight:600;color:var(--ug-text);font-variant-numeric:tabular-nums}
 .ug-desktop #mine-page .profile-stats .stat.featured strong {color:var(--ug-accent)}
 .ug-desktop #mine-page .profile-stats .stat small {font-size:10px;line-height:1.6;color:var(--ug-text-muted)}
 .ug-desktop #mine-page :is(.account-panel,.wallet-panel,.expert-center) {grid-column:2;margin:0;padding:28px;border:1px solid var(--ug-border);border-radius:12px;background:var(--ug-surface)}
 .ug-desktop #mine-page .account-panel {grid-row:4}
 .ug-desktop #mine-page .wallet-panel {grid-row:5;padding:0}
 .ug-desktop #mine-page .expert-center {grid-row:6}
 .ug-desktop #mine-page>.section-heading {grid-column:2;grid-row:1;margin:0}
 .ug-desktop #mine-page>#prediction-tabs {grid-column:2;grid-row:2;margin:0}
 .ug-desktop #mine-page>#prediction-list {grid-column:2;grid-row:3;gap:16px}
 .ug-desktop #mine-page #prediction-list .empty{min-height:150px;margin:0;padding:24px}
 .ug-desktop #mine-page :is(.account-panel,.wallet-panel,.expert-center) .eyebrow {display:none}
 .ug-desktop #mine-page :is(.account-panel,.wallet-panel,.expert-center) h2 {font-size:22px;line-height:1.4;font-weight:600;margin:0;color:var(--ug-text)}
 .ug-desktop #mine-page .account-heading {margin-bottom:24px}
 .ug-desktop #mine-page .nickname-form>div {max-width:600px;gap:12px}
 .ug-desktop #mine-page .nickname-form input {min-height:46px;font-size:14px;padding:12px 14px}
 .ug-desktop #mine-page .nickname-form label {font-size:13px;margin-bottom:10px}
 .ug-desktop #mine-page #nickname-help {font-size:12px;line-height:1.8;margin-top:12px;color:var(--ug-text-muted)}
 .ug-desktop #mine-page .wallet-top {padding:28px;background:transparent;align-items:center}
 .ug-desktop #mine-page .wallet-top strong {margin-top:16px;font-family:inherit;font-size:38px;color:var(--ug-accent);line-height:1.3;font-variant-numeric:tabular-nums}
 .ug-desktop #mine-page .wallet-top strong small {font-size:12px;color:var(--ug-text-muted);margin-left:8px}
 .ug-desktop #mine-page .wallet-points {border:0;background:var(--ug-surface-selected);padding:16px 20px;border-radius:10px;min-width:130px}
 .ug-desktop #mine-page .wallet-points b {font-size:25px;font-weight:600}
 .ug-desktop #mine-page .wallet-breakdown {display:grid;grid-template-columns:130px 130px minmax(0,1fr);gap:20px;padding:20px 28px;border-top:1px solid var(--ug-border);background:transparent}
 .ug-desktop #mine-page .wallet-breakdown strong {font-size:21px;line-height:1.4;font-weight:600}
 .ug-desktop #mine-page .wallet-breakdown :is(p,span) {font-size:12px;line-height:1.8;color:var(--ug-text-muted)}
 .ug-desktop #mine-page .wallet-ledger {background:transparent;border-color:var(--ug-border)}
 .ug-desktop #mine-page .wallet-ledger summary {min-height:52px;padding:18px 28px;font-size:12px;color:var(--ug-text)}
 .ug-desktop #mine-page .expert-center .section-heading {gap:20px;margin:0 0 24px;padding:0}
 .ug-desktop #mine-page .expert-center .section-heading p {font-size:13px;line-height:1.8;color:var(--ug-text-muted)}
 .ug-desktop #mine-page .expert-form {max-width:680px;gap:10px}
 .ug-desktop #mine-page .expert-form label {font-size:13px;font-weight:500;color:var(--ug-text)}
 .ug-desktop #mine-page .expert-form :is(input,textarea,select) {padding:12px 14px;min-height:46px;background:#141920;border-color:var(--ug-border);font-size:14px}
 .ug-desktop #mine-page .expert-form textarea {min-height:110px;resize:vertical}
 .ug-desktop #mine-page .expert-form button {justify-self:start;min-height:44px;padding:10px 20px;border-radius:8px;background:var(--ug-accent);color:#211b19;margin-top:8px}
 .ug-desktop #mine-page .expert-note {font-size:12px;line-height:1.8;margin-top:20px;color:var(--ug-text-muted)}
 .ug-desktop #mine-page>.section-heading h2 {font-size:22px}
 .ug-desktop #mine-page>.section-heading p {font-size:12px;color:var(--ug-text-muted);line-height:1.7}
 .ug-desktop #mine-page .match-card {padding:24px;border:1px solid var(--ug-border);border-radius:12px;background:var(--ug-surface)}

 /* Favorites and auth use the same product controls, retaining all existing actions. */
 .ug-desktop #favorites-page #favorite-list {gap:16px}
 .ug-desktop #favorites-page .empty-state {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;text-align:center}
 .ug-desktop #auth-page.auth-dialog {width:min(480px,100%);max-width:480px;margin:40px auto;padding:40px;background:var(--ug-surface);border:1px solid var(--ug-border);border-radius:14px}
 .ug-desktop #auth-page .eyebrow {display:none}
 .ug-desktop #auth-page h2 {font-size:30px;font-weight:650;letter-spacing:-.035em;margin:0 0 14px}
 .ug-desktop #auth-page .auth-intro {font-size:14px;line-height:1.8;margin-bottom:28px;color:var(--ug-text-muted)}
 .ug-desktop #auth-page input {min-height:48px;padding:12px 14px;border:1px solid #424c5c;border-radius:8px;background:#141920;color:var(--ug-text);font-size:14px}
 .ug-desktop #auth-page label {font-size:13px;line-height:1.7;font-weight:500;color:var(--ug-text)}
 .ug-desktop #auth-page .auth-submit {min-height:48px;border-radius:8px;font-size:14px;background:var(--ug-accent);color:#211b19}
 .ug-desktop #auth-page .auth-switch {font-size:13px;line-height:1.8;margin-top:24px}
 .ug-desktop .player-dialog {max-width:900px;padding:28px;border-radius:12px;background:var(--ug-surface);border-color:var(--ug-border)}
 .ug-desktop .player-dialog .dialog-head h2 {font-size:24px}
 .ug-desktop .player-dialog .dialog-head {background:var(--ug-surface);border-color:var(--ug-border);padding:8px 0 22px}
 .ug-desktop .player-dialog .dialog-head .eyebrow {display:none}
 .ug-desktop .player-dialog .dialog-head>button {background:var(--ug-surface-selected);border-color:var(--ug-border)}
 .ug-desktop .player-hero-row {min-height:64px;padding:12px 16px;border-color:var(--ug-border);font-size:14px}
 .ug-desktop .player-hero-row img {width:40px;height:40px;border-radius:6px}
}
@media (min-width:1100px) and (max-width:1250px) {
 .ug-desktop #app-main:has(>.page.active:not(#home-page)) {padding-inline:28px}
 .ug-desktop .matchday-row.schedule-row {grid-template-columns:minmax(0,1fr) 208px}
 .ug-desktop .matchday-row-main {grid-template-columns:76px minmax(0,1fr) 136px}
 .ug-desktop .matchday-fixture {padding-inline:14px}
 .ug-desktop .matchday-link {gap:8px}
 .ug-desktop .matchday-team,.ug-desktop .matchday-team-right {gap:7px}
 .ug-desktop .matchday-team strong {font-size:13px}
 .ug-desktop #detail-page .detail-hero {grid-template-columns:minmax(0,1fr) 300px;gap:24px}
 .ug-desktop #ranking-players:not([hidden]) {grid-template-columns:224px minmax(0,1fr);gap:0 20px}
 .ug-desktop #ranking-page .ranking-filters {flex-wrap:wrap}
 .ug-desktop #library-page .library-card.team-entry {grid-template-columns:32px 48px minmax(0,1fr) 76px;gap:12px;padding:20px 16px}
 .ug-desktop #library-page .team-entry>img {width:48px;height:48px}
 .ug-desktop #library-page .team-entry h3 {font-size:17px}
 .ug-desktop #mine-page.active {grid-template-columns:260px minmax(0,1fr);gap:24px}
 .ug-desktop #mine-page .wallet-breakdown {grid-template-columns:100px 100px minmax(0,1fr);gap:16px}
}
@media (prefers-reduced-motion:reduce) {.ug-desktop .page:not(#home-page) * {transition:none;scroll-behavior:auto}}
