:root{font-family:system-ui,'Malgun Gothic',sans-serif;color:#183a35;background:#f4f6f2;font-size:16px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:24px;padding:20px max(20px,calc((100% - 1160px)/2));background:#fff;border-bottom:1px solid #dce4de}header a{font-weight:800;font-size:23px;text-decoration:none}header button{margin-left:auto}a{color:#285f51}main{max-width:1200px;padding:36px 20px;margin:auto}h1{font-size:clamp(28px,4vw,40px);margin:8px 0}h2{font-size:23px}h3{margin-top:0}.eyebrow{font-size:12px;letter-spacing:2px;color:#56776c}.muted{color:#62736d;font-size:14px;line-height:1.8}.tabs,.section-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tabs{margin:30px 0}.tabs button[aria-pressed=true]{background:#285f51;color:white}.section-head h2{margin-right:auto}button,select,input{font:inherit;border:1px solid #cad6ce;border-radius:9px;padding:10px 13px;background:white;color:inherit;max-width:100%}button{cursor:pointer}button:hover{border-color:#285f51}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #80b9a6;outline-offset:3px}label{display:grid;gap:8px;font-size:14px}.panel{background:white;border:1px solid #dce4de;border-radius:16px;padding:24px;margin:20px 0;min-width:0}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.card{background:#eaf1e9;border-radius:12px;padding:20px}.card span{display:block;font-size:13px}.card strong{display:block;font-size:28px;margin-top:10px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}td,th{padding:12px;border-bottom:1px solid #e7ece7;white-space:nowrap}th{background:#f5f7f4}td:first-child{min-width:170px;max-width:400px;white-space:normal;overflow-wrap:anywhere}.chart svg{width:100%;height:auto;min-height:130px}.chart{min-height:100px}.bar-row{display:grid;grid-template-columns:minmax(100px,2fr) 3fr 70px;gap:12px;align-items:center;margin:15px 0;font-size:14px}.bar-track{background:#edf2ed;height:14px;border-radius:8px}.bar-fill{height:100%;background:#3f816b;border-radius:8px}.upload label{font-size:19px;font-weight:bold}.upload input{margin-top:16px}.upload p{font-size:14px;color:#62736d;line-height:1.8}.login{max-width:460px;margin:12vh auto}.login form{display:grid;gap:18px;margin:24px 0}[hidden]{display:none!important}#csv-status,#site-status,#status{line-height:1.7;overflow-wrap:anywhere}details summary{cursor:pointer;font-weight:bold}details p{line-height:1.8}@media(max-width:600px){header{gap:12px;font-size:13px;padding:16px}header a{font-size:20px}.panel{padding:17px}.bar-row{grid-template-columns:1.5fr 1fr 55px;gap:7px;font-size:12px}.section-head>label{width:100%}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:15px}.card strong{font-size:23px}}
:root .section-head>label{min-width:0;max-width:100%}:root .section-head select{width:100%;min-width:0}.cards{margin-top:14px}
:root .chart-stage{position:relative}.chart-tooltip{position:absolute;z-index:2;pointer-events:none;white-space:nowrap;background:#214e42;color:#fff;padding:9px 12px;border-radius:8px;font-size:14px;box-shadow:0 3px 12px #183a3526}.chart-stage svg:focus-visible{outline:2px solid #80b9a6;outline-offset:3px;border-radius:8px}
@media(max-width:600px){.chart-stage svg text{font-size:28px}.chart-stage svg .date-tick{font-size:32px}}
.period-switch{display:flex;gap:4px}.period-switch button[aria-pressed=true]{color:white;background:#285f51}.extra-report{margin-top:20px;padding-top:16px;border-top:1px solid #dce4de}.extra-report h3{margin-top:20px}.compact-note{margin:0 0 12px}.upload summary{cursor:pointer}.upload[open] summary{margin-bottom:18px}.youtube-mode main{max-width:1500px}.youtube-mode.has-reports main{padding-top:18px}.youtube-mode.has-reports main>.eyebrow,.youtube-mode.has-reports main>h1,.youtube-mode.has-reports main>.muted{display:none}.youtube-mode.has-reports .tabs{margin:0 0 12px}.youtube-mode.has-reports .panel{margin:12px 0;padding:16px}.youtube-mode.has-reports .section-head h2{margin:6px 0}.youtube-mode.has-reports #csv-status{margin:8px 0;font-size:13px}.youtube-mode .cards{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.youtube-mode .card{padding:12px}.youtube-mode .card strong{font-size:23px;margin-top:5px}.compact-table table{table-layout:fixed;width:100%;font-size:13px}.compact-table th,.compact-table td{white-space:normal;min-width:0;overflow-wrap:anywhere;padding:9px 8px;text-align:right;font-variant-numeric:tabular-nums}.compact-table th:first-child,.compact-table td:first-child{width:32%;min-width:0;max-width:none;text-align:left}.compact-table th{position:sticky;top:0;z-index:1;font-size:12px}.compact-table tbody tr:hover{background:#f0f5ef}.compact-table{max-height:65vh;overflow:auto}.chart-tooltip{max-width:100%;white-space:normal}.section-head h3{margin-bottom:0}
@media(max-width:700px){.youtube-mode .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.youtube-mode .card strong{font-size:18px}.youtube-mode .card span{font-size:11px}.compact-table{max-height:none}.compact-table thead{display:none}.compact-table tbody{display:block}.compact-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #dce4de;padding:10px 0;gap:8px}.compact-table td{display:block;text-align:left;border:0;padding:0}.compact-table td:first-child{width:auto;grid-column:1/-1;font-weight:700;font-size:14px}.compact-table td:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;color:#62736d;margin-bottom:3px}.period-switch{margin-top:10px}}
#table-zoom{float:right;padding:7px 12px;font-size:13px}.table-focus{overflow:hidden}.table-focus #youtube-results{position:fixed;inset:12px;z-index:100;margin:0;display:flex;flex-direction:column;box-shadow:0 0 0 100vmax #183a3580}.table-focus #table-zoom{align-self:flex-end;margin-bottom:8px}.table-focus #youtube-results h3{margin:0 0 12px}.table-focus #youtube-table{flex:1;max-height:none;min-height:0}.table-focus #youtube-results>.extra-report,.table-focus #youtube-results>.compact-note{display:none}.table-focus .compact-table td{padding-top:7px;padding-bottom:7px}
