/* ---- the mesh family's looks (Layout/ToolLooks.cs) ------------------------------------------------------------
   What each look is made of is in looks.css; this sheet gives each of its tools its colour and its own touches.
   Image to 3D is a photo on a turntable in a viewport; Text to 3D a prompt on ruled lines over a triangle mesh; Texture a
   UV checker; Photos to 3D a ring of cameras and viewfinder corners; Splat scene soft points of light; Prepare mesh a
   blueprint with a ruler and the pivot at the feet; Animate a dope sheet and a timeline; Rig from motion a capture
   volume with markers on the move. The small drawings inlined below are SVG data URIs. */

.look--image-to-3d { --look-hue: 190; --look-turn: 38; }
.look--text-to-3d { --look-hue: 268; --look-turn: 38; }
.look--texture { --look-hue: 28; --look-turn: -32; }
.look--photos-to-3d { --look-hue: 148; --look-turn: 38; }
.look--splat { --look-hue: 312; --look-turn: -70; }
.look--mesh-prep { --look-hue: 228; --look-turn: 20; }
.look--animate { --look-hue: 352; --look-turn: 38; }
.look--rig-motion { --look-hue: 82; --look-turn: -40; }
.look--motion-capture { --look-hue: 24; --look-turn: 32; }


/* ==== the whole family =============================================================================================== */

/* The panel speaks in the tool's colour rather than the chart rainbow: one hue per tool is what you remember it by.
   A warning keeps its own colour. */
.tool:is(.look--image-to-3d, .look--text-to-3d, .look--texture, .look--photos-to-3d, .look--splat, .look--mesh-prep, .look--animate, .look--rig-motion)
    .tool__controls > .tool-sec:not(.ui-tone--warn, .ui-tone--danger) { --tone: var(--look-c); }
.tool:is(.look--image-to-3d, .look--text-to-3d, .look--texture, .look--photos-to-3d, .look--splat, .look--mesh-prep, .look--animate, .look--rig-motion)
    .tool-sec__ico.ui-ico { background: var(--look-soft); }

/* The run button wears the tool's colour before it can run, too. */
.tool:is(.look--image-to-3d, .look--text-to-3d, .look--texture, .look--photos-to-3d, .look--splat, .look--mesh-prep, .look--animate, .look--rig-motion)
    .tool__actions .btn--primary:disabled {
    border-color: color-mix(in srgb, var(--look-c) 50%, var(--rl-border));
    background: color-mix(in srgb, var(--look-c) 7%, transparent);
    color: color-mix(in srgb, var(--look-c) 62%, var(--rl-text));
}

/* A chosen chip is the tool's colour too. */
.tool:is(.look--image-to-3d, .look--text-to-3d, .look--texture, .look--photos-to-3d, .look--splat, .look--mesh-prep, .look--animate, .look--rig-motion)
    .tool-chip--on {
    border-color: var(--look-c); background: color-mix(in srgb, var(--look-c) 14%, var(--rl-surface));
    color: color-mix(in srgb, var(--look-c) 72%, var(--rl-text)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--look-c) 45%, transparent);
}

/* Sliders and ticks in the tool's colour. */
.tool:is(.look--image-to-3d, .look--text-to-3d, .look--texture, .look--photos-to-3d, .look--splat, .look--mesh-prep, .look--animate, .look--rig-motion)
    :is(input[type=range], input[type=checkbox]) { accent-color: var(--look-c); }

/* Stages that draw a floor or a frame behind their content: the drawing sits under it, inside the stage. */
.tool:is(.look--image-to-3d, .look--photos-to-3d, .look--mesh-prep, .look--rig-motion) .tool__stage { isolation: isolate; }
@media (max-width: 1100px) {
    .tool:is(.look--image-to-3d, .look--photos-to-3d, .look--mesh-prep, .look--rig-motion) .tool__stage { position: relative; }
}


/* ==== image to 3d: a photo on a turntable, in a viewport ============================================================= */

.tool.look--image-to-3d .tool-sec__ico.ui-ico { border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--look-line); }

/* The stage is a viewport: a floor grid running off to the horizon, a soft key light, the axes in the corner. */
.tool.look--image-to-3d .tool__stage {
    background-image:
        radial-gradient(ellipse 34% 6.5% at 50% 88%, transparent 84%, color-mix(in srgb, var(--look-c) 45%, transparent) 88%, transparent 93%),
        radial-gradient(ellipse 26% 5% at 50% 88%, transparent 82%, color-mix(in srgb, var(--look-c) 28%, transparent) 87%, transparent 93%),
        radial-gradient(ellipse 34% 7% at 50% 88%, var(--look-soft), transparent 90%),
        radial-gradient(ellipse 58% 46% at 50% 36%, var(--look-soft), transparent 72%);
    background-size: auto;
}
.tool.look--image-to-3d .tool__stage::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--look-c) 50%, transparent) 2px, transparent 2px),
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 50%, transparent) 2px, transparent 2px);
    background-size: 54px 54px;
    background-position: center bottom;
    transform: perspective(360px) rotateX(60deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 95%);
    mask-image: linear-gradient(to top, #000 0%, transparent 95%);
}
.tool.look--image-to-3d .tool__stage::after {
    content: ""; position: absolute; z-index: -1; left: .9rem; bottom: .9rem; width: 2.75rem; height: 2.75rem; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-width='2.6' stroke-linecap='round'%3E %3Cpath d='M18 30h22' stroke='hsl(0,75%25,60%25)'/%3E%3Cpath d='M18 30V8' stroke='hsl(130,55%25,52%25)'/%3E%3Cpath d='M18 30l-11 9' stroke='hsl(215,85%25,64%25)'/%3E %3Ccircle cx='40' cy='30' r='3.4' fill='hsl(0,75%25,60%25)' stroke='none'/%3E%3Ccircle cx='18' cy='8' r='3.4' fill='hsl(130,55%25,52%25)' stroke='none'/%3E %3Ccircle cx='7' cy='39' r='3.4' fill='hsl(215,85%25,64%25)' stroke='none'/%3E%3Ccircle cx='18' cy='30' r='2.6' fill='hsl(190,20%25,70%25)' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: .85;
}

/* The photo slot: a print-sized drop zone, dashed in the tool's colour. */
.tool.look--image-to-3d .tool-sec--lead .file-or-library {
    padding: .7rem; border: 1.5px dashed color-mix(in srgb, var(--look-c) 50%, var(--rl-border)); border-radius: 12px;
    background: color-mix(in srgb, var(--look-c) 6%, transparent);
}
.tool.look--image-to-3d .tool__actions .btn--primary { border-radius: 999px; }


/* ==== text to 3d: words on ruled lines, extruded into a triangle mesh ================================================ */

/* An extruded tile: the icons and the run button stand a little proud of the page. */
.tool.look--text-to-3d .tool-sec__ico.ui-ico {
    border-radius: 5px; box-shadow: 2px 2px 0 color-mix(in srgb, var(--look-c) 45%, transparent);
}
.tool.look--text-to-3d .tool__actions .btn--primary {
    border-radius: 7px; transform: translateY(-2px);
    box-shadow: 0 3px 0 color-mix(in srgb, var(--look-c) 45%, #1a0b2e), 0 10px 18px -8px hsl(var(--look-hue) 80% 40% / .55);
}
.tool.look--text-to-3d .tool__actions .btn--primary:disabled {
    box-shadow: 0 3px 0 color-mix(in srgb, var(--look-c) 22%, transparent);
}
.tool.look--text-to-3d .tool__actions .btn--primary:not(:disabled):active { transform: translateY(1px); box-shadow: 0 0 0 color-mix(in srgb, var(--look-c) 45%, #1a0b2e); }

/* The prompt is written on ruled lines, with a margin rule in the tool's colour. */
.tool.look--text-to-3d .tool-sec--lead textarea {
    border-left: 3px solid var(--look-c);
    background-image: repeating-linear-gradient(to bottom, transparent 0 23px, color-mix(in srgb, var(--look-c) 24%, transparent) 23px 24px);
    background-position: 0 7px;
    background-attachment: local;
}

/* The stage is a triangle mesh, three families of lines, fading out toward the edges. */
.tool.look--text-to-3d .tool__stage {
    background-image:
        radial-gradient(ellipse 72% 64% at 50% 44%, transparent 25%, color-mix(in srgb, var(--look-c) 5%, var(--rl-surface-sunken)) 88%),
        repeating-linear-gradient(30deg, color-mix(in srgb, var(--look-c) 20%, transparent) 0 1px, transparent 1px 30px),
        repeating-linear-gradient(150deg, color-mix(in srgb, var(--look-c) 20%, transparent) 0 1px, transparent 1px 30px),
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--look-c) 15%, transparent) 0 1px, transparent 1px 30px);
    background-size: auto;
}


/* ==== texture: a UV checker, painted ================================================================================= */

/* Checker tiles: the icons, the chips and the run button are cut from the same atlas. */
.tool.look--texture .tool-sec__ico.ui-ico {
    border-radius: 4px;
    background:
        repeating-conic-gradient(color-mix(in srgb, var(--look-c) 30%, transparent) 0 25%, color-mix(in srgb, var(--look-c) 9%, transparent) 0 50%)
        0 0 / .8rem .8rem;
}
.tool.look--texture .tool-chip { border-radius: 6px; }
.tool.look--texture .tool-chip--on {
    background:
        repeating-conic-gradient(color-mix(in srgb, var(--look-c) 22%, transparent) 0 25%, transparent 0 50%) 0 0 / 10px 10px,
        color-mix(in srgb, var(--look-c) 10%, var(--rl-surface));
    border-color: var(--look-c); color: color-mix(in srgb, var(--look-c) 70%, var(--rl-text)); box-shadow: none;
}
.tool.look--texture .tool__actions .btn--primary { border-radius: 6px; }
.tool.look--texture .tool__actions .btn--primary:not(:disabled) {
    background:
        repeating-conic-gradient(rgb(255 255 255 / .13) 0 25%, transparent 0 50%) 0 0 / 16px 16px,
        linear-gradient(135deg, var(--look-c), var(--look-c2));
}

/* The stage is a UV checker: big cells in the tool's two colours, a fine grid inside them. */
.tool.look--texture .tool__stage {
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 42%, color-mix(in srgb, var(--look-c) 5%, var(--rl-surface-sunken)) 30%, transparent 75%),
        linear-gradient(color-mix(in srgb, var(--look-c) 10%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 10%, transparent) 1px, transparent 1px),
        repeating-conic-gradient(color-mix(in srgb, var(--look-c) 12%, transparent) 0 25%, color-mix(in srgb, var(--look-c2) 5%, transparent) 0 50%);
    background-size: auto, 16px 16px, 16px 16px, 128px 128px;
    background-position: center, -1px -1px, -1px -1px, 0 0;
}


/* ==== photos to 3d: a ring of cameras around one object ============================================================== */

/* Viewfinder corners on the icons, the photo slot and the stage. */
.tool.look--photos-to-3d .tool-sec__ico.ui-ico {
    border-radius: 3px;
    background:
        linear-gradient(var(--look-c), var(--look-c)) left top / 6px 1.5px no-repeat,
        linear-gradient(var(--look-c), var(--look-c)) left top / 1.5px 6px no-repeat,
        linear-gradient(var(--look-c), var(--look-c)) right top / 6px 1.5px no-repeat,
        linear-gradient(var(--look-c), var(--look-c)) right top / 1.5px 6px no-repeat,
        linear-gradient(var(--look-c), var(--look-c)) left bottom / 6px 1.5px no-repeat,
        linear-gradient(var(--look-c), var(--look-c)) left bottom / 1.5px 6px no-repeat,
        linear-gradient(var(--look-c), var(--look-c)) right bottom / 6px 1.5px no-repeat,
        linear-gradient(var(--look-c), var(--look-c)) right bottom / 1.5px 6px no-repeat,
        var(--look-soft);
}
.tool.look--photos-to-3d .tool-sec--lead .file-or-library {
    --vf: color-mix(in srgb, var(--look-c) 75%, transparent);
    padding: .8rem;
    border-radius: 6px;
    background:
        linear-gradient(var(--vf), var(--vf)) left top / 16px 2px no-repeat,
        linear-gradient(var(--vf), var(--vf)) left top / 2px 16px no-repeat,
        linear-gradient(var(--vf), var(--vf)) right top / 16px 2px no-repeat,
        linear-gradient(var(--vf), var(--vf)) right top / 2px 16px no-repeat,
        linear-gradient(var(--vf), var(--vf)) left bottom / 16px 2px no-repeat,
        linear-gradient(var(--vf), var(--vf)) left bottom / 2px 16px no-repeat,
        linear-gradient(var(--vf), var(--vf)) right bottom / 16px 2px no-repeat,
        linear-gradient(var(--vf), var(--vf)) right bottom / 2px 16px no-repeat,
        color-mix(in srgb, var(--look-c) 6%, transparent);
}
.tool.look--photos-to-3d .photos3d__item { border-radius: 4px; }
.tool.look--photos-to-3d .photos3d__item--anchor { border-color: var(--look-c); box-shadow: 0 0 0 1px var(--look-c) inset; }
.tool.look--photos-to-3d .photos3d__item--anchor .photos3d__meta { color: color-mix(in srgb, var(--look-c) 70%, var(--rl-text)); }

/* The stage: the cameras' ring, in perspective, round whatever lands in the middle; viewfinder corners on its frame. */
.tool.look--photos-to-3d .tool__stage {
    --vf: color-mix(in srgb, var(--look-c) 60%, transparent);
    background:
        linear-gradient(var(--vf), var(--vf)) left 12px top 12px / 26px 2px no-repeat,
        linear-gradient(var(--vf), var(--vf)) left 12px top 12px / 2px 26px no-repeat,
        linear-gradient(var(--vf), var(--vf)) right 12px top 12px / 26px 2px no-repeat,
        linear-gradient(var(--vf), var(--vf)) right 12px top 12px / 2px 26px no-repeat,
        linear-gradient(var(--vf), var(--vf)) left 12px bottom 12px / 26px 2px no-repeat,
        linear-gradient(var(--vf), var(--vf)) left 12px bottom 12px / 2px 26px no-repeat,
        linear-gradient(var(--vf), var(--vf)) right 12px bottom 12px / 26px 2px no-repeat,
        linear-gradient(var(--vf), var(--vf)) right 12px bottom 12px / 2px 26px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E %3Cellipse cx='300' cy='140' rx='272' ry='80' fill='none' stroke='hsla(148,70%25,48%25,.35)' stroke-width='2' stroke-dasharray='6 9'/%3E %3Cellipse cx='300' cy='140' rx='202' ry='54' fill='none' stroke='hsla(148,70%25,48%25,.16)' stroke-width='1.5'/%3E%3Cg transform='translate(44.4 112.6) rotate(6.1) scale(0.91)'%3E%3Cpath d='M14 0L187 -26L187 26Z' fill='hsla(148,70%25,48%25,.07)'/%3E%3Crect x='-14' y='-9' width='26' height='18' rx='4' fill='hsla(148,60%25,46%25,.28)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3Ccircle cx='13' cy='0' r='6' fill='hsla(186,80%25,55%25,.4)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(185.0 67.5) rotate(32.2) scale(0.77)'%3E%3Cpath d='M14 0L66 -26L66 26Z' fill='hsla(148,70%25,48%25,.07)'/%3E%3Crect x='-14' y='-9' width='26' height='18' rx='4' fill='hsla(148,60%25,46%25,.28)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3Ccircle cx='13' cy='0' r='6' fill='hsla(186,80%25,55%25,.4)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(415.0 67.5) rotate(147.8) scale(0.77)'%3E%3Cpath d='M14 0L66 -26L66 26Z' fill='hsla(148,70%25,48%25,.07)'/%3E%3Crect x='-14' y='-9' width='26' height='18' rx='4' fill='hsla(148,60%25,46%25,.28)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3Ccircle cx='13' cy='0' r='6' fill='hsla(186,80%25,55%25,.4)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(555.6 112.6) rotate(173.9) scale(0.91)'%3E%3Cpath d='M14 0L187 -26L187 26Z' fill='hsla(148,70%25,48%25,.07)'/%3E%3Crect x='-14' y='-9' width='26' height='18' rx='4' fill='hsla(148,60%25,46%25,.28)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3Ccircle cx='13' cy='0' r='6' fill='hsla(186,80%25,55%25,.4)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(555.6 167.4) rotate(-173.9) scale(1.09)'%3E%3Cpath d='M14 0L187 -26L187 26Z' fill='hsla(148,70%25,48%25,.07)'/%3E%3Crect x='-14' y='-9' width='26' height='18' rx='4' fill='hsla(148,60%25,46%25,.28)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3Ccircle cx='13' cy='0' r='6' fill='hsla(186,80%25,55%25,.4)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(393.0 215.2) rotate(-141.1) scale(1.23)'%3E%3Cpath d='M14 0L50 -26L50 26Z' fill='hsla(148,70%25,48%25,.07)'/%3E%3Crect x='-14' y='-9' width='26' height='18' rx='4' fill='hsla(148,60%25,46%25,.28)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3Ccircle cx='13' cy='0' r='6' fill='hsla(186,80%25,55%25,.4)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(207.0 215.2) rotate(-38.9) scale(1.23)'%3E%3Cpath d='M14 0L50 -26L50 26Z' fill='hsla(148,70%25,48%25,.07)'/%3E%3Crect x='-14' y='-9' width='26' height='18' rx='4' fill='hsla(148,60%25,46%25,.28)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3Ccircle cx='13' cy='0' r='6' fill='hsla(186,80%25,55%25,.4)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(44.4 167.4) rotate(-6.1) scale(1.09)'%3E%3Cpath d='M14 0L187 -26L187 26Z' fill='hsla(148,70%25,48%25,.07)'/%3E%3Crect x='-14' y='-9' width='26' height='18' rx='4' fill='hsla(148,60%25,46%25,.28)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3Ccircle cx='13' cy='0' r='6' fill='hsla(186,80%25,55%25,.4)' stroke='hsla(148,70%25,50%25,.6)' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E") 50% 36% / min(44rem, 96%) auto no-repeat,
        radial-gradient(ellipse 50% 36% at 50% 40%, var(--look-soft), transparent 75%),
        color-mix(in srgb, var(--look-c) 4%, var(--rl-surface-sunken));
}
.tool.look--photos-to-3d .tool__actions .btn--primary { border-radius: 10px; }
/* The run button is a shutter. */
.tool.look--photos-to-3d .tool__actions .btn--primary::before {
    content: ""; display: inline-block; width: .8rem; height: .8rem; margin: 0 .55rem .1rem 0; vertical-align: middle;
    border: 2px solid currentColor; border-radius: 50%; background: radial-gradient(circle, currentColor 0 32%, transparent 38%);
}


/* ==== splat scene: a place built from soft points of light =========================================================== */

.tool.look--splat .tool-sec__ico.ui-ico {
    border-radius: 50%;
    background: radial-gradient(circle at 40% 38%, color-mix(in srgb, var(--look-c) 40%, transparent), var(--look-soft) 70%);
    box-shadow: 0 0 12px -2px var(--look-line);
}

/* The stage glows: soft ellipses of the tool's colours, as if the scene were already settling in. */
.tool.look--splat .tool__stage {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3CradialGradient id='g0'%3E%3Cstop offset='0' stop-color='hsla(322,95%25,66%25,.75)'/%3E%3Cstop offset='.5' stop-color='hsla(322,95%25,66%25,.3)'/%3E%3Cstop offset='1' stop-color='hsla(322,95%25,66%25,0)'/%3E%3C/radialGradient%3E%3CradialGradient id='g1'%3E%3Cstop offset='0' stop-color='hsla(292,85%25,66%25,.75)'/%3E%3Cstop offset='.5' stop-color='hsla(292,85%25,66%25,.3)'/%3E%3Cstop offset='1' stop-color='hsla(292,85%25,66%25,0)'/%3E%3C/radialGradient%3E%3CradialGradient id='g2'%3E%3Cstop offset='0' stop-color='hsla(232,90%25,64%25,.75)'/%3E%3Cstop offset='.5' stop-color='hsla(232,90%25,64%25,.3)'/%3E%3Cstop offset='1' stop-color='hsla(232,90%25,64%25,0)'/%3E%3C/radialGradient%3E%3CradialGradient id='g3'%3E%3Cstop offset='0' stop-color='hsla(42,95%25,62%25,.75)'/%3E%3Cstop offset='.5' stop-color='hsla(42,95%25,62%25,.3)'/%3E%3Cstop offset='1' stop-color='hsla(42,95%25,62%25,0)'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse rx='26' ry='18' transform='translate(0 141)rotate(152)' fill='url(%23g3)'/%3E%3Cellipse rx='23' ry='11' transform='translate(557 300)rotate(130)' fill='url(%23g1)'/%3E%3Cellipse rx='10' ry='6' transform='translate(42 150)rotate(93)' fill='url(%23g1)'/%3E%3Cellipse rx='9' ry='3' transform='translate(70 57)rotate(125)' fill='url(%23g2)'/%3E%3Cellipse rx='7' ry='5' transform='translate(462 292)rotate(58)' fill='url(%23g1)'/%3E%3Cellipse rx='10' ry='5' transform='translate(456 341)rotate(169)' fill='url(%23g0)'/%3E%3Cellipse rx='9' ry='4' transform='translate(380 352)rotate(113)' fill='url(%23g3)'/%3E%3Cellipse rx='24' ry='10' transform='translate(427 353)rotate(33)' fill='url(%23g3)'/%3E%3Cellipse rx='25' ry='18' transform='translate(438 298)rotate(50)' fill='url(%23g1)'/%3E%3Cellipse rx='9' ry='3' transform='translate(54 247)rotate(81)' fill='url(%23g1)'/%3E%3Cellipse rx='23' ry='7' transform='translate(547 259)rotate(95)' fill='url(%23g2)'/%3E%3Cellipse rx='18' ry='6' transform='translate(432 15)rotate(40)' fill='url(%23g2)'/%3E%3Cellipse rx='19' ry='8' transform='translate(564 50)rotate(108)' fill='url(%23g3)'/%3E%3Cellipse rx='26' ry='13' transform='translate(111 267)rotate(101)' fill='url(%23g2)'/%3E%3Cellipse rx='11' ry='7' transform='translate(235 16)rotate(161)' fill='url(%23g2)'/%3E%3Cellipse rx='7' ry='3' transform='translate(25 11)rotate(140)' fill='url(%23g1)'/%3E%3Cellipse rx='24' ry='13' transform='translate(539 128)rotate(31)' fill='url(%23g2)'/%3E%3Cellipse rx='8' ry='3' transform='translate(74 355)rotate(82)' fill='url(%23g3)'/%3E%3Cellipse rx='13' ry='9' transform='translate(250 7)rotate(29)' fill='url(%23g3)'/%3E%3Cellipse rx='16' ry='5' transform='translate(491 323)rotate(13)' fill='url(%23g2)'/%3E%3Cellipse rx='22' ry='7' transform='translate(117 62)rotate(57)' fill='url(%23g3)'/%3E%3Cellipse rx='13' ry='4' transform='translate(489 58)rotate(5)' fill='url(%23g1)'/%3E%3Cellipse rx='8' ry='5' transform='translate(100 68)rotate(35)' fill='url(%23g2)'/%3E%3Cellipse rx='9' ry='5' transform='translate(292 333)rotate(173)' fill='url(%23g1)'/%3E%3Cellipse rx='16' ry='11' transform='translate(98 349)rotate(152)' fill='url(%23g3)'/%3E%3Cellipse rx='14' ry='8' transform='translate(548 352)rotate(20)' fill='url(%23g2)'/%3E%3Cellipse rx='20' ry='15' transform='translate(100 72)rotate(155)' fill='url(%23g1)'/%3E%3Cellipse rx='6' ry='5' transform='translate(594 343)rotate(2)' fill='url(%23g3)'/%3E%3Cellipse rx='15' ry='6' transform='translate(149 285)rotate(162)' fill='url(%23g3)'/%3E%3Cellipse rx='11' ry='9' transform='translate(21 33)rotate(116)' fill='url(%23g3)'/%3E%3Cellipse rx='19' ry='9' transform='translate(25 331)rotate(149)' fill='url(%23g3)'/%3E%3Cellipse rx='11' ry='4' transform='translate(598 242)rotate(67)' fill='url(%23g3)'/%3E%3Cellipse rx='25' ry='9' transform='translate(502 103)rotate(26)' fill='url(%23g0)'/%3E%3Cellipse rx='25' ry='16' transform='translate(101 26)rotate(173)' fill='url(%23g1)'/%3E%3Cellipse rx='6' ry='2' transform='translate(510 97)rotate(127)' fill='url(%23g3)'/%3E%3Cellipse rx='26' ry='19' transform='translate(52 46)rotate(75)' fill='url(%23g1)'/%3E%3Cellipse rx='24' ry='11' transform='translate(39 352)rotate(58)' fill='url(%23g3)'/%3E%3Cellipse rx='12' ry='10' transform='translate(461 272)rotate(7)' fill='url(%23g3)'/%3E%3Cellipse rx='14' ry='8' transform='translate(590 14)rotate(153)' fill='url(%23g0)'/%3E%3Cellipse rx='23' ry='11' transform='translate(572 167)rotate(1)' fill='url(%23g2)'/%3E%3Cellipse rx='16' ry='9' transform='translate(578 168)rotate(104)' fill='url(%23g0)'/%3E%3Cellipse rx='17' ry='10' transform='translate(598 8)rotate(98)' fill='url(%23g3)'/%3E%3Cellipse rx='12' ry='7' transform='translate(270 349)rotate(55)' fill='url(%23g0)'/%3E%3Cellipse rx='11' ry='7' transform='translate(416 293)rotate(128)' fill='url(%23g0)'/%3E%3Cellipse rx='24' ry='10' transform='translate(519 227)rotate(62)' fill='url(%23g3)'/%3E%3Cellipse rx='17' ry='11' transform='translate(179 344)rotate(133)' fill='url(%23g0)'/%3E%3Cellipse rx='16' ry='12' transform='translate(68 116)rotate(81)' fill='url(%23g0)'/%3E%3Cellipse rx='17' ry='11' transform='translate(43 314)rotate(160)' fill='url(%23g2)'/%3E%3Cellipse rx='10' ry='4' transform='translate(110 316)rotate(86)' fill='url(%23g3)'/%3E%3Cellipse rx='10' ry='5' transform='translate(284 35)rotate(180)' fill='url(%23g2)'/%3E%3Cellipse rx='8' ry='5' transform='translate(559 278)rotate(82)' fill='url(%23g2)'/%3E%3Cellipse rx='18' ry='14' transform='translate(301 326)rotate(4)' fill='url(%23g3)'/%3E%3Cellipse rx='19' ry='11' transform='translate(528 295)rotate(83)' fill='url(%23g3)'/%3E%3Cellipse rx='12' ry='5' transform='translate(11 63)rotate(124)' fill='url(%23g0)'/%3E%3Cellipse rx='24' ry='10' transform='translate(62 221)rotate(176)' fill='url(%23g1)'/%3E%3Cellipse rx='22' ry='15' transform='translate(587 306)rotate(4)' fill='url(%23g0)'/%3E%3Cellipse rx='15' ry='6' transform='translate(51 177)rotate(23)' fill='url(%23g2)'/%3E%3Cellipse rx='24' ry='14' transform='translate(29 96)rotate(121)' fill='url(%23g0)'/%3E%3Cellipse rx='21' ry='10' transform='translate(45 212)rotate(55)' fill='url(%23g0)'/%3E%3Cellipse rx='13' ry='7' transform='translate(557 208)rotate(43)' fill='url(%23g0)'/%3E%3Cellipse rx='16' ry='5' transform='translate(62 73)rotate(112)' fill='url(%23g1)'/%3E%3Cellipse rx='15' ry='5' transform='translate(512 355)rotate(163)' fill='url(%23g2)'/%3E%3Cellipse rx='19' ry='7' transform='translate(547 59)rotate(114)' fill='url(%23g1)'/%3E%3Cellipse rx='12' ry='6' transform='translate(567 223)rotate(60)' fill='url(%23g3)'/%3E%3Cellipse rx='16' ry='9' transform='translate(17 67)rotate(146)' fill='url(%23g1)'/%3E%3Cellipse rx='10' ry='5' transform='translate(41 327)rotate(48)' fill='url(%23g2)'/%3E%3Cellipse rx='7' ry='4' transform='translate(329 341)rotate(82)' fill='url(%23g0)'/%3E%3Cellipse rx='12' ry='5' transform='translate(40 273)rotate(39)' fill='url(%23g2)'/%3E%3Cellipse rx='16' ry='9' transform='translate(464 289)rotate(172)' fill='url(%23g0)'/%3E%3Cellipse rx='23' ry='12' transform='translate(74 330)rotate(86)' fill='url(%23g2)'/%3E%3C/svg%3E") center / cover no-repeat,
        radial-gradient(closest-side, hsl(var(--look-hue) 100% 82% / .7), transparent) 22% 28% / 9px 9px no-repeat,
        radial-gradient(closest-side, hsl(var(--look-hue) 100% 82% / .6), transparent) 81% 18% / 7px 7px no-repeat,
        radial-gradient(closest-side, hsl(42 100% 75% / .7), transparent) 68% 72% / 8px 8px no-repeat,
        radial-gradient(closest-side, hsl(200 100% 78% / .6), transparent) 14% 64% / 6px 6px no-repeat,
        radial-gradient(closest-side, hsl(calc(var(--look-hue) + var(--look-turn)) 100% 80% / .6), transparent) 88% 58% / 10px 10px no-repeat,
        radial-gradient(closest-side, hsl(var(--look-hue) 90% 62% / .3), transparent) 10% 12% / 20rem 12rem no-repeat,
        radial-gradient(closest-side, hsl(calc(var(--look-hue) + var(--look-turn)) 90% 64% / .26), transparent) 92% 22% / 22rem 14rem no-repeat,
        radial-gradient(closest-side, hsl(200 90% 60% / .2), transparent) 74% 92% / 26rem 9rem no-repeat,
        radial-gradient(closest-side, hsl(42 95% 62% / .18), transparent) 16% 84% / 12rem 10rem no-repeat,
        radial-gradient(closest-side, hsl(var(--look-hue) 90% 62% / .16), transparent) 50% 45% / 30rem 22rem no-repeat,
        color-mix(in srgb, var(--look-c) 5%, var(--rl-surface-sunken));
}
.tool.look--splat .splat__photo { border-color: color-mix(in srgb, var(--look-c) 30%, var(--rl-border)); }
.tool.look--splat .splat__num {
    background: linear-gradient(140deg, var(--look-c), var(--look-c2)); box-shadow: 0 0 10px hsl(var(--look-hue) 90% 60% / .7);
}
.tool.look--splat .tool__actions .btn--primary { border-radius: 999px; }
.tool.look--splat .tool__actions .btn--primary:not(:disabled) {
    box-shadow: 0 0 0 4px hsl(var(--look-hue) 90% 60% / .16), 0 8px 28px -6px hsl(var(--look-hue) 90% 55% / .75);
}


/* ==== prepare mesh: a blueprint, a ruler and the pivot at the feet =================================================== */

.tool.look--mesh-prep .tool-sec__ico.ui-ico { border-radius: 3px; outline: 1.5px dashed var(--look-line); outline-offset: -1.5px; }

/* Blueprint paper: a fine grid and a coarse one, a ruler down the left edge, the floor with the pivot near the foot. */
.tool.look--mesh-prep .tool__stage {
    background:
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--look-c) 50%, transparent) 0 1px, transparent 1px 10px) left top / 7px 100% no-repeat,
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--look-c) 75%, transparent) 0 1.5px, transparent 1.5px 50px) left top / 14px 100% no-repeat,
        linear-gradient(color-mix(in srgb, var(--look-c) 20%, transparent) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 20%, transparent) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(color-mix(in srgb, var(--look-c) 8%, transparent) 1px, transparent 1px) 0 0 / 10px 10px,
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 8%, transparent) 1px, transparent 1px) 0 0 / 10px 10px,
        color-mix(in srgb, var(--look-c) 6%, var(--rl-surface-sunken));
}
.tool.look--mesh-prep .tool__stage::after {
    content: ""; position: absolute; z-index: -1; left: 50%; bottom: 3%; width: min(30rem, 80%); aspect-ratio: 400 / 60;
    transform: translateX(-50%); pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -10 400 60' fill='none' stroke-linecap='round'%3E %3Cpath d='M10 22H390' stroke='hsla(228,75%25,58%25,.55)' stroke-width='2'/%3E %3Cpath d='M18 25l-10 10M34 25l-10 10M50 25l-10 10M66 25l-10 10M82 25l-10 10M98 25l-10 10M114 25l-10 10M130 25l-10 10M146 25l-10 10M162 25l-10 10M178 25l-10 10M194 25l-10 10M210 25l-10 10M226 25l-10 10M242 25l-10 10M258 25l-10 10M274 25l-10 10M290 25l-10 10M306 25l-10 10M322 25l-10 10M338 25l-10 10M354 25l-10 10M370 25l-10 10M386 25l-10 10' stroke='hsla(228,75%25,58%25,.28)' stroke-width='1.5'/%3E %3Cpath d='M200 22h34' stroke='hsl(0,75%25,60%25)' stroke-width='3'/%3E%3Cpath d='M200 22V0' stroke='hsl(130,55%25,52%25)' stroke-width='3'/%3E %3Cpath d='M200 22l-20 12' stroke='hsl(215,85%25,64%25)' stroke-width='3'/%3E%3Ccircle cx='200' cy='22' r='5' fill='hsl(228,30%25,92%25)' stroke='hsla(228,60%25,40%25,.8)' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* What the run will make, as a spec sheet: blueprint-tinted, ruled with dashes. */
.tool.look--mesh-prep .prepare__facts {
    border: 1px solid color-mix(in srgb, var(--look-c) 40%, var(--rl-border));
    border-left: 3px solid var(--look-c); border-radius: 4px;
    background:
        linear-gradient(color-mix(in srgb, var(--look-c) 8%, transparent) 1px, transparent 1px) 0 0 / 10px 10px,
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 8%, transparent) 1px, transparent 1px) 0 0 / 10px 10px,
        color-mix(in srgb, var(--look-c) 5%, var(--rl-surface-sunken));
}
.tool.look--mesh-prep .prepare__facts dt { color: color-mix(in srgb, var(--look-c) 60%, var(--rl-text-muted)); }
.tool.look--mesh-prep .prepare__facts dd { border-bottom: 1px dashed color-mix(in srgb, var(--look-c) 30%, transparent); font-variant-numeric: tabular-nums; }
.tool.look--mesh-prep .tool-sec--lead .ui-empty {
    border-color: color-mix(in srgb, var(--look-c) 45%, var(--rl-border)); border-radius: 4px;
    background: color-mix(in srgb, var(--look-c) 6%, transparent);
}
.tool.look--mesh-prep .tool-sec--lead .ui-empty__ico { --tone: var(--look-c); border-radius: 4px; }
.tool.look--mesh-prep .tool__actions .btn--primary { border-radius: 4px; letter-spacing: .02em; }
.tool.look--mesh-prep .tool__actions .btn--primary:disabled { border-style: dashed; }


/* ==== animate: a dope sheet and a timeline =========================================================================== */

/* Keyframe diamonds: the icons, and a key beside every clip you can tick. */
.tool.look--animate .tool-sec__ico.ui-ico { width: 1.3rem; height: 1.3rem; margin: 0 .15rem; border-radius: 4px; transform: rotate(45deg); }
.tool.look--animate .tool-sec__ico.ui-ico svg { width: .8rem; height: .8rem; transform: rotate(-45deg); }
.tool.look--animate h3.tool-sec__hint + .ttm-chips > .btn::before {
    content: ""; display: inline-block; width: .4rem; height: .4rem; margin: 0 .45rem .12rem .05rem; vertical-align: middle;
    border: 1.5px solid currentColor; border-radius: 1px; transform: rotate(45deg); opacity: .7;
}
.tool.look--animate h3.tool-sec__hint + .ttm-chips > .btn--primary::before { background: currentColor; opacity: 1; }
.tool.look--animate h3.tool-sec__hint + .ttm-chips > .btn--primary {
    background: linear-gradient(135deg, var(--look-c), var(--look-c2)); color: #fff; border-color: transparent;
}
.tool.look--animate .anim-bone--on { background: var(--look-soft); }

/* The stage is a dope sheet: alternating lanes, faint frame columns. */
.tool.look--animate .tool__stage {
    background-image:
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--look-c) 10%, transparent) 0 1px, transparent 1px 60px),
        repeating-linear-gradient(to bottom, transparent 0 28px, color-mix(in srgb, var(--look-c) 6%, transparent) 28px 56px);
    background-size: auto;
}
/* The stage card carries a timeline ruler along its top, keys and all. */
.tool.look--animate .anim-stage-card {
    border-top: 3px solid var(--look-c);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' fill='none'%3E %3Cpath d='M0.75 0v8M12.75 0v4M24.75 0v4M36.75 0v4M48.75 0v4M60.75 0v8M72.75 0v4M84.75 0v4M96.75 0v4M108.75 0v4M120.75 0v8M132.75 0v4M144.75 0v4M156.75 0v4M168.75 0v4M180.75 0v8M192.75 0v4M204.75 0v4M216.75 0v4M228.75 0v4' stroke='hsla(352,70%25,58%25,.55)' stroke-width='1.5'/%3E %3Cpath d='M84 4l5 5-5 5-5-5zM204 4l5 5-5 5-5-5z' fill='hsl(30,95%25,60%25)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 240px 16px;
    background-position: 0 0;
}
.tool.look--animate .tool__actions .btn--primary { border-radius: 8px; }
.tool.look--animate .tool__actions .btn--primary::before {
    content: ""; display: inline-block; width: .5rem; height: .5rem; margin: 0 .55rem .12rem 0; vertical-align: middle;
    background: currentColor; border-radius: 1px; transform: rotate(45deg);
}


/* ==== rig from motion: a capture volume, markers on the move ========================================================= */

.tool.look--rig-motion .tool-sec__ico.ui-ico {
    border-radius: 50%; box-shadow: 0 0 0 2px var(--look-line), 0 0 12px -2px hsl(var(--look-hue) 90% 50% / .6);
}

/* The stage is a capture floor: a dashed volume taped down, markers caught mid-move, a grid of floor plates. */
.tool.look--rig-motion .tool__stage {
    background:
        radial-gradient(ellipse 50% 40% at 50% 42%, var(--look-soft), transparent 75%),
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--look-c) 7%, transparent) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--look-c) 7%, transparent) 0 1px, transparent 1px 64px),
        color-mix(in srgb, var(--look-c) 4%, var(--rl-surface-sunken));
}
.tool.look--rig-motion .tool__stage::after {
    content: ""; position: absolute; z-index: -1; left: 50%; bottom: 3%; width: min(40rem, 94%); aspect-ratio: 600 / 150;
    transform: translateX(-50%); pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 150' fill='none' stroke-linecap='round'%3E %3Cpath d='M110 90H490L560 146H40Z' fill='hsla(82,70%25,45%25,.06)' stroke='hsla(82,70%25,45%25,.42)' stroke-width='2' stroke-dasharray='8 8'/%3E %3Cpath d='M134 90h-24l-12 10M466 90h24l12 10M60 132l-20 14h28M540 132l20 14h-28' stroke='hsla(82,75%25,45%25,.75)' stroke-width='3'/%3E %3Cpath d='M14 96q22-30 44-24t18-32M10 132q30-4 52-24t42-16M586 96q-22-30-44-24t-18-32M590 132q-30-4-52-24t-42-16' stroke='hsla(82,70%25,45%25,.38)' stroke-width='2' stroke-dasharray='3 7'/%3E %3Cg fill='hsla(82,85%25,48%25,.55)'%3E%3Ccircle cx='14' cy='96' r='4'/%3E%3Ccircle cx='58' cy='72' r='4'/%3E%3Ccircle cx='10' cy='132' r='4'/%3E%3Ccircle cx='62' cy='108' r='4'/%3E %3Ccircle cx='586' cy='96' r='4'/%3E%3Ccircle cx='542' cy='72' r='4'/%3E%3Ccircle cx='590' cy='132' r='4'/%3E%3Ccircle cx='538' cy='108' r='4'/%3E%3C/g%3E %3Cg fill='hsla(82,95%25,52%25,.9)'%3E%3Ccircle cx='76' cy='40' r='6'/%3E%3Ccircle cx='104' cy='92' r='6'/%3E%3Ccircle cx='524' cy='40' r='6'/%3E%3Ccircle cx='496' cy='92' r='6'/%3E%3C/g%3E %3Cg fill='hsla(82,95%25,52%25,.18)'%3E%3Ccircle cx='76' cy='40' r='13'/%3E%3Ccircle cx='104' cy='92' r='13'/%3E%3Ccircle cx='524' cy='40' r='13'/%3E%3Ccircle cx='496' cy='92' r='13'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.tool.look--rig-motion .rigmo__facts { border-left: 3px solid var(--look-c); }
.tool.look--rig-motion .tool__actions .btn--primary { border-radius: 999px; }
.tool.look--rig-motion .tool__actions .btn--primary:not(:disabled) { color: hsl(var(--look-hue) 70% 10%); text-shadow: none; }
/* Rig it records: a capture light on the button. */
.tool.look--rig-motion .tool__actions .btn--primary::before {
    content: ""; display: inline-block; width: .6rem; height: .6rem; margin: 0 .55rem .1rem 0; vertical-align: middle;
    border-radius: 50%; background: currentColor;
}
.tool.look--rig-motion .tool__actions .btn--primary:not(:disabled)::before {
    background: hsl(0 85% 52%); box-shadow: 0 0 0 3px hsl(0 85% 52% / .25); animation: mesh-rec 1.6s ease-in-out infinite;
}
@keyframes mesh-rec { 50% { box-shadow: 0 0 0 6px hsl(0 85% 52% / 0); } }

@media (prefers-reduced-motion: reduce) {
    .tool.look--rig-motion .tool__actions .btn--primary::before { animation: none; }
}
