/* Spellcast3D shell: the page, the tokens, buttons, inputs, chips, hints, folds, dialogs and toasts, and the shell itself: the props column on the left (the stage's heading, the list of props with the "+" under its last prop, the status line and the call to action) and the workbench right of it. The stage views inside the workbench are stages.css's (and stages-*.css's). */ :root { color-scheme: dark; --bg: #0c0e12; --surface: #14171d; --surface-2: #191d25; --surface-3: #222733; --field: #0f1217; --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.12); --text: #e9ecf3; --text-2: #a9b1bf; --text-3: #808999; /* 4.8:1 on the panels: hints stay readable */ --accent: #8b7dff; --accent-2: #a89dff; --accent-deep: #6a5cf5; --accent-soft: rgba(139, 125, 255, 0.14); --ok: #45d29f; --warn: #f1b64c; --bad: #f06b6b; --info: #6cb6ff; --radius: 20px; --radius-sm: 10px; --shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25); --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif; --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --mono: "Cascadia Mono", Consolas, ui-monospace, monospace; --topbar-h: 52px; --col-w: 208px; /* the props column */ --bench-left: calc(var(--col-w) + 26px); /* where the workbench starts: the page's padding, the column, the gap */ } *, *::before, *::after { box-sizing: border-box; } [hidden] { display: none !important; } html, body { height: 100%; } html { scrollbar-color: #3a4150 transparent; } body { margin: 0; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(1200px 500px at 50% -200px, rgba(139, 125, 255, 0.10), transparent 70%), var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; } h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; } a { color: var(--accent-2); text-decoration: none; } a:hover { text-decoration: underline; } button { font: inherit; color: inherit; } b { font-weight: 650; } .icon { flex-shrink: 0; display: block; } .icon.big { width: 40px; height: 40px; stroke-width: 1.4; color: var(--text-3); } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #2e3440; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* ---- buttons, fields, chips ------------------------------------------------------------------ */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text); font-size: 14px; font-weight: 560; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s, opacity 0.15s; } .btn:hover { background: #2a303d; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: 0.45; cursor: default; transform: none; } .btn.ghost { background: transparent; } .btn.ghost:hover:not(:disabled) { background: var(--surface-3); } .btn.ghost.on { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.2); } .btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, #9486ff, var(--accent-deep)); box-shadow: 0 6px 20px rgba(106, 92, 245, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18); } .btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #a195ff, #7466ff); } .btn.primary:disabled { opacity: 0.5; box-shadow: none; } .btn.primary.working:disabled { opacity: 0.85; } .btn.danger { border: 0; background: #d65858; color: #fff; } .btn.danger:hover { background: #e26464; } .btn.big { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; } .btn.small { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; } .btn.small .icon { width: 16px; height: 16px; } .icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s; } .icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); } .icon-btn:disabled { opacity: 0.35; cursor: default; } .icon-btn.small { width: 28px; height: 28px; } .icon-btn.small .icon { width: 16px; height: 16px; } .icon-btn.glass { background: rgba(20, 23, 29, 0.7); border-color: var(--line-2); backdrop-filter: blur(6px); } .glyph { font-size: 18px; line-height: 1; } .input { width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s; } .input::placeholder { color: #7a8393; } .input:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.18); } .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .input:disabled { opacity: 0.6; } .input.big { height: 46px; font-size: 15px; border-radius: 12px; } .input.small { height: 32px; padding: 4px 30px 4px 10px; font-size: 13px; } .input.mono { font-family: var(--mono); font-size: 13px; } textarea.input { resize: vertical; min-height: 44px; line-height: 1.45; } select.input { appearance: none; padding-right: 34px; cursor: pointer; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b1bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; } select.input option { background: #1a1e27; } input[type="number"].input { -moz-appearance: textfield; } input[type="number"].input::-webkit-inner-spin-button { display: none; } .hint { font-size: 12.5px; line-height: 1.45; color: var(--text-3); } .hint a { color: var(--accent-2); } .stack { display: flex; flex-direction: column; gap: 14px; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; } .chip .icon { width: 14px; height: 14px; } .chip.warn { background: rgba(241, 182, 76, 0.16); color: var(--warn); } /* "Non-commercial": a tool free for non-commercial use only (TriFlow; licenses.js), next to its name. */ .chip.nc { padding: 1px 7px; font-size: 11px; font-weight: 650; background: rgba(241, 182, 76, 0.14); color: var(--warn); cursor: help; } /* "Kommunity licence": FLUX.3 Image Klein's (licenses.js): non-commercial, its pictures commercially only under US$5M of yearly revenue - the "Non-commercial" colours, as a button in Images (it shows the line). */ .chip.kl { padding: 1px 7px; border: 0; font: inherit; font-size: 11px; font-weight: 650; background: rgba(241, 182, 76, 0.14); color: var(--warn); cursor: help; } button.chip.kl { cursor: pointer; transition: background 0.15s; } button.chip.kl:hover, button.chip.kl.on { background: rgba(241, 182, 76, 0.24); } /* "Powered by Hi3D 1.0": by the 3D stage's Shape while Hi3D is picked or made the model shown, a link to Hi3D's site (its licence asks for both). A quiet credit, nothing to warn about. */ .chip.hi3d { padding: 1px 7px; font-size: 11px; font-weight: 650; text-decoration: none; transition: background 0.15s, color 0.15s; } a.chip.hi3d:hover { background: var(--accent-soft); color: var(--accent-2); } details.fold { border-top: 1px solid var(--line); padding-top: 12px; } details.fold > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); } details.fold > summary::-webkit-details-marker { display: none; } details.fold > summary::before { content: ""; width: 7px; height: 7px; margin: 0 3px 0 2px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; } details.fold[open] > summary::before { transform: rotate(45deg); } details.fold > summary:hover { color: var(--text); } details.fold[open] > summary { margin-bottom: 12px; } .banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; font-size: 13.5px; } .banner .icon { margin-top: 1px; } .banner > div, .banner > span { flex: 1; } .banner.warn { background: rgba(241, 182, 76, 0.12); color: #ffe2ad; } .banner.inline { border-radius: 12px; border: 1px solid rgba(241, 182, 76, 0.25); } pre.log { margin: 0; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #090b0e; color: #aeb6c4; font: 12px/1.5 var(--mono); } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; } [data-state="ready"] > .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(69, 210, 159, 0.15); } [data-state="busy"] > .dot { background: var(--info); animation: sc-pulse 1.2s ease-in-out infinite; } [data-state="starting"] > .dot, [data-state="stopping"] > .dot, [data-state="installing"] > .dot { background: var(--warn); animation: sc-pulse 1s ease-in-out infinite; } [data-state="error"] > .dot { background: var(--bad); } [data-state="not_installed"] > .dot, [data-state="unsupported"] > .dot { background: transparent; border: 1.5px solid var(--text-3); } .state-chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; flex-shrink: 0; } .state-chip[data-state="ready"] { color: var(--ok); background: rgba(69, 210, 159, 0.12); } .state-chip[data-state="busy"] { color: var(--info); background: rgba(108, 182, 255, 0.12); } .state-chip[data-state="starting"], .state-chip[data-state="stopping"], .state-chip[data-state="installing"] { color: var(--warn); background: rgba(241, 182, 76, 0.12); } .state-chip[data-state="error"] { color: var(--bad); background: rgba(240, 107, 107, 0.12); } /* ---- header ---------------------------------------------------------------------------------- */ .topbar { position: relative; z-index: 20; flex: 0 0 var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; background: rgba(12, 14, 18, 0.82); border-bottom: 1px solid var(--line); } .brand { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; } .brand b { background: linear-gradient(135deg, var(--accent-2), #6f8bff); -webkit-background-clip: text; background-clip: text; color: transparent; } .spacer { flex: 1; } .project-menu { margin-left: 14px; min-width: 0; } .pm-button { display: flex; align-items: center; gap: 8px; max-width: 380px; height: 36px; padding: 0 10px 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; transition: background 0.15s, border-color 0.15s; } .pm-button:hover, .pm-button.menu-open { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.2); } .pm-folder { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-3); } .pm-label { display: flex; align-items: center; gap: 8px; min-width: 0; } .pm-name { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(241, 182, 76, 0.15); } .pm-chevron { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.15s; } .pm-button.menu-open .pm-chevron { transform: rotate(180deg); } .input.pm-edit { width: 320px; height: 36px; padding-top: 0; padding-bottom: 0; } .topbar.offline .install-slot, .topbar.offline .project-menu { opacity: 0.4; pointer-events: none; } /* What Spellcast3D is for, in one quiet line that gives way first when the header runs short of room, and is left out on narrow windows. */ .project-menu[hidden] + .tagline { margin-left: 14px; } .tagline { flex: 0 100 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--text-3); } @media (max-width: 1099px) { .tagline { display: none; } } /* The calibration notice under the header (shell/calibration.js): while the installer measures the graphics card. */ .notices { flex: none; } .calib-banner { display: flex; align-items: flex-start; gap: 12px; margin: 0 14px 8px; padding: 10px 12px 10px 14px; border-radius: 12px; border: 1px solid rgba(241, 182, 76, 0.45); background: rgba(241, 182, 76, 0.12); color: #ffe2ad; } .cb-lead { display: grid; place-items: center; height: 22px; } .cb-lead .spinner { width: 16px; height: 16px; border-width: 2px; } .cb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.45; } .cb-text b { color: #ffd98a; font-size: 13.5px; } .cb-now { display: flex; align-items: center; gap: 6px; color: #ffe2ad; opacity: 0.9; } .cb-now .icon { width: 14px; height: 14px; flex: none; } .calib-banner .progress { max-width: 420px; } .calib-banner .icon-btn { flex: none; color: #ffe2ad; } /* install progress: a pill that opens into one line per tool */ .install-card { position: relative; } .ic-top { display: flex; align-items: center; gap: 2px; } .ic-head { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 11px; max-width: 320px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 13px; font-weight: 600; } .ic-head:hover { background: var(--surface-3); } .ic-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ic-lead { display: grid; place-items: center; } .ic-lead .spinner { width: 15px; height: 15px; border-width: 2px; } .ic-lead .icon, .ic-chevron { width: 16px; height: 16px; } .ic-chevron { color: var(--text-3); transition: transform 0.15s; } .install-card.open .ic-chevron { transform: rotate(180deg); } .install-card[data-kind="failed"] .ic-head { border-color: rgba(240, 107, 107, 0.45); color: #ffc9c9; } .install-card[data-kind="failed"] .ic-lead { color: var(--bad); } .install-card[data-kind="done"] .ic-head { color: var(--ok); border-color: rgba(69, 210, 159, 0.35); } .install-card[data-kind="warn"] .ic-head { color: #ffdca0; border-color: rgba(241, 182, 76, 0.4); } .install-card[data-kind="warn"] .ic-lead { color: var(--warn); } /* Settings has something to say (e.g. spellcast3d-config.ini was changed: start again): a quiet dot on the gear. */ .header-gear { position: relative; } .gear-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; } .ic-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 360px; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: #1b1f28; box-shadow: var(--shadow); } .ic-item { display: flex; gap: 10px; } .ic-icon { width: 20px; display: grid; place-items: start center; padding-top: 1px; color: var(--text-3); } .ic-icon .icon { width: 17px; height: 17px; } .ic-icon .spinner { width: 16px; height: 16px; border-width: 2px; } .ic-item.done .ic-icon { color: var(--ok); } .ic-item.failed .ic-icon { color: var(--bad); } .ic-config .ic-icon { color: var(--warn); } .ic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); } .ic-text b { color: var(--text); font-size: 13px; } .ic-name { display: flex; align-items: center; gap: 8px; } .ic-text small { color: var(--text-3); font-variant-numeric: tabular-nums; } .ic-items { display: flex; flex-direction: column; gap: 12px; } .ic-help { display: flex; flex-direction: column; gap: 10px; } .ic-help .hint { margin: 0; } .ic-actions { display: flex; gap: 8px; } /* ---- popups: menus and tooltips ---------------------------------------------------------------- */ .popup-menu { position: fixed; z-index: 90; min-width: 230px; max-width: 340px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: #1b1f28; box-shadow: var(--shadow); } .menu-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; } .menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); outline: none; } .menu-item:disabled { opacity: 0.45; cursor: default; } .menu-item .icon { width: 17px; height: 17px; color: var(--text-2); } .menu-noicon { width: 17px; flex-shrink: 0; } .menu-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } .menu-label > small { color: var(--text-3); font-size: 12px; } .project-popup .menu-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .menu-item.danger { color: #ffbcbc; } .menu-item.danger .icon { color: var(--bad); } .menu-sep { height: 1px; margin: 6px 4px; background: var(--line); } .menu-heading { padding: 6px 10px 3px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); } .tip-pop { position: fixed; z-index: 95; max-width: 280px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #252a35; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); color: var(--text); font-size: 12.5px; line-height: 1.4; pointer-events: none; animation: sc-fade 0.12s ease-out; } /* What the call to action does (on hover), or why it said no. */ .tip-pop[data-kind="note"], .tip-pop[data-kind="refusal"] { max-width: 290px; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; } .tip-pop[data-kind="note"] { color: var(--text-2); } .tip-pop[data-kind="refusal"] { border-color: rgba(240, 107, 107, 0.45); background: #351d22; color: #ffd4d4; } .tip-pop[data-side="right"]:is([data-kind="note"], [data-kind="refusal"])::before { content: ""; position: absolute; left: -5px; top: var(--caret-y, 50%); width: 8px; height: 8px; margin-top: -4px; background: inherit; border: solid; border-width: 0 0 1px 1px; border-color: inherit; transform: rotate(45deg); } /* ---- the page: the props column and the workbench -------------------------------------------- */ /* clip: the page swiping to another stage slides under the header and off the bottom, never beside it. */ .app { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: clip; } .shell { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--col-w) minmax(0, 1fr); column-gap: 14px; padding: 10px 14px 14px 12px; } /* The page being left while the page swipes to another stage: a still copy laid over it (bench.js freeze). */ .shell-frozen { position: absolute; inset: 0; z-index: 3; pointer-events: none; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* ---- the props column ---------------------------------------------------------------------------- */ .column { position: relative; z-index: 2; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; } /* "↑ Images" over "All 3D": the way back up, and the big heading with what the stage does to every prop: plain words, nothing to press, sized so the longest ("Omni-Texture All") stays on one line of the column. */ .col-head { display: flex; flex-direction: column; gap: 10px; } .col-heading { min-width: 0; padding: 2px 2px 4px; color: var(--text); font: 650 26px/1.1 var(--font-display); letter-spacing: -0.02em; overflow-wrap: break-word; } /* Back up to the stage before: as big as the call to action at the bottom (its width, height, type and corners), but an outline, so the next step stays the one that catches the eye. */ .btn.col-up { width: 100%; height: 52px; padding: 0 14px; gap: 8px; border-radius: 14px; font-size: 15.5px; font-weight: 650; background: transparent; color: var(--text-2); } .col-up .icon { width: 19px; height: 19px; stroke-width: 2.2; } .col-up-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .btn.col-up:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.2); color: var(--text); } .menu-item.current { color: var(--accent-2); } .menu-current { width: 16px !important; height: 16px !important; margin-left: auto; color: var(--accent-2) !important; } /* The props: all the height between the heading and the buttons at the bottom. The tiles and the "+" right under the last one scroll together: with more props than fit, the "+" comes at the end of the list, well away from the buttons at the bottom (the space under it keeps it off them when scrolled to the end). */ .props { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; } .props-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; /* Room on the left for the "+" to shake in when it refuses (the margin keeps the tiles where they were). */ padding: 4px 4px 20px 6px; margin: 0 -10px 0 -6px; scrollbar-gutter: stable; mask-image: linear-gradient(to bottom, transparent 0, #000 6px, #000 calc(100% - 12px), transparent); /* A thin scrollbar of its own (no arrows): the standard properties would switch these styles off. */ scrollbar-color: auto; scrollbar-width: auto; } .props-scroll::-webkit-scrollbar { width: 6px; } .props-scroll::-webkit-scrollbar-button { display: none; height: 0; } .props-scroll::-webkit-scrollbar-track { background: transparent; } .props-scroll::-webkit-scrollbar-thumb { border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.1); } .props-scroll:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); } .props-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); } .props-list { display: flex; flex-direction: column; gap: 6px; } .props-list:empty { display: none; } .props-tail { padding-top: 8px; } .props-empty { padding: 18px 8px 14px; text-align: center; color: var(--text-3); font-size: 12.5px; } /* A prop: its name, then its picture in a rounded rectangle. content-visibility skips drawing the tiles out of view (a long list stays smooth); the padding keeps the selection ring inside the tile. */ .tile { position: relative; flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; padding: 4px; border-radius: 16px; cursor: pointer; outline: none; content-visibility: auto; contain-intrinsic-size: auto 176px; } .tile-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.15s, opacity 0.3s, filter 0.3s; } .tile-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; } /* A picture with see-through parts (a transparent background) shows a quiet checkerboard there. */ .tile-img.picture { background: repeating-conic-gradient(rgba(255, 255, 255, 0.045) 0 25%, transparent 0 50%) 0 0 / 14px 14px, #101318; } .tile-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); } .tile-ph .icon { width: 30px; height: 30px; stroke-width: 1.4; } /* What the prop is, when it is no object ("tileable": a texture), top left on its picture, on a dark glass. */ .tile-tag { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 9px 3px; border-radius: 999px; pointer-events: none; background: rgba(16, 19, 24, 0.8); backdrop-filter: blur(4px); color: var(--text); font: 600 12px/1.4 var(--font); } .tile:hover .tile-pic { box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 18px rgba(0, 0, 0, 0.35); } .tile.selected .tile-pic { box-shadow: 0 0 0 2px var(--accent), 0 8px 22px rgba(0, 0, 0, 0.4); } /* The prop the workbench shows although none is picked (a later stage follows the work). */ .tile.shown .tile-pic { box-shadow: 0 0 0 1.5px rgba(139, 125, 255, 0.5); } .tile:focus-visible .tile-pic { outline: 2px solid var(--accent); outline-offset: 2px; } /* A stage's box to tick beside each tile (view.tileCheck: Omni-Texture's "chosen"): right of the tile, level with the picture's middle, over the gap and the workbench's edge - it ends short of the buttons in the viewport's corners. The list is that much wider on the right while a stage has boxes (its scrollbar stands after them), and its tiles are drawn whole: content-visibility would cut the box off at the tile's edge. That room lies over the workbench's edge, so the list itself takes no pointer there - only what is in it does: a stroke or a click at the viewport's left edge is the viewport's. */ .props.checks .props-scroll { margin-right: -40px; padding-right: 34px; pointer-events: none; } .props.checks .props-scroll > * { pointer-events: auto; } .props.checks .tile { content-visibility: visible; } .tile-check { position: absolute; left: calc(100% - 2px); top: calc(29px + (100% - 33px) / 2); z-index: 2; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); border: 2px solid var(--accent-2); border-radius: 10px; background: rgba(16, 19, 24, 0.86); color: transparent; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); transition: border-color 0.12s, background 0.12s, color 0.12s, transform 0.12s; } .tile-check[hidden] { display: none; } .tile-check::after { content: ""; position: absolute; inset: -7px; } /* easy to hit */ .tile-check .icon { width: 25px; height: 25px; stroke-width: 3; } .tile-check:hover { border-color: #fff; transform: translateY(-50%) scale(1.08); } .tile-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* ticked: the purple of the button the tick is for ("Omni-Texture the chosen": .btn.primary) */ .tile-check[aria-checked="true"] { border-color: transparent; color: #fff; background: linear-gradient(135deg, #9486ff, var(--accent-deep)); } /* A stage's number boxes on the picture, along its bottom edge (view.tileSizes: Retopo's sizes, in thousands of vertices): a row on a dark glass across the tile, the boxes sharing its width, their unit after them. They take none of the list's height. Even in the narrower column (--col-w) a box holds "12.25" at its font with room for the caret, where "k vertices" after three of them no longer fitted. */ .tile-sizes { position: absolute; left: 10px; right: 10px; bottom: 7px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 10px; background: rgba(16, 19, 24, 0.8); backdrop-filter: blur(4px); cursor: default; } .tile-size { flex: 1 1 0; min-width: 40px; height: 25px; padding: 0; border-radius: 6px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); text-align: center; outline: none; font: 650 13px/1 var(--font); font-variant-numeric: tabular-nums; transition: border-color 0.12s; } .tile-size:hover { border-color: var(--text-3); } .tile-size:focus { border-color: var(--accent); } .tile-sizes-unit { margin-left: 2px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; } /* A prop with several views (its 3D model is made from all of them): its picture is the top card of a small fanned deck, two more cards showing along its left and bottom edges. The picture makes room for them (a little smaller, in the top right corner of its place), so the tile keeps its size and the cards stay inside it. The cards start where the picture does: under the tile's padding, the name's 20px line and the gap. */ .tile.multi { isolation: isolate; } .tile.multi .tile-pic { transform: scale(0.88); transform-origin: 100% 0; } .tile.multi::before, .tile.multi::after { content: ""; position: absolute; z-index: -1; top: calc(4px + 20px + 5px); right: 4px; pointer-events: none; width: calc((100% - 8px) * 0.88); aspect-ratio: 4 / 3; border-radius: 11px; background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); transform-origin: 100% 100%; transition: opacity 0.3s; } .tile.multi::before { transform: rotate(-6deg); background: var(--surface-2); } .tile.multi::after { transform: rotate(-3deg); } .tile.multi.selected::before, .tile.multi.selected::after { box-shadow: inset 0 0 0 1px rgba(139, 125, 255, 0.7); } .tile.multi.st-unreachable::before, .tile.multi.st-unreachable::after { opacity: 0.38; } .tile-head { position: relative; display: flex; align-items: center; min-width: 0; height: 20px; padding: 0 2px; } /* The name is as wide as its words (cut short when the tile is narrower): the pencil comes right after it. */ .tile-name { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; line-height: 20px; color: var(--text-2); } .tile:hover .tile-name, .tile.selected .tile-name { color: var(--text); } /* The pencil after the name renames the prop (so does a double click on the name): there on the selected prop, and on the others while the pointer or the keyboard is on them. The name and the pencil keep clear of the bin (delete) on the right while that shows. */ .tile-edit { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-left: 2px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--text-3); cursor: pointer; opacity: 0; transition: opacity 0.15s, color 0.15s, background 0.15s; } .tile-edit .icon { width: 13px; height: 13px; } .tile:hover .tile-edit, .tile:focus-within .tile-edit, .tile.selected .tile-edit, .tile.shown .tile-edit { opacity: 1; } .tile-edit:hover, .tile-edit:focus-visible { color: var(--text); background: var(--surface-3); } .tile.renaming .tile-edit { display: none; } .tile:hover .tile-head, .tile:focus-within .tile-head, .tile-head:has(.tile-more.menu-open) { padding-right: 32px; } .tile-rename { flex: 1; min-width: 0; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--accent); background: var(--field); color: var(--text); font: 600 12.5px/1 var(--font); outline: none; } .tile-more { position: absolute; right: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 22px; padding: 0; border: 1px solid var(--line-2); border-radius: 7px; color: var(--text-2); cursor: pointer; background: var(--surface-2); box-shadow: -10px 0 8px -2px var(--bg); opacity: 0; transition: opacity 0.15s, color 0.15s, background 0.15s; } .tile-more .icon { width: 16px; height: 16px; } .tile:hover .tile-more, .tile:focus-within .tile-more, .tile-more.menu-open { opacity: 1; } .tile-more:hover, .tile-more.menu-open { color: var(--text); background: var(--surface-3); } /* The views of a multi-view prop, right of its tile while the pointer (or the keyboard) is on it: what the deck holds, each view cut to its slice with its side under it, and under them what the tile's tooltip would say. There at once, with no fade. Above everything like the tooltips (the scrolling list does not clip it), and nothing the pointer can touch: the workbench under it stays in reach. */ .tile-views { position: fixed; z-index: 95; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 7px; border-radius: 10px; border: 1px solid var(--line-2); background: #252a35; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); pointer-events: none; } .tile-views-row { display: flex; gap: 8px; } .tile-view { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-2); font-size: 11.5px; line-height: 1.3; white-space: nowrap; } /* About as large as the tile's own picture: four of them still fit beside the column on a laptop screen. */ .tile-view-pic { position: relative; display: block; width: 128px; height: 128px; border-radius: 9px; background: repeating-conic-gradient(rgba(255, 255, 255, 0.045) 0 25%, transparent 0 50%) 0 0 / 14px 14px, #101318; } /* As wide as the pictures over it, however long: it wraps. */ .tile-views-note { width: 0; min-width: 100%; color: var(--text-2); font-size: 12px; line-height: 1.4; } /* The status of the prop in the stage on screen: small, quiet marks in the picture's top right corner. */ .tile-badge { position: absolute; top: 7px; right: 7px; z-index: 1; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 800 12px/1 var(--font); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); } .tile-badge .icon { width: 13px; height: 13px; stroke-width: 2.6; } /* The check is the one mark the artist looks for across the list: twice the size of the others. */ .tile[data-badge="done"] .tile-badge { display: grid; width: 40px; height: 40px; background: var(--ok); color: #05281a; cursor: help; } .tile[data-badge="done"] .tile-badge .icon { width: 26px; height: 26px; } .tile[data-badge="skipped"] .tile-badge { display: grid; width: 40px; height: 40px; background: var(--warn); color: #2b1d02; } .tile[data-badge="skipped"] .tile-badge .icon { width: 26px; height: 26px; } .tile[data-badge="waiting"] .tile-badge { display: grid; background: rgba(35, 40, 52, 0.92); color: var(--text); } .tile[data-badge="error"] .tile-badge { display: grid; background: var(--bad); color: #fff; } .tile[data-badge="stale"] .tile-badge { display: block; width: 12px; height: 12px; top: 10px; right: 10px; background: var(--warn); box-shadow: 0 0 0 2px rgba(12, 14, 18, 0.55); } .tile[data-badge="review"] .tile-badge { display: block; width: 12px; height: 12px; top: 10px; right: 10px; border: 2px solid #dfe4ee; background: rgba(12, 14, 18, 0.45); } .st-waiting .tile-pic > :is(.tile-img, .tile-ph) { opacity: 0.6; } .st-unreachable .tile-pic { opacity: 0.38; filter: grayscale(1); } .st-unreachable .tile-name { color: var(--text-3); } /* Being made: a progress bar along the picture's bottom edge and a soft pulse around it. Begun, and waiting for its next step: the bar alone, standing where the prop got to. The bar is bright orange on its dark track, so it reads on any picture (the workbench's own bar keeps the accent colour). */ .tile-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: none; height: 4.5px; background: rgba(0, 0, 0, 0.45); overflow: hidden; } .st-processing .tile-bar, .st-resting .tile-bar { display: block; } .tile-bar-fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #ff8a1f, #ffb347); transition: transform 0.5s ease; } .tile-bar.indeterminate .tile-bar-fill { transform: scaleX(0.35); animation: tile-slide 1.4s ease-in-out infinite; } .st-processing .tile-pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(168, 157, 255, 0.75), inset 0 0 22px rgba(139, 125, 255, 0.35); animation: tile-pulse 1.8s ease-in-out infinite; } /* ---- the "+" under the last prop; the stage's own button, the status line and the call to action ---- */ .col-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; } .plus-btn { display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; width: 100%; height: 44px; border-radius: 12px; border: 1.5px dashed rgba(139, 125, 255, 0.5); background: rgba(139, 125, 255, 0.05); color: var(--accent-2); font-size: 14px; font-weight: 620; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; } .plus-btn .icon { width: 22px; height: 22px; stroke-width: 2.2; } .plus-btn:hover:not(:disabled) { border-color: rgba(168, 157, 255, 0.85); background: var(--accent-soft); color: #fff; } .plus-btn:active:not(:disabled) { transform: translateY(1px); } .plus-btn.working { opacity: 0.6; cursor: progress; } /* The workbench shows the new prop being prepared: the "+" is where the artist is. */ .plus-btn.current { border-style: solid; border-color: rgba(139, 125, 255, 0.75); background: var(--accent-soft); color: var(--text); } .btn.row-action { width: 100%; height: 38px; padding: 0 10px; font-size: 13px; border-radius: 11px; } .row-action-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .row-action-icon { display: grid; place-items: center; color: var(--accent-2); } .row-action-icon .icon { width: 17px; height: 17px; } .btn.row-action.working { opacity: 0.7; cursor: progress; } /* The one big warm button: it goes down to the next stage with every prop. */ .cta-slot { position: relative; } .btn.cta { position: relative; width: 100%; height: 52px; padding: 0 14px; gap: 8px; border: 0; border-radius: 14px; font-size: 15.5px; font-weight: 650; color: #241608; background: linear-gradient(135deg, #dcaa6c, #b07a43); box-shadow: 0 6px 20px rgba(176, 122, 67, 0.3), inset 0 1px 0 rgba(255, 238, 210, 0.45), inset 0 -2px 0 rgba(74, 42, 14, 0.22); } .btn.cta:hover:not(:disabled):not(.disabled) { background: linear-gradient(135deg, #e6b87b, #bd8750); } .cta-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .cta-icon { display: grid; place-items: center; } .cta-icon:empty { display: none; } .cta-icon .icon { width: 19px; height: 19px; stroke-width: 2.2; } .cta-icon .spinner { width: 17px; height: 17px; border-width: 2px; border-color: rgba(36, 22, 8, 0.25); border-top-color: #241608; } .btn.cta.disabled { opacity: 0.45; box-shadow: none; filter: saturate(0.5); } .btn.cta.working { opacity: 0.85; cursor: progress; } .btn.cta.working:disabled { opacity: 0.85; } .cta-ring { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px #f0c88f, 0 0 18px rgba(240, 200, 143, 0.55); } /* anim.js ripple: the ring over the page, where the element it swells from lies. */ .ripple { position: fixed; z-index: 900; pointer-events: none; } .status-line { display: flex; align-items: flex-start; gap: 8px; min-width: 0; max-width: 100%; padding: 7px 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; line-height: 1.35; animation: sc-fade 0.2s ease-out; } .sl-lead { display: grid; place-items: center; flex-shrink: 0; height: 17px; } .sl-lead .spinner { width: 14px; height: 14px; border-width: 2px; } .sl-lead .icon { width: 16px; height: 16px; } .sl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; } .sl-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; } .status-line .progress { height: 3px; } .sl-clock { flex-shrink: 0; color: var(--text-3); font-variant-numeric: tabular-nums; } .sl-link { flex-shrink: 0; padding: 0; border: 0; background: none; color: var(--accent-2); font-weight: 600; cursor: pointer; } .sl-link:hover { text-decoration: underline; } .status-line.elsewhere { cursor: pointer; } .status-line.elsewhere:hover { border-color: var(--line-2); color: var(--text); } .status-line[data-kind="error"], .status-line[data-kind="offline"] { background: rgba(240, 107, 107, 0.09); border-color: rgba(240, 107, 107, 0.3); color: #ffcdcd; } .status-line[data-kind="error"] .sl-lead, .status-line[data-kind="offline"] .sl-lead { color: var(--bad); } .status-line[data-kind="install"] .sl-lead .spinner { border-top-color: var(--warn); } /* ---- the workbench ------------------------------------------------------------------------------- */ /* clip, not hidden: a field focused inside a stage view must never scroll the workbench itself. */ .bench { position: relative; z-index: 1; min-width: 0; min-height: 0; overflow: clip; border-radius: var(--radius); } .centre-view { position: absolute; inset: 0; } .centre-note { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--text-2); border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface-2); } .centre-note h3 { font-size: 17px; color: var(--text); font-weight: 620; } .centre-note p { margin: 0; max-width: 420px; } /* ---- settings --------------------------------------------------------------------------------------- */ .settings-fold { padding-top: 14px; } .settings-fold > summary { font-size: 14px; color: var(--text); } .settings > .settings-fold:first-of-type { border-top: 0; padding-top: 0; } .settings .btn { align-self: flex-start; } .settings .seg { max-width: 360px; } /* The Omni-Texture test: a button with what it chose beside it, a short number field. */ .lab-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .lab-row > .hint { min-width: 0; overflow-wrap: anywhere; } .lab .lab-number { width: 90px; } .diag-vram { display: flex; flex-direction: column; gap: 8px; } .diag-vram-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; } .diag-vram-head span { color: var(--text-3); text-align: right; } .vram-bar { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; } .vram-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ok); transition: width 0.6s ease, background 0.3s; } .diag-vram[data-level="mid"] .vram-fill { background: var(--warn); } .diag-vram[data-level="high"] .vram-fill { background: var(--bad); } .diag-tools { display: flex; flex-direction: column; gap: 8px; } .diag-tool { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); } .diag-tool-head { display: flex; align-items: center; gap: 10px; } .diag-tool-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; } .diag-tool-name b { font-size: 13.5px; } .diag-tool-title { display: flex; align-items: center; gap: 8px; } .diag-msg { color: #ffc9c9; } /* ---- toasts & dialogs ----------------------------------------------------------------------------- */ /* Over the workbench's bottom-left corner, near the props column: the buttons a toast answers (the call to action, the save buttons and the map bar under a model, the viewer's Accept on the right) stay free. */ .toasts { position: fixed; left: calc(var(--bench-left) + 28px); bottom: 88px; z-index: 100; max-width: calc(100vw - var(--bench-left) - 56px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; pointer-events: none; } .toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; min-width: 280px; max-width: 440px; padding: 11px 8px 11px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #1d222c; box-shadow: var(--shadow); font-size: 13.5px; animation: toast-in 0.25s cubic-bezier(.2, .8, .2, 1); transition: opacity 0.2s, transform 0.2s; } .toast > .icon { margin-top: 1px; color: var(--info); } .toast.success > .icon { color: var(--ok); } .toast.error { border-color: rgba(240, 107, 107, 0.4); } .toast.error > .icon { color: var(--bad); } .toast.warn > .icon { color: var(--warn); } .toast-text { flex: 1; padding-top: 1px; word-break: break-word; } .toast.leaving { opacity: 0; transform: translateY(6px); } dialog.modal { width: min(480px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; } dialog.modal.wide { width: min(640px, calc(100vw - 32px)); } dialog.modal::backdrop { background: rgba(5, 6, 9, 0.6); backdrop-filter: blur(4px); } dialog.modal[open] { animation: dialog-in 0.2s cubic-bezier(.2, .8, .2, 1); } .modal-inner { border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: var(--shadow); max-height: calc(100vh - 48px); display: flex; flex-direction: column; } .modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 16px 6px 22px; } .modal-head h2 { font-size: 18px; font-weight: 650; } .modal-body { padding: 8px 22px 20px; overflow-y: auto; } .modal-text { margin: 0; color: var(--text-2); } .modal-text + .modal-text { margin-top: 12px; } .modal-text b { color: var(--text); font-weight: 650; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); } .boot-error { flex: 1; display: grid; place-items: center; padding: 24px; } .boot-error .centre-note { height: auto; max-width: 560px; padding: 40px 32px; } .noscript { padding: 40px; text-align: center; } /* ---- motion ---------------------------------------------------------------------------------------- */ @keyframes sc-pulse { 50% { opacity: 0.35; } } @keyframes sc-fade { from { opacity: 0; } } @keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } } @keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } } @keyframes tile-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } } @keyframes tile-slide { from { transform: translateX(-100%) scaleX(0.35); } to { transform: translateX(290%) scaleX(0.35); } } /* Gentle motion (Settings > Advanced > Animations: "Reduced"; anim.js): things still fade to where they go, but nothing pulses, slides or pops. */ :root[data-motion="gentle"] .st-processing .tile-pic::after, :root[data-motion="gentle"] .tip-pop, :root[data-motion="gentle"] .status-line { animation: none !important; } :root[data-motion="gentle"] .st-processing .tile-pic::after { opacity: 0.6; } :root[data-motion="gentle"] .tile-bar.indeterminate .tile-bar-fill { animation-duration: 3s; } :root[data-motion="gentle"] :is(.tile-pic, .tile-bar-fill) { transition: none; } /* ---- screen sizes ----------------------------------------------------------------------------------- */ @media (min-width: 1600px) { :root { --col-w: 224px; --bench-left: calc(var(--col-w) + 34px); } .shell { padding: 12px 18px 16px 16px; column-gap: 18px; } } @media (max-height: 760px) { .col-foot { gap: 6px; } .plus-btn { height: 40px; } .btn.cta, .btn.col-up { height: 48px; } .col-head { gap: 8px; } .btn.row-action { height: 34px; } }