/* Solv3R demo: a Space page. Upload and solver on the left, the stage on the right, examples below. Dark, neutrals lean slightly blue; one accent. */ :host { all: initial; } .app { --bg: #0b0e13; --bg2: #0f1319; --bg3: #141922; --bg4: #1a2029; --line: #1d242e; --line2: #28313d; --line3: #354050; --ink: #dce3ec; --ink2: #b0bac8; --muted: #7e8a9b; --faint: #566172; --acc: #4c8dd6; --acc2: #86b7ee; --accbg: rgba(76, 141, 214, 0.13); --ok: #4fb27c; --warn: #dca447; --err: #e0675f; --sans: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; display: block; max-width: 1280px; margin: 0 auto; padding: 26px 24px 40px; background: var(--bg); color: var(--ink); font: 13px/1.5 var(--sans); -webkit-font-smoothing: antialiased; color-scheme: dark; } .app *, .app *::before, .app *::after { box-sizing: border-box; } .app button { font: inherit; color: inherit; } .app svg { display: block; } .app [hidden] { display: none !important; } /* ---------------------------------------------------------------- header */ .hero { padding-bottom: 18px; } .hero h1 { margin: 0 0 2px; font: 650 26px/1.2 var(--sans); letter-spacing: -0.015em; color: #fff; } .hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; } .hero h2 { margin: 0; font: 500 17px/1.3 var(--sans); color: var(--ink); } .hero p { margin: 0; max-width: 760px; color: var(--ink2); font-size: 14px; } .hero nav { display: flex; flex-wrap: wrap; gap: 6px; flex: none; } .hero nav a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid var(--line3); border-radius: 7px; color: var(--ink2); text-decoration: none; } .hero nav a svg { width: 11px; height: 11px; opacity: 0.6; } .hero nav a:hover { color: #fff; border-color: var(--acc); } /* ---------------------------------------------------------------- input | output */ .work { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; } .col-in, .col-out { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .card { border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); padding: 12px; display: flex; flex-direction: column; gap: 10px; } .card-h { display: flex; align-items: center; gap: 8px; } .card-h span { font-weight: 600; } .card-h em { flex: 1; font: 11px/1 var(--mono); font-style: normal; color: var(--faint); } .in-empty, .in-full { display: flex; flex-direction: column; gap: 10px; } .drop-main { flex-direction: column; text-align: center; justify-content: center; gap: 10px; min-height: 230px; padding: 24px; } .drop-main svg { width: 30px; height: 30px; color: var(--acc2); } .drop-main div { align-items: center; gap: 4px; } .drop-main b { font-size: 14.5px; } .drop-main span { line-height: 1.6; } .in-t b { font-weight: 600; } .strip:empty { display: none; } .strip, .src-lists .thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; } .strip i { aspect-ratio: 1; border-radius: 4px; background: var(--bg4) center / cover no-repeat; } .src-lists .drop { display: none; } .src-lists .drop-list { margin-top: 0; } .src-lists .drop-meta { display: none; } .in-info:empty { display: none; } .in-info { color: var(--muted); font-size: 12px; } .modes.main { display: flex; flex-direction: column; gap: 6px; } .modes .mode { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg3); text-align: left; cursor: pointer; } .modes .mode b { font-weight: 500; } .modes .mode em { font-style: normal; color: var(--muted); font-size: 11.5px; } .modes .mode:hover { border-color: var(--line3); } .modes .mode.on { border-color: var(--acc); background: var(--accbg); } .modes .mode:disabled { cursor: default; } .modes.extra { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .params { display: flex; flex-direction: column; gap: 12px; } .fold > summary { list-style: none; cursor: pointer; color: var(--ink2); display: flex; align-items: center; justify-content: space-between; gap: 8px; } .fold > summary::-webkit-details-marker { display: none; } .fold > summary::after { content: "+"; color: var(--muted); font: 14px/1 var(--mono); } .fold[open] > summary::after { content: "–"; } .fold-b { padding-top: 12px; display: flex; flex-direction: column; gap: 14px; } .settings { border-top: 1px solid var(--line); padding-top: 10px; } .status { position: relative; display: flex; align-items: center; gap: 8px; font: 11.5px/1.4 var(--mono); color: var(--muted); padding: 0 2px; } .status .sp { position: absolute; left: 0; top: -7px; height: 2px; width: 0; background: var(--acc); transition: width .2s; } .status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line3); flex: none; } .status[data-kind="run"] .dot { background: var(--acc); animation: s3r-pulse 1.1s ease-in-out infinite; } .status[data-kind="ok"] .dot { background: var(--ok); } .status[data-kind="err"] .dot { background: var(--err); } .status[data-kind="err"] .st { color: #f0a49e; } .status .st { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ready { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); } .ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); } @keyframes s3r-pulse { 50% { opacity: 0.35; } } .viewer { height: 640px; } .stage-host { width: 100%; height: 100%; } .below { display: flex; align-items: flex-start; gap: 16px; } /* the summary on the left, the panel at the stage's right corner */ .below .sumline { flex: 1; min-width: 0; } .sumline span { white-space: nowrap; } .sumline i { font-style: normal; } .lab { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 460px; margin-left: auto; } .add-act .act-row { justify-content: flex-end; } .sumline:empty { display: none; } .sumline { font: 12px/1.4 var(--mono); color: var(--ink2); padding: 0 2px; } .act-row .grow { flex: 1; } .app:not(.kept) .lab { display: none; } .cont { position: absolute; right: 0; bottom: calc(100% + 8px); display: none; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border: 1px solid var(--line3); border-radius: 8px; background: var(--panel); color: var(--ink); font-weight: 500; cursor: pointer; pointer-events: auto; backdrop-filter: blur(6px); } .cont svg { width: 14px; height: 14px; } .cont:hover, .cont.on { border-color: var(--acc); color: #fff; background: #1d2a3a; } .app.kept .s3r.has .cont { display: inline-flex; } .details { border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 10px 12px; } .details summary em { font: 11px/1 var(--mono); font-style: normal; color: var(--faint); margin-right: auto; } .d-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); } .dtab { position: relative; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px 0 8px; } .dtab.on { color: #fff; } .dtab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--acc); } .d-pane[data-d="conv"] { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; } .d-pane .chart svg { width: 100%; height: auto; } .dl { position: relative; pointer-events: auto; } .dl-btn { width: 28px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: var(--ink2); cursor: pointer; padding: 0; } .dl-btn svg { width: 16px; height: 16px; } .dl-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); } .dl-menu { position: absolute; right: -4px; top: 34px; width: 280px; padding: 12px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(15, 19, 25, 0.97); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); z-index: 5; } .dl-note { margin: 0 0 6px; color: var(--muted); font-size: 11.5px; } .dl-note b { color: var(--ink); font-weight: 500; } .s3r-slot { display: flex; } /* ---------------------------------------------------------------- examples */ .examples { margin-top: 28px; } .ex-h { font-weight: 600; margin-bottom: 10px; } .ex-h span { font-weight: 400; color: var(--muted); margin-left: 8px; } .ex-table { border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; } .ex-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: var(--bg2); text-align: left; } .ex-head { border-top: 0; background: var(--bg3); color: var(--muted); font-size: 11.5px; padding-top: 8px; padding-bottom: 8px; } .ex { cursor: pointer; } .ex:hover { background: var(--bg3); } .ex.on { background: var(--accbg); } .ex:disabled { opacity: 0.5; cursor: default; } .ex-in { display: flex; align-items: center; gap: 12px; min-width: 0; } .ex-in > span:last-child { display: flex; flex-direction: column; min-width: 0; } .ex-in b { font-weight: 500; } .ex-in em { font-style: normal; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ex-th { display: flex; gap: 2px; flex: none; } .ex-th i { width: 46px; height: 34px; border-radius: 3px; background: var(--bg4) center / cover no-repeat; } .ex-mode { font: 500 11.5px/1 var(--mono); color: var(--acc2); } .ex-set { color: var(--ink2); font-size: 12px; } .empty-note { color: var(--faint); padding: 10px 14px; } /* segmented control */ .seg { display: flex; padding: 2px; gap: 2px; background: var(--bg); border: 1px solid var(--line2); border-radius: 7px; } .seg button { flex: 1; height: 24px; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; padding: 0 8px; white-space: nowrap; font-size: 12px; } .seg button:hover { color: var(--ink); } .seg button.on { background: var(--bg4); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 0 0 1px var(--line2); } /* drop zones */ .drop { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border: 1px dashed var(--line3); border-radius: 8px; background: rgba(255, 255, 255, 0.012); color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; outline: none; } .drop svg { width: 20px; height: 20px; flex: none; color: var(--ink2); } .drop div { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .drop b { font-weight: 500; color: var(--ink); } .drop span { font-size: 11.5px; } .drop u { text-decoration: none; color: var(--acc2); } .drop:hover, .drop:focus-visible { border-color: var(--acc); background: var(--accbg); } .drop.over { border-color: var(--acc); border-style: solid; background: var(--accbg); } .drop.compact { padding: 9px 10px; gap: 10px; } .join-slot { margin-top: 6px; } .join-strip { margin-top: 0; } .drop.compact svg { width: 16px; height: 16px; } .drop-wrap.has .drop:not(.compact) { padding: 9px 12px; } .drop-list:empty { display: none; } .drop-list { margin-top: 8px; } .thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; } .thumbs i { aspect-ratio: 1; border-radius: 4px; background: var(--bg4) center / cover no-repeat; position: relative; } .thumbs i.up { opacity: 0.45; } .thumbs i.err { outline: 1.5px solid var(--err); } .thumbs i.more { display: grid; place-items: center; font: 500 11px/1 var(--mono); font-style: normal; color: var(--muted); background: var(--bg4); } .drop-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--muted); font-size: 11.5px; } .link { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 11.5px; } .link:hover { color: var(--ink); } .vid { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg3); } .vid video { width: 88px; height: 50px; object-fit: cover; border-radius: 5px; background: #000; } .vid-meta { display: flex; flex-direction: column; min-width: 0; } .vid-meta b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vid-meta span { color: var(--muted); font: 11px/1.5 var(--mono); } .icon { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; padding: 0; } .icon svg { width: 14px; height: 14px; } .icon:hover { background: var(--bg4); color: var(--ink); } background: var(--bg3); color: var(--ink2); cursor: pointer; } /* fields */ .f { display: flex; flex-direction: column; gap: 5px; } .f-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .f label { color: var(--ink2); } .f output { font: 11.5px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; } .f-hint { color: var(--faint); font-size: 11px; } .f input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 14px; background: none; margin: 0; cursor: pointer; } .f input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--p), var(--line3) var(--p)); } .f input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line3); } .f input[type=range]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--acc); } .f input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #e9eef5; border: 0; box-shadow: 0 0 0 3px rgba(76, 141, 214, 0.25); } .f input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #e9eef5; border: 0; box-shadow: 0 0 0 3px rgba(76, 141, 214, 0.25); } .tg { display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink2); } .tg input { display: none; } .tg i { width: 26px; height: 15px; border-radius: 8px; background: var(--line3); position: relative; flex: none; transition: background .15s; } .tg i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #cfd7e2; transition: transform .15s; } .tg input:checked + i { background: var(--acc); } .tg input:checked + i::after { transform: translateX(11px); background: #fff; } .tg span { display: flex; flex-direction: column; } .tg em { font-style: normal; color: var(--faint); font-size: 11px; } /* run */ .run-wrap { display: flex; gap: 8px; margin-top: 4px; } .app .primary { position: relative; flex: 1; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; cursor: pointer; background: var(--acc); color: #fff; font-weight: 600; font-size: 13px; overflow: hidden; } .app .primary:hover { background: #5a98dd; } .run-p { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--acc2); transition: width .2s; } .stop { flex: 1; height: 38px; border: 1px solid rgba(224, 103, 95, 0.55); border-radius: 8px; background: rgba(224, 103, 95, 0.14); color: #f3b1ab; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; } .stop svg { width: 12px; height: 12px; } .stop:hover { background: rgba(224, 103, 95, 0.24); } .metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .m { background: var(--bg3); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; } .m span { color: var(--muted); font-size: 11px; } .m b { font: 500 14px/1.3 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .m em { font-style: normal; color: var(--faint); font-size: 10.5px; } .chart { border: 1px solid var(--line); border-radius: 8px; padding: 8px 8px 4px; background: var(--bg3); } .chart-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--muted); font-size: 11px; padding: 0 2px 4px; } .chart-h em { font: 10.5px/1.4 var(--mono); font-style: normal; color: var(--faint); } .chart svg { width: 100%; height: auto; overflow: visible; } .chart .grid line { stroke: var(--line2); stroke-width: 1; } .chart .grid line.v { stroke-dasharray: 2 3; } .chart .grid text { fill: var(--faint); font: 9.5px var(--mono); } .chart polyline { fill: none; stroke: var(--acc2); stroke-width: 1.6; stroke-linejoin: round; } .chart-empty { color: var(--faint); font-size: 11.5px; padding: 18px 4px; text-align: center; } .act { border: 1px solid var(--line); border-radius: 8px; background: var(--bg3); padding: 9px 10px; display: flex; flex-direction: column; gap: 8px; } .act-h { display: flex; flex-direction: column; } .act-h b { font-weight: 500; } .act-h span { color: var(--muted); font-size: 11.5px; } .act-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .act-row .seg { flex: 1; } .act-row .mini { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; } .act-row .mini em { font-style: normal; } .act .drop-list .thumbs { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); } .go { height: 26px; padding: 0 12px; border: 1px solid var(--line3); border-radius: 6px; background: var(--bg4); color: var(--ink); cursor: pointer; font-weight: 500; flex: none; } .go:hover { border-color: var(--acc); color: #fff; background: #1d2a3a; } .go:disabled, .exp:disabled { opacity: 0.45; cursor: default; } .app:not(.solved) .lab .go { opacity: 0.45; } .log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font: 11px/1.45 var(--mono); color: var(--muted); } .log li { padding-left: 10px; position: relative; } .log li::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--line3); } .log li:last-child { color: var(--ink2); } .log li.muted { color: var(--faint); } /* status line under the stage */ .gpu-note { margin: 2px 2px 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); } .gpu-note b { color: var(--ink); font-weight: 500; } .status { position: relative; display: flex; align-items: center; gap: 8px; padding-top: 6px; font: 11.5px/1.4 var(--mono); color: var(--muted); } .status .sp { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--acc); transition: width .2s; border-radius: 1px; } .status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line3); flex: none; } .status[data-kind="run"] .dot { background: var(--acc); animation: s3r-pulse 1.1s ease-in-out infinite; } .status[data-kind="ok"] .dot { background: var(--ok); } .status[data-kind="err"] .dot { background: var(--err); } .status[data-kind="err"] .st { color: #f0a49e; } .status .st { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @keyframes s3r-pulse { 50% { opacity: 0.35; } } .toasts { position: fixed; right: 16px; bottom: 38px; display: flex; flex-direction: column; gap: 6px; z-index: 20; pointer-events: none; } .toast { max-width: 360px; padding: 9px 12px; border-radius: 8px; background: var(--bg4); border: 1px solid var(--line3); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; } .toast.on { opacity: 1; transform: none; } .toast.err { border-color: rgba(224, 103, 95, 0.6); } /* ---------------------------------------------------------------- the stage (app.js) */ .s3r { --panel: rgba(15, 19, 25, 0.82); position: relative; width: 100%; height: 100%; background: #05070b; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; isolation: isolate; } .s3r:fullscreen { border-radius: 0; border: 0; } .s3r-canvas { position: absolute; inset: 0; } .s3r-canvas canvas { width: 100%; height: 100%; display: block; outline: none; } .s3r-empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .3s; background: radial-gradient(ellipse at center, rgba(76, 141, 214, 0.05), transparent 60%); } .s3r.has .s3r-empty, .s3r.live .s3r-empty { opacity: 0; transition: none; } .s3r-empty-in { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--muted); max-width: 300px; } .s3r-empty-in b { color: var(--ink2); font-weight: 500; font-size: 13px; } .s3r-mark { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: var(--acc2); margin-bottom: 8px; background: var(--accbg); } .s3r-mark svg { width: 26px; height: 26px; } .s3r-head { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px; pointer-events: none; } .s3r-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 9px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); opacity: 0; transition: opacity .3s; } .s3r.has .s3r-title { opacity: 1; } .s3r-title b { font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .s3r-title span { color: var(--muted); font: 10.5px/1.4 var(--mono); } .s3r-title span:empty { display: none; } .s3r-tools { display: flex; align-items: center; gap: 1px; padding: 3px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); pointer-events: auto; } .s3r-tools i { width: 1px; height: 16px; background: var(--line2); margin: 0 3px; } .s3r-tools > button { width: 28px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; padding: 0; } .s3r-tools > button svg { width: 16px; height: 16px; } .s3r-tools > button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); } .s3r-tools > button.on { color: var(--acc2); } .s3r-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -6px); padding: 6px 10px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line2); font: 500 11.5px/1 var(--mono); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; } .s3r-toast.on { opacity: 1; transform: translate(-50%, 0); } .s3r-foot { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px 6px; display: flex; flex-direction: column; gap: 6px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; pointer-events: none; } .s3r.has .s3r-foot { opacity: 1; pointer-events: auto; } .s3r.live .s3r-foot { display: none; } .s3r-legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--faint); font-size: 10.5px; } .s3r-key { display: none; align-items: center; gap: 6px; } .s3r.has-motion .s3r-key { display: inline-flex; } .s3r-key em { font-style: normal; } .s3r-key .bar { width: 64px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #96c4f2, #fac773 50%, #f08c85); order: 2; } .s3r-key em:nth-of-type(2) { order: 1; } .s3r-key em:nth-of-type(3) { order: 3; } @media (max-width: 900px) { .s3r-hint { display: none; } } .s3r-load { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 7, 11, 0.5); opacity: 0; pointer-events: none; transition: opacity .2s; } .s3r-load.on { opacity: 1; } .s3r-load-in { display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--muted); font-size: 11.5px; } .s3r-bar { width: 160px; height: 2px; border-radius: 2px; background: var(--line2); overflow: hidden; } .s3r-bar i { display: block; height: 100%; width: 0; background: var(--acc2); transition: width .1s; } /* timeline + chips (project page) */ .tl { display: flex; align-items: center; gap: 10px; } .tl-play { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line3); background: var(--bg4); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; } .tl-play:hover { border-color: var(--acc); } .tl-track { position: relative; flex: 1; height: 22px; cursor: pointer; outline: none; touch-action: none; } .tl-rail, .tl-fill { position: absolute; left: 0; top: 10px; height: 2px; border-radius: 1px; } .tl-rail { right: 0; background: var(--line3); } .tl-fill { background: var(--acc2); } .tl-ticks i { position: absolute; top: 8px; width: 1px; height: 6px; background: var(--line3); } .tl-head { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #eef2f7; box-shadow: 0 0 0 3px rgba(134, 183, 238, 0.25); } .tl-marks .tl-mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; } .tl-mark b { width: 2px; height: 22px; background: var(--acc2); opacity: 0.6; } .tl-mark em { position: absolute; top: -13px; font: 500 9.5px/1 var(--mono); font-style: normal; color: var(--acc2); white-space: nowrap; } .tl-time { flex: none; min-width: 92px; text-align: right; font: 11px/1 var(--mono); color: var(--ink2); font-variant-numeric: tabular-nums; } .s3r-chips { position: relative; } .chips-canvas { display: block; cursor: pointer; } .chips-tip { position: absolute; z-index: 3; display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 8px; background: rgba(15, 19, 25, 0.96); border: 1px solid var(--line2); pointer-events: none; opacity: 0; transition: opacity .15s; transform: translateY(-100%); margin-top: -28px; white-space: nowrap; } .chips-tip .tip-img { border-radius: 4px; flex: none; background-repeat: no-repeat; } .tip-txt { display: flex; flex-direction: column; font-size: 11px; } .tip-txt b { font-weight: 500; } .tip-txt span { color: var(--muted); font-family: var(--mono); } /* the stage's display options (app.js), opened from its toolbar */ .s3r-panel { pointer-events: auto; display: flex; flex-direction: column; gap: 10px; width: 250px; padding: 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); } .s3r-seg { display: flex; padding: 2px; gap: 2px; background: var(--bg); border: 1px solid var(--line2); border-radius: 7px; } .s3r-seg button { flex: 1; height: 24px; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; } .s3r-seg button.on { background: var(--bg4); color: var(--ink); } .s3r-sls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .s3r-sl { display: flex; flex-direction: column; gap: 4px; color: var(--ink2); font-size: 11.5px; } .s3r-sl span { display: flex; justify-content: space-between; } .s3r-sl output { font: 10.5px/1.4 var(--mono); color: var(--muted); } .s3r-sl input { width: 100%; accent-color: var(--acc); margin: 0; } .s3r-tgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; } .s3r-tg { display: flex; align-items: center; gap: 8px; color: var(--ink2); cursor: pointer; font-size: 11.5px; } .s3r-tg input { display: none; } .s3r-tg i { width: 26px; height: 15px; border-radius: 8px; background: var(--line3); position: relative; flex: none; transition: background .15s; } .s3r-tg i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #cfd7e2; transition: transform .15s; } .s3r-tg input:checked + i { background: var(--acc); } .s3r-tg input:checked + i::after { transform: translateX(11px); background: #fff; } .s3r:not(.stream) .s3r-traj { display: none; } .s3r-foot .s3r-title { flex-direction: row; align-items: baseline; gap: 10px; padding: 0; border: 0; background: none; opacity: 1; } @media (max-width: 960px) { .work { grid-template-columns: minmax(0, 1fr); } .below { flex-direction: column; } .lab { max-width: none; } .viewer { height: auto; aspect-ratio: 4 / 3; } .d-pane[data-d="conv"] { grid-template-columns: minmax(0, 1fr); } .ex-row { grid-template-columns: minmax(0, 1fr) 110px; } .ex-set { display: none; } } @media (max-width: 600px) { .app { padding: 16px 12px 28px; } .viewer { aspect-ratio: 4 / 5; } .ex-th i:nth-child(n+3) { display: none; } } .exp { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg3); cursor: pointer; text-align: left; } .exp span { display: flex; flex-direction: column; min-width: 0; } .exp b { font-weight: 500; } .exp em { font-style: normal; color: var(--faint); font: 10.5px/1.4 var(--mono); } .exp svg { width: 15px; height: 15px; flex: none; color: var(--muted); } .exp:hover { background: var(--bg4); border-color: var(--line3); } .exp:disabled { opacity: 0.45; cursor: default; } .strip { max-height: 214px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; } .in-info .ok { color: var(--ok); } .in-info .wait { color: var(--acc2); } .vid-only { display: flex; flex-direction: column; gap: 8px; } .vid-only .go { align-self: flex-start; } .params-in { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; } .common { border-top: 1px solid var(--line); padding-top: 10px; } .go { height: 28px; padding: 0 12px; border: 1px solid var(--line3); border-radius: 6px; background: var(--bg4); color: var(--ink); cursor: pointer; font-weight: 500; } .go:hover { border-color: var(--acc); } .go:disabled { opacity: 0.45; cursor: default; } .calls-f.dim { opacity: 0.45; } .calls-f.dim input { cursor: not-allowed; } .ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .ex-credit { margin: 10px 2px 0; color: var(--faint); font-size: 11.5px; } .ex-credit a { color: var(--muted); } @media (max-width: 960px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } } .s3r-sl.s3r-wide { grid-column: 1 / -1; } .s3r-more summary { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg); color: var(--ink2); font-size: 11.5px; cursor: pointer; list-style: none; user-select: none; transition: border-color .15s, color .15s; } .s3r-more summary::-webkit-details-marker { display: none; } .s3r-more summary:hover { border-color: var(--acc); color: var(--ink); } .s3r-more summary span { flex: 1; } .s3r-more summary svg { width: 14px; height: 14px; flex: none; } .s3r-more summary .chev { opacity: 0.7; transition: transform .15s; } .s3r-more[open] summary .chev { transform: rotate(180deg); } .s3r-more[open] summary { margin-bottom: 10px; border-color: var(--line3); }