/**
 * UX2 thinking orbs — appjs/common/ux2/orbs.js draws the orb; these place it.
 *   .ux2-orb            the orb itself (a <span data-orb>), inline with text or in a button
 *   .ux2-thinking       "SKOAI is writing" panel: orb, what it's doing now, how long it's been, and the steps
 */
.ux2-orb {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    line-height: 0;
    vertical-align: middle;
}

.ux2-orb-canvas {
    display: block;
}

/* In a button, in place of the spinner */
.ux2-btn .ux2-orb {
    margin: -2px 0;
}

/* The panel */
.ux2-thinking {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff 0%, var(--ux2k-tint, #e9f0f1) 140%);
    border: 1px solid var(--ux2k-line, #e4e7ec);
    border-radius: 14px;
}

.ux2-thinking-text {
    flex: 1;
    min-width: 0;
}

.ux2-thinking-title {
    margin: 4px 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ux2k-ink, #181c32);
}

.ux2-thinking-now {
    margin: 0;
    font-size: 14px;
    color: var(--ux2k-ink-2, #3f4254);
    transition: opacity .2s ease;
}

.ux2-thinking-now.is-changing {
    opacity: 0;
}

.ux2-thinking-time {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--ux2k-muted, #6b6f85);
    font-variant-numeric: tabular-nums;
}

/* Steps: done (tick), now (a small orb), next (a dot) */
.ux2-thinking-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.ux2-thinking-steps li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--ux2k-quiet, #8a8fa3);
}

.ux2-thinking-steps .ux2-step-ico {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.ux2-thinking-steps .ux2-step-ico::before {
    width: 6px;
    height: 6px;
    content: "";
    background: currentColor;
    border-radius: 50%;
    opacity: .5;
}

.ux2-thinking-steps li.is-done {
    color: var(--ux2k-ink-2, #3f4254);
}

.ux2-thinking-steps li.is-done .ux2-step-ico::before {
    width: 16px;
    height: 16px;
    background: var(--ux2k-green, #147a4b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    opacity: 1;
}

.ux2-thinking-steps li.is-now {
    font-weight: 600;
    color: var(--ux2k-ink, #181c32);
}

.ux2-thinking-steps li.is-now .ux2-step-ico::before {
    display: none;
}

@media (max-width: 575px) {
    .ux2-thinking {
        flex-direction: column;
        gap: 10px;
    }
}
