Skip to content

armgit / moss

Public Imported from GitHub
0

MOSS: a small, mostly 3D-printed litter-picking rover. Cleaner streets, one maker at a time.

Python
12.1 KB
Raw Blame
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172c36;background:#f4f2ed;font-synthesis:none;font-weight:400;--ink:#172c36;--muted:#728080;--line:#dedfd7;--teal:#247565;--paper:#f4f2ed;--accent:#cde8d8}*{box-sizing:border-box}html,body,.app{height:100%;width:100%;margin:0;overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:focus-visible,canvas:focus-visible{outline:2px solid #3f8f7c;outline-offset:4px}button{touch-action:manipulation}button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}button:disabled{cursor:wait;opacity:.5}.masthead{height:94px;padding:25px 30px 20px 34px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:5;gap:20px}.brand{display:flex;align-items:center;gap:17px}.brand-mark{width:29px;height:34px;display:flex;gap:4px;align-items:center}.brand-mark i{height:24px;width:6px;background:var(--teal);border-radius:2px;transform:skewY(-22deg)}.brand-mark i:nth-child(2){height:34px}.eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:1.65px;font-weight:650;color:var(--muted);margin-bottom:6px}h1{font-size:23px;font-weight:560;letter-spacing:-.9px;margin:0;line-height:1.1}h1 span{color:#a4aba5;font-weight:300;margin:0 6px}.header-right{display:flex;gap:14px;align-items:center}.status{display:flex;align-items:center;gap:7px;padding:9px 12px;font-size:10px;font-weight:600;letter-spacing:.25px;border:1px solid #d6ddd3;border-radius:20px;background:#eef2e9;white-space:nowrap}.status>span{width:5px;height:5px;background:#5f8a65;border-radius:50%;box-shadow:0 0 0 3px #deeadb}.icon-button{border:1px solid var(--line);background:transparent;border-radius:8px;padding:8px 10px;font-size:11px}.icon-button span{margin-left:6px}.mobile-only{display:none}#stage{position:absolute;inset:94px 318px 0 0;background:radial-gradient(ellipse at 47% 44%,#f9f8f3 0,#f3f1ec 62%,#eceee6 100%);border-top:1px solid #e5e6de}#scene{display:block;width:100%;height:100%;outline:none;touch-action:none}.scene-kicker{position:absolute;top:23px;left:34px;display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:.2px;color:#647671;pointer-events:none}.tiny-rule{height:1px;width:18px;background:#5e8c78}.scene-kicker-divider{color:#b0b8ae;margin:0 1px}#scene-mode{color:#304f46;font-weight:600}.details{position:absolute;right:20px;top:108px;bottom:20px;width:282px;border:1px solid #e0e2d8;border-radius:13px;background:rgba(255,255,251,.82);box-shadow:0 8px 34px #293f2b06;display:flex;flex-direction:column;overflow:hidden;z-index:10}.overview{padding:23px 22px 20px;border-bottom:1px solid #e5e7df}.section-index{font-size:8px;font-weight:650;letter-spacing:1.5px;color:#74917f}.overview h2{font-size:21px;font-weight:480;line-height:1.24;letter-spacing:-.7px;margin:14px 0 10px}.overview p{font-size:11px;line-height:1.65;color:#78837b;margin:0;max-width:214px}.layers{padding:20px 22px 16px;border-bottom:1px solid #e5e7df}.section-heading{display:flex;align-items:center;justify-content:space-between}.section-heading h3{font-size:12px;font-weight:650;margin:0;letter-spacing:-.1px}.section-heading>span{font-size:8px;letter-spacing:1.1px;color:#91a092;font-weight:600}.switch-row{position:relative;display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding-top:15px;gap:12px}.switch-row>span{display:flex;align-items:center;gap:10px;font-size:11px;color:#54625c}.switch-row input{position:absolute;right:0;opacity:0;width:34px;height:18px;margin:0}.switch-track{width:29px;height:16px;border-radius:20px;background:#dce1d7;position:relative;transition:background .18s;flex:none}.switch-track:after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;left:3px;top:3px;background:#fff;box-shadow:0 1px 3px #152a211a;transition:transform .18s}.switch-row input:checked+.switch-track{background:#397e68}.switch-row input:checked+.switch-track:after{transform:translateX(13px)}.switch-row input:focus-visible+.switch-track{outline:2px solid #81bca5;outline-offset:3px}.layer-symbol{width:14px;height:14px;display:block;position:relative;color:#8a9c8d}.sleeve-symbol:before{content:"";position:absolute;inset:4px 0;border:1px solid #8a9c8d;border-radius:2px;transform:rotate(-35deg)}.tie-symbol:before{content:"";position:absolute;inset:1px 4px;border:1px solid #8a9c8d;border-radius:1px;transform:rotate(20deg)}.mount-symbol:before{content:"";position:absolute;inset:3px 1px;border:1px solid #8a9c8d;transform:skewY(-20deg)}.label-symbol{font-size:10px;line-height:14px;font-style:normal;text-align:center;border:1px solid #a5b1a1;border-radius:3px}.routes-section{padding:20px 10px 12px 22px;min-height:110px;display:flex;flex-direction:column;flex:1;overflow:hidden}.routes-section>.section-heading{padding-right:12px}.route-intro{font-size:10px;margin:8px 0 13px;color:#8a958a}.route-list{overflow:auto;padding-right:6px;scrollbar-width:thin;scrollbar-color:#cbd7c9 transparent;overscroll-behavior:contain;min-height:0}.route-empty{padding:16px 0;font-size:11px;line-height:1.5;color:#8b9489}.route-row{display:flex;align-items:center;gap:9px;width:100%;background:transparent;border:1px solid transparent;border-radius:7px;min-height:41px;padding:9px 8px;margin:1px 0;text-align:left;color:#526259;transition:background .15s,border .15s}.route-row:hover{background:#f0f4eb}.route-row.active{background:#eaf2e6;border-color:#d6e4d2;color:#234937}.route-dot{width:6px;height:6px;flex:none;border-radius:50%;background:var(--route-color,#528e70);box-shadow:0 0 0 2px #1d3b2909}.route-name{font-size:10px;line-height:1.35;flex:1;overflow-wrap:anywhere}.route-length{font-size:9px;color:#8e9b8b;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}.route-row.active .route-length{color:#52754f}.panel-note{display:flex;align-items:flex-start;gap:9px;background:#f7f8f1;padding:14px 21px;border-top:1px solid #e5e7df;flex:none}.panel-note p{margin:0;color:#8b9487;font-size:9px;line-height:1.6}.note-marker{border:1px solid #acb9a7;width:12px;height:12px;line-height:11px;text-align:center;display:block;flex:none;border-radius:50%;font-size:8px;font-family:Georgia,serif;margin-top:2px}.view-toolbar{position:absolute;bottom:67px;left:50%;transform:translateX(-50%);display:flex;gap:3px;align-items:center;padding:5px;border-radius:12px;background:rgba(255,255,252,.95);border:1px solid #e0e3d9;box-shadow:0 8px 32px #28382a10;white-space:nowrap;z-index:12}.view-button{display:flex;align-items:center;gap:7px;padding:10px 12px;border:0;border-radius:8px;font-size:10px;font-weight:550;color:#6e7c71;background:transparent;transition:background .15s,color .15s}.view-button:hover{background:#eff3e9;color:#385c49}.view-button.active{background:#234f43;color:#f6faf2;box-shadow:0 2px 5px #173b2e15}.view-button.active svg{stroke:#c9e7d5}.toolbar-divider{width:1px;height:22px;background:#e4e8df;margin:0 3px}.reset-button{width:32px;height:35px;display:grid;place-items:center;border:0;border-radius:7px;color:#91a08f;background:transparent}.reset-button:hover{color:#35604c;background:#eff3e9}.stage-bottom{position:absolute;bottom:26px;left:34px;right:25px;display:flex;align-items:center;justify-content:space-between;color:#8a9988;font-size:9px;pointer-events:none}.interaction-hint{display:flex;align-items:center;gap:8px}.interaction-hint b{font-weight:400;margin:0 5px;color:#b6c0ae}.mouse-icon{width:10px;height:15px;border:1px solid #9cad98;border-radius:6px;position:relative}.mouse-icon:before{content:"";position:absolute;width:1px;height:4px;left:3.5px;top:2px;background:#9cad98}.unit-note{font-size:7px;letter-spacing:1.3px;display:flex;align-items:center;gap:7px}.unit-note b{font-size:10px;letter-spacing:0;border:1px solid #d4ddce;padding:3px 5px;border-radius:3px;font-weight:500}.selection-chip{position:absolute;left:34px;bottom:133px;background:rgba(255,255,251,.93);border:1px solid #d9e3d4;border-radius:10px;box-shadow:0 5px 20px #293c2810;display:flex;gap:10px;align-items:center;padding:11px 10px 11px 13px;max-width:min(380px,calc(100% - 68px));z-index:11}.selection-chip[hidden]{display:none}.selection-chip>span{height:7px;width:7px;background:#3b8b66;border-radius:50%;flex:none}.selection-chip>div{display:flex;flex-direction:column;gap:4px;min-width:0}.selection-chip strong{font-size:11px;font-weight:600;color:#365a45;overflow-wrap:anywhere}.selection-chip div>span{font-size:9px;color:#8c9986}.selection-chip button{border:0;background:transparent;color:#9aac91;font-size:19px;padding:0 5px 3px 10px;line-height:1}.loader{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;background:#f4f2edf2;z-index:20;transition:opacity .4s}.loader.done{opacity:0;pointer-events:none}.loader strong{font-size:14px;font-weight:500;color:#395a49}.loader>span:last-child{font-size:10px;color:#8b9b87}.loader-ring{width:32px;height:32px;border:2px solid #dde5d7;border-top-color:#518c6b;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:7px}@keyframes spin{to{transform:rotate(360deg)}}.load-error{position:absolute;inset:30%;padding:24px;border:1px solid #ddc6b8;background:#fffaf4;border-radius:12px;z-index:25;height:max-content;color:#825a42}.load-error strong{font-size:15px}.load-error p{font-size:11px;line-height:1.6;overflow-wrap:anywhere}#labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.route-label{position:absolute;left:0;top:0;display:flex;align-items:center;gap:5px;color:#54705c;font-size:8px;font-weight:500;padding:5px 7px;border-radius:4px;background:#fffffbec;border:1px solid #d7e0d0;white-space:nowrap;box-shadow:0 2px 7px #29422509;will-change:transform}.route-label:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--route-color,#628866)}.route-label.active{color:#244d36;border-color:#8fbc96;background:#f4fff1;z-index:2}@media(max-width:1120px){.masthead{padding-left:25px}.brand{gap:12px}.eyebrow{font-size:8px}h1{font-size:21px}.details{width:252px;right:14px}#stage{right:280px}.overview,.layers{padding-left:18px;padding-right:18px}.overview h2{font-size:19px}.routes-section{padding-left:18px}.view-button{padding:10px 9px;gap:5px;font-size:9px}.view-button svg{width:16px}.scene-kicker,.selection-chip{left:25px}.stage-bottom{left:25px}.interaction-hint{font-size:8px}.unit-note{display:none}}@media(max-height:780px) and (min-width:761px){.overview{padding-top:18px;padding-bottom:16px}.overview h2{font-size:18px;margin-top:10px}.overview p{display:none}.layers{padding-top:16px;padding-bottom:14px}.switch-row{padding-top:12px}.routes-section{padding-top:17px}.view-toolbar{bottom:56px}.stage-bottom{bottom:21px}.selection-chip{bottom:117px}}@media(max-width:760px){.masthead{height:82px;padding:20px;gap:8px}.brand{gap:11px}.brand-mark{width:22px;height:30px;gap:3px}.brand-mark i{width:5px}.brand-mark i:nth-child(2){height:29px}.eyebrow{font-size:7px;letter-spacing:1.1px;margin-bottom:6px}h1{font-size:19px}.header-right{gap:8px}.status{font-size:8px;padding:8px 10px}.mobile-only{display:block}#stage{inset:82px 0 0}.details{display:none;right:14px;top:94px;bottom:118px;width:270px;max-width:calc(100% - 28px);box-shadow:0 10px 50px #172c3625;background:#fffffcf5;backdrop-filter:blur(12px)}.details.open{display:flex}.overview{display:none}.layers{padding:18px}.routes-section{min-height:90px}.panel-note{padding:12px 18px}.view-toolbar{bottom:51px;max-width:calc(100% - 24px);gap:1px;padding:4px;border-radius:10px}.view-button{font-size:9px;padding:10px 9px;gap:5px}.view-button svg{width:16px}.reset-button{width:28px}.scene-kicker{left:21px;top:19px;font-size:9px;gap:7px}.stage-bottom{bottom:20px;left:21px;right:21px;justify-content:center}.selection-chip{left:20px;bottom:113px;max-width:calc(100% - 40px)}.loader strong{font-size:13px}.load-error{inset:25% 8%}.route-label{font-size:7px}}@media(max-width:480px){.status{display:none}h1{font-size:18px}.masthead{padding-left:17px;padding-right:17px}.view-button{padding:10px 7px;font-size:8px}.view-button svg{width:15px}.toolbar-divider{margin:0 2px}.reset-button{width:25px}.interaction-hint{font-size:7px;gap:6px}.interaction-hint b{margin:0 3px}.route-label{max-width:150px;white-space:normal}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.loader-ring{animation:none}}

.route-label[hidden]{display:none}