:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;--ink:#0f2e2c;--accent:#3ddbae;--muted:#667a77;--line:#dde7e4;--green:#227553;--red:#a43737;--bg:#f1f6f4;--surface:#fff;--surface-2:#f7faf9;--text:#16302e;--strong:#0f2e2c;--on-accent:#0f2e2c;--row-line:#e9efed;--chip:#e8f0ed;--input-line:#cfdcd8;--dash:#bccdc8;--tint-accent:#c9f4e5;--tint-avatar:#d3f3e8;--tint-soft:#e3f3ed;--hover-tint:#f0fcf8;--ok-tint:#f3faf6;--ok-bg:#e9f4ed;--bar-muted:#b9c9c5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #0f7a5c}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit}.skip-link{position:fixed;top:-100px;left:16px;background:var(--accent);padding:12px;z-index:20}.skip-link:focus{top:10px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:8px}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:15px}p{line-height:1.6}.muted,.hint{color:var(--muted)}.hint{font-size:12px;line-height:1.55;margin:7px 0 0}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--ink);color:#fff;padding:33px 22px;display:flex;flex-direction:column;gap:36px}.brand{display:flex;gap:12px;align-items:center;font-size:19px;letter-spacing:-.7px;font-weight:750}.brand-mark{background:var(--accent);color:var(--on-accent);width:37px;height:37px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}.brand small{display:block;color:#a8bdb8;font-size:10px;letter-spacing:1.6px;margin-top:5px;font-weight:500}.brand svg{width:23px;height:23px}.nav{display:grid;gap:8px}.nav button{display:flex;gap:12px;align-items:center;color:#b3c7c2;background:none;border:0;border-radius:9px;text-align:left;padding:13px;font-size:13px;font-weight:600}.nav button svg{width:19px;height:19px}.nav button.active{background:var(--accent);color:var(--on-accent)}.nav button:hover:not(.active){background:#1c403d;color:#fff}.side-note{margin-top:auto;border-top:1px solid #2f544f;padding-top:22px;color:#a8bdb8;font-size:12px;line-height:1.7}.workspace{min-width:0}.topbar{height:82px;background:var(--surface);border-bottom:1px solid var(--line);padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar-label{color:var(--muted);font-size:13px}.identity{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.avatar{height:34px;width:34px;border-radius:50%;background:var(--tint-avatar);display:grid;place-items:center;font-weight:700}.text-button{border:0;background:none;color:var(--muted);padding:7px;font-size:12px}.text-button:hover{color:var(--strong);text-decoration:underline}main{padding:36px 40px 48px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading p{font-size:13px;margin-bottom:0}.badge{display:inline-block;border-radius:5px;padding:5px 8px;background:var(--chip);font-size:11px;font-weight:650;white-space:nowrap}.badge.yellow{background:#fbf4c6;color:#66530d}.badge.green{background:var(--ok-bg);color:var(--green)}.badge.red{background:#faeded;color:var(--red)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--ink);color:#fff;border:1px solid var(--ink);border-radius:8px;padding:11px 17px;font-size:13px;font-weight:650;min-height:42px}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.button.secondary{background:var(--surface);border-color:var(--input-line);color:var(--strong)}.button svg{width:17px;height:17px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}.stat{padding:22px}.stat-label{font-size:12px;color:var(--muted);margin-bottom:15px}.stat-value{font-size:27px;font-weight:750;letter-spacing:-.9px;overflow-wrap:anywhere}.stat .hint{margin-top:10px}.stat.accent{background:var(--ink);border-color:var(--ink);color:#fff}.stat.accent .stat-label,.stat.accent .hint{color:#b4c8c3}.stat.accent .stat-value{color:var(--accent)}.card-head{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.card-head h2{margin-bottom:5px}.card-head p{margin:0;font-size:12px;color:var(--muted)}.filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(130px,1fr));gap:12px;padding:18px 24px;border-bottom:1px solid var(--line)}label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}input,select{width:100%;border:1px solid var(--input-line);border-radius:7px;background:var(--surface);padding:10px 11px;color:var(--strong);min-height:42px}input::placeholder{color:#8ea19e}input[type=file]{padding:13px;background:var(--surface-2)}input[type=file]::file-selector-button{border:0;border-radius:5px;padding:8px 12px;background:var(--tint-soft);margin-right:12px;font-weight:600;color:var(--strong)}.table-wrap{overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{text-align:left;background:var(--surface-2);color:var(--muted);font-weight:550;font-size:11px;padding:13px 20px}td{padding:17px 20px;border-top:1px solid var(--row-line)}td strong{font-size:12px;font-weight:650}.sub{display:block;font-size:11px;color:var(--muted);margin-top:5px}.reward{font-weight:700;font-variant-numeric:tabular-nums}.positive{color:var(--green)}.negative{color:var(--red)}.empty{padding:55px 24px;text-align:center;color:var(--muted);font-size:13px}.empty svg{width:34px;height:34px;color:#9db1ac;margin-bottom:13px}.empty h3{color:var(--strong);margin-bottom:7px}.empty p{max-width:420px;margin:0 auto 18px}.footnote{font-size:11px;color:var(--muted);line-height:1.7;padding:16px 24px;margin:0;border-top:1px solid var(--line)}.form-card{padding:26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field.full{grid-column:1/-1}.form-actions{display:flex;align-items:center;gap:12px;margin-top:24px;flex-wrap:wrap}.callout{padding:17px 20px;border:1px solid #e8e1ac;border-radius:9px;background:var(--surface)cec;font-size:12px;line-height:1.7;margin-bottom:24px;color:#665b28}.split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:22px}.step{display:flex;gap:12px;margin-bottom:24px;font-size:12px;line-height:1.6}.step-number{background:var(--tint-soft);flex-shrink:0;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-weight:700}.step strong{display:block;margin-bottom:4px}.step p{color:var(--muted);margin:0}.preview{margin-top:24px}.preview-summary{display:flex;gap:20px;flex-wrap:wrap;padding:20px 24px;font-size:12px}.preview-summary strong{display:block;font-size:20px;margin-top:7px}.warnings{font-size:12px;line-height:1.8;color:#806620;padding:0 24px}.notice{position:fixed;bottom:22px;right:22px;max-width:min(430px,calc(100vw - 44px));background:var(--ink);color:#fff;border:1px solid #4a625f;border-radius:10px;padding:16px 21px;font-size:13px;box-shadow:0 9px 35px #0002;z-index:30}.notice.error{background:#842f2f}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{padding:55px 65px;background:var(--ink);color:#fff;display:flex;flex-direction:column}.auth-story h1{font-size:clamp(36px,4vw,60px);line-height:1.12;max-width:520px;letter-spacing:-2px;margin-top:auto;margin-bottom:24px}.auth-story h1 span{color:var(--accent)}.auth-story>p{max-width:410px;color:#a9bfba;font-size:15px;margin-bottom:auto}.auth-story footer{color:#93aaa5;font-size:11px;margin-top:45px}.auth-main{display:grid;place-items:center;padding:42px}.auth-form{width:100%;max-width:360px}.auth-form h2{font-size:27px;margin-bottom:11px}.auth-form>.muted{font-size:13px;margin-bottom:28px}.auth-form .field{margin-bottom:19px}.auth-form .button{width:100%;margin-top:6px}.auth-error{color:var(--red);font-size:13px;line-height:1.6}.month-select{min-width:160px}.rider-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}.rider-card{padding:26px}.rider-card .stat-value{margin:19px 0}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:17px;border-top:1px solid var(--line);padding-top:19px;margin-top:19px}.metric{font-size:12px;color:var(--muted)}.metric strong{display:block;color:var(--strong);font-size:16px;margin-top:6px}.section-gap{margin-top:24px}.account-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:22px}.inline-reset{margin:0;padding:15px;background:var(--surface-2);border-radius:8px}.inline-reset .form-actions{margin-top:12px}.loading{padding:70px 24px;text-align:center;color:var(--muted)}[hidden]{display:none!important}@media(min-width:1400px){main{padding:44px 50px}.topbar{padding:0 50px}}@media(max-width:1100px){.shell{grid-template-columns:200px minmax(0,1fr)}main{padding:28px 24px}.topbar{padding:0 24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}.split,.account-layout{grid-template-columns:1fr}.sidebar{padding:28px 16px}.brand{font-size:17px}.auth-story{padding:40px}.identity .avatar{display:none}}@media(max-width:740px){.shell{display:block}.sidebar{padding:18px 20px;gap:20px}.brand small{display:none}.nav{display:flex;overflow-x:auto;gap:5px}.nav button{flex-shrink:0;padding:10px;font-size:11px;gap:7px}.nav button svg{width:16px;height:16px}.side-note{display:none}.topbar{height:auto;min-height:65px;padding:12px 20px}.topbar-label{display:none}.identity{gap:8px;width:100%;justify-content:space-between;font-size:12px}.identity .text-button{font-size:11px;padding:5px}main{padding:26px 16px}.page-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}h1{font-size:26px}.page-heading p{font-size:12px}.stats{gap:12px}.stat{padding:18px 15px}.stat-value{font-size:23px}.stat-label{font-size:11px}.card-head{padding:19px}.filters{padding:16px;gap:12px}.filters .field:first-child{grid-column:1/-1}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.form-card{padding:20px}.rider-cards{grid-template-columns:1fr}.auth-page{display:block}.auth-story{padding:26px}.auth-story h1{font-size:30px;letter-spacing:-1px;margin-top:38px;margin-bottom:15px}.auth-story>p{font-size:12px;margin:0}.auth-story footer{display:none}.auth-main{padding:32px 24px}.month-select{min-width:145px}td,th{padding-left:16px;padding-right:16px}}

.charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-bottom:24px}
.chart-card .trend,.chart-card .chart-empty,.chart-card .grade-bars{margin:0;padding:6px 22px 22px}
.trend{margin:0}
.rider-card .trend{margin-top:14px}
.chart{display:block;width:100%;height:auto;overflow:visible}
.chart-line{fill:none;stroke:var(--strong);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.chart-area{fill:var(--accent);opacity:.35}
.chart-dot{fill:var(--strong);stroke:var(--surface);stroke-width:2}
.trend figcaption,.chart-empty{font-size:12px;color:var(--muted);margin:8px 0 0}
.grade-row{display:grid;grid-template-columns:64px minmax(0,1fr) 36px;gap:10px;align-items:center;font-size:12px;margin-top:10px}
.bar-track{height:10px;background:var(--row-line);border-radius:6px;overflow:hidden}
.bar-fill{height:100%;background:var(--strong);border-radius:6px}
.grade-row strong{text-align:right}
@media(max-width:1100px){.charts{grid-template-columns:1fr}}

@media(min-width:741px){.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto}}
.stat-value{white-space:nowrap;overflow-wrap:normal}
.stat-unit{font-size:.52em;font-weight:650;letter-spacing:.4px;margin-right:7px;opacity:.8}
.muted-value{color:var(--muted);font-weight:500;font-size:12px}
.badge.grade{background:var(--tint-accent);font-size:12px;padding:4px 9px}
.badge.green{background:var(--ok-bg);color:var(--green)}
.sort{background:none;border:0;font:inherit;color:inherit;cursor:pointer;padding:0;display:inline-flex;align-items:center;gap:6px}
.sort:hover,.sort:focus-visible{color:var(--strong)}
.sort span{font-size:11px;opacity:.7}
th[aria-sort] .sort{color:var(--strong);font-weight:700}
.table-note{margin:0;padding:14px 24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.table-more{padding:16px 24px;border-top:1px solid var(--line)}
.table-more .button{width:auto;margin:0}
.chart-card .chart-empty{margin:0;padding:34px 22px 38px}
.chart-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;font-size:12px;color:var(--muted)}
.chart-empty svg{width:24px;height:24px;margin-bottom:4px}
.chart-empty strong{color:var(--strong);font-size:13px}
.rider-card .chart-empty{padding:18px 0 4px;align-items:flex-start;text-align:left}
.form-card .field{margin-bottom:18px}
.form-card .form-grid .field{margin-bottom:0}
.dropzone{position:relative;display:flex;align-items:center;gap:16px;padding:22px 24px;border:1.5px dashed var(--dash);border-radius:10px;background:var(--surface-2);transition:background .15s,border-color .15s}
.dropzone svg{width:26px;height:26px;flex:none;color:var(--muted)}
.dropzone strong{display:block;font-size:14px;overflow-wrap:anywhere}
.dropzone span{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.dropzone:hover,.dropzone:focus-within,.dropzone.over{border-color:var(--strong);background:var(--hover-tint)}
.dropzone.has-file{border-style:solid;border-color:var(--green);background:var(--ok-tint)}
.dropzone.has-file svg{color:var(--green)}
.drop-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}
.autofilled input{border-color:var(--green)}
.ok-line{display:flex;align-items:center;gap:10px;margin:0;color:var(--green);font-size:13px;font-weight:600}
.ok-line svg{width:18px;height:18px}
.disclosure{overflow:hidden}
.disclosure summary{cursor:pointer;padding:18px 24px;font-weight:700;font-size:14px;list-style:none}
.disclosure summary::-webkit-details-marker{display:none}
.disclosure summary::after{content:'+';float:right;font-size:18px;line-height:1;color:var(--muted)}
.disclosure[open] summary::after{content:'−'}
.disclosure[open] summary{border-bottom:1px solid var(--line)}
@media(max-width:740px){
.stack table,.stack tbody{display:block}
.stack thead{display:none}
.stack tr{display:block;padding:12px 0;border-top:1px solid var(--row-line)}
.stack tr:first-child{border-top:0}
.stack td{display:flex;justify-content:space-between;align-items:center;gap:14px;border:0;padding:3px 16px;text-align:right}
.stack td:not(:first-child)>div{display:flex;align-items:center;gap:8px}
.stack td .sub{margin-top:0}
.stack td::before{content:attr(data-label);color:var(--muted);font-size:11px;text-align:left;flex:none}
.stack td:first-child{display:block;text-align:left;padding-top:4px;padding-bottom:8px}
.stack td:first-child::before{content:none}
.table-note,.table-more{padding-left:16px;padding-right:16px}
.dropzone{padding:18px}
}

.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end}
.filters .field{margin-bottom:0}
.clear-filters{justify-self:start;padding:11px 4px;font-size:12px}
.filter-card .filters{padding:18px 24px;border-bottom:0}
.grade-row{grid-template-columns:96px minmax(0,1fr) 36px}
.bar-fill.muted{background:var(--bar-muted)}
.meter{height:6px;margin-top:8px}
.meter .bar-fill{background:var(--accent)}
.seg-track{display:flex}
.seg{display:block;height:100%}
.seg-new{background:var(--strong)}
.seg-changed{background:var(--accent)}
.seg-same{background:var(--input-line)}
.activity{padding:6px 22px 22px}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:16px 0 0;font-size:11px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px}
@media(max-width:740px){.filters .field.wide{grid-column:1/-1}.filter-card .filters{padding:16px}.grade-row{grid-template-columns:84px minmax(0,1fr) 30px}}

.head-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.head-actions .button{width:auto;margin:0;min-height:42px}
.attention{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:24px}
section.attention.card{display:block;padding:18px 24px}
.attention .ok-line{margin:0}
.attention-tile{display:flex;flex-direction:column;gap:3px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px;color:inherit;font:inherit;transition:border-color .15s,transform .15s}
.attention-tile strong{font-size:26px;letter-spacing:-.6px;line-height:1.1}
.attention-tile span{font-weight:650;font-size:13px}
.attention-tile small{font-size:11px;color:var(--muted)}
.attention-tile.alert{border-left:4px solid #d9a21b}
.attention-tile:disabled{cursor:default;opacity:.6}
.attention-tile:not(:disabled):hover{border-color:var(--accent);transform:translateY(-2px)}
@media(max-width:900px){.attention{grid-template-columns:1fr}.head-actions{justify-content:flex-start}}

:root[data-theme=dark]{color-scheme:dark;--bg:#0b1716;--surface:#12201f;--surface-2:#172928;--text:#d3e4e0;--strong:#eaf5f2;--ink:#0f2927;--muted:#8fa7a2;--line:#243a37;--row-line:#1e3331;--chip:#1e3331;--input-line:#31504b;--dash:#38544f;--tint-accent:#17483e;--tint-avatar:#1d4a40;--tint-soft:#1d3a36;--hover-tint:#14302b;--ok-tint:#133129;--ok-bg:#16402f;--bar-muted:#3b5854;--green:#5bd6a0;--red:#ff9088}
:root[data-theme=dark] .sidebar{border-right:1px solid var(--line)}
:root[data-theme=dark] .callout{background:#2a2611;border-color:#4a4220;color:#e6d98f}
:root[data-theme=dark] .badge.yellow{background:#3a3311;color:#f0e29a}
:root[data-theme=dark] .badge.red{background:#3a1b1b}
:root[data-theme=dark] .warnings{color:#d9c36a}
:root[data-theme=dark] .attention-tile.alert{border-left-color:#e0b43c}
:root[data-theme=dark] .empty svg{color:#5d7a75}

.theme-button,.lang-button{padding:6px 8px}
.theme-button svg{width:18px;height:18px;display:block}
.auth-tools{display:flex;justify-content:flex-end;gap:4px;margin-bottom:18px}
.summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;margin-bottom:20px;flex-wrap:wrap}
.summary .stat-value{margin:6px 0 0}
.summary-note{margin:0;font-size:13px;font-weight:600;color:var(--muted)}
.summary-note.positive{color:var(--green)}
.summary-note.negative{color:var(--red)}
.standing{margin-top:18px;padding-top:16px;border-top:1px solid var(--row-line)}
.standing-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;color:var(--muted)}
.standing-head strong{color:var(--strong);font-size:14px}
.standing small{display:block;margin-top:8px;font-size:11px;color:var(--muted)}

.skel{border-radius:12px;background:linear-gradient(90deg,var(--row-line),var(--surface-2),var(--row-line));background-size:200% 100%;animation:shimmer 1.3s linear infinite}
.skel-title{height:42px;width:min(340px,70%);margin-bottom:26px}
.skel-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}
.skel-card{height:118px}
.skel-block{height:300px}
@keyframes shimmer{to{background-position:-200% 0}}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.workspace main>*{animation:rise .35s ease both}
.workspace main>*:nth-child(2){animation-delay:.04s}
.workspace main>*:nth-child(3){animation-delay:.08s}
.workspace main>*:nth-child(4){animation-delay:.12s}
.workspace main>*:nth-child(n+5){animation-delay:.16s}
.bar-fill,.seg{transition:width .6s cubic-bezier(.2,.8,.2,1)}
@media(max-width:740px){.skel-stats{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

[dir=rtl] th,[dir=rtl] td,[dir=rtl] .attention-tile,[dir=rtl] .stack td:first-child{text-align:right}
[dir=rtl] .attention-tile.alert{border-left:1px solid var(--line);border-right:4px solid #d9a21b}
[dir=rtl] .stat-unit{margin-right:0;margin-left:7px}
[dir=rtl] .notice{right:auto;left:22px}
[dir=rtl] .skip-link{left:auto;right:16px}
[dir=rtl] .selector-button{margin-right:0;margin-left:12px}
[dir=rtl] .disclosure summary::after{float:left}
[dir=rtl] .grade-row strong{text-align:left}
[dir=rtl] .trend figcaption{direction:ltr;text-align:right}
[dir=rtl] :root[data-theme=dark] .sidebar,:root[data-theme=dark][dir=rtl] .sidebar{border-right:0;border-left:1px solid var(--line)}
@media(max-width:740px){[dir=rtl] .stack td{text-align:left}[dir=rtl] .stack td:first-child{text-align:right}}

@media print{
  :root,:root[data-theme=dark]{--bg:#fff;--surface:#fff;--surface-2:#f7faf9;--text:#16302e;--strong:#0f2e2c;--muted:#667a77;--line:#dde7e4;--row-line:#e9efed;--chip:#e8f0ed;--tint-accent:#c9f4e5;--ok-bg:#e9f4ed;--green:#227553;--red:#a43737}
  .sidebar,.topbar,.no-print,.filters,.auth-tools,.table-more,#notice,.skip-link{display:none!important}
  .shell{display:block}
  main{padding:0}
  .card{break-inside:avoid;box-shadow:none}
  .workspace main>*{animation:none}
  .rider-cards{grid-template-columns:1fr 1fr}
}
