.page-main .container-xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 992px) {
    .page-main .container-xl {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
}

.ai-fullscreen-stage:fullscreen {
    background: #0b1220;
    color: #e5edf7;
    width: 100vw;
    height: 100vh;
    padding: 1rem;
    overflow: auto;
}

.ai-fullscreen-stage:fullscreen .card {
    background: #111a2d;
    border-color: rgba(148, 163, 184, 0.18);
    color: #e5edf7;
}

.ai-fullscreen-stage:fullscreen .card-header,
.ai-fullscreen-stage:fullscreen .card-footer {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
}

.ai-fullscreen-stage:fullscreen .card-title,
.ai-fullscreen-stage:fullscreen h1,
.ai-fullscreen-stage:fullscreen h2,
.ai-fullscreen-stage:fullscreen h3,
.ai-fullscreen-stage:fullscreen h4,
.ai-fullscreen-stage:fullscreen h5,
.ai-fullscreen-stage:fullscreen h6,
.ai-fullscreen-stage:fullscreen strong,
.ai-fullscreen-stage:fullscreen label,
.ai-fullscreen-stage:fullscreen .form-label,
.ai-fullscreen-stage:fullscreen .list-group-item,
.ai-fullscreen-stage:fullscreen .custom-switch-description,
.ai-fullscreen-stage:fullscreen .display-4,
.ai-fullscreen-stage:fullscreen .h2,
.ai-fullscreen-stage:fullscreen .h3,
.ai-fullscreen-stage:fullscreen .h4 {
    color: #f8fbff !important;
}

.ai-fullscreen-stage:fullscreen .text-muted,
.ai-fullscreen-stage:fullscreen small,
.ai-fullscreen-stage:fullscreen .small,
.ai-fullscreen-stage:fullscreen .empty-subtitle,
.ai-fullscreen-stage:fullscreen .list-group-item.text-muted,
.ai-fullscreen-stage:fullscreen td.text-muted,
.ai-fullscreen-stage:fullscreen p.text-muted,
.ai-fullscreen-stage:fullscreen div.text-muted,
.ai-fullscreen-stage:fullscreen span.text-muted {
    color: #c7d2e4 !important;
}

.ai-fullscreen-stage:fullscreen .badge-secondary,
.ai-fullscreen-stage:fullscreen .badge-light {
    background: rgba(148, 163, 184, 0.22);
    color: #f8fbff;
}

.ai-fullscreen-stage:fullscreen .btn-ghost-secondary,
.ai-fullscreen-stage:fullscreen .btn-outline-secondary,
.ai-fullscreen-stage:fullscreen .btn-secondary {
    color: #e5edf7;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.72);
}

.ai-fullscreen-stage:fullscreen .btn-ghost-secondary:hover,
.ai-fullscreen-stage:fullscreen .btn-outline-secondary:hover,
.ai-fullscreen-stage:fullscreen .btn-secondary:hover {
    color: #ffffff;
    border-color: rgba(226, 232, 240, 0.75);
    background: rgba(148, 163, 184, 0.12);
}

.ai-fullscreen-stage:fullscreen a:not(.btn) {
    color: #8ec5ff;
}

.ai-fullscreen-stage:fullscreen .list-group-item {
    background: #111a2d;
    border-color: rgba(148, 163, 184, 0.14);
}

.ai-fullscreen-stage:fullscreen .progress {
    background: rgba(148, 163, 184, 0.18);
}

.ai-fullscreen-stage:fullscreen .table,
.ai-fullscreen-stage:fullscreen .table th,
.ai-fullscreen-stage:fullscreen .table td {
    color: #e5edf7;
    border-color: rgba(148, 163, 184, 0.14);
}

.ai-fullscreen-stage:fullscreen .ai-fullscreen-layout,
.ai-fullscreen-stage:fullscreen .ai-game-panels {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    margin: 0;
}

.ai-fullscreen-stage:fullscreen .ai-fullscreen-primary,
.ai-fullscreen-stage:fullscreen .ai-fullscreen-sidebar,
.ai-fullscreen-stage:fullscreen .ai-game-panel {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    width: calc(50% - 0.5rem);
    padding: 0;
}

.ai-fullscreen-stage:fullscreen .ai-fullscreen-primary > .card,
.ai-fullscreen-stage:fullscreen .ai-fullscreen-sidebar > .card,
.ai-fullscreen-stage:fullscreen .ai-game-panel > .card {
    height: 100%;
}

.ai-fullscreen-stage:fullscreen .ai-fullscreen-media {
    height: calc(100vh - 11rem);
    min-height: 420px;
}

.ai-fullscreen-stage:fullscreen .ai-fullscreen-media > video,
.ai-fullscreen-stage:fullscreen .ai-fullscreen-media > canvas,
.ai-fullscreen-stage:fullscreen .ai-fullscreen-media > div {
    height: 100% !important;
    max-height: none !important;
}

.ai-fullscreen-stage:fullscreen .ai-game-hud {
    margin-bottom: 1rem;
}

.ai-game-fullscreen-stage:fullscreen .ai-game-hud-back,
.ai-game-fullscreen-stage:fullscreen .ai-game-hud-metrics,
.ai-game-fullscreen-stage:fullscreen #music-toggle,
.ai-game-fullscreen-stage:fullscreen #game-over .btn-secondary {
    display: none !important;
}

.ai-game-fullscreen-stage:fullscreen .ai-game-hud .card-body {
    position: relative;
    padding: 1rem;
}

.ai-game-fullscreen-stage:fullscreen .ai-game-hud-status {
    max-width: 100%;
    flex: 1 1 auto;
}

.ai-game-fullscreen-stage:fullscreen #game-fullscreen-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.ai-game-fullscreen-stage:fullscreen .ai-game-panel .card {
    height: calc(100vh - 11rem);
}

.ai-game-fullscreen-stage:fullscreen #target-canvas {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 18rem);
}

.ai-game-fullscreen-stage:fullscreen #course-hint,
.ai-game-fullscreen-stage:fullscreen #current-pose-name {
    color: #c7d2e4 !important;
}

.ai-form-control-limited {
    max-width: 300px;
}

.ai-progress-empty {
    width: 0%;
}

.ai-video-cover-320 {
    max-height: 320px;
    object-fit: cover;
}

.ai-video-cover-380 {
    max-height: 380px;
    object-fit: cover;
}

.ai-video-cover-440 {
    max-height: 440px;
    object-fit: cover;
}

.ai-video-cover-480 {
    max-height: 480px;
    object-fit: cover;
}

.ai-overlay-fill {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.ai-canvas-overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    pointer-events: none;
    z-index: 2;
}

.ai-mirror-x {
    transform: scaleX(-1);
}

.ai-course-canvas {
    background: #f4f6fa;
    border-radius: 4px;
}

.ai-icon-3xl {
    font-size: 3rem;
}

.ai-detections-log {
    max-height: 420px;
}

.ai-clickable-fill {
    cursor: pointer;
    flex: 1;
}

.ai-sample-thumbnail {
    margin: 2px;
    border-radius: 4px;
    object-fit: cover;
}

.ai-detection-result-badge {
    font-size: 1.2rem;
}

.ai-chat-card {
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.ai-chat-messages {
    min-height: 0;
    background: #f4f6fa;
}

.ai-chat-bubble-user {
    max-width: 75%;
    background: #467fcf;
    color: #ffffff;
    display: inline-block;
    word-break: break-word;
}

.ai-chat-bubble-assistant {
    max-width: 75%;
    display: inline-block;
    word-break: break-word;
}

.ai-chat-empty-icon {
    font-size: 3rem;
    opacity: .3;
}

.ai-chat-input {
    resize: none;
    overflow: hidden;
}

.ai-fitness-zone-map {
    position: relative;
    min-height: 32rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    overflow: hidden;
}

.ai-fitness-zone-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(89, 119, 255, 0.08), transparent 62%);
}

.ai-fitness-body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ai-fitness-silhouette {
    position: relative;
    width: 12rem;
    height: 24rem;
    opacity: 0.2;
}

.ai-fitness-silhouette .head,
.ai-fitness-silhouette .torso,
.ai-fitness-silhouette .arm,
.ai-fitness-silhouette .leg {
    position: absolute;
    background: #2d3a67;
}

.ai-fitness-silhouette .head {
    width: 4rem;
    height: 4rem;
    top: 0.5rem;
    left: 4rem;
    border-radius: 50%;
}

.ai-fitness-silhouette .torso {
    width: 4.5rem;
    height: 9rem;
    top: 5rem;
    left: 3.75rem;
    border-radius: 2rem;
}

.ai-fitness-silhouette .arm {
    width: 1.3rem;
    height: 9rem;
    top: 5rem;
    border-radius: 999px;
}

.ai-fitness-silhouette .arm.left {
    left: 1.8rem;
    transform: rotate(12deg);
}

.ai-fitness-silhouette .arm.right {
    right: 1.8rem;
    transform: rotate(-12deg);
}

.ai-fitness-silhouette .leg {
    width: 1.5rem;
    height: 10rem;
    top: 13rem;
    border-radius: 999px;
}

.ai-fitness-silhouette .leg.left {
    left: 4rem;
    transform: rotate(6deg);
}

.ai-fitness-silhouette .leg.right {
    right: 4rem;
    transform: rotate(-6deg);
}

.ai-zone-hotspot {
    position: absolute;
    z-index: 1;
}

.ai-zone-hotspot input {
    display: none;
}

.ai-zone-hotspot span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(45, 58, 103, 0.12);
    color: #2d3a67;
    font-weight: 600;
    box-shadow: 0 1rem 2rem rgba(45, 58, 103, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ai-zone-hotspot input:checked + span {
    background: #2d6cdf;
    color: #fff;
    transform: translateY(-2px);
}

.ai-zone-hotspot--shoulders {
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
}

.ai-zone-hotspot--chest {
    top: 9.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.ai-zone-hotspot--arms {
    top: 10.5rem;
    left: 12%;
}

.ai-zone-hotspot--back {
    top: 13.5rem;
    right: 10%;
}

.ai-zone-hotspot--core {
    top: 15rem;
    left: 50%;
    transform: translateX(-50%);
}

.ai-zone-hotspot--glutes {
    top: 20rem;
    left: 24%;
}

.ai-zone-hotspot--legs {
    top: 23.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.ai-fitness-plan-item,
.ai-dance-plan-item {
    border: 1px solid rgba(45, 58, 103, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    height: 100%;
    background: #fff;
}

.ai-fitness-zone-chip,
.ai-dance-chip {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #edf3ff;
    color: #2d6cdf;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ai-guide-motion-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #fff3db;
    color: #9a5b00;
    border: 1px solid rgba(222, 146, 25, 0.26);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ai-fullscreen-stage:fullscreen .ai-guide-motion-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.28);
}

.ai-fitness-session-shell,
.ai-dance-session-shell {
    min-height: calc(100vh - 7rem);
}

.ai-fitness-session-card,
.ai-dance-session-card {
    border-radius: 1rem;
    overflow: hidden;
}

.ai-fitness-video-stage,
.ai-dance-video-stage {
    position: relative;
    min-height: 24rem;
    background: #111827;
}

.ai-fitness-video-hud,
.ai-dance-video-hud {
    position: absolute;
    inset: 1rem 1rem auto 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    pointer-events: none;
    z-index: 2;
}

.ai-fitness-video-metric,
.ai-dance-video-metric {
    min-width: 10rem;
    max-width: min(42vw, 14rem);
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84) 0%, rgba(15, 23, 42, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.26);
    color: #f8fbff;
    backdrop-filter: blur(10px);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ai-fitness-video-metric.is-searching,
.ai-dance-video-metric.is-searching {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84) 0%, rgba(15, 23, 42, 0.72) 100%);
    border-color: rgba(255, 255, 255, 0.14);
}

.ai-fitness-video-metric.is-close,
.ai-dance-video-metric.is-close {
    background: linear-gradient(180deg, rgba(146, 64, 14, 0.9) 0%, rgba(120, 53, 15, 0.8) 100%);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.28);
}

.ai-fitness-video-metric.is-match,
.ai-dance-video-metric.is-match {
    background: linear-gradient(180deg, rgba(6, 95, 70, 0.92) 0%, rgba(6, 78, 59, 0.82) 100%);
    border-color: rgba(52, 211, 153, 0.42);
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.28);
    transform: translateY(-1px);
}

.ai-fitness-video-metric--right,
.ai-dance-video-metric--right {
    text-align: right;
}

.ai-fitness-video-metric-label,
.ai-dance-video-metric-label {
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-fitness-video-metric-value,
.ai-dance-video-metric-value {
    margin-top: 0.2rem;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.05;
}

.ai-fitness-video-metric-subtext,
.ai-dance-video-metric-subtext {
    margin-top: 0.28rem;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.78rem;
    line-height: 1.3;
}

.ai-fitness-video-stage video,
.ai-fitness-video-stage canvas,
.ai-dance-video-stage video,
.ai-dance-video-stage canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-fitness-video-stage canvas,
.ai-dance-video-stage canvas {
    position: absolute;
    inset: 0;
}

@media (max-width: 767.98px) {
    .ai-fitness-video-hud,
    .ai-dance-video-hud {
        inset: 0.75rem 0.75rem auto 0.75rem;
        gap: 0.6rem;
    }

    .ai-fitness-video-metric,
    .ai-dance-video-metric {
        min-width: 8.5rem;
        max-width: 48%;
        padding: 0.7rem 0.85rem;
    }

    .ai-fitness-video-metric-value,
    .ai-dance-video-metric-value {
        font-size: 1.3rem;
    }

    .ai-fitness-video-metric-subtext,
    .ai-dance-video-metric-subtext {
        font-size: 0.72rem;
    }
}

.ai-fullscreen-stage:fullscreen .ai-fitness-video-hud,
.ai-fullscreen-stage:fullscreen .ai-dance-video-hud {
    inset: 1.25rem 1.25rem auto 1.25rem;
}

.ai-fullscreen-stage:fullscreen .ai-fitness-video-metric,
.ai-fullscreen-stage:fullscreen .ai-dance-video-metric {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.82) 100%);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fbff;
}

.ai-fullscreen-stage:fullscreen .ai-fitness-video-metric.is-close,
.ai-fullscreen-stage:fullscreen .ai-dance-video-metric.is-close {
    background: linear-gradient(180deg, rgba(146, 64, 14, 0.94) 0%, rgba(120, 53, 15, 0.86) 100%);
    border-color: rgba(251, 191, 36, 0.44);
}

.ai-fullscreen-stage:fullscreen .ai-fitness-video-metric.is-match,
.ai-fullscreen-stage:fullscreen .ai-dance-video-metric.is-match {
    background: linear-gradient(180deg, rgba(6, 95, 70, 0.96) 0%, rgba(6, 78, 59, 0.88) 100%);
    border-color: rgba(52, 211, 153, 0.46);
}

.ai-fitness-mirror,
.ai-dance-mirror {
    transform: scaleX(-1);
}

.ai-fitness-target-canvas,
.ai-dance-target-canvas {
    width: 100%;
    max-width: 19rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f7fbff 0%, #edf3ff 100%);
}

.ai-fitness-session-list,
.ai-dance-session-list {
    display: grid;
    gap: 0.75rem;
}

.ai-fitness-session-item,
.ai-dance-session-item {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(45, 58, 103, 0.08);
    border-radius: 0.9rem;
    background: #fff;
}

.ai-fitness-session-item.is-active,
.ai-dance-session-item.is-active {
    border-color: #2d6cdf;
    box-shadow: 0 0 0 1px rgba(45, 108, 223, 0.15);
}

.ai-fitness-session-item.is-complete,
.ai-dance-session-item.is-complete {
    background: #f0fbf4;
    border-color: rgba(16, 185, 129, 0.3);
}

.ai-fitness-session-item.is-skipped,
.ai-dance-session-item.is-skipped {
    background: #fff8e8;
    border-color: rgba(245, 158, 11, 0.28);
}

.ai-fullscreen-stage:fullscreen .ai-fitness-session-item,
.ai-fullscreen-stage:fullscreen .ai-dance-session-item {
    background: #162238;
    border-color: rgba(148, 163, 184, 0.16);
    color: #e5edf7;
}

.ai-fullscreen-stage:fullscreen .ai-fitness-session-item.is-active,
.ai-fullscreen-stage:fullscreen .ai-dance-session-item.is-active {
    background: #1b2b47;
    border-color: rgba(96, 165, 250, 0.45);
}

.ai-fullscreen-stage:fullscreen .ai-fitness-session-item.is-complete,
.ai-fullscreen-stage:fullscreen .ai-dance-session-item.is-complete {
    background: #163226;
    border-color: rgba(52, 211, 153, 0.32);
}

.ai-fullscreen-stage:fullscreen .ai-fitness-session-item.is-skipped,
.ai-fullscreen-stage:fullscreen .ai-dance-session-item.is-skipped {
    background: #3a2d16;
    border-color: rgba(251, 191, 36, 0.32);
}

.ai-fitness-match-countdown,
.ai-dance-match-countdown {
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    background: linear-gradient(180deg, #f0fbf4 0%, #e1f8eb 100%);
    padding: 1rem;
}

.ai-fullscreen-stage:fullscreen .ai-fitness-match-countdown,
.ai-fullscreen-stage:fullscreen .ai-dance-match-countdown {
    background: linear-gradient(180deg, #163226 0%, #11261d 100%);
    border-color: rgba(52, 211, 153, 0.28);
    color: #f8fbff;
}

.ai-fullscreen-stage:fullscreen .ai-fitness-match-countdown .text-muted,
.ai-fullscreen-stage:fullscreen .ai-fitness-match-countdown .small,
.ai-fullscreen-stage:fullscreen .ai-fitness-match-countdown #fitness-countdown-label,
.ai-fullscreen-stage:fullscreen .ai-fitness-match-countdown #fitness-countdown-value,
.ai-fullscreen-stage:fullscreen .ai-dance-match-countdown .text-muted,
.ai-fullscreen-stage:fullscreen .ai-dance-match-countdown .small,
.ai-fullscreen-stage:fullscreen .ai-dance-match-countdown #dance-countdown-label,
.ai-fullscreen-stage:fullscreen .ai-dance-match-countdown #dance-countdown-value {
    color: #f8fbff !important;
}

.ai-fitness-guidance-panel,
.ai-dance-guidance-panel {
    border: 1px solid rgba(45, 58, 103, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    padding: 1rem;
}

.ai-fitness-guidance-list,
.ai-dance-guidance-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-fitness-guidance-chip,
.ai-dance-guidance-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(45, 108, 223, 0.08);
    color: #1f3566;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.ai-fitness-guidance-chip.is-match,
.ai-dance-guidance-chip.is-match {
    background: rgba(16, 185, 129, 0.14);
    color: #166534;
}

.ai-fitness-guidance-chip.is-warning,
.ai-dance-guidance-chip.is-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.ai-fullscreen-stage:fullscreen .ai-fitness-guidance-panel,
.ai-fullscreen-stage:fullscreen .ai-dance-guidance-panel {
    background: #162238;
    border-color: rgba(148, 163, 184, 0.16);
}

.ai-fullscreen-stage:fullscreen .ai-fitness-guidance-chip,
.ai-fullscreen-stage:fullscreen .ai-dance-guidance-chip {
    background: rgba(96, 165, 250, 0.18);
    color: #f8fbff;
}

.ai-fullscreen-stage:fullscreen .ai-fitness-guidance-chip.is-match,
.ai-fullscreen-stage:fullscreen .ai-dance-guidance-chip.is-match {
    background: rgba(52, 211, 153, 0.2);
}

.ai-fullscreen-stage:fullscreen .ai-fitness-guidance-chip.is-warning,
.ai-fullscreen-stage:fullscreen .ai-dance-guidance-chip.is-warning {
    background: rgba(251, 191, 36, 0.2);
}

#fitness-coach-session:fullscreen .ai-fitness-hide-in-fullscreen {
    display: none !important;
}

#dance-session:fullscreen .ai-fitness-hide-in-fullscreen {
    display: none !important;
}

#dance-session:fullscreen .ai-dance-hide-in-fullscreen {
    display: none !important;
}

.ai-dance-session-shell {
    --ai-dance-accent: #d97706;
    --ai-dance-accent-soft: rgba(217, 119, 6, 0.16);
    --ai-dance-panel: linear-gradient(180deg, #fffaf2 0%, #fff5e6 100%);
    --ai-dance-target: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    --ai-dance-hud: linear-gradient(180deg, rgba(120, 53, 15, 0.9) 0%, rgba(120, 53, 15, 0.78) 100%);
}

.ai-dance-style--salsa {
    --ai-dance-accent: #dc2626;
    --ai-dance-accent-soft: rgba(220, 38, 38, 0.16);
    --ai-dance-panel: linear-gradient(180deg, #fff6f5 0%, #ffe7e5 100%);
    --ai-dance-target: linear-gradient(180deg, #fff5f5 0%, #ffe2e2 100%);
    --ai-dance-hud: linear-gradient(180deg, rgba(127, 29, 29, 0.92) 0%, rgba(127, 29, 29, 0.8) 100%);
}

.ai-dance-style--merengue {
    --ai-dance-accent: #ea580c;
    --ai-dance-accent-soft: rgba(234, 88, 12, 0.17);
    --ai-dance-panel: linear-gradient(180deg, #fff8ef 0%, #ffedd5 100%);
    --ai-dance-target: linear-gradient(180deg, #fff7ed 0%, #fed7aa 100%);
    --ai-dance-hud: linear-gradient(180deg, rgba(154, 52, 18, 0.92) 0%, rgba(124, 45, 18, 0.82) 100%);
}

.ai-dance-style--bachata {
    --ai-dance-accent: #db2777;
    --ai-dance-accent-soft: rgba(219, 39, 119, 0.16);
    --ai-dance-panel: linear-gradient(180deg, #fff7fb 0%, #fce7f3 100%);
    --ai-dance-target: linear-gradient(180deg, #fdf2f8 0%, #fbcfe8 100%);
    --ai-dance-hud: linear-gradient(180deg, rgba(131, 24, 67, 0.92) 0%, rgba(112, 26, 72, 0.82) 100%);
}

.ai-dance-style--hiphop {
    --ai-dance-accent: #2563eb;
    --ai-dance-accent-soft: rgba(37, 99, 235, 0.18);
    --ai-dance-panel: linear-gradient(180deg, #f4f7ff 0%, #dbeafe 100%);
    --ai-dance-target: linear-gradient(180deg, #eff6ff 0%, #bfdbfe 100%);
    --ai-dance-hud: linear-gradient(180deg, rgba(30, 64, 175, 0.92) 0%, rgba(30, 58, 138, 0.82) 100%);
}

.ai-dance-session-shell .ai-dance-session-card {
    background: var(--ai-dance-panel);
    border: 1px solid var(--ai-dance-accent-soft);
}

.ai-dance-session-shell .ai-dance-video-metric.is-searching {
    background: var(--ai-dance-hud);
    border-color: rgba(255, 255, 255, 0.18);
}

.ai-dance-session-shell .ai-dance-session-item.is-active {
    border-color: var(--ai-dance-accent);
    box-shadow: 0 0 0 1px var(--ai-dance-accent-soft);
}

.ai-dance-session-shell .ai-dance-plan-item,
.ai-dance-session-shell .ai-dance-session-item {
    border-color: var(--ai-dance-accent-soft);
}

.ai-dance-session-shell .ai-dance-chip,
.ai-dance-session-shell .badge-primary {
    background: var(--ai-dance-accent-soft);
    color: var(--ai-dance-accent);
}

.ai-dance-session-shell .ai-dance-target-canvas {
    background: var(--ai-dance-target);
    box-shadow: inset 0 0 0 1px var(--ai-dance-accent-soft);
}

.ai-dance-session-shell #dance-progress-bar {
    background: var(--ai-dance-accent);
}

.ai-dance-session-shell .btn-outline-primary {
    border-color: var(--ai-dance-accent);
    color: var(--ai-dance-accent);
}

.ai-dance-session-shell .btn-outline-primary:hover,
.ai-dance-session-shell .btn-outline-primary:focus {
    background: var(--ai-dance-accent);
    color: #fff;
}

.ai-fullscreen-stage.ai-dance-session-shell:fullscreen .ai-dance-session-card {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.2);
}

.ai-fullscreen-stage.ai-dance-session-shell:fullscreen .ai-dance-session-item.is-active {
    border-color: var(--ai-dance-accent);
    box-shadow: 0 0 0 1px var(--ai-dance-accent-soft);
}

.ai-photo-booth-studio {
    --ai-photo-booth-accent: #0f766e;
    --ai-photo-booth-accent-soft: rgba(15, 118, 110, 0.14);
    --ai-photo-booth-panel: linear-gradient(180deg, #f4fffd 0%, #ebfffb 100%);
    --ai-photo-booth-frame: linear-gradient(180deg, #08111f 0%, #10223a 100%);
}

.ai-photo-booth-studio .card {
    border-color: var(--ai-photo-booth-accent-soft);
}

.ai-photo-booth-stage-card,
.ai-photo-booth-output-card {
    background: var(--ai-photo-booth-panel);
}

.ai-photo-booth-stage,
.ai-photo-booth-output-shell {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--ai-photo-booth-frame);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ai-photo-booth-stage {
    aspect-ratio: 3 / 4;
    min-height: 520px;
}

.ai-photo-booth-output-shell {
    aspect-ratio: 3 / 4;
}

.ai-photo-booth-video,
.ai-photo-booth-preview,
.ai-photo-booth-capture {
    display: block;
    width: 100%;
    height: 100%;
}

.ai-photo-booth-video {
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

.ai-photo-booth-preview,
.ai-photo-booth-capture {
    position: relative;
    z-index: 1;
    border-radius: 1.5rem;
}

.ai-photo-booth-output-card #photo-booth-export-notes {
    border-top: 1px solid rgba(15, 118, 110, 0.16);
}

.ai-photo-booth-output-card #photo-booth-export-notes .list-group-item {
    background: transparent;
    border-color: rgba(15, 118, 110, 0.16);
    color: #10223a;
}

.ai-photo-booth-output-card #photo-booth-export-notes .text-muted {
    color: rgba(16, 34, 58, 0.72) !important;
}

@media (max-width: 991.98px) {
    .ai-photo-booth-stage {
        min-height: 420px;
    }
}

.ai-image-captioning-studio {
    --ai-caption-accent: #0f766e;
    --ai-caption-accent-soft: rgba(15, 118, 110, 0.14);
    --ai-caption-panel: linear-gradient(180deg, #f5fffd 0%, #ebfaf6 100%);
    --ai-caption-frame: linear-gradient(180deg, #082032 0%, #0f3250 100%);
}

.ai-image-captioning-studio .card,
.ai-image-captioning-overview .card {
    border-color: var(--ai-caption-accent-soft);
}

.ai-caption-preview-card,
.ai-caption-output-card {
    background: var(--ai-caption-panel);
}

.ai-caption-preview-shell {
    position: relative;
    min-height: 420px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--ai-caption-frame);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ai-caption-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: contain;
    background: rgba(7, 17, 31, 0.6);
}

.ai-caption-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.ai-caption-output-block {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(15, 118, 110, 0.16);
    margin-bottom: 1rem;
}

.ai-caption-output-field {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 118, 110, 0.18);
    color: #10223a;
    resize: vertical;
}

.ai-image-captioning-studio #image-captioning-analysis-notes {
    border-top: 1px solid rgba(15, 118, 110, 0.16);
}

.ai-image-captioning-studio #image-captioning-analysis-notes .list-group-item {
    background: transparent;
    border-color: rgba(15, 118, 110, 0.16);
    color: #10223a;
}

.ai-image-captioning-studio #image-captioning-analysis-notes .text-muted {
    color: rgba(16, 34, 58, 0.72) !important;
}

@media (max-width: 991.98px) {
    .ai-caption-preview-shell,
    .ai-caption-preview-image,
    .ai-caption-preview-empty {
        min-height: 320px;
    }
}

.ai-invoice-extractor-studio {
    --ai-invoice-accent: #0f766e;
    --ai-invoice-accent-soft: rgba(15, 118, 110, 0.14);
    --ai-invoice-panel: linear-gradient(180deg, #f5fffd 0%, #effcf7 100%);
    --ai-invoice-frame: linear-gradient(180deg, #081a2c 0%, #10304a 100%);
}

.ai-invoice-extractor-studio .card,
.ai-invoice-extractor-overview .card {
    border-color: var(--ai-invoice-accent-soft);
}

.ai-invoice-capture-card,
.ai-invoice-output-card {
    background: var(--ai-invoice-panel);
}

.ai-invoice-preview-shell {
    position: relative;
    min-height: 440px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--ai-invoice-frame);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ai-invoice-preview-video,
.ai-invoice-preview-image,
.ai-invoice-preview-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: contain;
    background: rgba(7, 17, 31, 0.62);
}

.ai-invoice-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.ai-invoice-field-block,
.ai-invoice-output-block,
.ai-invoice-table-wrap {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(15, 118, 110, 0.16);
}

.ai-invoice-output-field {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 118, 110, 0.18);
    color: #10223a;
    resize: vertical;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.ai-invoice-table-wrap table {
    background: transparent;
}

.ai-invoice-table-wrap thead th {
    border-top: 0;
    color: rgba(16, 34, 58, 0.72);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-invoice-extractor-studio #invoice-extractor-analysis-notes {
    border-top: 1px solid rgba(15, 118, 110, 0.16);
}

.ai-invoice-extractor-studio #invoice-extractor-analysis-notes .list-group-item {
    background: transparent;
    border-color: rgba(15, 118, 110, 0.16);
    color: #10223a;
}

.ai-invoice-extractor-studio #invoice-extractor-analysis-notes .text-muted {
    color: rgba(16, 34, 58, 0.72) !important;
}

@media (max-width: 991.98px) {
    .ai-invoice-preview-shell,
    .ai-invoice-preview-video,
    .ai-invoice-preview-image,
    .ai-invoice-preview-canvas,
    .ai-invoice-preview-empty {
        min-height: 320px;
    }
}

.ai-document-assistant-studio {
    --ai-document-accent: #6d28d9;
    --ai-document-accent-soft: rgba(109, 40, 217, 0.14);
    --ai-document-panel: linear-gradient(180deg, #fcfaff 0%, #f6f0ff 100%);
    --ai-document-card: rgba(255, 255, 255, 0.68);
}

.ai-document-assistant-studio .card,
.ai-document-assistant-overview .card {
    border-color: var(--ai-document-accent-soft);
}

.ai-document-inspector-card,
.ai-document-chat-card {
    background: var(--ai-document-panel);
}

.ai-document-library-empty {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(109, 40, 217, 0.2);
    border-radius: 1rem;
    color: rgba(76, 29, 149, 0.72);
    background: rgba(255, 255, 255, 0.4);
}

.ai-document-library-empty.d-none {
    display: none;
}

.ai-document-library-card {
    border: 1px solid rgba(109, 40, 217, 0.16);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--ai-document-card);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    height: 100%;
}

.ai-document-library-card:hover,
.ai-document-library-card.is-selected {
    border-color: rgba(109, 40, 217, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.08);
}

.ai-document-chat-messages {
    min-height: 420px;
    max-height: 620px;
    overflow: auto;
}

.ai-document-assistant-studio #document-assistant-page-list .list-group-item {
    background: transparent;
    border-color: rgba(109, 40, 217, 0.12);
}

@media (max-width: 991.98px) {
    .ai-document-chat-messages {
        min-height: 320px;
    }
}
