/* «Покажи один раз»: запись показа, проверка кадров и черновик навыка. */

.hermes-dashboard .skill-recorder {
    width: min(46rem, 100%);
}

.hermes-dashboard .skill-recorder__how {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.5;
}

.hermes-dashboard .skill-recorder__live {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.hermes-dashboard .skill-recorder__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--hermes-danger);
    animation: skill-recorder-pulse 1.4s ease-in-out infinite;
}

.hermes-dashboard .skill-recorder__dot--paused {
    background: var(--hermes-muted);
    animation: none;
}

@keyframes skill-recorder-pulse {
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .hermes-dashboard .skill-recorder__dot {
        animation: none;
    }
}

.hermes-dashboard .skill-recorder__controls {
    flex-wrap: wrap;
}

.hermes-dashboard .skill-recorder__frames {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0.75rem;
}

.hermes-dashboard .skill-recorder__frame {
    position: relative;
    display: grid;
    gap: 0.25rem;
    margin: 0;
}

.hermes-dashboard .skill-recorder__frame figcaption {
    color: var(--hermes-soft);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.hermes-dashboard .skill-recorder__thumb {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--hermes-line);
    border-radius: 8px;
    background: var(--hermes-bg-2, transparent);
    cursor: crosshair;
}

.hermes-dashboard .skill-recorder__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    /* Кадр виден целиком: обрезанное превью спрятало бы то, что уйдёт модели. */
    object-fit: contain;
    background: #000;
}

.hermes-dashboard .skill-recorder__drop {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgb(0 0 0 / 0.6);
    cursor: pointer;
}

.hermes-dashboard .skill-recorder__drop svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.hermes-dashboard .skill-recorder__mask {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
}

.hermes-dashboard .skill-recorder__body {
    font-family: var(--hermes-mono, ui-monospace, monospace);
    font-size: 0.8125rem;
}
