/* ---- the motion 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.

   Video generation is a form tool on the shared frame: its stage is a strip of film. The four studios draw their own frame,
   so they are dressed from the page column (.app__content.look--x …), one more class than their own sheets, which load after
   this one: the menu bar, the tool rails, panel heads and timelines' headers. Their working surfaces — the program monitor,
   the composition, the plan and the 3-D view, the drawing — keep the colours, grids and handles their scripts give them. */

.look--video-gen { --look-hue: 350; --look-turn: 24; }
.look--video-editor { --look-hue: 160; --look-turn: 26; }
.look--motion { --look-hue: 285; --look-turn: 45; }
.look--architect { --look-hue: 34; --look-turn: 16; }
.look--cad { --look-hue: 215; --look-turn: 20; }

/* Two shared inks: --lk-ink, the tool's colour pulled toward the text colour so it reads on either theme, and --lk-deep, a
   dark fill white text stands on. */
.look--video-gen, .look--video-editor, .look--motion, .look--architect, .look--cad {
    --lk-ink: color-mix(in srgb, var(--look-c) 64%, var(--rl-text));
    --lk-deep: hsl(var(--look-hue) 66% 38%);
    --lk-deep2: hsl(calc(var(--look-hue) + var(--look-turn)) 66% 36%);
}

/* ---- the studios' shared chrome: a menu bar washed with the tool's colour, a rule of its two colours along its foot, and a
   small glyph before the studio's name ---- */

.app__content.look--video-editor .pe__top,
.app__content.look--motion .pe__top,
.app__content.look--architect .pe__top,
.app__content.look--cad .pe__top {
    position: relative;
    border-bottom-color: transparent;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 16%, var(--rl-surface)), var(--rl-surface) 42%, color-mix(in srgb, var(--look-c2) 8%, var(--rl-surface)));
}
.app__content.look--video-editor .pe__top::after,
.app__content.look--motion .pe__top::after,
.app__content.look--architect .pe__top::after,
.app__content.look--cad .pe__top::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--look-c), var(--look-c2) 46%, color-mix(in srgb, var(--look-c2) 20%, transparent));
}
.app__content.look--video-editor .pe__brand,
.app__content.look--motion .pe__brand,
.app__content.look--architect .pe__brand,
.app__content.look--cad .pe__brand {
    display: inline-flex; align-items: center; gap: .45rem; color: var(--lk-ink); letter-spacing: .02em;
}
.app__content.look--video-editor .pe__brand::before,
.app__content.look--motion .pe__brand::before,
.app__content.look--architect .pe__brand::before,
.app__content.look--cad .pe__brand::before {
    content: ""; flex: none; width: 1.1rem; height: 1.1rem; border-radius: .3rem;
    background: linear-gradient(135deg, var(--look-c), var(--look-c2));
    box-shadow: 0 2px 8px -2px hsl(var(--look-hue) 80% 45% / .6);
}
.app__content.look--video-editor .pe__top .pe-btn--primary,
.app__content.look--motion .pe__top .pe-btn--primary,
.app__content.look--architect .pe__top .pe-btn--primary,
.app__content.look--cad .pe__top .pe-btn--primary {
    border-color: transparent; color: #fff; text-shadow: 0 1px 1px rgb(0 0 0 / .25);
    background: linear-gradient(135deg, var(--lk-deep), var(--lk-deep2));
}
.app__content.look--video-editor .pe-menubar__b.is-open,
.app__content.look--motion .pe-menubar__b.is-open,
.app__content.look--architect .pe-menubar__b.is-open,
.app__content.look--cad .pe-menubar__b.is-open { background: color-mix(in srgb, var(--look-c) 18%, var(--rl-surface-sunken)); }


/* ==== video generation (/comfy/video): a strip of film ======================================================================
   The stage is a frame of film: rows of sprockets along its top and bottom on a dark film base, a projector's warm light in
   the middle. The run button is a record button, and each shape chip shows the frame it makes. */

.tool.look--video-gen .tool__stage {
    --vg-band: 1.7rem;
    --vg-film: hsl(350 34% 9%);
    --vg-holes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='27'%3E%3Crect x='8' y='8' width='12' height='11' rx='2.6' fill='%23ffd9e0' fill-opacity='.62'/%3E%3C/svg%3E");
    padding-block: calc(var(--vg-band) + 1rem);
    border-color: color-mix(in srgb, var(--look-c) 34%, var(--rl-border));
    --vg-edge: color-mix(in srgb, var(--look-c) 42%, transparent);
    /* a viewfinder's corner marks inside the frame */
    --vg-vf: color-mix(in srgb, var(--look-c) 55%, transparent);
    --vg-in: 1.1rem;
    --vg-arm: 1.5rem;
    background:
        linear-gradient(var(--vg-vf), var(--vg-vf)) var(--vg-in) calc(var(--vg-band) + var(--vg-in)) / var(--vg-arm) 2px no-repeat,
        linear-gradient(var(--vg-vf), var(--vg-vf)) var(--vg-in) calc(var(--vg-band) + var(--vg-in)) / 2px var(--vg-arm) no-repeat,
        linear-gradient(var(--vg-vf), var(--vg-vf)) calc(100% - var(--vg-in)) calc(var(--vg-band) + var(--vg-in)) / var(--vg-arm) 2px no-repeat,
        linear-gradient(var(--vg-vf), var(--vg-vf)) calc(100% - var(--vg-in)) calc(var(--vg-band) + var(--vg-in)) / 2px var(--vg-arm) no-repeat,
        linear-gradient(var(--vg-vf), var(--vg-vf)) var(--vg-in) calc(100% - var(--vg-band) - var(--vg-in)) / var(--vg-arm) 2px no-repeat,
        linear-gradient(var(--vg-vf), var(--vg-vf)) var(--vg-in) calc(100% - var(--vg-band) - var(--vg-in)) / 2px var(--vg-arm) no-repeat,
        linear-gradient(var(--vg-vf), var(--vg-vf)) calc(100% - var(--vg-in)) calc(100% - var(--vg-band) - var(--vg-in)) / var(--vg-arm) 2px no-repeat,
        linear-gradient(var(--vg-vf), var(--vg-vf)) calc(100% - var(--vg-in)) calc(100% - var(--vg-band) - var(--vg-in)) / 2px var(--vg-arm) no-repeat,
        linear-gradient(var(--vg-edge), var(--vg-edge)) 0 var(--vg-band) / 100% 1px no-repeat,
        linear-gradient(var(--vg-edge), var(--vg-edge)) 0 calc(100% - var(--vg-band)) / 100% 1px no-repeat,
        var(--vg-holes) 6px 0 / 28px var(--vg-band) repeat-x,
        var(--vg-holes) 6px 100% / 28px var(--vg-band) repeat-x,
        linear-gradient(var(--vg-film), var(--vg-film)) 0 0 / 100% var(--vg-band) no-repeat,
        linear-gradient(var(--vg-film), var(--vg-film)) 0 100% / 100% var(--vg-band) no-repeat,
        radial-gradient(60% 55% at 50% 46%, hsl(350 85% 60% / .13), transparent 72%),
        linear-gradient(180deg, color-mix(in srgb, var(--look-c) 6%, var(--rl-surface-sunken)), color-mix(in srgb, var(--look-c2) 4%, var(--rl-surface-sunken)));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--look-c) 10%, transparent);
}
.tool.look--video-gen .tool-sec--lead { --lead-wash: var(--look-c); }
.tool.look--video-gen .tool-sec__ico.ui-ico { background: color-mix(in srgb, var(--look-c) 16%, transparent); }
.tool.look--video-gen .tool-sec--toned::before { background: linear-gradient(90deg, var(--look-c), var(--look-c2)); }
.tool.look--video-gen .tool-sec--lead textarea:focus { border-color: var(--look-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--look-c) 22%, transparent); }

.tool.look--video-gen .tool-chip--on {
    border-color: var(--look-c); color: var(--lk-ink);
    background: color-mix(in srgb, var(--look-c) 14%, var(--rl-surface));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--look-c) 40%, transparent);
}
/* Shape chips: a small frame of the shape beside its ratio. */
.tool.look--video-gen .tool-chips[aria-labelledby="aspect-label"] .tool-chip {
    display: inline-flex; align-items: center; gap: .45rem;
}
.tool.look--video-gen .tool-chips[aria-labelledby="aspect-label"] .tool-chip::before {
    content: ""; flex: none; width: 1rem; height: .5625rem; border-radius: 2px;
    border: 1.5px solid currentColor; opacity: .75;
}
.tool.look--video-gen .tool-chips[aria-labelledby="aspect-label"] .tool-chip:nth-child(2)::before { width: .5625rem; height: 1rem; }
.tool.look--video-gen .tool-chips[aria-labelledby="aspect-label"] .tool-chip:nth-child(3)::before { width: .8rem; height: .8rem; }
.tool.look--video-gen .tool-chips[aria-labelledby="aspect-label"] .tool-chip:nth-child(4)::before { width: .9rem; height: .675rem; }
.tool.look--video-gen .tool-chips[aria-labelledby="aspect-label"] .tool-chip:nth-child(5)::before { width: .675rem; height: .9rem; }
.tool.look--video-gen .tool-chips[aria-labelledby="aspect-label"] .tool-chip--on::before { opacity: 1; background: color-mix(in srgb, var(--look-c) 30%, transparent); }

/* The run button is a record button: a light that glows when there is something to shoot. */
.tool.look--video-gen .tool__actions .btn--primary { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 999px; }
.tool.look--video-gen .tool__actions .btn--primary::before {
    content: ""; flex: none; width: .7rem; height: .7rem; border-radius: 50%;
    background: currentColor; opacity: .45;
}
.tool.look--video-gen .tool__actions .btn--primary:not(:disabled)::before {
    opacity: 1; background: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .25), 0 0 10px 2px rgb(255 255 255 / .55);
    animation: vg-rec 1.6s ease-in-out infinite;
}
@keyframes vg-rec { 50% { box-shadow: 0 0 0 3px rgb(255 255 255 / .12), 0 0 4px 1px rgb(255 255 255 / .3); } }

/* The banner: a fine row of sprockets along its foot. */
.hero.look--video-gen .hero__art::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; pointer-events: none; opacity: .5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12'%3E%3Crect x='6' y='3' width='10' height='6' rx='2' fill='%23ffd9e0' fill-opacity='.5'/%3E%3C/svg%3E") 0 0 / 22px 12px repeat-x;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 60%);
    mask-image: linear-gradient(90deg, transparent 20%, #000 60%);
}


/* ==== video editor (/video): tracks and a red play head =====================================================================
   Emerald chrome, a glowing timecode display, lanes in alternating bands, and the empty media bin wearing the editor's spot. */

.app__content.look--video-editor .pe__brand::before {
    border-radius: .25rem;
    background:
        linear-gradient(#ff4757, #ff4757) 62% 0 / 2px 100% no-repeat,
        linear-gradient(var(--look-c), var(--look-c)) 0 2px / 70% 3px no-repeat,
        linear-gradient(var(--look-c2), var(--look-c2)) 30% 7px / 70% 3px no-repeat,
        linear-gradient(color-mix(in srgb, var(--look-c) 60%, #fff), color-mix(in srgb, var(--look-c) 60%, #fff)) 0 12px / 55% 3px no-repeat;
    box-shadow: none;
}

.app__content.look--video-editor .ve-tabs { background: color-mix(in srgb, var(--look-c) 5%, var(--rl-surface)); }
.app__content.look--video-editor .ve-tab.is-on {
    color: var(--lk-ink); border-bottom-color: var(--look-c);
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--look-c) 14%, transparent));
}
.app__content.look--video-editor .ve-montabs { background: color-mix(in srgb, var(--look-c) 5%, var(--rl-surface)); }
.app__content.look--video-editor .ve-montab.is-on { box-shadow: inset 0 2px 0 var(--look-c); color: var(--rl-text); }

/* The timecode: a glowing display, dark in either theme. */
.app__content.look--video-editor .ve-tc-big {
    background: hsl(165 40% 7%); color: hsl(155 85% 70%);
    box-shadow: inset 0 0 0 1px hsl(160 60% 40% / .45), 0 0 14px -4px hsl(160 80% 50% / .5);
    text-shadow: 0 0 8px hsl(155 90% 55% / .55); letter-spacing: .04em;
}

.app__content.look--video-editor .ve-sec > summary { position: relative; }
.app__content.look--video-editor .ve-sec[open] > summary { color: var(--lk-ink); }
.app__content.look--video-editor .ve-sec[open] > summary::before {
    content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--look-c);
}

/* The timeline: a tinted tool strip and ruler, track heads washed with the colour, lanes in alternating bands. */
.app__content.look--video-editor .ve-tl__bar {
    background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 12%, var(--rl-surface)), var(--rl-surface) 50%);
}
.app__content.look--video-editor .ve-tl__bar .pe-ib.is-on { background: var(--lk-deep); color: #fff; }
.app__content.look--video-editor .ve-corner__t {
    color: hsl(155 85% 70%); text-shadow: 0 0 8px hsl(155 90% 55% / .5);
}
.app__content.look--video-editor .ve-corner { background: hsl(165 40% 7%); }
.app__content.look--video-editor .ve-ruler-row { background: color-mix(in srgb, var(--look-c) 7%, var(--rl-surface)); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--look-c) 30%, transparent); }
.app__content.look--video-editor .ve-head { background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 9%, var(--rl-surface)), var(--rl-surface)); }
.app__content.look--video-editor .ve-row:nth-child(even):not(.is-locked) .ve-lane { background: color-mix(in srgb, var(--look-c) 4%, var(--pe-work)); }
.app__content.look--video-editor .ve-split::after { background: var(--look-c); opacity: .8; }

/* The empty media bin carries the editor's picture. */
.app__content.look--video-editor .ve-empty {
    padding-right: 5.6rem; border-color: color-mix(in srgb, var(--look-c) 35%, var(--pe-line));
    background: url(video-editor/spot.svg) no-repeat right .7rem center / 4.4rem, color-mix(in srgb, var(--look-c) 5%, transparent);
}
.app__content.look--video-editor .ve-empty .pe-btn--primary { background: var(--lk-deep); border-color: transparent; color: #fff; }
.app__content.look--video-editor .ve-pane__tools .pe-btn--primary { background: var(--lk-deep); border-color: transparent; color: #fff; }


/* ==== motion studio (/motion): keyframes and easing curves ==================================================================
   Violet chrome, keyframe diamonds on every panel head, a magenta timecode, and an easing curve drawn faintly along the end of
   the timeline's tool strip. The composition, the ruler and the keyframe lanes are the studio's own drawing. */

.app__content.look--motion .pe__brand::before {
    width: .8rem; height: .8rem; border-radius: 2px; transform: rotate(45deg); margin: 0 .15rem;
}

.app__content.look--motion .mo-opts {
    background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 9%, var(--rl-surface-raised)), var(--rl-surface-raised) 60%);
}
.app__content.look--motion .mo-tool.is-on {
    background: linear-gradient(135deg, var(--lk-deep), var(--lk-deep2)); color: #fff;
    box-shadow: 0 4px 12px -4px hsl(var(--look-hue) 70% 40% / .7);
}
.app__content.look--motion .pe__toolname { color: var(--lk-ink); }

/* Panel heads: a keyframe diamond at the end, filled when the panel is open. */
.app__content.look--motion .mo-sec > summary::after {
    content: ""; flex: none; width: .5rem; height: .5rem; margin-left: auto; margin-right: .25rem; transform: rotate(45deg);
    border: 1.5px solid color-mix(in srgb, var(--look-c) 70%, var(--rl-text-muted)); border-radius: 1px;
}
.app__content.look--motion .mo-sec[open] > summary::after { background: linear-gradient(135deg, var(--look-c), var(--look-c2)); border-color: transparent; }
.app__content.look--motion .mo-sec[open] > summary { color: var(--lk-ink); }

.app__content.look--motion .mo-prompt__chip.is-on { color: var(--lk-ink); border-color: var(--look-c); background: color-mix(in srgb, var(--look-c) 12%, transparent); }
.app__content.look--motion .mo-prompt__go.pe-btn--primary { background: linear-gradient(135deg, var(--lk-deep), var(--lk-deep2)); border-color: transparent; color: #fff; }

/* The timeline's tool strip: the timecode in the tool's colour, and an eased curve between two keys at its far end. */
.app__content.look--motion .mo-tl__bar {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 30'%3E%3Cpath d='M14 23 C70 23 84 7 140 7' fill='none' stroke='%23b26ad6' stroke-opacity='.75' stroke-width='2'/%3E%3Cpath d='M14 23 H52 M140 7 H102' stroke='%23b26ad6' stroke-opacity='.45' stroke-width='1.2'/%3E%3Ccircle cx='52' cy='23' r='2.6' fill='none' stroke='%23b26ad6' stroke-opacity='.7'/%3E%3Ccircle cx='102' cy='7' r='2.6' fill='none' stroke='%23b26ad6' stroke-opacity='.7'/%3E%3Cpath d='M14 18 L19 23 L14 28 L9 23Z M140 2 L145 7 L140 12 L135 7Z' fill='%23d26ac0'/%3E%3C/svg%3E") no-repeat right .8rem center / 9rem 1.5rem,
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 11%, var(--rl-surface-raised)), var(--rl-surface-raised) 55%);
}
.app__content.look--motion .mo-tl__time { color: var(--lk-ink); text-shadow: 0 0 10px color-mix(in srgb, var(--look-c) 40%, transparent); }
.app__content.look--motion .mo-tl__head { background: color-mix(in srgb, var(--look-c) 8%, var(--rl-surface-sunken)); }
.app__content.look--motion .mo-split { background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 30%, var(--rl-surface)), color-mix(in srgb, var(--look-c2) 20%, var(--rl-surface))); }

/* The floating assets pill sits over the status line's start: begin the line after it. */
.app__content.look--motion .mo-status { padding-left: 9.5rem; }
/* Where the strip's own controls run its whole width, the curve would sit behind them. */
@container mo (max-width: 1100px) {
    .app__content.look--motion .mo-tl__bar { background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 11%, var(--rl-surface-raised)), var(--rl-surface-raised) 55%); }
    .app__content.look--motion .mo-status { padding-left: 7.5rem; }
}


/* ==== architect (/architect): a warm blueprint and a house =================================================================
   Amber chrome: the designer's own accent turned to the tool's colour, a fine drafting grid behind the tool bar, a house before
   its name, and a picture of a home on the start card. The plan, its rulers and the 3-D view keep their colours. */

.app__content.look--architect .ar { --ar-accent: var(--lk-ink); }

.app__content.look--architect .pe__brand::before {
    border-radius: 2px;
    clip-path: polygon(50% 0, 100% 46%, 86% 46%, 86% 100%, 14% 100%, 14% 46%, 0 46%);
    box-shadow: none;
}

.app__content.look--architect .pe__opts {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--rl-surface-raised) 0%, transparent), var(--rl-surface-raised) 72%),
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--look-c) 16%, transparent) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(0deg, color-mix(in srgb, var(--look-c) 16%, transparent) 0 1px, transparent 1px 12px),
        color-mix(in srgb, var(--look-c) 9%, var(--rl-surface-raised));
}
.app__content.look--architect .ar-tb.is-on { box-shadow: 0 3px 10px -5px hsl(var(--look-hue) 80% 45% / .8); }

.app__content.look--architect .ar-lefttabs { background: color-mix(in srgb, var(--look-c) 6%, var(--rl-surface)); }
.app__content.look--architect .ar-pn-insp__title {
    background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 14%, var(--rl-surface)), var(--rl-surface));
    box-shadow: inset 3px 0 0 var(--look-c);
}
.app__content.look--architect details[open] > .ar-pn-sec__h { color: var(--lk-ink); }
.app__content.look--architect details[open] > .ar-pn-sec__h .pe-ico { color: var(--look-c); }

/* The start card: a home drawn above its welcome. */
.app__content.look--architect .ar-welcome {
    padding-top: 6.6rem;
    border-color: color-mix(in srgb, var(--look-c) 45%, var(--pe-line));
    background:
        url(architect/spot.svg) no-repeat center 1rem / 5.4rem,
        linear-gradient(180deg, color-mix(in srgb, var(--look-c) 12%, var(--rl-surface)), var(--rl-surface) 9rem);
    box-shadow: 0 14px 40px -8px hsl(var(--look-hue) 60% 25% / .45);
}
.app__content.look--architect .ar-welcome .pe-btn--primary { background: var(--lk-deep); border-color: transparent; color: #fff; }


/* ==== CAD (/cad): a technical drawing ========================================================================================
   Engineering blue: a crosshair before the name, a drafting grid down the tool rail with its groups parted by dimension lines,
   a navy command line with a blue prompt, and the drafting toggles as stamped labels. The drawing area is untouched. */

.app__content.look--cad .pe__brand::before {
    background:
        linear-gradient(#fff, #fff) center / 100% 1.5px no-repeat,
        linear-gradient(#fff, #fff) center / 1.5px 100% no-repeat,
        linear-gradient(135deg, var(--look-c), var(--look-c2));
    box-shadow: inset 0 0 0 3.5px var(--look-c), inset 0 0 0 5px #fff;
    border-radius: 3px;
}

.app__content.look--cad .cd-tools {
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--look-c) 11%, transparent) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(0deg, color-mix(in srgb, var(--look-c) 11%, transparent) 0 1px, transparent 1px 10px),
        color-mix(in srgb, var(--look-c) 6%, var(--rl-surface));
}
.app__content.look--cad .cd-tool.is-on { background: var(--lk-deep); color: #fff; }
/* Each separator is a dimension line: a rule with a tick at either end. */
.app__content.look--cad .cd-tools .pe__sep {
    width: auto; height: 7px; align-self: stretch; margin: .2rem .45rem;
    background:
        linear-gradient(var(--lk-ink), var(--lk-ink)) center / 100% 1px no-repeat,
        linear-gradient(var(--lk-ink), var(--lk-ink)) left center / 1px 100% no-repeat,
        linear-gradient(var(--lk-ink), var(--lk-ink)) right center / 1px 100% no-repeat;
    opacity: .7;
}

/* The command line: navy in either theme, its prompt and keywords in the tool's blue. */
.app__content.look--cad .cd {
    --cd-cmd-bg: hsl(220 46% 11%); --cd-cmd-fg: hsl(214 60% 92%); --cd-cmd-dim: hsl(214 25% 64%); --cd-kw: hsl(204 95% 70%);
}
.app__content.look--cad .cd-cmd { box-shadow: inset 0 2px 0 var(--look-c); border-top-color: transparent; }
/* The floating assets pill sits over the command line's start and the status line's: begin both after it. */
.app__content.look--cad .cd-cmd__row,
.app__content.look--cad .cd-cmd__log { padding-left: 4.6rem; }
.app__content.look--cad .cd-status { padding-left: 4.6rem; background: color-mix(in srgb, var(--look-c) 5%, var(--rl-surface)); }
.app__content.look--cad .cd-tg {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .08em; border-radius: 3px;
}
.app__content.look--cad .cd-tg.is-on {
    color: #fff; background: var(--lk-deep); border-color: transparent;
}

/* Panels: drawing-sheet heads, small capitals over a hairline of the tool's colour. */
.app__content.look--cad .cd-panels .pe-sec > summary {
    text-transform: uppercase; letter-spacing: .08em; font-size: .72rem;
    background: color-mix(in srgb, var(--look-c) 7%, var(--rl-surface-raised));
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--look-c) 30%, transparent);
}
.app__content.look--cad .cd-panels .pe-sec[open] > summary { color: var(--lk-ink); box-shadow: inset 3px 0 0 var(--look-c), inset 0 -1px 0 color-mix(in srgb, var(--look-c) 30%, transparent); }

@media (prefers-reduced-motion: reduce) {
    .tool.look--video-gen .tool__actions .btn--primary::before { animation: none; }
}
