Spaces:
Running on Zero
Running on Zero
File size: 6,814 Bytes
255bed9 8c78ddb 9f6ac5a 8c78ddb 9f6ac5a 8c78ddb 9f6ac5a 8c78ddb 255bed9 9f6ac5a 255bed9 1b2da16 9f6ac5a 1b2da16 287541f 1b2da16 287541f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | color:#ddd; font:13px/1.5 Arial,sans-serif;
button, input, summary { font:inherit; }
button { cursor:pointer; }
[hidden] { display:none!important; }
.settings-toggle { display:flex; align-items:center; justify-content:center; gap:10px; margin:0 auto; padding:10px 18px; min-height:44px; color:#bdbdbd; background:transparent; border:0; font:12px ui-monospace,monospace; }
svg { width:16px; height:16px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.3; transition:transform .18s ease; }
.settings-toggle[aria-expanded=true] svg, details[open] summary svg { transform:rotate(180deg); }
.settings-body { width:100%; }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:78px; padding:16px 0; border-bottom:1px solid #202020; }
.setting-label { color:#ddd; font-weight:400; }
.setting-help { margin:4px 0 0; color:#999; font:11px/1.5 ui-monospace,monospace; }
.source-switch { display:flex; gap:4px; padding:3px; border-radius:7px; background:#141414; }
.source-switch button { min-height:38px; padding:6px 15px; border:0; border-radius:4px; background:transparent; color:#aaa; }
.source-switch button[aria-pressed=true] { background:#e7e7e3; color:#151515; }
.seed-controls { display:flex; align-items:center; gap:18px; }
input[type=number] { appearance:textfield; width:84px; min-height:40px; padding:7px 9px; color:#e3e3e3; background:#0d0d0d; border:0; border-bottom:1px solid #555; border-radius:0; text-align:right; font:12px ui-monospace,monospace; }
input[type=number]::-webkit-inner-spin-button { appearance:none; }
#take-seed { width:105px; }
input:disabled { opacity:.5; cursor:not-allowed; }
input[type=checkbox][role=switch] { appearance:none; position:relative; flex-shrink:0; width:34px; height:20px; margin:12px 0; border:1px solid #666; border-radius:20px; background:#171717; cursor:pointer; }
input[type=checkbox][role=switch]::after { content:''; position:absolute; width:12px; height:12px; left:3px; top:3px; border-radius:50%; background:#999; transition:transform .15s ease; }
input[type=checkbox][role=switch]:checked { background:#ddd; border-color:#ddd; }
input[type=checkbox][role=switch]:checked::after { transform:translateX(14px); background:#111; }
.switch-label { display:flex; align-items:center; gap:9px; color:#aaa; font:11px ui-monospace,monospace; cursor:pointer; }
input[type=range] { width:100%; min-width:50px; height:44px; accent-color:#e7e7e3; cursor:pointer; }
.sampling { padding:6px 0 14px; border-bottom:1px solid #202020; }
.sampling summary { display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; min-height:52px; color:#bbb; }
.sampling summary::-webkit-details-marker { display:none; }
.sampling-grid { display:grid; grid-template-columns:1fr; gap:8px; padding-bottom:12px; }
.sampling-control { display:grid; grid-template-columns:minmax(130px,.8fr) minmax(0,1.6fr) 66px; align-items:center; gap:18px; min-width:0; }
.sampling-control label { color:#bbb; font-size:13px; }
.sampling-control input[type=number] { box-sizing:border-box; width:66px; margin:0; }
.sampling-control input[type=range] { min-width:0; margin:0; }
.rate-row { padding:16px 0; border-bottom:1px solid #202020; }
.rate-control { row-gap:0; }
.rate-control .setting-help { grid-column:1/-1; grid-row:2; margin:0; }
input[type=range] { appearance:none; -webkit-appearance:none; background:transparent; padding:0; margin:0; }
input[type=range]::-webkit-slider-runnable-track { height:2px; border:0; border-radius:2px; background:linear-gradient(to right,#c8c8c8 var(--range-fill,0%),#606060 var(--range-fill,0%)); }
input[type=range]::-moz-range-track { height:2px; border:0; border-radius:2px; background:linear-gradient(to right,#c8c8c8 var(--range-fill,0%),#606060 var(--range-fill,0%)); }
input[type=range]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:14px; height:14px; margin-top:-6px; border:0; border-radius:50%; background:#eee; box-shadow:none; }
input[type=range]::-moz-range-thumb { width:14px; height:14px; border:0; border-radius:50%; background:#eee; box-shadow:none; }
@media(max-width:600px) {
.sampling-grid { gap:16px; padding-top:4px; }
.sampling-control { grid-template-columns:minmax(0,1fr) 66px; column-gap:18px; row-gap:0; }
.sampling-control label { grid-column:1; grid-row:1; }
.sampling-control input[type=number] { grid-column:2; grid-row:1; }
.sampling-control input[type=range] { grid-column:1/-1; grid-row:2; }
.rate-control input[type=range] { grid-row:3; }
}
.text-button { min-height:44px; padding:8px 0; color:#ccc; background:transparent; border:0; text-decoration:underline; text-underline-offset:5px; font:11px ui-monospace,monospace; }
.retention { color:#8f8f8f; font:10px/1.7 ui-monospace,monospace; margin:14px 0 0; }
.consent-row { display:flex; align-items:center; gap:10px; min-height:44px; font-size:12px; color:#bbb; }
.consent-row input { accent-color:#ddd; width:18px; height:18px; }
:focus-visible { outline:2px solid #eee; outline-offset:4px; }
@media(max-width:600px) { .setting-row { gap:12px; } .seed-controls { gap:10px; } .sampling-grid { grid-template-columns:1fr; gap:8px; } .retention { font-size:10px; } }
@media(prefers-reduced-motion:reduce) { svg, input::after { transition:none; } }
/* Controls follow the label row, independently of wrapping help text. */
.setting-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:18px; }
.setting-row > :first-child { padding-top:10px; }
.setting-row > input[role=switch] { margin-top:12px; }
.seed-controls { justify-content:flex-end; min-height:44px; }
.source-switch button { min-height:40px; }
@media(max-width:600px) {
.setting-row { column-gap:12px; }
.seed-row { grid-template-columns:1fr; gap:8px; }
.seed-controls { justify-content:space-between; }
#take-seed { flex:1; width:auto; max-width:180px; text-align:left; }
input[type=number] { font-size:16px; min-height:44px; }
.source-switch button { font-size:14px; padding:6px 12px; }
}
.examples { display:grid; grid-template-columns:1fr; gap:12px; padding:22px 0 12px; }
.example-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px 16px; align-items:start; }
.example-button { appearance:none; -webkit-appearance:none; display:flex; align-items:center; justify-content:flex-start; box-sizing:border-box; height:44px; min-height:44px; margin:0!important; padding:0; border:0; border-radius:0; color:#ccc; background:transparent; font:12px/20px ui-monospace,monospace; text-align:left; }
.example-button span { display:block; height:22px; line-height:20px; border-bottom:1px solid currentColor; }
.example-button:hover { color:#fff; }
@media(max-width:360px) { .example-grid { gap:4px 10px; } .example-button { font-size:11px; } }
|