:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#1b2840;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{background:#14243c;color:#eaf0f7;display:flex;flex-direction:column;padding:32px 18px;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 11px;font-size:15px;font-weight:800;line-height:1.2;letter-spacing:-.03em}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#507af6;color:white;font-size:24px;letter-spacing:-.13em;padding-right:4px}.brand-mark span{color:#b3ddff}.brand small{display:block;font-size:9px;font-weight:700;letter-spacing:.17em;color:#8fa2bd;margin-top:5px}.side-label{font-size:10px;font-weight:800;letter-spacing:.17em;color:#7890ae;margin:64px 13px 16px}.sidebar nav{display:grid;gap:6px}.nav-link{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:9px;color:#9eafc7;font-size:12px;font-weight:700}.nav-link:hover,.nav-link.active{background:#263957;color:white}.nav-icon{width:18px;font-size:18px;font-weight:400;line-height:1}.sidebar-bottom{display:flex;gap:10px;align-items:center;border-top:1px solid #2e405b;padding:25px 12px 2px;margin-top:auto}.private-dot{width:8px;height:8px;border-radius:50%;background:#54d6b0;box-shadow:0 0 0 4px #244d50;flex:none}.sidebar-bottom strong,.sidebar-bottom small{display:block}.sidebar-bottom strong{font-size:11px}.sidebar-bottom small{font-size:10px;color:#8fa2bd;margin-top:4px}main{min-width:0}.topbar{height:75px;border-bottom:1px solid #e9edf4;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 46px}.breadcrumbs{font-size:11px;color:#91a0b5;font-weight:600}.breadcrumbs strong{color:#34445e}.top-right{display:flex;align-items:center;gap:20px}.date-pill{font-size:11px;color:#64748c;font-weight:700}.avatar{width:32px;height:32px;border-radius:50%;background:#e3e9fa;display:grid;place-items:center;color:#4563ac;font-size:9px;font-weight:800}.content{max-width:1410px;margin:auto;padding:41px 46px 70px}.intro-section,.weekly-section,.monthly-section{scroll-margin-top:25px}.eyebrow{font-size:10px;color:#4c73d6;font-weight:800;letter-spacing:.16em;display:flex;align-items:center;gap:8px}.pulse{width:7px;height:7px;border-radius:50%;background:#5a83f2;box-shadow:0 0 0 4px #e2e9ff}.eyebrow.muted{color:#8a9ab2}.intro-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:9px}.intro-row h1{font-size:35px;letter-spacing:-.06em;margin:0;font-weight:800;line-height:1.2}.title-star{font-size:24px;color:#789aff;vertical-align:7px;margin-left:4px}.intro-row p,.section-heading p{font-size:12px;color:#8491a4;margin:8px 0 0;font-weight:500}.primary-button{border:0;background:#4773ed;color:#fff;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 17px;font-size:11px;font-weight:800;box-shadow:0 6px 15px #4773ed30;white-space:nowrap}.primary-button:hover{background:#365fd9}.primary-button span{font-size:15px;line-height:10px}.period-row{display:flex;align-items:center;gap:12px;margin:32px 0 16px}.period-row label{font-size:9px;letter-spacing:.13em;color:#8c9aaf;font-weight:800}.period-row input{height:34px;background:white;border:1px solid #e2e8f0;border-radius:7px;padding:0 10px;color:#33435b;font-size:11px;font-weight:700}.period-info{font-size:10px;color:#9aa6b7}.leader-banner{background:#162840;border-radius:14px;min-height:138px;color:white;padding:23px 26px;display:flex;align-items:center;justify-content:space-between;gap:16px;overflow:hidden;position:relative}.leader-banner:after{content:"";position:absolute;width:250px;height:250px;border:1px solid #3b506d;border-radius:50%;right:-50px;top:-130px;box-shadow:0 0 0 28px #ffffff07,0 0 0 56px #ffffff05}.leader-copy{position:relative;z-index:1}.leader-kicker{font-size:10px;letter-spacing:.16em;color:#9cafc9;font-weight:800}.leader-title{font-size:24px;letter-spacing:-.04em;font-weight:800;margin:9px 0 3px}.leader-sub{font-size:11px;color:#adc0d9}.leader-medal{height:73px;width:73px;border-radius:18px;background:#ffffff14;display:grid;place-items:center;font-size:33px;position:relative;z-index:1}.team-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.team-card{background:#fff;border:1px solid #e9edf4;border-radius:12px;padding:18px 20px;min-height:147px;box-shadow:0 4px 16px #182b4705}.team-card.leader{border-color:#c8d8ff;box-shadow:0 4px 20px #5078ed14}.card-top{display:flex;align-items:center;justify-content:space-between}.team-label{font-size:11px;font-weight:800;display:flex;align-items:center;gap:8px}.team-dot,.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--team);flex:none}.alpha{--team:#5480f4}.omega{--team:#8b6dea}.rising{--team:#f3a568}.badge{font-size:9px;font-weight:800;color:#5678ca;background:#eef3ff;border-radius:5px;padding:4px 6px}.metric{display:flex;align-items:baseline;gap:5px;margin-top:16px}.metric strong{font-size:28px;letter-spacing:-.06em;line-height:1}.metric span{font-size:10px;color:#9aa8b9;font-weight:700}.card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:13px;color:#97a3b5;font-size:10px;font-weight:600}.mini-track{height:5px;background:#edf1f8;border-radius:10px;margin-top:12px;overflow:hidden}.mini-track span{display:block;height:100%;border-radius:10px;background:var(--team)}.weekly-section,.monthly-section{margin-top:48px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:19px}.section-heading h2{font-size:21px;letter-spacing:-.05em;margin:7px 0 0}.entry-card,.ranking-panel,.trend-panel,.history-panel{background:white;border:1px solid #e9edf4;border-radius:12px;box-shadow:0 4px 16px #182b4705}.entry-card{padding:24px 26px}.form-top{display:flex;align-items:center;gap:25px}.field label{display:block;font-size:11px;font-weight:800;color:#31405a;margin-bottom:9px}.required{color:#ee826e}.field input{height:39px;border:1px solid #dce4ef;border-radius:7px;padding:0 12px;color:#283850;background:white;outline:none}.field input:focus,.score-input-wrap:focus-within,.period-row input:focus{border-color:#7294f7;box-shadow:0 0 0 3px #e9efff}.field small{display:block;color:#a3afbe;font-size:9px;margin-top:7px}.form-top-note{font-size:10px;color:#8b9aae;background:#f5f7fb;border-radius:7px;padding:10px 13px;margin-top:6px}.note-icon{font-size:13px;color:#7290cd;margin-right:6px}.score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:21px}.score-field{background:#f7f9fc;border:1px solid #edf0f5;border-radius:9px;padding:15px}.score-field label{display:flex;align-items:center;gap:8px;color:#33425b;font-size:11px;font-weight:800;margin-bottom:12px}.score-input-wrap{display:flex;align-items:center;background:#fff;border:1px solid #e0e7f0;border-radius:7px;overflow:hidden}.score-input-wrap input{min-width:0;width:100%;height:39px;padding:0 11px;border:0;outline:none;font-size:15px;font-weight:800;color:#26374f}.score-input-wrap input::placeholder{color:#a5b2c3}.score-input-wrap span{padding:0 11px;white-space:nowrap;color:#aab5c5;font-size:10px;font-weight:700}.form-bottom{display:flex;align-items:end;gap:15px;margin-top:19px}.note-field{flex:1}.note-field input{width:100%;font-size:11px}.optional{font-size:9px;color:#abb6c5;margin-left:5px}.save-button{height:40px;min-width:130px}.report-heading{align-items:end}.data-actions{display:flex;gap:8px;flex-wrap:wrap}.text-button{background:white;border:1px solid #dfe6f1;border-radius:7px;color:#556b90;padding:9px 11px;font-size:10px;font-weight:800;white-space:nowrap}.text-button:hover{background:#f3f6fd}.report-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:15px}.ranking-panel,.trend-panel{padding:20px 22px;min-height:260px}.panel-title{display:flex;justify-content:space-between;color:#8e9bb0;font-size:9px;letter-spacing:.12em;font-weight:800}.panel-title span{letter-spacing:0;color:#a3afbf}.rank-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:21px}.rank-number{font-size:12px;color:#9aa9bb;font-weight:800}.rank-row:first-child .rank-number{color:#4974ee}.rank-name{display:flex;align-items:center;gap:8px;font-weight:800;font-size:11px}.rank-meta{font-size:9px;color:#a4b0c0;margin:5px 0 0 16px}.rank-score{font-size:15px;letter-spacing:-.04em;font-weight:800}.rank-score span{font-size:9px;color:#a6b2c0;font-weight:600}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:190px;color:#9ba9bc;gap:6px;font-size:11px}.empty-icon{font-size:27px;color:#abbbe0}.empty strong{color:#576a87;font-size:12px}.chart{height:190px;margin-top:15px;position:relative}.chart svg{width:100%;height:100%;overflow:visible}.chart-grid{stroke:#e9eef5;stroke-width:1}.chart-axis{fill:#a4afc0;font-size:9px;font-family:Manrope,Arial,sans-serif}.chart-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.chart-point{stroke:white;stroke-width:2}.chart-legend{display:flex;justify-content:center;gap:14px;font-size:9px;color:#8594a8;font-weight:700;margin-top:4px}.chart-legend span{display:flex;align-items:center;gap:5px}.history-panel{margin-top:15px;overflow:hidden}.history-title{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid #edf0f5}.history-title strong{font-size:11px}.history-title span{font-size:10px;color:#9ba8b9;margin-left:9px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;min-width:630px}th,td{padding:13px 20px;border-bottom:1px solid #f0f2f6}tr:last-child td{border-bottom:0}th{font-size:9px;color:#97a6b7;letter-spacing:.07em;font-weight:800;white-space:nowrap}td{font-size:11px;font-weight:700;color:#586983}th .legend-dot{margin-right:4px}.alpha-bg{background:#5480f4}.omega-bg{background:#8b6dea}.rising-bg{background:#f3a568}.week-cell{color:#31415b}.top-chip{font-size:9px;background:#eef4ff;color:#5477cb;padding:5px 7px;border-radius:5px;white-space:nowrap}.row-actions{white-space:nowrap;text-align:right}.row-actions button{border:0;background:none;color:#7990af;font-size:10px;font-weight:700;margin-left:7px;padding:4px}.row-actions button:hover{color:#3265e4}.row-actions button.delete:hover{color:#d76065}.empty-row{text-align:center;color:#97a7ba;padding:32px 20px}.storage-note{font-size:10px;color:#9aa8b9;margin:16px 3px}.toast{position:fixed;bottom:25px;right:25px;background:#1f3452;color:white;border-radius:9px;padding:12px 16px;font-size:11px;font-weight:700;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none;box-shadow:0 9px 20px #13253c2c}.toast.show{opacity:1;transform:none}
@media(max-width:1000px){.shell{grid-template-columns:70px minmax(0,1fr)}.sidebar{padding:25px 10px}.brand{font-size:0;padding:0 6px}.brand small,.side-label,.nav-link{font-size:0}.nav-link{justify-content:center;padding:12px 8px}.nav-icon{font-size:19px}.sidebar-bottom{justify-content:center;padding:20px 0}.sidebar-bottom div:last-child{display:none}.topbar{padding:0 28px}.content{padding:32px 28px 60px}}@media(max-width:720px){.shell{display:block}.sidebar{position:static;width:100%;height:auto;min-height:0;padding:10px 16px;flex-direction:row;align-items:center;justify-content:space-between}.brand{font-size:12px;padding:0}.brand small{display:block;font-size:7px}.brand-mark{height:32px;width:32px;font-size:20px}.sidebar nav{display:flex;gap:2px}.nav-link{padding:8px}.nav-icon{font-size:18px}.sidebar-bottom,.side-label{display:none}.topbar{height:49px;padding:0 18px}.content{padding:26px 16px 50px}.intro-row{align-items:start}.intro-row h1{font-size:28px}.intro-row .primary-button{font-size:0;padding:11px}.intro-row .primary-button span{font-size:20px}.period-row{margin-top:25px}.leader-banner{min-height:122px;padding:18px}.leader-title{font-size:20px}.leader-medal{height:58px;width:58px;font-size:25px}.team-cards{gap:8px}.team-card{padding:13px 11px;min-height:132px}.team-label{font-size:10px}.metric strong{font-size:23px}.card-footer{font-size:9px}.score-grid{gap:8px}.score-field{padding:10px}.score-input-wrap span{display:none}.report-grid{grid-template-columns:1fr}.ranking-panel,.trend-panel{min-height:220px}.weekly-section,.monthly-section{margin-top:36px}}@media(max-width:520px){.team-cards{grid-template-columns:1fr}.team-card{min-height:auto}.card-footer{margin-top:8px}.metric{margin-top:8px}.score-grid{grid-template-columns:1fr}.score-field{display:flex;align-items:center;justify-content:space-between;gap:12px}.score-field label{margin:0;min-width:125px}.score-input-wrap{width:120px}.form-top{align-items:start;flex-direction:column;gap:7px}.form-top-note{margin-top:0}.form-bottom{flex-direction:column;align-items:stretch}.entry-card{padding:17px}.report-heading{align-items:start;flex-direction:column}.data-actions{align-self:flex-start}.date-pill{display:none}.section-heading h2{font-size:19px}.storage-note{line-height:1.5}}
/* Weekly rating import history */
.import-log{margin-top:18px;border-top:1px solid #dce5f1;padding-top:12px}
.import-log>summary{cursor:pointer;font-weight:700;color:#284f8a}
.import-log>p{font-size:13px;line-height:1.5;color:#5c6e88}
.import-log table{width:100%;border-collapse:collapse;min-width:620px}
.import-log th,.import-log td{padding:9px 11px;text-align:left;border-bottom:1px solid #e5ebf4;font-size:13px}
.import-log td:last-child{text-align:right}
.import-log button{border:1px solid #d8a7ae;border-radius:6px;background:#fff;color:#a5253d;padding:6px 10px;cursor:pointer}
.import-log button:hover{background:#fff1f3}
