:root{--navy:#0d1b2a;--navy-deep:#09131e;--green:#a6c80f;--green-ink:#566a08;--white:#fff;--gray:#b7bdc8;--bg:#f4f6f9;--surface:#fff;--border:#e3e7ec;--text:#0d1b2a;--text-muted:#5c6672;--primary:var(--navy);--primary-hover:#13273f;--accent:var(--green);--focus:var(--green)}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}h1{margin-bottom:.25rem;font-size:1.4rem}h2{margin-top:1.5rem;font-size:1.1rem}a{color:var(--green-ink)}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.app-shell{background:var(--bg);min-height:100vh;color:var(--text);flex-direction:column;display:flex}.app-header{background:var(--surface);color:var(--text);border-top:3px solid var(--green);border-bottom:1px solid var(--border);align-items:center;gap:2rem;padding:.75rem 1.5rem;display:flex}.app-brand{align-items:center;gap:.5rem;display:flex}.app-logo{width:30px;height:30px;display:block}.app-title{color:var(--navy);font-size:1.1rem;font-weight:700}.app-nav{flex:1;gap:1.25rem;display:flex}.app-header-compact{justify-content:space-between}.app-nav a{color:var(--text-muted);border-bottom:2px solid #0000;padding:.25rem 0;font-size:.95rem;text-decoration:none}.app-nav a.active,.app-nav a:hover{color:var(--navy);border-bottom-color:var(--green)}.app-user{align-items:center;gap:.75rem;font-size:.9rem;display:flex}.app-user button{background:var(--surface);border:1px solid var(--gray);color:var(--navy);cursor:pointer;border-radius:6px;padding:.3rem .7rem}.app-user button:hover{background:var(--bg)}.app-content{box-sizing:border-box;flex:1;width:100%;max-width:1100px;margin:0 auto;padding:1.5rem}.app-content-mobile{max-width:480px;padding:1rem}@media (width<=480px){.app-content-mobile{padding:.75rem}}table{border-collapse:collapse;background:var(--surface);width:100%}table th,table td{text-align:left;border-bottom:1px solid var(--border);padding:.5rem .6rem;font-size:.9rem}table th{background:var(--bg);color:var(--navy);font-weight:600}.panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:1.25rem;padding:1rem 1.25rem}.form-row{flex-wrap:wrap;align-items:end;gap:.75rem;margin-bottom:.75rem;display:flex}.form-field{flex-direction:column;gap:.25rem;font-size:.85rem;display:flex}.form-field input,.form-field select{border:1px solid var(--gray);border-radius:6px;padding:.35rem .5rem;font-size:.9rem}.form-field input:focus,.form-field select:focus{border-color:var(--navy);outline:none;box-shadow:0 0 0 2px #a6c80f59}.note{color:var(--text-muted);font-size:.85rem}.error-text{color:#b91c1c;font-size:.85rem}button.primary{background:var(--primary);color:var(--white);cursor:pointer;border:none;border-radius:6px;padding:.4rem .9rem;font-size:.9rem}button.primary:hover{background:var(--primary-hover)}button.primary:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:var(--surface);border:1px solid var(--gray);color:var(--navy);cursor:pointer;border-radius:6px;padding:.35rem .8rem;font-size:.85rem}button.secondary:hover{background:var(--bg)}.public-signin{color:var(--navy);border:1px solid var(--gray);white-space:nowrap;border-radius:6px;padding:.3rem .7rem;font-size:.85rem;font-weight:600;text-decoration:none}.public-signin:hover{background:var(--bg)}.public-content{max-width:480px;padding:1rem}@media (width<=480px){.public-content{padding:.75rem}}@media (width>=640px){.public-content{max-width:760px}}@media (width>=1024px){.public-content{max-width:1100px}}.metric-cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.25rem;display:grid}.metric-card{border-top:3px solid var(--green);flex-direction:column;gap:.35rem;margin-bottom:0;display:flex}.metric-card-label{color:var(--text-muted);font-size:.85rem}.metric-card-value{color:var(--navy);font-size:2rem;font-weight:700}.badge{white-space:nowrap;border-radius:999px;padding:.15rem .55rem;font-size:.75rem;font-weight:600;line-height:1.4;display:inline-block}.badge-status-tentative{color:#7a5c00;background:#fff3cd}.badge-status-verified{color:#155724;background:#d4edda}.badge-status-flagged{color:#721c24;background:#f8d7da}.badge-status-unknown{color:#383d41;background:#e2e3e5}.badge-source{color:#334155;background:#e2e8f0}.avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.avatar-image{object-fit:cover;border:1px solid var(--border)}.avatar-placeholder{background:var(--navy);color:var(--white);font-weight:700}.compare-chart{width:100%}.compare-chart svg{width:100%;height:auto;display:block}.compare-series-owner .compare-chart-line{stroke:var(--navy);stroke-width:3px}.compare-series-owner .compare-chart-dot-mark{fill:var(--navy)}.compare-series-0 .compare-chart-line,.compare-series-0 .compare-chart-dot-mark,.compare-chart-legend-swatch.compare-series-0{stroke:#0891b2;fill:#0891b2}.compare-series-1 .compare-chart-line,.compare-series-1 .compare-chart-dot-mark,.compare-chart-legend-swatch.compare-series-1{stroke:#7c3aed;fill:#7c3aed}.compare-series-2 .compare-chart-line,.compare-series-2 .compare-chart-dot-mark,.compare-chart-legend-swatch.compare-series-2{stroke:#ea580c;fill:#ea580c}.compare-series-3 .compare-chart-line,.compare-series-3 .compare-chart-dot-mark,.compare-chart-legend-swatch.compare-series-3{stroke:#b91c1c;fill:#b91c1c}.compare-chart-line{stroke-width:2px}.compare-chart-legend{color:var(--text-muted);flex-wrap:wrap;gap:.4rem .9rem;margin:.5rem 0 0;padding:0;font-size:.8rem;list-style:none;display:flex}.compare-chart-legend-item{align-items:center;gap:.35rem;display:inline-flex}.compare-chart-legend-swatch{border-radius:999px;width:.6rem;height:.6rem;display:inline-block}.compare-chart-legend-swatch.compare-series-owner{background:var(--navy)}.compare-chips{flex-wrap:wrap;gap:.5rem;margin:0 0 .75rem;padding:0;list-style:none;display:flex}.compare-chip{background:var(--bg);border:1px solid var(--border);border-radius:999px;align-items:center;gap:.4rem;padding:.25rem .4rem .25rem .75rem;font-size:.85rem;display:inline-flex}.compare-chip-remove{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:999px;padding:.15rem .35rem;font-size:.95rem;line-height:1}.compare-chip-remove:hover{background:var(--surface);color:var(--text)}.compare-search{margin-top:.5rem}.compare-search-results{border:1px solid var(--border);border-radius:8px;margin:.5rem 0 0;padding:0;list-style:none;overflow:hidden}.compare-search-result{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .65rem;display:flex}.compare-search-result:last-child{border-bottom:none}.compare-search-result-name{overflow-wrap:anywhere;min-width:0}.delta{white-space:nowrap;background:var(--bg);border-radius:999px;align-items:center;gap:.2rem;padding:.1rem .45rem;font-size:.75rem;font-weight:600;display:inline-flex}.delta-up{color:var(--green-ink)}.delta-down{color:#b91c1c}.delta-flat,.delta-new{color:var(--text-muted)}.delta-new{font-style:italic;font-weight:500}.player-dashboard h1{margin-top:0}.identity-card-top{align-items:center;gap:1rem;display:flex}.identity-card-info{min-width:0}.identity-name{font-size:1.1rem;font-weight:700}.upload-label{cursor:pointer;margin:.75rem 0;display:inline-block}.nickname-row{flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.75rem;display:flex}.nickname-row input{border:1px solid var(--gray);border-radius:6px;flex:1;min-width:8rem;padding:.35rem .5rem}.rank-badges{flex-direction:column;gap:.5rem;display:flex}.rank-badge{flex-direction:column;gap:.15rem;margin-bottom:0;display:flex}.rank-badge-category{font-size:.95rem;font-weight:700}.rank-badge-rank{font-size:1rem}.tab-bar{-webkit-overflow-scrolling:touch;gap:.4rem;margin-bottom:.75rem;display:flex;overflow-x:auto}.tab-button{background:var(--surface);border:1px solid var(--border);cursor:pointer;white-space:nowrap;color:var(--text-muted);border-radius:999px;flex-shrink:0;padding:.35rem .85rem;font-size:.85rem}.tab-button.active{background:var(--navy);color:var(--white);border-color:var(--navy)}.table-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}.table-scroll table{min-width:420px}.row-owner td:first-child{border-left:3px solid var(--navy)}.badge-owner{background:var(--green);color:var(--navy);vertical-align:middle;border-radius:999px;margin-left:.4rem;padding:.05rem .4rem;font-size:.65rem;font-weight:700;display:inline-block}.live-page h1{margin-bottom:.25rem}.live-section{background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:1rem;padding:1rem 1.25rem}.live-section-title{color:var(--navy);margin:0 0 .5rem;font-size:1rem}.live-empty-row{border-top:1px dashed var(--border);margin:0;padding:.5rem 0 0}.modal-backdrop{background:color-mix(in srgb, var(--navy) 55%, transparent);z-index:50;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.modal-panel{background:var(--surface);border-radius:12px 12px 0 0;width:100%;max-width:480px;max-height:85vh;padding:1rem 1.25rem 1.5rem;overflow-y:auto}@media (width>=560px){.modal-backdrop{align-items:center;padding:1rem}.modal-panel{border-radius:12px;max-height:80vh}}.modal-header{justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.25rem;display:flex}.modal-header h2{margin:0;font-size:1.1rem}.modal-search{margin:.5rem 0 .75rem}.modal-search input{width:100%}.modal-pager{justify-content:space-between;align-items:center;gap:.75rem;margin-top:.75rem;display:flex}.category-grid{grid-template-columns:1fr;gap:1.25rem;width:100%;min-width:0;display:grid}@media (width>=640px){.category-grid{grid-template-columns:repeat(2,1fr)}}@media (width>=1024px){.category-grid{grid-template-columns:repeat(3,1fr)}}.category-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;min-width:0;overflow:hidden}.category-card-header{background:var(--bg);border:none;border-bottom:1px solid var(--border);cursor:pointer;text-align:left;width:100%;font:inherit;color:inherit;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.25rem .5rem;padding:.75rem 1rem;display:flex}.category-card-header h2{color:var(--navy);margin:0;font-size:1rem}.category-card-header:hover{background:var(--surface)}.category-empty{margin:0;padding:.75rem 1rem}.leader-tiles{flex-direction:column;gap:.5rem;padding:.75rem 1rem 1rem;display:flex}.leader-tile{text-align:left;background:var(--surface);border:1px solid var(--border);cursor:pointer;width:100%;font:inherit;color:var(--text);border-radius:8px;grid-template-columns:auto 1fr auto;align-items:center;column-gap:.6rem;padding:.5rem .75rem;display:grid}.leader-tile:hover{border-color:var(--green)}.leader-rank{color:var(--navy);font-weight:700}.leader-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.leader-pts{color:var(--text-muted);white-space:nowrap;justify-self:end;font-size:.85rem}.leader-deltas{grid-column:1/-1;gap:.4rem;margin-top:.3rem;display:flex}.tournaments-page h1{margin-bottom:.25rem}.filter-bar{margin-bottom:1.25rem}.tournaments-grid-wrap{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:100%;min-width:0;display:none;overflow-x:auto}.tournaments-grid{grid-template-columns:84px repeat(6,minmax(120px,1fr));min-width:820px;display:grid}.grid-header{background:var(--bg);color:var(--navy);border-bottom:1px solid var(--border);padding:.5rem .6rem;font-size:.85rem;font-weight:600;position:sticky;top:0}.grid-week-col{border-right:1px solid var(--border)}.grid-week-label{color:var(--navy);background:var(--bg);border-top:1px solid var(--border);border-right:1px solid var(--border);white-space:nowrap;padding:.6rem;font-size:.85rem;font-weight:600}.grid-cell{border-top:1px solid var(--border);border-left:1px solid var(--border);flex-direction:column;gap:.3rem;min-height:2.2rem;padding:.4rem;display:flex}.grid-cell-item{background:var(--bg);border-radius:6px;flex-direction:column;gap:.1rem;padding:.25rem .35rem;font-size:.8rem;display:flex}.cell-primary{color:var(--navy);font-weight:600}.cell-city{color:var(--text-muted);font-size:.75rem}.cell-tag{color:var(--text-muted);font-size:.7rem;font-style:italic}.grid-cell-item.is-tentative{border:1px dashed var(--border);background:0 0}.grid-cell-item.is-tentative .cell-primary,.grid-cell-item.is-tentative .cell-city{color:var(--text-muted);font-style:italic}.ttype-TS .cell-primary{color:#0891b2}.ttype-CS .cell-primary{color:#2563eb}.ttype-SS .cell-primary{color:#7c3aed}.ttype-NS .cell-primary{color:#ea580c}.ttype-NATIONALS .cell-primary{color:#b91c1c}.ttype-OTHER .cell-primary{color:var(--text-muted)}.grid-cell-item.ttype-TS,.tournament-card.ttype-TS{border-left:3px solid #0891b2}.grid-cell-item.ttype-CS,.tournament-card.ttype-CS{border-left:3px solid #2563eb}.grid-cell-item.ttype-SS,.tournament-card.ttype-SS{border-left:3px solid #7c3aed}.grid-cell-item.ttype-NS,.tournament-card.ttype-NS{border-left:3px solid #ea580c}.grid-cell-item.ttype-NATIONALS,.tournament-card.ttype-NATIONALS{border-left:3px solid #b91c1c}.grid-cell-item.ttype-OTHER,.tournament-card.ttype-OTHER{border-left:3px solid var(--border)}.tournaments-list-wrap{display:block}.tournaments-week-section{margin-bottom:1.25rem}.tournaments-week-heading{color:var(--navy);margin:0 0 .5rem;font-size:1rem}.tournaments-card-list{flex-direction:column;gap:.5rem;display:flex}.tournament-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.6rem .75rem}.tournament-card.is-tentative{border-style:dashed}.tournament-card.is-tentative .cell-primary,.tournament-card.is-tentative .tournament-card-name,.tournament-card.is-tentative .tournament-card-family{color:var(--text-muted);font-style:italic}.tournament-card-top{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.tournament-card-family{color:var(--text-muted);font-size:.8rem}.tournament-card-name{margin-top:.15rem;font-weight:600}.tournament-card-meta{color:var(--text-muted);gap:.5rem;margin-top:.25rem;font-size:.8rem;display:flex}@media (width>=768px){.tournaments-grid-wrap{display:block}.tournaments-list-wrap{display:none}}.tournaments-load-more{justify-content:center;margin-top:1rem;display:flex}
