/* Softer UI adaptation of the logo yellow for larger control surfaces. */
@layer components, interactions;
:root { --accent: #e8cf68; --cursor-dot-size:5px; --cursor-corner-size:10px; --cursor-line-width:2px; --cursor-spin-seconds:5s; }

/* App surfaces do not select text during dragging/orbiting. Editable fields still do. */
*,*::before,*::after{-webkit-user-select:none;user-select:none}
input:not([type=range]):not([type=checkbox]):not([type=button]):not([type=submit]),textarea,[contenteditable=true]{-webkit-user-select:text;user-select:text}
img{-webkit-user-drag:none}

/* Four square brackets morph from a spinning pointer into the hovered target. */
#daisy-cursor{position:fixed;left:0;top:0;width:20px;height:20px;pointer-events:none;z-index:2147483647;contain:layout style;will-change:transform,width,height;color:var(--accent);filter:drop-shadow(0 1px 2px #0009)}
#daisy-cursor[hidden]{display:none}
#daisy-cursor .cursor-dot{position:absolute;left:0;top:0;width:var(--cursor-dot-size,3px);height:var(--cursor-dot-size,3px);background:currentColor;box-shadow:0 0 0 1px #0008;will-change:transform}
#daisy-cursor .cursor-corners{position:absolute;inset:0;animation:cursor-spin var(--cursor-spin-seconds,3s) linear infinite}
#daisy-cursor.locked .cursor-corners{animation:none;transform:none}
#daisy-cursor .cursor-corner{position:absolute;width:7px;height:7px;border:solid currentColor;border-width:0;transition:width .15s,height .15s}
#daisy-cursor.locked .cursor-corner{width:var(--cursor-corner-size,15px);height:var(--cursor-corner-size,15px)}
#daisy-cursor .tl{left:0;top:0;border-left-width:var(--cursor-line-width,2px);border-top-width:var(--cursor-line-width,2px)}
#daisy-cursor .tr{right:0;top:0;border-right-width:var(--cursor-line-width,2px);border-top-width:var(--cursor-line-width,2px)}
#daisy-cursor .bl{left:0;bottom:0;border-left-width:var(--cursor-line-width,2px);border-bottom-width:var(--cursor-line-width,2px)}
#daisy-cursor .br{right:0;bottom:0;border-right-width:var(--cursor-line-width,2px);border-bottom-width:var(--cursor-line-width,2px)}
#daisy-cursor.pressed{color:#fff3bb}
@keyframes cursor-spin{to{transform:rotate(360deg)}}
/* Generated triangles/markers can define their own cursor instead of inheriting. */
@media(hover:hover) and (pointer:fine){html.custom-cursor,html.custom-cursor *,html.custom-cursor *::before,html.custom-cursor *::after,html.custom-cursor *::marker{cursor:none!important}}
@media(prefers-reduced-motion:reduce){#daisy-cursor .cursor-corners{animation:none}#daisy-cursor .cursor-corner{transition:none}}

/* One interaction system across Studio, library, login and Admin. This layer
   wins over component selectors regardless of their IDs or selector weight. */
@layer interactions {
  :is(button,.header-actions>a,.studio-header-actions>a,.capture-actions>a,.admin-model-actions>a) {
    transition:background-color .15s,border-color .15s,color .15s;
  }
  :is(button,.header-actions>a,.studio-header-actions>a,.capture-actions>a,.admin-model-actions>a):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible) {
    background-color:rgba(var(--accent-rgb,232,207,104),var(--button-hover-opacity,.22));
    border-color:var(--accent);
    color:var(--accent);
    box-shadow:none;
  }
  :is(button,.header-actions>a,.studio-header-actions>a,.capture-actions>a,.admin-model-actions>a):not(:disabled):not([aria-disabled=true]):active {
    background-color:rgba(var(--accent-rgb,232,207,104),var(--button-active-opacity,.32));
  }
  :is(button,.header-actions>a,.studio-header-actions>a,.capture-actions>a,.admin-model-actions>a):focus-visible {
    outline:1px solid var(--accent);outline-offset:2px;
  }
  @media(prefers-reduced-motion:reduce) {
    :is(button,.header-actions>a,.studio-header-actions>a,.capture-actions>a,.admin-model-actions>a){transition:none}
  }
}
