:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17233a;background:#f5f7fb;font-size:16px;line-height:1.5;--blue:#2444b8;--orange:#df713a}*{box-sizing:border-box}body{margin:0}header,nav,main,footer{max-width:1320px;margin:auto;padding:24px 36px}header{display:flex;justify-content:space-between;align-items:center;padding-top:32px;padding-bottom:26px}.eyebrow{font-size:12px;letter-spacing:2px;color:#60718e;font-weight:700}h1{font-size:28px;letter-spacing:-.8px;margin:4px 0}h2{font-size:24px;margin:0 0 6px}h3{font-size:16px;margin:0 0 12px}p{margin:4px 0 18px;color:#5b687b}.local{font-size:14px;display:flex;align-items:center;gap:8px}.local i{width:8px;height:8px;border-radius:50%;background:#179879}nav{display:flex;gap:6px;padding-top:0;padding-bottom:0;flex-wrap:wrap}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d4dce9;background:white;color:#273753;border-radius:7px;padding:9px 14px;font-weight:550}button:hover{border-color:#2444b8;background:#f0f4ff}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7ca4ff;outline-offset:2px}button:disabled{opacity:.5;cursor:wait}nav button{border-color:transparent;background:transparent;color:#718098;font-size:13px;padding:12px 16px;border-radius:8px 8px 0 0}nav button span{font-size:15px;margin-left:6px}nav button.active{background:#fff;border:1px solid #dde3ed;border-bottom-color:white;color:var(--blue)}main{padding-top:28px;border-top:1px solid #dde3ed;min-height:680px;background:#fff;border-radius:0 10px 10px 10px}.intro{margin-bottom:24px}.layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:28px}.panel{border:1px solid #e0e5ef;border-radius:10px;padding:20px;background:#fafbfe}.panel+.panel{margin-top:16px}.stack{display:grid;gap:12px}.row{display:flex;gap:8px;flex-wrap:wrap}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#193390;color:white}label{display:block;font-size:14px;font-weight:600;color:#41516b}input,select,textarea{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #ccd5e4;border-radius:6px;background:white;color:#17233a}input[type=file]{font-size:14px}textarea{font-family:monospace;font-size:13px;resize:vertical;min-height:150px}input[type=checkbox]{display:inline;width:auto;margin-right:6px}canvas{display:block;max-width:100%}.plot{width:100%;aspect-ratio:1;max-width:560px;border-radius:6px;border:1px solid #dce3ee;touch-action:none}.plot-wrap{display:flex;justify-content:center}.hint{font-size:14px;color:#68758a;margin-top:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.stat{background:#f3f6fc;border-radius:7px;padding:12px;font-size:13px;color:#617086}.stat strong{display:block;font-size:20px;color:#1c2d4f}.status{font-size:14px;min-height:24px;color:#385582;overflow-wrap:anywhere}.error{color:#a72828}.heatmaps{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px}.heatmaps figure{margin:0;flex:1;min-width:150px}.heatmaps canvas{width:100%;height:130px}.heatmaps figcaption,.maps figcaption{font-size:13px;color:#5f6f86;margin-top:6px}.drawing{background:#fff;touch-action:none;max-width:100%;border:1px solid #aebbd1;border-radius:8px}.preview{max-width:224px;max-height:224px;width:auto;object-fit:contain;border-radius:6px}.bars{display:grid;gap:9px}.bar{display:grid;grid-template-columns:minmax(70px,1fr) 2fr 56px;gap:8px;align-items:center;font-size:14px}.bar-track{height:12px;background:#eef2fa;border-radius:3px;overflow:hidden}.bar-fill{height:100%;background:#365bd7}.bar span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.maps figure{margin:0;padding:12px;background:#f6f8fb;border:1px solid #e0e5ed;border-radius:8px}.maps canvas{width:100%;image-rendering:pixelated}.output-grid{display:grid;grid-template-columns:224px 1fr;gap:24px;margin-bottom:24px}.badge{display:inline-block;padding:4px 9px;font-size:12px;background:#e9efff;color:#2546a6;border-radius:5px}progress{width:100%;height:12px}details{margin-top:22px}summary{cursor:pointer;color:#40577e;font-size:14px}pre{font-size:13px;white-space:pre-wrap;word-break:break-word;background:#f4f6fb;padding:14px;border-radius:6px}footer{font-size:13px;color:#6a7890;display:flex;gap:12px;align-items:center;flex-wrap:wrap}footer button{font-size:13px}.hidden{display:none!important}@media(max-width:800px){header,nav,main,footer{padding-left:18px;padding-right:18px}header{align-items:start;gap:10px;flex-direction:column}.layout{grid-template-columns:1fr}.output-grid{grid-template-columns:1fr}.local{font-size:12px}nav button{padding:9px 6px}nav button span{font-size:13px}.stats{gap:5px}h1{font-size:25px}.maps{grid-template-columns:1fr 1fr}}

.download-notice{background:#fff5db;border:1px solid #e8c36b;border-left:4px solid #c48b15;border-radius:7px;padding:14px;color:#65470d;font-size:14px}.download-notice strong{display:block;font-size:16px;line-height:1.4;margin-bottom:7px}.download-notice span{display:block;line-height:1.5}

.weight-editor h3{margin-bottom:5px}.weight-note{font-size:13px;line-height:1.45;margin:0 0 14px;color:#65758d}.weight-table{width:100%;border-collapse:separate;border-spacing:4px;table-layout:fixed;margin:0 0 16px}.weight-table:last-child{margin-bottom:0}.weight-table caption{text-align:left;font-size:14px;font-weight:650;color:#263d62;padding-bottom:7px}.weight-table th{font-size:13px;font-weight:600;color:#687991;text-align:center}.weight-table th:first-child{width:27px}.weight-table td{padding:0}.weight-table input{margin:0;width:100%;min-width:0;padding:9px 2px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums;border-color:#cbd6e8;background:#fff;border-radius:5px;appearance:textfield;-moz-appearance:textfield}.weight-table input::-webkit-inner-spin-button,.weight-table input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.weight-table td:last-child input{background:#edf2fc}.heatmaps canvas{height:auto;aspect-ratio:16/9}

.header-actions{display:flex;align-items:flex-end;flex-direction:column;gap:10px}.header-actions button{font-size:14px}
.weight-scroll{overflow-x:auto;margin:12px 0;max-width:100%}.weight-table{min-width:245px;margin-bottom:0}.weight-table td{min-width:64px}.weight-table:has(th:nth-child(6)){min-width:405px}.weight-buttons{display:flex;margin-top:3px;gap:3px}.weight-buttons button{flex:1;min-width:0;min-height:36px;padding:0;font-size:20px;line-height:1}.weight-table input{padding:8px 2px;font-size:16px}.weight-details{margin-top:2px;min-width:0}.weight-details summary{padding:6px 0;font-weight:600}.stack>*{min-width:0}.layout>*,.output-grid>*{min-width:0}
dialog{border:1px solid #dce3ee;border-radius:16px;padding:30px;max-width:440px;width:calc(100% - 32px);max-height:90dvh;overflow:auto;text-align:center;color:#17233a}dialog::backdrop{background:#14223c99}.dialog-close{position:absolute;right:8px;top:6px;font-size:24px;border:0;background:transparent;padding:0 10px}.qr-image{display:block;width:100%;max-width:320px;height:auto;margin:0 auto 12px}.site-link{display:block;overflow-wrap:anywhere;font-size:14px;color:#2444b8}.download-qr{display:inline-block;padding:10px;color:#2444b8}a:focus-visible{outline:3px solid #7ca4ff;outline-offset:3px}
@media(max-width:800px){.header-actions{align-items:flex-start}nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}nav button{flex-shrink:0;min-height:44px}button,select{min-height:44px}input,select{font-size:16px}.panel{padding:16px}.weight-buttons button{min-height:44px}.maps{grid-template-columns:1fr}.drawing{width:280px;max-width:100%;aspect-ratio:1}.layout{gap:20px}.plot{touch-action:pan-y}.intro{margin-bottom:18px}.stat{padding:9px 7px;font-size:12px}}

.welcome{max-width:1320px;margin:0 auto 22px;padding:0 36px}.welcome strong{color:#2444b8;font-size:15px}.welcome p{font-size:14px;max-width:950px;margin:4px 0 0}.student-guide{margin:0 0 26px;border:1px solid #dbe4f5;border-radius:10px;background:#f6f9ff;padding:14px 18px}.student-guide summary{font-weight:650;color:#2444b8;font-size:15px;min-height:28px}.student-guide summary:focus-visible{outline:3px solid #7ca4ff;outline-offset:3px}.guide-grid{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:24px;margin-top:14px}.guide-grid h3{font-size:14px;margin-bottom:7px;color:#263d62}.guide-grid p,.guide-grid li{font-size:14px;line-height:1.6;color:#4c5e78}.guide-grid p{margin:0}.guide-grid ol{margin:0;padding-left:20px}.guide-grid li+li{margin-top:5px}.guide-challenge{border-top:1px solid #dbe4f5;margin:16px 0 0;padding-top:12px;font-size:14px;color:#405778}.guide-challenge strong{display:inline-block;color:#2444b8;margin-right:6px}@media(max-width:800px){.welcome{padding:0 18px}.guide-grid{grid-template-columns:1fr;gap:16px}.student-guide{padding:14px}.student-guide summary{min-height:32px}.guide-challenge strong{display:block;margin-bottom:4px}}

.learning-hint{margin:0;padding:12px;background:#edf2ff;border-radius:7px;color:#344f7b;font-size:14px;line-height:1.55}.learning-hint strong{display:block;color:#2444b8;margin-bottom:6px}.learning-note{margin:0;font-size:13px;line-height:1.55;color:#5b6c84}

.site-intro{margin:6px 0 0;font-size:15px;color:#5b687b}body{padding-bottom:28px}

/* ImageNet labels can contain several names; show all of them above the bar. */
.image-bars .bar{grid-template-columns:minmax(0,1fr) 56px;gap:4px 8px;align-items:start}
.image-bars .bar span:first-child{grid-column:1;grid-row:1;min-width:0;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.image-bars .bar span:last-child{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
.image-bars .bar-track{grid-column:1 / -1;grid-row:2}
