/* ComicBaker — micro overrides on top of Tailwind CDN */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Generation placeholders ----------------------------------------- */
/* Subtle animated stripes background so a queued/rendering card reads as
   "something is happening" even before the spinner draws. */
.cb-placeholder {
    background-color: #18181b; /* zinc-900 */
    background-image: linear-gradient(
        135deg,
        rgba(255,255,255,0.025) 25%, transparent 25%,
        transparent 50%, rgba(255,255,255,0.025) 50%,
        rgba(255,255,255,0.025) 75%, transparent 75%, transparent
    );
    background-size: 28px 28px;
    animation: cb-shimmer 3s linear infinite;
}
@keyframes cb-shimmer {
    from { background-position: 0 0; }
    to   { background-position: 56px 0; }
}

/* Spinner ring */
.cb-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.12);
    border-top-color: #f59e0b; /* amber-500 — matches current step */
    animation: cb-spin 0.9s linear infinite;
}
.cb-spinner.cb-spinner-sm { width: 22px; height: 22px; border-width: 2px; }
@keyframes cb-spin { to { transform: rotate(360deg); } }

/* Status pulse dot */
.cb-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245,158,11,0.7);
    animation: cb-pulse 1.4s ease-out infinite;
}
.cb-pulse.cb-pulse-queued { background: #71717a; box-shadow: 0 0 0 0 rgba(113,113,122,0.5); }
@keyframes cb-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(245,158,11,0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0   rgba(245,158,11,0); }
}
