.motif-popover{color:var(--foreground);background:var(--card);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-xl);z-index:var(--z-dropdown)}.motif-model-select-content{width:min(490px,100vw - 32px);max-height:min(440px, var(--radix-popover-content-available-height));text-align:left;font-family:var(--font-sans);padding:0;overflow:hidden}.motif-command{min-width:0;min-height:0;max-height:inherit;flex-direction:column;display:flex}.motif-command-search{border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:12px;min-height:44px;padding:0 14px;display:flex}.motif-command-search>svg{color:var(--muted-foreground);flex-shrink:0}.motif-model-select-content .motif-command-search input.motif-command-input{width:100%;min-width:0;height:44px;font:inherit;color:var(--foreground);caret-color:var(--primary);background:0 0;border:0;border-radius:0;outline:none;padding:0;font-size:16px}.motif-model-select-content .motif-command-search input.motif-command-input::placeholder{color:var(--muted-foreground);opacity:1}.motif-command-search:focus-within{box-shadow:inset 0 -2px var(--ring)}.motif-model-select-body{flex:1;min-height:0;display:flex}.motif-model-index{border-right:1px solid var(--border);scrollbar-width:thin;scrollbar-color:var(--input) transparent;flex-direction:column;flex-shrink:0;gap:4px;width:52px;padding:8px 4px;display:flex;overflow-y:auto}.motif-model-index>button{border-radius:var(--r-sm);width:44px;min-height:44px;color:var(--muted-foreground);background:0 0;border:0;place-items:center;padding:10px;display:grid}.motif-model-index>button:is(:hover,[aria-current=true]){background:var(--accent);color:var(--primary)}.motif-model-index>button>span,.motif-model-index>button>svg{width:20px;height:20px}.motif-provider-glyph{flex:0 0 18px;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.motif-provider-glyph .provider-icon{width:100%;height:100%}.motif-provider-glyph :is(img,svg){object-fit:contain;width:100%;height:100%;display:block}.motif-model-list{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--input) transparent;flex:1;min-width:0;min-height:0;padding:0 8px 8px;overflow-y:auto}.motif-model-section{padding:4px 0 0}.motif-model-section [cmdk-group-heading]{min-height:32px;color:var(--muted-foreground);font-size:var(--fs-caption);align-items:center;gap:10px;padding:4px 10px;font-weight:500;display:flex}.motif-model-select-content .composer-model-option{border-radius:var(--r-md);width:100%;min-height:60px;color:var(--foreground);cursor:pointer;background:0 0;align-items:flex-start;gap:10px;padding:10px;display:flex}.motif-model-select-content .composer-model-option:is([data-selected=true],[data-current=true],:hover){background:var(--muted)}.motif-model-select-content .composer-model-option>.motif-provider-glyph{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0}.motif-model-select-content .composer-model-option>span:nth-child(2){flex:1;min-width:0}.motif-model-select-content .composer-model-option>span:last-child{flex:0 0 18px;width:18px;margin:0}.motif-model-select-content .composer-model-option>span:last-child svg{width:18px;height:18px;color:var(--primary)}.motif-model-empty{text-align:center;font-size:var(--fs-body-sm);color:var(--muted-foreground);padding:28px 12px}.generation-controls{border:0;min-width:0;margin:0 0 20px;padding:0;container-type:inline-size}.generation-controls-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.generation-control{flex-direction:column;gap:7px;min-width:0;display:flex}.generation-control-label{color:var(--foreground);font-size:var(--fs-caption)}.generation-control-aspect{grid-column:1/-1}.generation-controls[data-layout=popover]{margin:0}.generation-controls[data-layout=popover] .generation-controls-fields{grid-template-columns:minmax(0,1fr);gap:16px}.generation-controls[data-layout=popover] .generation-control-label{color:var(--muted-foreground)}.motif-aspect-ratio-picker{grid-template-columns:repeat(var(--motif-ratio-columns), minmax(0, 1fr));min-width:0}.motif-aspect-ratio-picker>button[aria-pressed]{border:1px solid var(--input);border-radius:var(--r-sm);background:var(--background);min-height:52px;color:var(--muted-foreground);font-family:var(--font-sans);transition:background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);padding:6px 3px}.motif-aspect-ratio-picker>button[aria-pressed=true]{border-color:var(--primary);background:var(--accent);color:var(--primary);box-shadow:none}.motif-aspect-ratio-picker>button:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.motif-aspect-ratio-picker>button>span:last-child{font-family:var(--font-sans);font-size:var(--fs-caption)}.motif-resolution-segmented{border:1px solid var(--input);border-radius:var(--r-sm);background:var(--background);min-width:0;padding:2px}.motif-resolution-group>button{min-width:0;min-height:34px;color:var(--muted-foreground);font-size:var(--fs-body-sm);background:0 0;border:0;padding:3px 6px}.motif-resolution-group>button[aria-pressed=true],.motif-resolution-group>button:hover:not(:disabled){color:var(--primary)}.motif-resolution-plate{background:var(--accent);box-shadow:none;border:0;border-radius:5px}.motif-resolution-group>button>svg{width:14px;height:14px;color:inherit}.motif-aspect-ratio-picker>button:focus-visible,.motif-resolution-group>button:focus-visible,.motif-duration-track:focus-visible,.motif-model-index>button:focus-visible,.motif-attachment button:focus-visible,.motif-video-filmstrip:focus-visible{outline:2px solid var(--ring);outline-offset:3px}.motif-duration-slider{min-width:0;position:relative}.motif-duration-track{border:1px solid var(--input);border-radius:var(--r-sm);background:var(--background);touch-action:pan-y;-webkit-user-select:none;user-select:none;cursor:ew-resize;align-items:center;min-height:40px;display:flex;position:relative;overflow:hidden}.motif-duration-track[aria-disabled=true]{cursor:default}.motif-duration-fill{inset-block:0;background:var(--accent);transition:width var(--dur-instant) var(--ease-out);position:absolute;left:0}.motif-duration-tick{background:color-mix(in srgb, var(--foreground) 30%, transparent);border-radius:50%;width:4px;height:4px;position:absolute;top:50%;transform:translate(-50%,-50%)}.motif-duration-playhead{background:var(--primary);width:3px;height:24px;transition:left var(--dur-instant) var(--ease-out);border-radius:2px;position:absolute;top:50%;transform:translate(-50%,-50%)}.motif-duration-value{background:var(--background);color:var(--foreground);font-size:var(--fs-body-sm);font-variant-numeric:tabular-nums;pointer-events:none;border-radius:4px;margin-inline:auto;padding-inline:8px;font-weight:600;position:relative}.motif-duration-limits{color:var(--muted-foreground);font-size:var(--fs-caption);font-variant-numeric:tabular-nums;justify-content:space-between;padding:3px 2px 0;display:flex}.motif-duration-slider[data-dragging=true] :is(.motif-duration-fill,.motif-duration-playhead){transition:none}.generation-controls:disabled :is(.motif-duration-track,.motif-resolution-segmented){opacity:.55}.motif-attachment{border:1px solid var(--input);border-radius:var(--r-md);background:var(--background);flex-shrink:0;width:56px;height:56px;position:relative;overflow:hidden}.motif-attachment .motif-attachment-preview{border-radius:inherit;background:0 0;border:0;width:100%;height:100%;padding:0;position:absolute;inset:0}.motif-attachment-preview img{object-fit:cover;width:100%;height:100%}.motif-attachment-file{height:100%;color:var(--muted-foreground);flex-direction:column;justify-content:space-between;gap:4px;padding:8px;display:flex}.motif-attachment-file>span{text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-caption);overflow:hidden}.motif-attachment .motif-attachment-remove{border-radius:var(--r-pill);background:color-mix(in srgb, var(--background) 88%, transparent);width:44px;height:44px;color:var(--foreground);border:0;place-items:center;padding:0;display:grid;position:absolute;top:0;right:0}.motif-attachment .motif-attachment-remove:hover:not(:disabled){background:var(--background);color:var(--primary)}.motif-attachment-wash{background:color-mix(in srgb, var(--background) 65%, transparent);pointer-events:none;position:absolute;inset:0}.motif-attachment-ring{pointer-events:none;width:100%;height:100%;stroke:var(--primary);position:absolute;inset:0}.motif-attachment-ring path{transition:stroke-dashoffset var(--dur-slow) linear}.motif-attachment-ring[data-indeterminate=true]{animation:2s linear infinite motif-upload}.motif-attachment[data-state=error] .motif-attachment-ring{stroke:var(--destructive)}.motif-attachment-progress{color:var(--primary);font-size:var(--fs-caption);font-variant-numeric:tabular-nums;font-weight:600;position:absolute;bottom:8px;right:8px}.reference-attachment{width:116px;height:116px}.reference-attachment .motif-attachment-preview img{object-fit:contain}.reference-attachment-input{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.reference-attachment-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--muted-foreground);font-size:var(--fs-caption);margin-top:7px;display:block;overflow:hidden}.home-composer .reference-attachment{width:96px;height:96px}.home-composer .reference-attachment-name{display:none}.motif-video-preview{gap:8px;min-width:0}.motif-video-screen{background:var(--ink);width:100%;min-height:0;overflow:hidden}.motif-video-screen video{object-fit:contain;width:100%;height:100%;display:block}.workspace-examples .workspace-example-video{aspect-ratio:16/9;border-radius:var(--r-lg);max-height:min(320px,34svh)}.motif-video-filmstrip{border:1px solid var(--input);border-radius:var(--r-sm);background:var(--muted);touch-action:pan-y;cursor:ew-resize}.motif-video-preview .motif-video-filmstrip>input[type=range].motif-video-seek{z-index:1;appearance:none;opacity:0;cursor:ew-resize;touch-action:pan-y;border:0;width:100%;height:100%;min-height:0;margin:0;padding:0;position:absolute;inset:0}.motif-video-seek::-webkit-slider-thumb{appearance:none;width:1px;height:40px}.motif-video-seek::-moz-range-thumb{border:0;width:1px;height:40px}.motif-video-filmstrip:has(.motif-video-seek:focus-visible){outline:2px solid var(--ring);outline-offset:3px}.motif-video-filmstrip>input.motif-video-seek:disabled{cursor:default}.motif-video-filmstrip:has(.motif-video-seek:disabled){cursor:default}.video-filmstrip-time{background:var(--ink);color:var(--on-ink);font-size:var(--fs-caption);font-variant-numeric:tabular-nums;border-radius:4px;padding:3px 6px;position:absolute;bottom:4px;right:4px}.motif-generation-overlay{height:auto}.motif-generation-media{min-height:0}.motif-generation-media>.motif-video-screen{aspect-ratio:auto;border-radius:0;height:100%}.motif-generation-media>.motif-video-screen>video{object-fit:contain}.motif-generation-failure{inset-inline:0;background:var(--card);color:var(--destructive);font-size:var(--fs-body-sm);padding:12px 16px;position:absolute;top:0}.generation-result,.template-result-panel{container-type:inline-size}@container (width<=360px){.generation-controls-fields{grid-template-columns:minmax(0,1fr)}}@container (width<=260px){.motif-aspect-ratio-picker[data-columns="5"]{grid-template-columns:repeat(3,minmax(0,1fr))}}@keyframes motif-upload{to{transform:rotate(360deg)}}@media (width<=768px){.motif-model-select-content{max-height:min(440px, calc(100svh - 130px), var(--radix-popover-content-available-height))}}@media (pointer:coarse){.motif-resolution-group>button,.motif-duration-track{min-height:44px}.motif-video-filmstrip{min-height:46px}}@media (prefers-reduced-motion:reduce){.motif-attachment-ring[data-indeterminate=true]{animation:none}.motif-duration-slider *,.motif-aspect-ratio-picker>button,.motif-resolution-plate{transition:none}}
