/* ── Alchelyst brand typography ───────────────────────────────────────────────
   Headline : News Gothic MT (Franklin Gothic as fallback)
   Intro    : Georgia Pro Light (Georgia as fallback)
   Body     : Aptos (Calibri / Segoe UI as fallback)
   ─────────────────────────────────────────────────────────────────────────── */

html, body {
    font-family: Aptos, Calibri, "Segoe UI", system-ui, sans-serif;
}

/* Headlines */
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    font-family: "News Gothic MT", "ITC Franklin Gothic", "Franklin Gothic Medium",
                 "Arial Narrow", Arial, sans-serif;
}

/* Intro / caption / overline — Georgia Pro Light */
.mud-typography-subtitle1,
.mud-typography-subtitle2,
.mud-typography-overline,
.mud-typography-caption {
    font-family: "Georgia Pro", Georgia, "Times New Roman", serif;
    font-weight: 300;
}

/* Body */
.mud-typography-body1,
.mud-typography-body2 {
    font-family: Aptos, Calibri, "Segoe UI", system-ui, sans-serif;
}

/* ── Alchelyst colour tokens ───────────────────────────────────────────────── */
:root {
    --alc-bg:         #190209;
    --alc-primary:    #5947ff;
    --alc-secondary:  #d98eff;
    --alc-mid:        #9c91ff;
    --alc-orange:     #ff8138;
    --alc-lavender:   #cdc7ff;
}

/* ── Blazor error UI ──────────────────────────────────────────────────────── */
#blazor-error-ui {
    background: #190209;
    border-top: 1px solid rgba(89,71,255,.3);
    color: #cdc7ff;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── AI Builder Teams: mission-control progress dots ─────────────────────────── */
.tp-ring {
    position: relative;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
}

.tp-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.tp-card {
    border: 1px solid var(--mud-palette-divider);
    height: 100%;
}

.tp-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 12px;
}

.tp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    background: var(--mud-palette-action-disabled);
    cursor: default;
    transition: background-color .25s ease;
}

.tp-dot-pending     { background: var(--mud-palette-action-disabled); }
.tp-dot-done        { background: var(--mud-palette-success); }
.tp-dot-warning     { background: var(--mud-palette-warning); }
.tp-dot-failed      { background: var(--mud-palette-error); }
.tp-dot-destructive { background: var(--mud-palette-error); }
.tp-dot-running     { background: var(--mud-palette-primary); animation: tp-pulse .9s ease-in-out infinite; }

@keyframes tp-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: .35; transform: scale(1.4); }
}
