/* RhinoCan 2.5D — compact animation editor; independent of particle engine. */
.bg-ui.editor-panel { width: 266px; padding: 10px 11px 11px; }
.editor-panel .bg-ui-title { margin-bottom: 8px; }
.editor-panel .bg-ui-title-actions { gap: 9px; }
.editor-panel .bg-ui-close { color: #90999e; }
.editor-panel .bg-ui-close svg { width: 12px; height: 12px; }
.editor-eye { margin-bottom: 8px; }
.editor-eye .bg-ui-button { min-height: 24px; }
.editor-accordion { border-top: 1px solid #393939; }
.editor-accordion:last-child { border-bottom: 1px solid #393939; }
.editor-accordion > summary, .editor-subsection > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; font-size: 10px; letter-spacing: .075em;
  font-weight: 400; color: #b9c4c8; padding: 10px 1px;
  user-select: none; -webkit-user-select: none;
}
.editor-accordion > summary::-webkit-details-marker, .editor-subsection > summary::-webkit-details-marker { display: none; }
.editor-accordion > summary::after, .editor-subsection > summary::after {
  content: ''; width: 5px; height: 5px; border-right: 1px solid #849198;
  border-bottom: 1px solid #849198; transform: rotate(-45deg); margin-right: 4px;
  transition: transform 180ms ease;
}
.editor-accordion[open] > summary::after, .editor-subsection[open] > summary::after { transform: rotate(45deg); }
.editor-section-body { padding: 0 0 11px; }
.editor-section-body .bg-ui-grid { padding-top: 2px; }
.editor-mini-title { font-size: 8.5px; color: #869397; letter-spacing: .08em; padding: 2px 0 5px; }
.editor-input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 9px; }
.editor-input-pair input {
  box-sizing: border-box; min-width: 0; width: 100%; min-height: 24px;
  background: #1b1b1b; border: 1px solid #393939; color: #d4d8da;
  font: 300 10px 'Quicksand', sans-serif; padding: 4px 6px;
  outline: none; border-radius: 0;
}
.editor-input-pair input:focus-visible { border-color: #75bdd5; }
.editor-divider { height: 1px; background: #353535; margin: 7px 0 11px; }
.editor-param-heading { padding: 10px 0 7px; }
.editor-panel .editor-range { margin-top: 8px; }
.editor-panel .editor-select-row { margin-bottom: 9px; }
.editor-panel .bg-ui-row label { font-size: 9.5px; }
.editor-panel .bg-ui-row select { padding: 4px 5px; min-height: 23px; }
.editor-checkbox { cursor: pointer; display: flex; gap: 7px; align-items: center; margin-top: 11px; font-size: 9.5px; color: #b8b8b8; }
.editor-checkbox input { margin: 0; width: 12px; height: 12px; accent-color: #50bde4; }
.editor-subsection { border-top: 1px solid #343434; margin-top: 8px; }
.editor-subsection > summary { letter-spacing: .035em; font-size: 9px; color: #aab1b4; padding: 10px 1px 8px; }
.editor-subsection-body { padding: 0 0 8px; }
.editor-panel [data-for-effect][hidden] { display: none !important; }
.editor-panel button:focus-visible, .editor-panel summary:focus-visible, .editor-panel select:focus-visible {
  outline: 1px solid #72bcd5; outline-offset: 2px;
}
.editor-word-inner {
  display: block; width: 100%; height: 100%; text-align: center;
  white-space: pre; will-change: opacity, filter, clip-path, transform;
}
.ambient-wordmark-part > span { text-align: center; }
/* Animation controls alter rotational parameters, never the string's parent animation. */
@keyframes ambient-tilt-rhino {
  0%   { transform: rotateY(calc(0deg + var(--editor-tilt-y, 0deg))) rotateX(calc(-11deg + var(--editor-tilt-x, 0deg))); }
  25%  { transform: rotateY(calc(90deg + var(--editor-tilt-y, 0deg))) rotateX(calc(12deg + var(--editor-tilt-x, 0deg))); }
  50%  { transform: rotateY(calc(180deg + var(--editor-tilt-y, 0deg))) rotateX(calc(8deg + var(--editor-tilt-x, 0deg))); }
  75%  { transform: rotateY(calc(270deg + var(--editor-tilt-y, 0deg))) rotateX(calc(-14deg + var(--editor-tilt-x, 0deg))); }
  100% { transform: rotateY(calc(360deg + var(--editor-tilt-y, 0deg))) rotateX(calc(-11deg + var(--editor-tilt-x, 0deg))); }
}
@keyframes ambient-tilt-can {
  0%   { transform: rotateY(calc(0deg + var(--editor-tilt-y, 0deg))) rotateX(calc(13deg + var(--editor-tilt-x, 0deg))); }
  25%  { transform: rotateY(calc(90deg + var(--editor-tilt-y, 0deg))) rotateX(calc(-10deg + var(--editor-tilt-x, 0deg))); }
  50%  { transform: rotateY(calc(180deg + var(--editor-tilt-y, 0deg))) rotateX(calc(-12deg + var(--editor-tilt-x, 0deg))); }
  75%  { transform: rotateY(calc(270deg + var(--editor-tilt-y, 0deg))) rotateX(calc(15deg + var(--editor-tilt-x, 0deg))); }
  100% { transform: rotateY(calc(360deg + var(--editor-tilt-y, 0deg))) rotateX(calc(13deg + var(--editor-tilt-x, 0deg))); }
}
@media (max-width: 420px) { .bg-ui.editor-panel { width: min(266px, calc(100vw - 20px)); } }

/* v2 — compact, two actions and one text sequence */
.bg-ui.editor-panel { width: 266px; padding: 10px 11px 9px; }
.editor-panel .bg-ui-title { margin-bottom: 9px; }
.editor-main-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.editor-main-actions .editor-action-button {
  box-sizing: border-box; min-height: 48px; padding: 6px 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 9px; border-color: #3a3f42; background: rgba(20,21,22,.35);
}
.editor-main-actions .editor-action-button svg { width: 16px; height: 16px; flex: none; }
.editor-main-actions .editor-action-button:disabled { opacity: .38; cursor: not-allowed; }
.editor-main-actions .editor-action-button:disabled:hover { border-color: #3a3f42; color: #9dd8ed; }
.editor-random-targets { display: flex; align-items: center; gap: 22px; padding: 9px 1px 11px; }
.editor-random-targets label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 9px; color: #b5bfc3; user-select: none; }
.editor-random-targets input { width: 12px; height: 12px; margin: 0; accent-color: #65b6cf; cursor: pointer; }
.editor-sequence-heading, .editor-sequence-footnote { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.editor-sequence-heading > span, .editor-sequence-footnote { font-size: 8px; color: #839095; }
.editor-sequence-footnote { margin-top: 5px; margin-bottom: 10px; }
#editor-state-count { color: #79b9cf; }
#editor-sequence {
  box-sizing: border-box; display: block; width: 100%; min-height: 71px;
  resize: vertical; border: 1px solid #3a3a3a; border-radius: 0;
  background: #1b1b1b; color: #d4d8da; font: 300 10px/1.6 'Quicksand',sans-serif;
  padding: 6px 7px; outline: none; white-space: pre; tab-size: 2;
}
#editor-sequence:focus-visible { border-color: #75bdd5; }
.editor-accordion > summary { padding: 9px 1px; }
@media (max-width: 420px) { .bg-ui.editor-panel { width: min(266px, calc(100vw - 20px)); } }
