.automation-health {
    --automation-status-rgb: 74, 222, 128;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #111827;
    border-left: 0 solid transparent;
    border-right: 0 solid transparent;
    border-radius: 0;
    background: #020202;
    padding: 10px 0;
    display: grid;
    grid-template-columns:
        max-content
        minmax(190px, 1fr)
        minmax(250px, 1.2fr)
        minmax(90px, 0.5fr)
        minmax(210px, 1fr);
    justify-content: stretch;
    gap: clamp(12px, 1.3vw, 24px) clamp(14px, 1.45vw, 28px);
    align-items: center;
    min-height: 42px;
}

.automation-health.is-cadence-open {
    row-gap: 7px;
    border-top-color: rgba(var(--automation-status-rgb), 0.42);
    border-bottom-color: rgba(var(--automation-status-rgb), 0.2);
    border-radius: 0;
    padding: 10px 0 11px;
    background:
        linear-gradient(180deg, rgba(var(--automation-status-rgb), 0.034), rgba(var(--automation-status-rgb), 0.016)),
        #020202;
    box-shadow:
        inset 0 1px 0 rgba(var(--automation-status-rgb), 0.07),
        inset 0 -1px 0 rgba(var(--automation-status-rgb), 0.045);
}

.automation-health-detail {
    grid-column: 1 / -1;
    box-sizing: border-box;
    border-top: 1px solid rgba(var(--automation-status-rgb), 0.12);
    padding: 8px 0 0;
    background: transparent;
    display: grid;
    gap: 9px;
    min-width: 0;
    overflow: visible;
}

.automation-health-detail[hidden] {
    display: none;
}

body.has-screen-surface-fullscreen {
    overflow: hidden;
}

.screen-surface-fullscreen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(var(--screen-surface-accent-rgb, 96, 165, 250), 0.28);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(var(--screen-surface-accent-rgb, 96, 165, 250), 0.11), rgba(var(--screen-surface-accent-rgb, 96, 165, 250), 0.035)),
        rgba(2, 6, 23, 0.82);
    color: #dcecff;
    font-family: var(--font-mono, inherit);
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.screen-surface-fullscreen-button:hover,
.screen-surface-fullscreen-button:focus-visible,
.screen-surface-fullscreen-button.is-active {
    border-color: rgba(var(--screen-surface-accent-rgb, 96, 165, 250), 0.5);
    background:
        linear-gradient(180deg, rgba(var(--screen-surface-accent-rgb, 96, 165, 250), 0.16), rgba(var(--screen-surface-accent-rgb, 96, 165, 250), 0.055)),
        rgba(2, 6, 23, 0.92);
    color: #ffffff;
    outline: none;
}

.screen-surface-fullscreen-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background:
        linear-gradient(currentColor, currentColor) left top / 6px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) left top / 1.5px 6px no-repeat,
        linear-gradient(currentColor, currentColor) right top / 6px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) right top / 1.5px 6px no-repeat,
        linear-gradient(currentColor, currentColor) left bottom / 6px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) left bottom / 1.5px 6px no-repeat,
        linear-gradient(currentColor, currentColor) right bottom / 6px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) right bottom / 1.5px 6px no-repeat;
    opacity: 0.92;
}

.screen-surface-fullscreen-button.is-active .screen-surface-fullscreen-icon {
    background:
        linear-gradient(currentColor, currentColor) 2px 3px / 5px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) 3px 2px / 1.5px 5px no-repeat,
        linear-gradient(currentColor, currentColor) calc(100% - 2px) 3px / 5px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) calc(100% - 3px) 2px / 1.5px 5px no-repeat,
        linear-gradient(currentColor, currentColor) 2px calc(100% - 3px) / 5px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) 3px calc(100% - 2px) / 1.5px 5px no-repeat,
        linear-gradient(currentColor, currentColor) calc(100% - 2px) calc(100% - 3px) / 5px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) calc(100% - 3px) calc(100% - 2px) / 1.5px 5px no-repeat;
}

@keyframes screenSurfaceFullscreenEnter {
    from {
        opacity: 0;
        transform: scale(0.988);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes screenSurfaceFullscreenExit {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.992);
    }
}

.automation-fleet-console {
    --screen-surface-accent-rgb: var(--automation-status-rgb);
    position: relative;
    display: grid;
    gap: 0;
    min-width: 0;
    overflow: visible;
}

.automation-agent-name,
.automation-agent-focus,
.automation-agent-vitals,
.automation-agent-status,
.automation-agent-time {
    font-size: 0.64rem;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: var(--font-weight-standard);
}

.automation-agent-line-frame {
    order: 1;
    min-width: 0;
    overflow: visible;
    padding-top: 26px;
}

.automation-agent-line-scale-shell {
    min-width: 0;
}

.automation-agent-line {
    --station-card-height: 104px;
    --station-row-gap: 22px;
    --station-column-gap: clamp(12px, 1.2vw, 22px);
    --station-flow-y: 14px;
    --station-flow-x: 10px;
    order: 1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(166px, 1fr));
    grid-template-rows: repeat(4, var(--station-card-height));
    align-items: start;
    justify-content: stretch;
    gap: var(--station-row-gap) var(--station-column-gap);
    min-width: 0;
    padding: 20px 14px 22px;
    overflow-x: visible;
    overflow-y: visible;
    isolation: isolate;
}

.automation-agent-station {
    --agent-accent: #9ca3af;
    --agent-health: #4ade80;
    --agent-hover-color: var(--agent-accent);
    --agent-image: url("/img/agents/agent.png");
    --agent-profile-bg: rgba(30, 41, 59, 0.92);
    position: relative;
    z-index: 1;
    display: block;
    min-width: 0;
    height: 100%;
    color: inherit;
}

.automation-agent-station:nth-child(1),
.automation-agent-station:nth-child(2),
.automation-agent-station:nth-child(3),
.automation-agent-station:nth-child(4) {
    grid-column: 1;
}

.automation-agent-station:nth-child(5) {
    grid-column: 2;
}

.automation-agent-station:nth-child(6),
.automation-agent-station:nth-child(7),
.automation-agent-station:nth-child(8),
.automation-agent-station:nth-child(9) {
    grid-column: 3;
}

.automation-agent-station:nth-child(10) {
    grid-column: 4;
}

.automation-agent-station:nth-child(11),
.automation-agent-station:nth-child(12),
.automation-agent-station:nth-child(13) {
    grid-column: 5;
}

.automation-agent-station:nth-child(1),
.automation-agent-station:nth-child(9),
.automation-agent-station:nth-child(10),
.automation-agent-station:nth-child(11) {
    grid-row: 1;
}

.automation-agent-station:nth-child(2),
.automation-agent-station:nth-child(8),
.automation-agent-station:nth-child(12) {
    grid-row: 2;
}

.automation-agent-station:nth-child(3),
.automation-agent-station:nth-child(7),
.automation-agent-station:nth-child(13) {
    grid-row: 3;
}

.automation-agent-station:nth-child(4),
.automation-agent-station:nth-child(5),
.automation-agent-station:nth-child(6) {
    grid-row: 4;
}

.automation-agent-station::before,
.automation-agent-station::after {
    content: "";
    position: absolute;
    z-index: 0;
    background:
        linear-gradient(90deg,
            rgba(51, 65, 85, 0.18),
            color-mix(in srgb, var(--agent-accent) 44%, rgba(148, 163, 184, 0.52)));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--agent-accent) 7%, transparent),
        0 0 8px color-mix(in srgb, var(--agent-accent) 9%, transparent);
    opacity: 0.32;
    pointer-events: none;
}

.automation-agent-station::before {
    display: none;
    left: 50%;
    width: var(--station-flow-y);
    height: var(--station-flow-y);
    transform: translateX(-50%);
    background: color-mix(in srgb, var(--agent-accent) 34%, rgba(100, 116, 139, 0.66));
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.automation-agent-station::after {
    display: none;
    left: calc(100% + ((var(--station-column-gap) - var(--station-flow-x)) / 2));
    top: 50%;
    width: var(--station-flow-x);
    height: 12px;
    transform: translateY(-50%);
    background: color-mix(in srgb, var(--agent-accent) 34%, rgba(100, 116, 139, 0.66));
    clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.automation-agent-station:nth-child(1)::before,
.automation-agent-station:nth-child(2)::before,
.automation-agent-station:nth-child(3)::before,
.automation-agent-station:nth-child(11)::before,
.automation-agent-station:nth-child(12)::before {
    display: block;
    top: calc(100% + ((var(--station-row-gap) - var(--station-flow-y)) / 2));
}

.automation-agent-station:nth-child(4)::after,
.automation-agent-station:nth-child(5)::after,
.automation-agent-station:nth-child(9)::after,
.automation-agent-station:nth-child(10)::after {
    display: block;
}

.automation-agent-station:nth-child(6)::before,
.automation-agent-station:nth-child(7)::before,
.automation-agent-station:nth-child(8)::before {
    display: block;
    bottom: calc(100% + ((var(--station-row-gap) - var(--station-flow-y)) / 2));
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.automation-agent-station.is-agent-flowing::before,
.automation-agent-station.is-agent-flowing::after {
    opacity: 0.58;
    background: color-mix(in srgb, var(--agent-accent) 54%, rgba(148, 163, 184, 0.54));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--agent-accent) 12%, transparent),
        0 0 14px color-mix(in srgb, var(--agent-accent) 18%, transparent);
    animation: automationAgentFlowPulse 2.4s ease-in-out infinite;
}

.automation-agent-station-summary {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    justify-items: stretch;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 100%;
    min-height: 0;
    padding: 12px 14px 16px 14px;
    overflow: hidden;
    list-style: none;
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--agent-health) 20%, rgba(148, 163, 184, 0.16));
    border-radius: 8px;
    outline: 1px solid transparent;
    outline-offset: -1px;
    background:
        radial-gradient(circle at 16% 50%, color-mix(in srgb, var(--agent-accent) 13%, transparent), transparent 54%),
        linear-gradient(180deg, rgba(8, 13, 23, 0.972), rgba(2, 6, 23, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 10px 22px rgba(0, 0, 0, 0.14);
    contain: paint;
    transition:
        border-color 80ms ease-out,
        outline-color 80ms ease-out;
}

.automation-agent-station-summary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 24% 50%, color-mix(in srgb, var(--agent-hover-color) 26%, transparent), transparent 58%),
        linear-gradient(180deg, color-mix(in srgb, var(--agent-hover-color) 10%, transparent), transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 80ms ease-out;
}

.automation-agent-station-summary::-webkit-details-marker {
    display: none;
}

.automation-agent-glyph {
    position: absolute;
    z-index: 1;
    right: var(--agent-role-glyph-right, 7px);
    top: var(--agent-role-glyph-top, 5px);
    width: var(--agent-role-glyph-size, 28px);
    height: var(--agent-role-glyph-size, 28px);
    color: color-mix(in srgb, var(--agent-accent) 86%, #e0f2fe);
    opacity: 0.42;
    pointer-events: none;
    transition: opacity 80ms ease-out;
}

.automation-agent-glyph svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.automation-agent-ai-glyph {
    position: absolute;
    z-index: 1;
    right: auto;
    top: auto;
    left: var(--agent-ai-glyph-left, 7px);
    bottom: var(--agent-ai-glyph-bottom, 6px);
    width: var(--agent-ai-glyph-size, 18px);
    height: var(--agent-ai-glyph-size, 18px);
    color: color-mix(in srgb, var(--agent-accent) 88%, #f8fafc);
    background: currentColor;
    -webkit-mask: url("/img/icons/ai-capability.png") center / contain no-repeat;
    mask: url("/img/icons/ai-capability.png") center / contain no-repeat;
    opacity: 0.92;
    pointer-events: none;
    filter: none;
    transition: opacity 80ms ease-out;
}

.automation-agent-station-summary:hover,
.automation-agent-station[open] .automation-agent-station-summary,
.automation-agent-station-summary:focus-visible,
.automation-agent-station.is-linked-agent .automation-agent-station-summary {
    border-color: color-mix(in srgb, var(--agent-hover-color) 76%, rgba(148, 163, 184, 0.2));
    outline-color: color-mix(in srgb, var(--agent-hover-color) 28%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 10px 22px rgba(0, 0, 0, 0.14),
        0 0 0 1px color-mix(in srgb, var(--agent-hover-color) 18%, transparent),
        0 0 24px color-mix(in srgb, var(--agent-hover-color) 22%, transparent);
}

.automation-agent-station-summary:hover::before,
.automation-agent-station[open] .automation-agent-station-summary::before,
.automation-agent-station-summary:focus-visible::before,
.automation-agent-station.is-linked-agent .automation-agent-station-summary::before {
    opacity: 1;
}

.automation-agent-station-summary:hover .automation-agent-glyph,
.automation-agent-station-summary:focus-visible .automation-agent-glyph,
.automation-agent-station.is-linked-agent .automation-agent-glyph {
    opacity: 0.64;
}

.automation-agent-station-summary:hover .automation-agent-ai-glyph,
.automation-agent-station-summary:focus-visible .automation-agent-ai-glyph,
.automation-agent-station.is-linked-agent .automation-agent-ai-glyph {
    opacity: 1;
}

.automation-agent-station.is-linked-agent .automation-agent-station-summary,
.automation-agent-station.is-linked-agent .automation-agent-glyph,
.automation-agent-station.is-linked-agent .automation-agent-ai-glyph {
    transition: none;
}

.automation-agent-station.is-agent-recent .automation-agent-station-summary {
    border-color: color-mix(in srgb, var(--agent-health) 38%, rgba(148, 163, 184, 0.18));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 10px 24px rgba(0, 0, 0, 0.16),
        0 0 18px color-mix(in srgb, var(--agent-accent) 9%, transparent);
}

.automation-agent-station.is-agent-active .automation-agent-station-summary,
.automation-agent-station.is-agent-queued .automation-agent-station-summary {
    border-color: color-mix(in srgb, var(--agent-health) 58%, rgba(148, 163, 184, 0.18));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px color-mix(in srgb, var(--agent-health) 12%, transparent),
        0 12px 28px rgba(0, 0, 0, 0.2),
        0 0 22px color-mix(in srgb, var(--agent-health) 14%, transparent);
}

.automation-agent-station.is-agent-recent .automation-agent-station-summary:hover,
.automation-agent-station.is-agent-active .automation-agent-station-summary:hover,
.automation-agent-station.is-agent-queued .automation-agent-station-summary:hover,
.automation-agent-station.is-agent-recent .automation-agent-station-summary:focus-visible,
.automation-agent-station.is-agent-active .automation-agent-station-summary:focus-visible,
.automation-agent-station.is-agent-queued .automation-agent-station-summary:focus-visible,
.automation-agent-station.is-agent-recent.is-linked-agent .automation-agent-station-summary,
.automation-agent-station.is-agent-active.is-linked-agent .automation-agent-station-summary,
.automation-agent-station.is-agent-queued.is-linked-agent .automation-agent-station-summary {
    border-color: color-mix(in srgb, var(--agent-hover-color) 76%, rgba(148, 163, 184, 0.2));
    outline-color: color-mix(in srgb, var(--agent-hover-color) 28%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.065),
        0 0 0 1px color-mix(in srgb, var(--agent-hover-color) 20%, transparent),
        0 12px 28px rgba(0, 0, 0, 0.2),
        0 0 26px color-mix(in srgb, var(--agent-hover-color) 24%, transparent);
}

.automation-agent-station.is-agent-active .automation-agent-badge,
.automation-agent-station.is-agent-queued .automation-agent-badge,
.automation-agent-station.is-agent-recent .automation-agent-badge {
    box-shadow:
        0 0 0 3px #020617,
        0 0 12px color-mix(in srgb, var(--agent-health) 72%, transparent);
}

.automation-agent-station.is-agent-active .automation-agent-next-run-icon {
    animation: automationAgentRuntimeSpin 1.6s linear infinite;
}

.automation-agent-avatar {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    justify-self: center;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--agent-accent) 76%, transparent);
    background:
        radial-gradient(ellipse at 50% 68%, rgba(0, 0, 0, 0.36) 0 24%, transparent 48%),
        radial-gradient(circle at 50% 45%,
            color-mix(in srgb, var(--agent-profile-bg) 74%, var(--agent-accent)) 0 50%,
            color-mix(in srgb, var(--agent-profile-bg) 48%, rgba(2, 6, 23, 0.92)) 72%,
            rgba(2, 6, 23, 0.98) 100%),
        radial-gradient(circle at 42% 24%, color-mix(in srgb, var(--agent-accent) 22%, rgba(226, 232, 240, 0.08)), transparent 34%),
        linear-gradient(145deg,
            color-mix(in srgb, var(--agent-profile-bg) 68%, rgba(15, 23, 42, 0.94)),
            rgba(3, 7, 18, 0.98) 68%,
            rgba(2, 6, 23, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.075),
        inset 0 -10px 18px rgba(2, 6, 23, 0.42),
        0 8px 18px rgba(0, 0, 0, 0.22),
        0 0 16px color-mix(in srgb, var(--agent-accent) 14%, transparent);
}

.automation-agent-badge {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: var(--agent-health);
    box-shadow:
        0 0 0 3px #020617,
        0 0 10px color-mix(in srgb, var(--agent-health) 64%, transparent);
    z-index: 4;
}

.automation-agent-avatar::before {
    content: "";
    position: absolute;
    inset: 4px;
    background-image: var(--agent-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 108% auto;
    transform: translateX(2px);
    filter:
        drop-shadow(0 5px 6px rgba(0, 0, 0, 0.46))
        drop-shadow(0 0 7px color-mix(in srgb, var(--agent-accent) 12%, transparent));
    z-index: 2;
}

.automation-agent-avatar::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: 1;
    border-radius: inherit;
    background:
        radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.06), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
        repeating-radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.03) 0 0.8px, transparent 0.8px 4px),
        radial-gradient(circle at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.26) 100%);
    opacity: 0.42;
    pointer-events: none;
}

.automation-agent-avatar-ada .automation-agent-avatar::before {
    inset: 1px;
    background-size: 112% auto;
}

.automation-agent-running,
.automation-agent-re-up,
.automation-agent-refreshing {
    --agent-health: #38bdf8;
    --agent-status-text: #031525;
}

.automation-agent-warn,
.automation-agent-attention,
.automation-agent-degraded {
    --agent-health: #fbbf24;
    --agent-hover-color: var(--agent-health);
    --agent-status-text: #151001;
}

.automation-agent-scheduled,
.automation-agent-pending {
    --agent-health: #a78bfa;
    --agent-status-text: #10091f;
}

.automation-agent-failed,
.automation-agent-error,
.automation-agent-down {
    --agent-health: #f87171;
    --agent-hover-color: var(--agent-health);
    --agent-status-text: #ffffff;
}

.automation-agent-ok,
.automation-agent-healthy,
.automation-agent-clear {
    --agent-status-text: #03150c;
}

.automation-agent-mood-happy {
    --agent-health: #4ade80;
    --agent-status-text: #03150c;
}

.automation-agent-mood-toiling {
    --agent-health: #38bdf8;
    --agent-status-text: #031525;
}

.automation-agent-mood-wobbly {
    --agent-health: #fbbf24;
    --agent-status-text: #151001;
}

.automation-agent-mood-bonked {
    --agent-health: #f87171;
    --agent-status-text: #ffffff;
}

.automation-agent-mood-lurking {
    --agent-health: #a78bfa;
    --agent-status-text: #10091f;
}

.automation-agent-identity {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    width: 100%;
    gap: 7px;
    text-align: left;
    align-self: center;
    padding-right: 4px;
}

.automation-agent-name {
    display: block;
    width: 100%;
    min-width: 0;
    color: #dbeafe;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
    font-size: var(--agent-name-size, 0.92rem);
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 640;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.automation-agent-name[data-agent-name-fitted="true"] {
    text-overflow: clip;
}

.automation-agent-focus {
    min-width: 0;
    max-width: min(100%, 16ch);
    display: block;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-overflow: clip;
    white-space: nowrap;
}

.automation-agent-focus {
    color: #94a3b8;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 0.62rem;
    line-height: 1.18;
    letter-spacing: 0;
    font-weight: 520;
    text-transform: uppercase;
}

.automation-agent-runtime {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    max-width: calc(100% - 20px);
    min-width: 0;
}

.automation-agent-next-run {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    width: auto;
    max-width: min(100%, 108px);
    min-width: 0;
    overflow: hidden;
    color: color-mix(in srgb, var(--agent-accent) 58%, #94a3b8);
    font-family: var(--font-mono, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif);
    font-size: 0.56rem;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 720;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.78;
}

.automation-agent-next-run[hidden] {
    display: none;
}

.automation-agent-next-run-icon {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    color: currentColor;
    opacity: 0.84;
}

.automation-agent-next-run-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.automation-agent-next-run [data-agent-next-run-value] {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.automation-agent-station.is-agent-active .automation-agent-next-run {
    color: color-mix(in srgb, var(--agent-health) 86%, #e0f2fe);
    opacity: 1;
    font-weight: 820;
}

.automation-agent-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 76px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 0;
    color: var(--agent-status-text, #02120a);
    background: color-mix(in srgb, var(--agent-health) 88%, #ffffff);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 16px color-mix(in srgb, var(--agent-health) 18%, transparent);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 0.54rem;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 760;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes automationAgentFlowPulse {
    0%,
    100% {
        opacity: 0.36;
        filter: none;
    }

    50% {
        opacity: 0.72;
        filter: drop-shadow(0 0 5px color-mix(in srgb, var(--agent-accent) 22%, transparent));
    }
}

@keyframes automationAgentRuntimeSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .automation-agent-station.is-agent-flowing::before,
    .automation-agent-station.is-agent-flowing::after,
    .automation-agent-station.is-agent-active .automation-agent-next-run-icon {
        animation: none;
    }
}

.automation-fleet-toolbar {
    order: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0 14px -18px;
    position: relative;
    z-index: 4;
}

.automation-fleet-toolbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin-left: auto;
}

.automation-agent-bucket-legend {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 16px);
    min-width: 0;
    max-width: min(100%, 620px);
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: rgba(226, 232, 240, 0.76);
    font-family: var(--font-mono, inherit);
    font-size: 0.58rem;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.automation-agent-bucket-legend-item {
    --agent-bucket-color: #94a3b8;
    --agent-bucket-color-alt: var(--agent-bucket-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.automation-agent-bucket-title {
    font-family: var(--analysis-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.automation-agent-bucket-legend-item > span {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--agent-bucket-color);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--agent-bucket-color) 34%, transparent),
        0 0 12px color-mix(in srgb, var(--agent-bucket-color) 34%, transparent);
}

.automation-agent-bucket-legend-item > strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-weight: 780;
    text-overflow: ellipsis;
}

.automation-agent-bucket-field {
    --agent-bucket-color: #476A9F;
}

.automation-agent-bucket-wire {
    --agent-bucket-color: #2F6F68;
}

.automation-agent-bucket-decision {
    --agent-bucket-color: #8A4F7D;
}

.automation-agent-bucket-backstage {
    --agent-bucket-color: #5F6B7A;
}

.automation-agent-vitals-button,
.automation-agent-fullscreen-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(var(--automation-status-rgb), 0.28);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(var(--automation-status-rgb), 0.11), rgba(var(--automation-status-rgb), 0.035)),
        rgba(2, 6, 23, 0.82);
    color: #dbeafe;
    font-family: var(--font-mono, inherit);
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.automation-agent-vitals-button:hover,
.automation-agent-vitals-button:focus-visible,
.automation-agent-vitals-button.is-open,
.automation-agent-fullscreen-button:hover,
.automation-agent-fullscreen-button:focus-visible,
.automation-agent-fullscreen-button.is-active {
    border-color: rgba(var(--automation-status-rgb), 0.5);
    background:
        linear-gradient(180deg, rgba(var(--automation-status-rgb), 0.16), rgba(var(--automation-status-rgb), 0.055)),
        rgba(2, 6, 23, 0.92);
    outline: none;
}

.automation-agent-vitals-button.is-open {
    border-color: rgba(var(--automation-status-rgb), 0.62);
    background:
        linear-gradient(180deg, rgba(var(--automation-status-rgb), 0.22), rgba(var(--automation-status-rgb), 0.08)),
        rgba(2, 6, 23, 0.94);
    color: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(var(--automation-status-rgb), 0.08),
        0 0 0 3px rgba(var(--automation-status-rgb), 0.06);
}

.automation-agent-fullscreen-button {
    color: #dcecff;
}

.automation-agent-vitals-button-icon {
    display: inline-grid;
    grid-template-columns: repeat(3, 3px);
    align-items: end;
    gap: 2px;
    width: 13px;
    height: 13px;
}

.automation-agent-vitals-button-icon {
    background:
        linear-gradient(to top, color-mix(in srgb, rgb(var(--automation-status-rgb)) 72%, #e5e7eb) 0 100%) left bottom / 3px 7px no-repeat,
        linear-gradient(to top, color-mix(in srgb, rgb(var(--automation-status-rgb)) 72%, #e5e7eb) 0 100%) center bottom / 3px 13px no-repeat,
        linear-gradient(to top, color-mix(in srgb, rgb(var(--automation-status-rgb)) 72%, #e5e7eb) 0 100%) right bottom / 3px 10px no-repeat;
}

.automation-agent-vitals-panel {
    order: 3;
    margin: 8px 8px 18px;
    border: 1px solid rgba(var(--automation-status-rgb), 0.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(8, 13, 23, 0.94), rgba(2, 6, 23, 0.88)),
        radial-gradient(circle at 84% 0%, rgba(var(--automation-status-rgb), 0.08), transparent 48%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 18px 38px rgba(0, 0, 0, 0.24);
}

.automation-agent-vitals-panel[hidden] {
    display: none;
}

.automation-agent-vitals-list {
    display: grid;
}

.automation-agent-vitals-row {
    --agent-health: #4ade80;
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(360px, 1.5fr) minmax(112px, 0.52fr) minmax(128px, 0.58fr) minmax(128px, 0.58fr);
    gap: clamp(18px, 2vw, 34px);
    align-items: center;
    min-width: 0;
    min-height: 68px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    cursor: pointer;
    transition: none;
}

.automation-agent-vitals-row:hover,
.automation-agent-vitals-row:focus-within,
.automation-agent-vitals-row.is-linked-agent {
    background: rgba(15, 23, 42, 0.34);
    box-shadow: inset 4px 0 0 var(--agent-hover-color);
}

.automation-agent-vitals-row:last-child {
    border-bottom: 0;
}

.automation-agent-vitals-row > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.automation-agent-vitals-agent {
    position: relative;
    gap: 6px;
    padding-left: 26px;
}

.automation-agent-vitals-agent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--agent-health);
    box-shadow: 0 0 12px color-mix(in srgb, var(--agent-health) 54%, transparent);
}

.automation-agent-vitals-row small {
    min-width: 0;
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.automation-agent-vitals-row strong {
    min-width: 0;
    color: #dbeafe;
    font-size: 0.9rem;
    line-height: 1.18;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: var(--font-weight-standard);
    overflow-wrap: anywhere;
}

.automation-agent-vitals-agent strong {
    font-size: 0.98rem;
    line-height: 1.05;
}

.automation-fleet-console.is-agent-line-fullscreen,
.automation-fleet-console.is-agent-line-fullscreen-exiting {
    --automation-fullscreen-control-inset: clamp(10px, 1.1vw, 22px);
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(var(--automation-status-rgb), 0.08), transparent 38%),
        linear-gradient(180deg, rgba(2, 4, 5, 0.995), rgba(0, 0, 0, 1)),
        #000000;
    overflow: hidden;
}

.automation-fleet-console.is-agent-line-fullscreen {
    animation: screenSurfaceFullscreenEnter 0.22s cubic-bezier(0.2, 0.82, 0.18, 1);
}

.automation-fleet-console.is-agent-line-fullscreen-exiting {
    animation: screenSurfaceFullscreenExit 0.18s ease forwards;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-fleet-toolbar,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-fleet-toolbar {
    position: absolute;
    top: var(--automation-fullscreen-control-inset);
    left: var(--automation-fullscreen-control-inset);
    right: var(--automation-fullscreen-control-inset);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    width: auto;
    margin: 0;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-bucket-legend,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-bucket-legend {
    max-width: min(52vw, 620px);
    opacity: 0.78;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-panel[hidden],
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-panel[hidden] {
    display: none !important;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-panel,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-panel {
    position: absolute;
    inset: clamp(56px, 6.2vh, 82px) var(--automation-fullscreen-control-inset) var(--automation-fullscreen-control-inset);
    right: var(--automation-fullscreen-control-inset);
    bottom: var(--automation-fullscreen-control-inset);
    z-index: 6;
    display: flex;
    flex-direction: column;
    width: auto;
    max-height: none;
    margin: 0;
    overflow: hidden;
    border-color: rgba(var(--automation-status-rgb), 0.22);
    background:
        linear-gradient(180deg, rgba(8, 13, 23, 0.9), rgba(2, 6, 23, 0.84)),
        radial-gradient(circle at 100% 0%, rgba(var(--automation-status-rgb), 0.085), transparent 44%);
    backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 22px 50px rgba(0, 0, 0, 0.34);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-list,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-list {
    min-width: 0;
    overflow: auto;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-row,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-row {
    grid-template-columns: minmax(180px, 0.9fr) minmax(340px, 1.42fr) minmax(116px, 0.46fr) minmax(112px, 0.42fr) minmax(116px, 0.44fr);
    gap: clamp(12px, 1.5vw, 28px);
    min-height: clamp(48px, 6vh, 72px);
    padding: clamp(8px, 1.15vh, 16px) clamp(14px, 1.5vw, 28px);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-row small,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-row small {
    font-size: clamp(0.54rem, 0.68vw, 0.74rem);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-row strong,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-row strong {
    font-size: clamp(0.72rem, 0.86vw, 0.98rem);
    line-height: 1.12;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-agent,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-agent {
    padding-left: 20px;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-agent::before,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-agent::before {
    top: 7px;
    width: clamp(9px, 0.7vw, 13px);
    height: clamp(9px, 0.7vw, 13px);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-button,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-button,
.automation-fleet-console.is-agent-line-fullscreen .automation-agent-fullscreen-button,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-fullscreen-button {
    min-height: 32px;
    padding: 6px 9px;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(4, 8, 10, 0.72);
    color: #dcecff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.026),
        0 12px 28px rgba(0, 0, 0, 0.32);
    opacity: 0.72;
    backdrop-filter: blur(12px);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-button:hover,
.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-button:focus-visible,
.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-button.is-open,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-button:hover,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-button:focus-visible,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-button.is-open,
.automation-fleet-console.is-agent-line-fullscreen .automation-agent-fullscreen-button:hover,
.automation-fleet-console.is-agent-line-fullscreen .automation-agent-fullscreen-button:focus-visible,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-fullscreen-button:hover,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-fullscreen-button:focus-visible {
    opacity: 1;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-vitals-button.is-open,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-vitals-button.is-open {
    border-color: rgba(var(--automation-status-rgb), 0.56);
    background:
        linear-gradient(180deg, rgba(var(--automation-status-rgb), 0.18), rgba(var(--automation-status-rgb), 0.065)),
        rgba(4, 8, 10, 0.88);
    color: #ffffff;
    opacity: 1;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-line-frame,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-line-frame {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    min-height: 0;
    padding: clamp(58px, 5.2vh, 78px) clamp(24px, 2.2vw, 46px) clamp(24px, 3vh, 42px);
    overflow: hidden;
}

.automation-fleet-console.is-agent-line-fullscreen.is-vitals-open .automation-agent-line-frame,
.automation-fleet-console.is-agent-line-fullscreen-exiting.is-vitals-open .automation-agent-line-frame {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-line-scale-shell,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-line-scale-shell {
    margin: 0;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-line,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-line {
    --agent-line-card-width: 300px;
    --agent-line-board-pad-x: 28px;
    --agent-line-board-pad-y: 28px;
    --station-card-height: 188px;
    --station-row-gap: 38px;
    --station-column-gap: 34px;
    --station-flow-y: 18px;
    --station-flow-x: 14px;
    grid-template-columns: repeat(5, var(--agent-line-card-width));
    grid-template-rows: repeat(4, var(--station-card-height));
    gap: var(--station-row-gap) var(--station-column-gap);
    width: max-content;
    min-width: 0;
    padding: var(--agent-line-board-pad-y) var(--agent-line-board-pad-x);
    overflow: visible;
    transform: scale(var(--agent-line-scale, 1));
    transform-origin: top left;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-station-summary,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-station-summary {
    grid-template-columns: clamp(94px, calc(var(--station-card-height) * 0.54), 126px) minmax(0, 1fr);
    gap: clamp(16px, calc(var(--station-card-height) * 0.095), 24px);
    padding: clamp(16px, calc(var(--station-card-height) * 0.08), 24px) clamp(18px, calc(var(--agent-line-card-width) * 0.06), 28px) clamp(20px, calc(var(--station-card-height) * 0.1), 30px);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-avatar,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-avatar {
    width: clamp(86px, calc(var(--station-card-height) * 0.54), 124px);
    height: clamp(86px, calc(var(--station-card-height) * 0.54), 124px);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-glyph,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-glyph {
    --agent-role-glyph-right: 11px;
    --agent-role-glyph-top: 9px;
    --agent-role-glyph-size: 36px;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-ai-glyph,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-ai-glyph {
    --agent-ai-glyph-left: 8px;
    --agent-ai-glyph-bottom: 7px;
    --agent-ai-glyph-size: 23px;
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-name,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-name {
    font-size: var(--agent-name-size, clamp(1.08rem, calc(var(--station-card-height) * 0.083), 1.42rem));
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-focus,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-focus {
    max-width: min(100%, 18ch);
    font-size: clamp(0.72rem, calc(var(--station-card-height) * 0.047), 0.92rem);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-next-run,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-next-run {
    max-width: min(100%, 116px);
    font-size: clamp(0.56rem, calc(var(--station-card-height) * 0.034), 0.72rem);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-runtime,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-runtime {
    right: clamp(14px, calc(var(--agent-line-card-width) * 0.05), 22px);
    bottom: clamp(12px, calc(var(--station-card-height) * 0.07), 20px);
    gap: clamp(8px, calc(var(--agent-line-card-width) * 0.026), 12px);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-next-run-icon,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-next-run-icon {
    width: clamp(11px, calc(var(--station-card-height) * 0.062), 15px);
    height: clamp(11px, calc(var(--station-card-height) * 0.062), 15px);
}

.automation-fleet-console.is-agent-line-fullscreen .automation-agent-status,
.automation-fleet-console.is-agent-line-fullscreen-exiting .automation-agent-status {
    max-width: 112px;
    padding: clamp(5px, calc(var(--station-card-height) * 0.03), 8px) clamp(12px, calc(var(--agent-line-card-width) * 0.045), 18px);
    font-size: clamp(0.62rem, calc(var(--station-card-height) * 0.038), 0.78rem);
}

.automation-update-timings {
    box-sizing: border-box;
    border-top: 1px solid rgba(var(--automation-status-rgb), 0.1);
    padding: 8px 0 0;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(var(--automation-timing-count, 6), max-content);
    justify-content: space-between;
    gap: clamp(14px, 2vw, 34px);
    min-width: 0;
}

.automation-timing-item {
    min-width: 0;
    width: max-content;
    max-width: 100%;
}

.automation-timing-label {
    color: #9fb4d3;
    font-size: 0.64rem;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-weight: var(--font-weight-standard);
}

.automation-timing-spans span {
    color: #71717a;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: var(--font-weight-standard);
}

.automation-timing-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 1px;
}

.automation-timing-spans {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.automation-timing-spans > span {
    display: block;
    white-space: nowrap;
}

.automation-timing-prefix {
    color: #6b7280;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.automation-timing-spans strong {
    color: #d4d4d8;
    font-weight: var(--font-weight-standard);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.automation-timing-running .automation-timing-spans strong {
    color: #bfdbfe;
}

.automation-timing-pending .automation-timing-spans strong {
    color: #a1a1aa;
}

.automation-timing-attention .automation-timing-spans strong,
.automation-timing-warn .automation-timing-spans strong,
.automation-timing-error .automation-timing-spans strong {
    color: #fde68a;
}

.automation-health-healthy {
    border-top-color: rgba(74, 222, 128, 0.45);
}

.automation-health-idle {
    --automation-status-rgb: 148, 163, 184;
    border-top-color: rgba(148, 163, 184, 0.35);
}

.automation-health-re-up,
.automation-health-refreshing {
    --automation-status-rgb: 56, 189, 248;
    border-top-color: rgba(56, 189, 248, 0.48);
}

.automation-health-sus,
.automation-health-degraded,
.automation-health-stale,
.automation-health-stopped {
    --automation-status-rgb: 251, 191, 36;
    border-top-color: rgba(251, 191, 36, 0.5);
}

.automation-health-down {
    --automation-status-rgb: 248, 113, 113;
    border-top-color: rgba(248, 113, 113, 0.55);
}

.automation-health-status {
    appearance: none;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    min-width: max-content;
    min-height: 0;
    padding: 0 10px 0 11px;
    border: 1px solid rgba(74, 222, 128, 0.26);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(74, 222, 128, 0.085), rgba(74, 222, 128, 0.025)),
        rgba(15, 23, 42, 0.3);
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 0 14px rgba(74, 222, 128, 0.035);
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.automation-health-status:hover,
.automation-health-status:focus-visible {
    border-color: rgba(74, 222, 128, 0.48);
    background:
        linear-gradient(180deg, rgba(74, 222, 128, 0.13), rgba(74, 222, 128, 0.04)),
        rgba(15, 23, 42, 0.5);
    box-shadow:
        inset 0 0 0 1px rgba(74, 222, 128, 0.07),
        0 0 16px rgba(74, 222, 128, 0.08);
    outline: none;
}

.automation-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}

.automation-squad-label {
    color: rgba(226, 232, 240, 0.44);
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: 0.52rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    transform: translateY(-0.25px);
}

.automation-health-healthy .automation-status-dot {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
}

.automation-health-idle .automation-status-dot {
    background: #94a3b8;
}

.automation-health-re-up .automation-status-dot,
.automation-health-refreshing .automation-status-dot {
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.32);
}

.automation-health-sus .automation-status-dot,
.automation-health-degraded .automation-status-dot,
.automation-health-stale .automation-status-dot,
.automation-health-stopped .automation-status-dot {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.28);
}

.automation-health-down .automation-status-dot {
    background: #f87171;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.34);
}

.automation-status-label,
.automation-health-status strong,
.automation-status-age,
.automation-health-item span,
.automation-latest-link,
.automation-latest-link strong {
    color: #71717a;
    font-size: 0.68rem;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    font-weight: var(--font-weight-standard);
}

.automation-health-status strong,
.automation-health-item strong {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    font-weight: var(--font-weight-standard);
    letter-spacing: var(--letter-spacing-standard);
    line-height: 1;
    text-transform: uppercase;
}

.automation-health-status strong {
    transform: translateY(-0.25px);
}

.automation-health-healthy .automation-health-status strong {
    color: #bbf7d0;
}

.automation-health-idle .automation-health-status strong {
    color: #cbd5e1;
}

.automation-health-re-up .automation-health-status,
.automation-health-refreshing .automation-health-status {
    border-color: rgba(56, 189, 248, 0.28);
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.09), rgba(56, 189, 248, 0.025)),
        rgba(15, 23, 42, 0.32);
}

.automation-health-sus .automation-health-status,
.automation-health-degraded .automation-health-status,
.automation-health-stale .automation-health-status,
.automation-health-stopped .automation-health-status {
    border-color: rgba(251, 191, 36, 0.42);
    background:
        linear-gradient(180deg, rgba(251, 191, 36, 0.13), rgba(251, 191, 36, 0.035)),
        rgba(92, 62, 8, 0.2);
}

.automation-health-down .automation-health-status {
    border-color: rgba(248, 113, 113, 0.48);
    background:
        linear-gradient(180deg, rgba(248, 113, 113, 0.14), rgba(248, 113, 113, 0.035)),
        rgba(69, 10, 10, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 0 14px rgba(248, 113, 113, 0.07);
}

.automation-health-re-up .automation-health-status strong,
.automation-health-refreshing .automation-health-status strong {
    color: #bae6fd;
}

.automation-status-age {
    color: rgba(228, 228, 231, 0.78);
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    line-height: 1;
    transform: translateY(-0.25px);
}

.automation-health-sus .automation-health-status strong,
.automation-health-degraded .automation-health-status strong,
.automation-health-stale .automation-health-status strong,
.automation-health-stopped .automation-health-status strong {
    color: #fde68a;
}

.automation-health-down .automation-health-status strong {
    color: #fecaca;
}

.automation-health-down .automation-status-age {
    color: #fecaca;
}

.automation-health-mood-happy {
    --automation-status-rgb: 74, 222, 128;
    border-top-color: rgba(74, 222, 128, 0.45);
}

.automation-health-mood-toiling {
    --automation-status-rgb: 56, 189, 248;
    border-top-color: rgba(56, 189, 248, 0.48);
}

.automation-health-mood-wobbly {
    --automation-status-rgb: 251, 191, 36;
    border-top-color: rgba(251, 191, 36, 0.5);
}

.automation-health-mood-lurking {
    --automation-status-rgb: 167, 139, 250;
    border-top-color: rgba(167, 139, 250, 0.48);
}

.automation-health-mood-bonked {
    --automation-status-rgb: 248, 113, 113;
    border-top-color: rgba(248, 113, 113, 0.55);
}

.automation-health-mood-happy .automation-status-dot {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
}

.automation-health-mood-toiling .automation-status-dot {
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.32);
}

.automation-health-mood-wobbly .automation-status-dot {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.28);
}

.automation-health-mood-lurking .automation-status-dot {
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.automation-health-mood-bonked .automation-status-dot {
    background: #f87171;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.34);
}

.automation-health-mood-happy .automation-health-status {
    border-color: rgba(74, 222, 128, 0.28);
    background:
        linear-gradient(180deg, rgba(74, 222, 128, 0.09), rgba(74, 222, 128, 0.025)),
        rgba(15, 23, 42, 0.32);
}

.automation-health-mood-toiling .automation-health-status {
    border-color: rgba(56, 189, 248, 0.28);
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.09), rgba(56, 189, 248, 0.025)),
        rgba(15, 23, 42, 0.32);
}

.automation-health-mood-wobbly .automation-health-status {
    border-color: rgba(251, 191, 36, 0.42);
    background:
        linear-gradient(180deg, rgba(251, 191, 36, 0.13), rgba(251, 191, 36, 0.035)),
        rgba(92, 62, 8, 0.2);
}

.automation-health-mood-lurking .automation-health-status {
    border-color: rgba(167, 139, 250, 0.4);
    background:
        linear-gradient(180deg, rgba(167, 139, 250, 0.13), rgba(167, 139, 250, 0.035)),
        rgba(49, 32, 92, 0.2);
}

.automation-health-mood-bonked .automation-health-status {
    border-color: rgba(248, 113, 113, 0.48);
    background:
        linear-gradient(180deg, rgba(248, 113, 113, 0.14), rgba(248, 113, 113, 0.035)),
        rgba(69, 10, 10, 0.2);
}

.automation-health-mood-happy .automation-health-status strong {
    color: #bbf7d0;
}

.automation-health-mood-toiling .automation-health-status strong {
    color: #bae6fd;
}

.automation-health-mood-wobbly .automation-health-status strong {
    color: #fde68a;
}

.automation-health-mood-lurking .automation-health-status strong {
    color: #ddd6fe;
}

.automation-health-mood-bonked .automation-health-status strong,
.automation-health-mood-bonked .automation-status-age {
    color: #fecaca;
}

.automation-health-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    min-width: 0;
    flex-wrap: nowrap;
}

.automation-health-item span {
    min-width: 0;
    white-space: nowrap;
}

.automation-health-item {
    justify-content: flex-start;
}

.automation-health-games,
.automation-health-open-bets,
.automation-health-new-picks {
    justify-self: center;
}

.automation-health-latest {
    justify-self: end;
}

.automation-health-fleet-alert {
    padding: 3px 8px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(92, 62, 8, 0.16);
}

.automation-health-fleet-alert.is-hidden {
    display: none;
}

.automation-health-fleet-alert span,
.automation-health-fleet-alert strong {
    color: #fde68a;
}

.automation-fleet-error.automation-health-fleet-alert,
.automation-fleet-degraded.automation-health-fleet-alert,
.automation-fleet-warn.automation-health-fleet-alert {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(69, 10, 10, 0.17);
}

.automation-fleet-error.automation-health-fleet-alert span,
.automation-fleet-error.automation-health-fleet-alert strong,
.automation-fleet-degraded.automation-health-fleet-alert span,
.automation-fleet-degraded.automation-health-fleet-alert strong,
.automation-fleet-warn.automation-health-fleet-alert span,
.automation-fleet-warn.automation-health-fleet-alert strong {
    color: #fecaca;
}

.automation-health-latest {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

.automation-latest-link {
    color: inherit;
    text-decoration: none;
    min-width: 0;
    display: inline-block;
}

.automation-latest-link:hover strong {
    color: #bfdbfe;
}

.automation-cadence-caret {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin: -3px 1px 0 4px;
    border: solid rgba(187, 247, 208, 0.76);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transition: border-color 160ms ease, transform 160ms ease;
}

.automation-health-status:hover .automation-cadence-caret,
.automation-health-status:focus-visible .automation-cadence-caret {
    border-color: rgba(220, 252, 231, 0.94);
}

.automation-health.is-cadence-open .automation-cadence-caret {
    margin-top: 2px;
    transform: rotate(225deg);
}

.automation-health-sus .automation-cadence-caret,
.automation-health-degraded .automation-cadence-caret,
.automation-health-stale .automation-cadence-caret,
.automation-health-stopped .automation-cadence-caret {
    border-color: rgba(253, 230, 138, 0.88);
}

.automation-health-re-up .automation-cadence-caret,
.automation-health-refreshing .automation-cadence-caret {
    border-color: rgba(186, 230, 253, 0.86);
}

.automation-health-down .automation-cadence-caret {
    border-color: rgba(254, 202, 202, 0.9);
}

@media (min-width: 1201px) {
    .automation-health-latest {
        grid-column: -2 / -1;
        justify-content: flex-end;
        text-align: right;
    }

    .automation-timing-item:last-child {
        justify-self: end;
        width: max-content;
        max-width: 100%;
        text-align: right;
    }
}

@media (max-width: 1200px) {
    .automation-health {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .automation-health-latest {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1100px) {
    .automation-update-timings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }

    .automation-timing-item {
        width: 100%;
    }

    .automation-agent-bucket-legend {
        max-width: min(100%, 460px);
        gap: 9px;
    }
}

.automation-latest-link.is-disabled {
    pointer-events: none;
}

.automation-latest-link.is-disabled strong {
    color: #71717a;
}

.automation-health-latest strong,
.automation-latest-link strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommendation-anchor {
    display: block;
    position: relative;
    top: -18px;
    height: 0;
    overflow: hidden;
}

.back-to-top-button {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 50;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid rgba(159, 180, 211, 0.5);
    background: rgba(3, 7, 18, 0.86);
    color: #dbeafe;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.back-to-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
    border-color: #93c5fd;
    background: rgba(15, 23, 42, 0.96);
    outline: none;
}

@media (max-width: 768px) {
    .automation-health {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 16px;
    }

    .automation-update-timings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .automation-health-detail {
        gap: 8px;
    }

    .automation-fleet-toolbar {
        flex-wrap: wrap;
        margin: 0 2px -4px;
    }

    .automation-fleet-toolbar-actions {
        order: 1;
    }

    .automation-agent-bucket-legend {
        order: 2;
        width: 100%;
        max-width: none;
        justify-content: space-between;
        padding: 4px 0;
    }

    .automation-agent-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 12px;
        overflow: visible;
        padding: 16px 2px 14px;
    }

    .automation-agent-station::before,
    .automation-agent-station::after {
        display: none;
    }

    .automation-agent-station {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .automation-agent-station-summary {
        min-height: 108px;
        padding-right: 36px;
    }

    .automation-agent-avatar {
        width: 70px;
        height: 70px;
    }

    .automation-agent-glyph {
        width: 36px;
        height: 36px;
    }

    .automation-agent-vitals-panel {
        margin: 0 2px 12px;
    }

    .automation-agent-vitals-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px 12px;
    }

    .automation-health-status,
    .automation-health-item {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 12px;
        line-height: 1.25;
    }

    .automation-health-item span {
        white-space: normal;
    }

    .automation-health-latest {
        max-width: 100%;
    }

    .automation-health-latest,
    .automation-latest-link {
        width: 100%;
    }

    .back-to-top-button {
        right: 14px;
        bottom: 16px;
        width: 38px;
        height: 38px;
    }
}

.recommendation-card {
    --recommendation-outcome-rgb: 148, 163, 184;
    --recommendation-outcome-color: #94a3b8;
    background: transparent;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    margin-bottom: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(var(--recommendation-outcome-rgb), 0);
    box-shadow: 0 0 0 rgba(var(--recommendation-outcome-rgb), 0);
    pointer-events: none;
}

.recommendation-card.is-outcome-pending {
    --recommendation-outcome-rgb: 59, 130, 246;
    --recommendation-outcome-color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.26);
    background:
        linear-gradient(90deg, rgba(59, 130, 246, 0.07), rgba(59, 130, 246, 0.035) 36%, rgba(59, 130, 246, 0.018) 100%),
        rgba(15, 23, 42, 0.16);
}

.recommendation-card.is-outcome-win {
    --recommendation-outcome-rgb: 34, 197, 94;
    --recommendation-outcome-color: #22c55e;
    border-color: rgba(34, 197, 94, 0.34);
    background:
        linear-gradient(90deg, rgba(34, 197, 94, 0.07), rgba(34, 197, 94, 0.034) 36%, rgba(34, 197, 94, 0.018) 100%),
        rgba(5, 46, 22, 0.14);
}

.recommendation-card.is-outcome-loss {
    --recommendation-outcome-rgb: 239, 68, 68;
    --recommendation-outcome-color: #ef4444;
    border-color: rgba(239, 68, 68, 0.34);
    background:
        linear-gradient(90deg, rgba(239, 68, 68, 0.068), rgba(239, 68, 68, 0.032) 36%, rgba(239, 68, 68, 0.016) 100%),
        rgba(69, 10, 10, 0.13);
}

.recommendation-card.is-outcome-push {
    --recommendation-outcome-rgb: 234, 179, 8;
    --recommendation-outcome-color: #eab308;
    border-color: rgba(234, 179, 8, 0.28);
    background:
        linear-gradient(90deg, rgba(234, 179, 8, 0.064), rgba(234, 179, 8, 0.03) 36%, rgba(234, 179, 8, 0.016) 100%),
        rgba(71, 52, 9, 0.13);
}

.recommendation-card.is-outcome-pending::before,
.recommendation-card.is-outcome-win::before,
.recommendation-card.is-outcome-loss::before,
.recommendation-card.is-outcome-push::before {
    background: rgb(var(--recommendation-outcome-rgb));
    box-shadow: 0 0 18px rgba(var(--recommendation-outcome-rgb), 0.28);
}

.recommendation-card:hover {
    border-color: #333333;
}

.card-header {
    background: transparent;
    color: white;
    padding: 32px 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: none;
    position: relative;
}

.bet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding-right: min(48vw, 560px);
}

.bet-text {
    flex: 1;
    text-align: left;
    white-space: normal;
}

.bet-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: var(--font-weight-standard);
    color: #ffffff;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
}

.bet-display-text {
    /* No special styling needed */
}

.sealed-pick-reveal[hidden],
.sealed-pick-box[hidden],
.sealed-analysis-placeholder[hidden] {
    display: none !important;
}

.recommendation-card.has-sealed-pick {
    border-color: rgba(96, 165, 250, 0.32);
    background:
        linear-gradient(90deg, rgba(96, 165, 250, 0.065), rgba(96, 165, 250, 0.026) 42%, rgba(15, 23, 42, 0.13) 100%),
        rgba(15, 23, 42, 0.13);
}

.recommendation-position {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.recommendation-pick-reveal {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.sealed-recommendation-position {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    max-width: min(100%, 340px);
    padding: 9px 13px;
    border: 1px solid rgba(96, 165, 250, 0.52);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(96, 165, 250, 0.13), rgba(37, 99, 235, 0.045)),
        rgba(7, 15, 27, 0.94);
    color: #dbeafe;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(96, 165, 250, 0.05),
        0 12px 24px rgba(2, 6, 23, 0.18);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.sealed-recommendation-position:hover,
.sealed-recommendation-position:focus-visible,
.sealed-pick-box:hover,
.sealed-pick-box:focus-visible {
    border-color: rgba(147, 197, 253, 0.98);
    background:
        linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(37, 99, 235, 0.08)),
        rgba(9, 20, 38, 0.98);
    outline: none;
}

.sealed-pick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.45em;
    height: 1.45em;
    color: #bfdbfe;
    font-size: 0.86em;
    line-height: 1;
    filter: saturate(0.86) drop-shadow(0 0 7px rgba(96, 165, 250, 0.28));
}

.sealed-pick-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.sealed-pick-label {
    display: block;
    color: #bfdbfe;
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    white-space: normal;
}

.sealed-pick-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    color: rgba(219, 234, 254, 0.54);
    font-size: 0.44rem;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    font-weight: var(--font-weight-standard);
    white-space: nowrap;
}

.sealed-pick-amount {
    color: rgba(219, 234, 254, 0.66);
    font-size: 1.12em;
    font-weight: var(--font-weight-standard);
}

.sealed-pick-divider {
    color: rgba(147, 197, 253, 0.3);
    font-weight: var(--font-weight-standard);
}

.sealed-pick-subcopy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: inherit;
    font-size: inherit;
    line-height: 1;
    letter-spacing: inherit;
    text-transform: uppercase;
    font-weight: inherit;
}

.sealed-pick-unlock-icon {
    flex: 0 0 auto;
    width: 0.66rem;
    height: 0.66rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
    filter: none;
}

.sealed-recommendation-position .sealed-pick-subcopy {
    font-size: 0.48rem;
    gap: 5px;
}

.sealed-recommendation-position .sealed-pick-meta {
    gap: 0;
    color: rgba(219, 234, 254, 0.62);
    font-size: 0.48rem;
    letter-spacing: 0.06em;
}

.sealed-recommendation-position .sealed-pick-unlock-icon {
    width: 0.58rem;
    height: 0.58rem;
    stroke-width: 2;
    opacity: 0.86;
}

.sealed-analysis-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 22px 0 0;
    padding: 9px 12px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.28);
    color: rgba(191, 219, 254, 0.72);
    font-size: 0.68rem;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bet-highlight {
    font-size: 0.78rem;
    font-weight: var(--font-weight-standard);
    letter-spacing: var(--letter-spacing-standard);
    text-transform: var(--text-transform-standard);
    margin-left: 12px;
}

.bet-result-summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: fit-content;
    min-height: 40px;
    max-width: min(42vw, 520px);
    margin: 0;
    padding: 0 14px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--recommendation-outcome-color);
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    vertical-align: top;
    box-shadow: none;
}

.bet-result-summary-label {
    color: var(--recommendation-outcome-color);
    font-weight: 700;
    flex: 0 0 auto;
}

.bet-result-summary-text {
    color: inherit;
    font-weight: var(--font-weight-bold);
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.92;
}

.bet-highlight-win {
    color: #4ade80;
}

.bet-highlight-loss {
    color: #f87171;
}

.bet-highlight-push {
    color: #94a3b8;
}

.bet-posture-chip {
    display: none;
}

.bet-details {
    font-size: 0.9rem;
    opacity: 0.5;
    font-weight: var(--font-weight-standard);
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    margin-bottom: 16px;
}

.sportsbook-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #666666;
    color: #cccccc;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    height: 24px;
    flex-shrink: 0;
    margin-left: 8px;
    vertical-align: middle;
}

.sportsbook-badge:hover {
    border-color: #888888;
    color: #ffffff;
}

.card-badges {
    display: flex;
    gap: 0;
    align-items: flex-start;
    position: absolute;
    top: 0;
    right: 0;
    max-width: min(72%, 660px);
}

.rank-badge {
    background: transparent;
    border: 1px solid #333333;
    border-radius: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.9rem;
    color: #666666;
}

.outcome-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 78px;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 0 0 0 6px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 18px rgba(0, 0, 0, 0.24);
}

.card-badges:has(.bet-result-summary) .outcome-badge {
    min-height: 40px;
    border-radius: 0 0 0 6px;
}

.outcome-posture-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    flex: 0 0 auto;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0;
    filter: saturate(0.9);
    opacity: 0.9;
}

.outcome-badge.win {
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.34), rgba(22, 101, 52, 0.58)),
        rgba(20, 83, 45, 0.9);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 22px rgba(34, 197, 94, 0.15);
}

.outcome-badge.loss {
    background:
        linear-gradient(180deg, rgba(239, 68, 68, 0.32), rgba(127, 29, 29, 0.62)),
        rgba(69, 10, 10, 0.92);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 0 22px rgba(239, 68, 68, 0.14);
}

.outcome-badge.pending {
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(30, 58, 138, 0.54)),
        rgba(15, 23, 42, 0.94);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.72);
}

.outcome-badge.push {
    background:
        linear-gradient(180deg, rgba(234, 179, 8, 0.25), rgba(113, 63, 18, 0.56)),
        rgba(66, 32, 6, 0.92);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.78);
}

.outcome-badge.cancelled {
    background: #4d1a1a;
    color: #f87171;
    border: 1px solid #ef4444;
}

.outcome-badge.postponed {
    background: #1a4d4d;
    color: #22d3ee;
    border: 1px solid #06b6d4;
}

/* AI Enhancement Stats */
.ai-enhancement-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ai-enhancement-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #00d4ff 0%, #ff6b6b 25%, #4ecdc4 50%, #45b7d1 75%, #96ceb4 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.ai-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.ai-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.ai-label {
    color: #e0e6ed;
    font-weight: var(--font-weight-standard);
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-wide);
    font-size: 13px;
}

.ai-value {
    color: #ffffff;
    font-weight: var(--font-weight-standard);
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
}

.ai-logo-small {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    border-radius: 4px;
    opacity: 1.0;
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ai-logo-small:hover {
    transform: scale(1.1);
    filter: brightness(1.3) contrast(1.2) saturate(1.4);
}

.steam-emoji {
    font-size: 18px;
    vertical-align: middle;
    display: inline-block;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.steam-emoji:hover {
    transform: scale(1.1);
    filter: brightness(1.3) contrast(1.2) saturate(1.4);
}

/* AI Confidence List */
.ai-confidence-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-confidence-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 500;
    color: #e0e6ed;
    transition: all 0.2s ease;
}

.ai-confidence-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.ai-confidence-list .ai-logo {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    border-radius: 3px;
    opacity: 1.0;
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* Gemini Logo */
.gemini-logo {
    height: 1em;
    vertical-align: middle;
    margin-left: 8px;
}

/* W/L Record Styling */
.wl-record {
    font-size: 0.7rem;
    font-weight: 400;
    margin-left: 8px;
    vertical-align: middle;
}

.wl-record.positive {
    color: #4ade80 !important;
}

.wl-record.negative {
    color: #f87171 !important;
}

.wl-record.neutral {
    color: #ffffff !important;
}

/* Team Info Container */
.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* Team Record Display */
.team-record {
    font-size: 0.65rem;
    color: #888888;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* AP Ranking Display for NCAAF */
.team-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.team-name-text {
    font-size: 0.8rem;
    color: #aaaaaa;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
}

.team-name .ap-ranking {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.7rem;
    opacity: 0.9;
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
    display: inline;
    margin-right: 2px;
}

.top-pick-badge {
    background: #f59e0b;
    color: #000000;
    padding: 6px 10px;
    border-radius: 0 0 4px 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #f59e0b;
    position: absolute;
    top: 0;
    left: 0;
}

.recommendation-card.top-pick {
    border: 2px solid #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.recommendation-card.top-pick.is-outcome-pending {
    border-color: rgba(59, 130, 246, 0.52);
    background:
        linear-gradient(90deg, rgba(59, 130, 246, 0.082), rgba(59, 130, 246, 0.038) 38%, rgba(59, 130, 246, 0.018) 100%),
        linear-gradient(135deg, rgba(251, 191, 36, 0.035) 0%, rgba(245, 158, 11, 0.028) 100%);
}

.recommendation-card.top-pick.is-outcome-win {
    border-color: rgba(34, 197, 94, 0.62);
    background:
        linear-gradient(90deg, rgba(34, 197, 94, 0.085), rgba(34, 197, 94, 0.04) 38%, rgba(34, 197, 94, 0.018) 100%),
        linear-gradient(135deg, rgba(251, 191, 36, 0.04) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.recommendation-card.top-pick.is-outcome-loss {
    border-color: rgba(239, 68, 68, 0.62);
    background:
        linear-gradient(90deg, rgba(239, 68, 68, 0.082), rgba(239, 68, 68, 0.038) 38%, rgba(239, 68, 68, 0.018) 100%),
        linear-gradient(135deg, rgba(251, 191, 36, 0.04) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.recommendation-card.top-pick.is-outcome-push {
    border-color: rgba(234, 179, 8, 0.5);
    background:
        linear-gradient(90deg, rgba(234, 179, 8, 0.076), rgba(234, 179, 8, 0.036) 38%, rgba(234, 179, 8, 0.018) 100%),
        linear-gradient(135deg, rgba(251, 191, 36, 0.04) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.recommendation-card.in-progress {
    border-color: rgba(251, 191, 36, 0.72);
    border-left-color: #fbbf24;
    animation: bracketLivePulse 2.6s ease-in-out infinite;
}

.recommendation-card.in-progress::before {
    background: #fbbf24;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
}

.card-body {
    padding: 0 32px 32px;
    background: transparent;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.metric {
    text-align: left;
    padding: 0;
    background: transparent;
    border: none;
    transition: none;
}

.metric-label {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 4px;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-wide);
    font-weight: var(--font-weight-standard);
}

.metric-value {
    font-size: 1.4rem;
    font-weight: var(--font-weight-standard);
    color: #ffffff;
}

.expected-value {
    color: #ffffff;
}

.confidence {
    color: #ffffff;
}

.kelly {
    color: #ffffff;
}

.profit-loss.positive {
    color: #22c55e;
}

.profit-loss.negative {
    color: #ef4444;
}

.profit-loss.neutral {
    color: #fbbf24;
}

[data-recommendation-result-metric] .metric-label {
    color: rgba(var(--recommendation-outcome-rgb), 0.82);
}

.settlement-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 6px;
    color: #8f8f8f;
    font-size: 0.72rem;
    line-height: 1.35;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: var(--text-transform-standard);
}

.settlement-breakdown strong {
    color: #dedede;
    font-weight: var(--font-weight-standard);
}

.settlement-breakdown .settlement-profit,
.settlement-breakdown .settlement-payout {
    color: #22c55e;
}

.settlement-breakdown .settlement-loss {
    color: #ef4444;
}

.wager {
    color: #ffffff;
}

.wager .profit {
    color: #10b981;
    font-weight: 600;
}

.wager .loss {
    color: #ef4444;
    font-weight: 600;
}

.reasoning {
    background: transparent;
    padding: 0;
    border-left: 1px solid #333333;
    padding-left: 16px;
}

.reasoning h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: var(--font-weight-standard);
    font-size: 0.9rem;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    opacity: 0.7;
}

.ai-indicator {
    margin-left: 8px;
    font-size: 1.3rem;
    color: #ffd700;
    text-shadow: 0 0 8px #ffd700;
    animation: sparkle 2s ease-in-out infinite;
}

.ai-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 3px;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.reasoning p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.9rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: left;
        gap: 16px;
        padding: 24px 24px 0;
    }

    .bet-info {
        width: 100%;
        padding-right: 0;
    }

    .card-badges {
        position: static;
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        justify-content: flex-start;
    }

    .card-badges .bet-result-summary {
        flex: 1 1 auto;
        max-width: calc(100% - 78px);
        padding-right: 12px;
        border-radius: 0;
    }

    .card-badges .outcome-badge,
    .card-badges:has(.bet-result-summary) .outcome-badge {
        border-radius: 6px;
    }

    .card-badges:has(.bet-result-summary) .outcome-badge {
        min-height: 40px;
    }
    
    .card-body {
        padding: 0 24px 24px;
    }
}

/* Game info styling */
.game-info {
    margin-bottom: 24px;
}

.teams {
    font-size: 1.2rem;
    font-weight: var(--font-weight-standard);
    margin-bottom: 8px;
    color: #ffffff;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
}

.away-team, .home-team {
    color: #ffffff;
}

.vs {
    color: #666666;
    margin: 0 8px;
}

.final-score {
    font-size: 1.1rem;
    color: #4ade80;
    margin-bottom: 12px;
    font-weight: 600;
}

.game-details {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.4;
}

.game-time {
    margin-bottom: 4px;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    font-weight: var(--font-weight-standard);
}

.tv-network {
    margin-bottom: 4px;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    font-weight: var(--font-weight-standard);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* Weather emoji styling */
.weather-emoji {
    font-size: 1.2em;
    margin-right: 4px;
    vertical-align: middle;
}

/* AI Analysis Content Styling */
.analysis-content {
    font-family: var(--analysis-font-family);
    font-weight: var(--analysis-font-weight);
    font-size: var(--analysis-font-size);
    line-height: var(--analysis-line-height);
    letter-spacing: var(--analysis-letter-spacing);
    text-transform: var(--analysis-text-transform);
    color: #cccccc;
}

/* AI Logo styling - used in multiple places */
.analysis-content img.ai-logo,
.ai-analysis-section img.ai-logo,
.signal-integration-section img.ai-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    margin-left: 4px;
    border-radius: 3px;
    opacity: 1.0;
    filter: brightness(1.0) contrast(1.0);
    background: transparent;
    padding: 2px;
    display: inline-block;
}

.analysis-content strong {
    color: #ffffff;
    font-weight: 600;
}

.analysis-content h4 {
    color: #ffffff;
    margin: 16px 0 8px 0;
    font-size: 1.1rem;
    font-weight: var(--font-weight-standard);
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-wide);
}

/* Visual separation for analysis sections */
.analysis-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
}

/* Conflict indicator for when AI models disagree */
.conflict-indicator {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.85rem;
    color: #ffc107;
    text-align: center;
    font-weight: 500;
}

/* AI Analysis sections with distinct styling */
.ai-analysis-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
    border-left: 4px solid transparent;
    font-family: var(--analysis-font-family);
    font-weight: var(--analysis-font-weight);
    font-size: var(--analysis-font-size);
    line-height: var(--analysis-line-height);
    letter-spacing: var(--analysis-letter-spacing);
    text-transform: var(--analysis-text-transform);
    color: #cccccc;
}

.gemini-analysis {
    border-left-color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
}

.openai-analysis {
    border-left-color: #00a67e;
    background: rgba(0, 166, 126, 0.1);
}

.steam-analysis {
    border-left-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.settlement-analysis-section {
    border-left: 4px solid #94a3b8;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    margin: 8px 0;
    padding: 10px 12px;
}

/* Signal integration section styling */
.signal-integration-section {
    background: rgba(74, 158, 255, 0.1);
    border-left: 4px solid #4a9eff;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    font-family: var(--analysis-font-family);
    font-weight: var(--analysis-font-weight);
    font-size: var(--analysis-font-size);
    line-height: var(--analysis-line-height);
    letter-spacing: var(--analysis-letter-spacing);
    text-transform: var(--analysis-text-transform);
    color: #cccccc;
}

/* Algorithmic foundation section styling */
.algorithmic-foundation-section {
    background: rgba(102, 102, 102, 0.1);
    border-left: 4px solid #666666;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    font-family: var(--analysis-font-family);
    font-weight: var(--analysis-font-weight);
    font-size: var(--analysis-font-size);
    line-height: var(--analysis-line-height);
    letter-spacing: var(--analysis-letter-spacing);
    text-transform: var(--analysis-text-transform);
    color: #cccccc;
}

/* Team logo styles */
.team-logo-small {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    border-radius: 3px;
    object-fit: contain;
    display: block;
}

.team-logo-bet {
    width: 28px;
    height: 28px;
    margin-right: 3px;
    vertical-align: middle;
    border-radius: 3px;
    object-fit: contain;
}

/* ===================================================================
   WEEK SCHEDULE - PROFESSIONAL SHARP BETTING HOUSE DESIGN
   =================================================================== */

.week-schedule-container {
    margin-bottom: 42px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    min-height: 82px;
    margin-bottom: 30px;
    padding: 6px 0 20px;
    border-bottom: 1px solid #1a1a1a;
}

.schedule-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.schedule-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    color: #ffffff;
    margin: 0;
}

.schedule-rollup {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 700px;
    gap: 14px;
    min-width: 0;
    min-height: 58px;
    max-width: 1280px;
    padding: 11px 15px 10px;
    overflow: hidden;
    border: 2px solid #333333;
    border-radius: 10px;
    background:
        linear-gradient(135deg, #171717 0%, #242424 100%);
    box-shadow:
        0 7px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    text-align: right;
}

.schedule-rollup.no-risk {
    max-width: 1080px;
}

.schedule-rollup.no-bets {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 0;
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.schedule-rollup::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #22c55e, #3b82f6);
}

.schedule-rollup.no-bets::before {
    display: none;
}

@media (max-width: 980px) {
    .schedule-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .schedule-rollup {
        width: 100%;
        max-width: none;
        text-align: left;
    }
}

.period-summary-context {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
}

.period-summary-context-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.42);
}

.period-summary-metrics {
    display: grid;
    grid-template-columns: minmax(max-content, 0.6fr) minmax(0, 5fr);
    align-items: center;
    column-gap: 16px;
    min-width: 0;
}

.schedule-rollup.no-bets .period-summary-metrics {
    display: inline-flex;
    align-items: baseline;
    column-gap: 0;
}

.period-summary-item {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.period-summary-record-item,
.period-summary-profit-item {
    align-items: center;
}

.period-summary-record-item {
    gap: 7px;
}

.period-summary-bet-link {
    display: grid;
    grid-template-columns: repeat(5, minmax(max-content, 1fr));
    align-items: center;
    justify-content: stretch;
    column-gap: 16px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 160ms ease, text-shadow 160ms ease;
}

.period-summary-bet-link.no-risk {
    grid-template-columns: repeat(4, minmax(max-content, 1fr));
}

.period-summary-bet-link[hidden] {
    display: none;
}

.period-summary-bet-link:hover,
.period-summary-bet-link:focus-visible {
    opacity: 0.92;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.055);
    outline: none;
}

.period-summary-bet-link .period-summary-label {
    color: rgba(255, 255, 255, 0.34);
}

@media (max-width: 1120px) {
    .schedule-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .schedule-rollup {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 10px;
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .period-summary-metrics {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .period-summary-game-count {
        justify-content: flex-start;
    }

    .period-summary-bet-link {
        grid-template-columns: repeat(3, minmax(max-content, 1fr));
        row-gap: 8px;
    }
}

@media (max-width: 980px) {
    .period-summary-bet-link {
        grid-template-columns: repeat(2, minmax(max-content, 1fr));
        justify-content: flex-start;
    }
}

.period-summary-label {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.period-summary-value {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.period-summary-core-item .period-summary-value,
.period-summary-profit-item .period-summary-value {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    font-size: 0.96rem;
    font-weight: 850;
    line-height: 1;
}

.period-summary-money-item,
.period-summary-risk-item {
    opacity: 0.9;
}

.period-summary-roi {
    display: inline-flex;
    align-items: center;
    align-self: center;
    min-height: 24px;
    font-family: var(--metric-font-family);
    font-size: 0.74rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    line-height: 1;
    transform: none;
}

.period-summary-win-rate {
    display: inline-flex;
    align-items: center;
    align-self: center;
    min-height: 24px;
    font-family: var(--metric-font-family);
    font-size: 0.74rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    line-height: 1;
    transform: none;
}

.period-summary-value.positive,
.period-summary-roi.positive,
.period-summary-win-rate.positive {
    color: rgba(74, 222, 128, 0.95);
}

.period-summary-value.negative,
.period-summary-roi.negative,
.period-summary-win-rate.negative {
    color: rgba(248, 113, 113, 0.95);
}

.period-summary-value.neutral,
.period-summary-roi.neutral,
.period-summary-win-rate.neutral,
.period-summary-win-rate.tbd {
    color: rgba(226, 232, 240, 0.64);
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.schedule-date-group {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.008);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.schedule-date-group.today {
    border-color: rgba(74, 222, 128, 0.28);
    background:
        linear-gradient(180deg, rgba(74, 222, 128, 0.04), rgba(74, 222, 128, 0.012) 34%, rgba(255, 255, 255, 0.006)),
        rgba(2, 6, 23, 0.08);
}

.schedule-date-group.past {
    opacity: 0.8;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a1a;
}

.date-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-day {
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    color: #ffffff;
}

.date-date {
    font-size: 0.75rem;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    color: #888888;
}

.date-timezone-abbr {
    color: #666666;
    font-weight: 400;
    margin-left: 4px;
}

.date-game-count {
    font-size: 0.75rem;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    color: #888888;
    text-align: right;
    white-space: nowrap;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-lane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 18px;
    margin: 4px 2px -2px;
    padding: 0 2px;
    position: relative;
}

.schedule-lane-header:not(:first-child) {
    margin-top: 10px;
}

.schedule-lane-label,
.schedule-lane-count {
    font-size: 0.66rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
}

.schedule-lane-label {
    color: #9db8d8;
}

.schedule-lane-count {
    color: #555555;
}

.schedule-lane-live .schedule-lane-label {
    align-items: center;
    color: #f8d46b;
    display: inline-flex;
    gap: 7px;
}

.schedule-lane-live .schedule-lane-label::before {
    background: #fbbf24;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.32);
    content: "";
    height: 6px;
    width: 6px;
}

.schedule-lane-live {
    margin-bottom: 0;
}

.schedule-lane-final .schedule-lane-label {
    color: #777777;
}

.schedule-lane-interrupted .schedule-lane-label {
    color: #777777;
}

.schedule-game-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 200px auto;
    grid-template-rows: auto;
    column-gap: 16px;
    padding: 8px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    align-items: center;
    position: relative;
}

.schedule-game-card:hover {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.024);
}

.schedule-game-card.has-bets {
    border-left: 3px solid #4ade80;
}

.schedule-game-card.has-bets:hover {
    border-left-color: #22c55e;
}

.schedule-game-card.completed {
    opacity: 0.8;
}

.schedule-game-card.completed .team-name-schedule {
    flex: 0 1 auto;
}

.schedule-game-card.completed .game-score {
    margin-left: 0;
}

.schedule-game-card.in-progress {
    animation: none;
    background:
        linear-gradient(90deg, rgba(251, 191, 36, 0.055), rgba(11, 18, 15, 0.32) 25%, rgba(255, 255, 255, 0.01)),
        rgba(2, 6, 23, 0.2);
    border-color: rgba(148, 163, 184, 0.15);
    border-left: 2px solid rgba(251, 191, 36, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.schedule-game-card.in-progress:hover {
    border-color: rgba(148, 163, 184, 0.25);
    background:
        linear-gradient(90deg, rgba(251, 191, 36, 0.072), rgba(11, 18, 15, 0.38) 25%, rgba(255, 255, 255, 0.018)),
        rgba(2, 6, 23, 0.24);
}

.schedule-game-card.has-bets.in-progress {
    background:
        linear-gradient(90deg, rgba(74, 222, 128, 0.07), rgba(11, 18, 15, 0.34) 27%, rgba(255, 255, 255, 0.012)),
        rgba(2, 6, 23, 0.22);
    border-left-color: rgba(74, 222, 128, 0.95);
    border-left-width: 3px;
}

@keyframes scheduleLiveStatusRail {
    0% {
        opacity: 0.36;
        transform: translateX(-58%);
    }

    45%,
    55% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.42;
        transform: translateX(58%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .recommendation-card.in-progress {
        animation: none;
        box-shadow:
            0 0 0 1px rgba(251, 191, 36, 0.42),
            0 18px 38px rgba(0, 0, 0, 0.22);
    }

    .schedule-game-card.in-progress {
        animation: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.024);
    }

    .schedule-game-card.in-progress .game-time.in-progress-status::before {
        animation: none;
        opacity: 0;
    }
}

.game-time-section {
    display: grid;
    grid-template-rows: 32px auto;
    row-gap: 10px;
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    min-width: 0;
}

.schedule-game-card .game-time {
    display: flex;
    align-items: center;
    min-height: 32px;
    font-size: 0.95rem;
    color: #cccccc;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
    padding: 0;
    align-self: stretch;
}

.game-network {
    font-size: 0.75rem;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    width: 100%;
    max-width: 150px;
    margin: 0;
    padding: 0;
    align-self: stretch;
}

.game-status-text {
    font-size: 0.7rem;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
}

.final-status {
    color: #888888;
    text-transform: uppercase;
}

.schedule-game-card .game-time.final-status,
.schedule-game-card .game-time.interrupted-status {
    color: #888888;
    text-transform: uppercase;
}

.interrupted-status {
    color: #888888;
    text-transform: uppercase;
}

.in-progress-status {
    color: #f8d46b;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.16);
}

.schedule-game-card.in-progress .game-time.in-progress-status {
    align-self: center;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 7px;
    position: relative;
    width: fit-content;
}

.schedule-game-card.in-progress .game-time.in-progress-status::before {
    animation: scheduleLiveStatusRail 2.8s ease-in-out infinite alternate;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 28%,
            rgba(255, 255, 255, 0.88) 48%,
            rgba(251, 191, 36, 0.62) 56%,
            transparent 76%,
            transparent 100%
        );
    border-radius: 999px;
    bottom: 3px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.18);
    content: "";
    height: 2px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 1;
}

.schedule-game-card.in-progress .game-time.in-progress-status::after {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.5), rgba(251, 191, 36, 0.24));
    border-radius: 999px;
    bottom: 3px;
    content: "";
    height: 2px;
    left: 0;
    opacity: 0.62;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.schedule-game-card.has-bets.in-progress .game-time.in-progress-status::before {
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 28%,
            rgba(255, 255, 255, 0.88) 48%,
            rgba(74, 222, 128, 0.66) 56%,
            transparent 76%,
            transparent 100%
        );
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.14);
}

.schedule-game-card.has-bets.in-progress .game-time.in-progress-status::after {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.52), rgba(74, 222, 128, 0.24));
}

.mlb-live-situation {
    align-items: center;
    align-self: start;
    display: inline-flex;
    gap: 8px;
    min-height: 22px;
    width: fit-content;
}

.mlb-base-diamond {
    display: block;
    flex: 0 0 21px;
    height: 20px;
    position: relative;
    width: 21px;
}

.mlb-base {
    background: rgba(2, 6, 23, 0.12);
    border: 1.5px solid rgba(203, 213, 225, 0.5);
    border-radius: 1px;
    display: block;
    height: 7px;
    position: absolute;
    transform: rotate(45deg);
    width: 7px;
}

.mlb-base.is-occupied {
    background: rgba(203, 213, 225, 0.86);
    border-color: rgba(226, 232, 240, 0.72);
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.16);
}

.mlb-base-first {
    left: 13px;
    top: 11px;
}

.mlb-base-second {
    left: 7px;
    top: 5px;
}

.mlb-base-third {
    left: 1px;
    top: 11px;
}

.mlb-outs {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.61rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.game-matchup-section {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 18px;
    flex: 1;
    justify-content: center;
    justify-items: center;
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    min-width: 0;
}

.matchup-teams {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 32px;
    margin: 0;
    padding: 0;
}

.schedule-game-card.has-shootout .game-time-section,
.schedule-game-card.has-shootout .game-matchup-section {
    row-gap: 16px;
}

.game-final-outcome {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 1px 8px 0;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.07);
    color: #cbd5e1;
    font-size: 0.62rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.game-final-outcome-draw {
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(251, 191, 36, 0.08);
    color: #facc15;
}

.game-shootout-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: -3px;
    line-height: 1;
}

.game-score-stack {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 34px;
    flex: 0 0 auto;
}

.game-score-stack .game-shootout-score {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    gap: 4px;
    margin-left: 0;
}

.game-score-stack .shootout-label {
    font-size: 0.48rem;
}

.game-score-stack .shootout-pips {
    gap: 2px;
}

.game-score-stack .shootout-pip {
    width: 4px;
    height: 4px;
    border-radius: 1px;
}

.shootout-label {
    color: rgba(148, 163, 184, 0.72);
    font-size: 0.54rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
}

.shootout-pips {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.shootout-pip {
    width: 5px;
    height: 5px;
    border-radius: 1px;
}

.shootout-pip-made {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.2);
}

.shootout-pip-miss {
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.72);
    box-shadow: none;
}

.shootout-pip-empty {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: none;
}

.game-winner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 0.78rem;
    font-weight: var(--font-weight-standard);
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.2));
}

.game-weather-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #888888;
    flex-shrink: 0;
    grid-row: 1;
    grid-column: 3;
}

.weather-dome {
    color: #888888;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888888;
    font-size: 0.75rem;
}

.weather-info-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #888888;
    font-size: 0.8rem;
    line-height: 1.2;
    padding: 0;
    margin: 0;
}

.weather-temp {
    color: #ffffff;
    font-weight: var(--font-weight-standard);
}

.weather-temp-compact {
    color: #ffffff;
    font-weight: var(--font-weight-standard);
    white-space: nowrap;
    text-align: center;
}

.weather-wind,
.weather-precip {
    color: #888888;
}

.weather-wind-compact {
    color: #888888;
    white-space: nowrap;
    text-align: center;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    min-width: 0;
    min-height: 32px;
}

.team-mark-schedule {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 42px;
    line-height: 1;
}

.team-logo-schedule {
    width: 42px;
    height: 32px;
    border-radius: 3px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

.team-code-schedule {
    flex: 0 0 auto;
    min-width: 2.4ch;
    padding: 2px 5px 1px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.32);
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.62rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.team-identity-schedule {
    display: inline-flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.team-name-schedule {
    font-weight: var(--font-weight-standard);
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    color: #ffffff;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    line-height: 1.1;
}

.team-pitcher-schedule {
    color: #777777;
    font-size: 0.66rem;
    font-weight: var(--font-weight-standard);
    letter-spacing: var(--letter-spacing-standard);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: var(--text-transform-standard);
    white-space: nowrap;
}

.team-ranking {
    color: #fbbf24;
    margin-right: 4px;
    font-weight: var(--font-weight-bold);
}

.team-record-schedule {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.58);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
}

.team-separator {
    color: #666666;
    font-size: 0.85rem;
    margin: 0 4px;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    flex-shrink: 0;
    line-height: 1;
}

.game-score {
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    font-size: 1.08rem;
    min-width: 1.1ch;
    line-height: 1;
    text-align: right;
    margin-left: 0;
    font-variant-numeric: tabular-nums;
}

.game-winner-badge {
    margin-top: 0;
}

.game-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    font-size: 0.75rem;
    color: #888888;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    margin-top: 0;
    padding-top: 0;
    font-weight: 400;
    flex-wrap: nowrap;
    align-self: center;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    text-align: center;
}

.game-progress-indicator {
    font-size: 0.7rem;
    color: #fbbf24;
    font-weight: var(--font-weight-bold);
    margin-left: 8px;
}

.schedule-game-card .game-location .venue-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400 !important;
}

.venue-location {
    color: #666666;
    font-size: 0.75rem;
}

.schedule-game-card .game-location .venue-location {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: normal;
}

.venue-type {
    margin-left: auto;
    font-size: 0.7rem;
}

.game-bets-indicator {
    --schedule-odds-stack-width: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: var(--schedule-odds-stack-width);
    grid-row: 1;
    grid-column: 4;
    justify-content: center;
}

.game-bets-indicator.has-market-context {
    gap: 4px;
}

.game-bets-indicator.has-sealed-pick {
    align-self: stretch;
    justify-content: center;
}

.game-bets-indicator > .sealed-pick-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.sealed-pick-box {
    appearance: none;
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    width: 100%;
    min-height: 118px;
    padding: 17px 14px 30px;
    border: 1px solid rgba(96, 165, 250, 0.54);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(96, 165, 250, 0.13), rgba(37, 99, 235, 0.045)),
        rgba(7, 15, 27, 0.94);
    color: #bfdbfe;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 0 0 1px rgba(96, 165, 250, 0.05),
        0 10px 22px rgba(2, 6, 23, 0.16);
    cursor: pointer;
    font-family: var(--metric-font-family, 'SF Mono', Monaco, Consolas, monospace);
    text-align: center;
}

.sealed-pick-box .sealed-pick-icon {
    font-size: 0.9rem;
    margin-bottom: 1px;
}

.sealed-pick-box .sealed-pick-label {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-size: 0.68rem;
    line-height: 1.12;
    letter-spacing: 0.095em;
    font-weight: 650;
}

.sealed-pick-box .sealed-pick-meta {
    display: contents;
}

.sealed-pick-box .sealed-pick-amount {
    color: rgba(226, 238, 255, 0.9);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-size: 0.7rem;
    font-weight: 560;
    letter-spacing: 0.01em;
    line-height: 1;
}

.sealed-pick-box .sealed-pick-divider {
    display: none;
}

.sealed-pick-box .sealed-pick-unlock-icon {
    width: 0.56rem;
    height: 0.56rem;
    stroke-width: 2.2;
}

.sealed-pick-box .sealed-pick-subcopy {
    position: absolute;
    right: 12px;
    bottom: 10px;
    gap: 4px;
    color: rgba(219, 234, 254, 0.62);
    font-size: 0.46rem;
    letter-spacing: 0.045em;
}

.bets-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: var(--schedule-odds-stack-width);
}

.bet-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 8px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid #4ade80;
    border-radius: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.bet-progress-ring {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-progress-ring.bet-winning .progress-ring-fill {
    stroke: #22c55e;
}

.bet-progress-ring.bet-losing .progress-ring-fill {
    stroke: #ef4444;
}

.bet-progress-ring.bet-neutral .progress-ring-fill {
    stroke: #888888;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 20px;
    height: 20px;
}

.progress-ring-background {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.progress-ring-fill {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

.bet-item .bet-text {
    color: #ffffff;
    font-weight: var(--font-weight-standard);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: center;
}

.schedule-bet-posture-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    flex: 0 0 auto;
    font-size: 0.72rem;
    line-height: 1;
    filter: saturate(0.9);
    opacity: 0.88;
}

.bet-outcome-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.bet-win-icon {
    background: #22c55e;
    color: #ffffff;
}

.bet-loss-icon {
    background: #ef4444;
    color: #ffffff;
}

.bet-push-icon {
    background: #6b7280;
    color: #ffffff;
}

.bet-item.bet-pending {
    background: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
}

.bet-item.bet-pending .bet-text {
    color: #60a5fa;
}

.bet-item.bet-win {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
}

.bet-item.bet-win .bet-text {
    color: #4ade80;
}

.bet-item.bet-loss {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.bet-item.bet-loss .bet-text {
    color: #f87171;
}

.bet-item.bet-push {
    background: rgba(107, 114, 128, 0.12);
    border-color: #6b7280;
}

.bet-item.bet-push .bet-text {
    color: #d1d5db;
}

.top-pick-indicator {
    font-size: 1rem;
    color: #fbbf24;
}

.pending-indicator {
    font-size: 0.9rem;
    color: #60a5fa;
}

.game-bets-indicator.no-bets {
    align-items: center;
    justify-content: center;
}

.no-bets-text {
    font-size: 0.7rem;
    text-transform: var(--text-transform-standard);
    letter-spacing: var(--letter-spacing-standard);
    color: #666666;
}

/* Best available market board for schedule games.
   Intentionally muted + dashed so it never reads as one of our bets. */
.market-odds {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: var(--schedule-odds-stack-width);
}

.market-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.7rem;
    padding: 3px 8px;
    background: transparent;
    border: 1px dashed #3a3a3a;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.market-chip-label {
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.62rem;
}

.market-chip-value {
    color: #cfcfcf;
    font-weight: 500;
    white-space: nowrap;
}

/* When shown alongside a placed bet, the remaining market board sits beneath the pick
   pill and reads as secondary context (slightly dimmer, with a hairline separator). */
.market-odds.market-context {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    opacity: 0.85;
}

/* Locked markets are pregame evidence for games that have started or stopped taking action. */
.market-odds.locked-market,
.market-odds.closing-market {
    opacity: 0.62;
}

.market-odds.locked-market .market-chip,
.market-odds.closing-market .market-chip {
    border-color: rgba(90, 90, 90, 0.55);
}

.market-odds.locked-market .market-chip-label,
.market-odds.closing-market .market-chip-label {
    color: rgba(148, 148, 148, 0.68);
}

.market-odds.locked-market .market-chip-value,
.market-odds.closing-market .market-chip-value {
    color: rgba(148, 148, 148, 0.62);
    font-weight: 400;
}

/* Responsive schedule */
@media (max-width: 768px) {
    .schedule-game-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .game-time-section,
    .game-matchup-section,
    .game-weather-indicator,
    .game-bets-indicator {
        grid-column: 1;
        grid-row: auto;
    }

    .game-matchup-section {
        align-self: stretch;
        grid-template-rows: auto auto;
        justify-content: stretch;
        justify-items: stretch;
        overflow: visible;
        row-gap: 8px;
    }

    .schedule-game-card.has-shootout .game-matchup-section {
        row-gap: 12px;
    }

    .matchup-teams {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        justify-content: stretch;
        gap: 4px;
        min-height: 0;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
    }

    .game-location {
        justify-content: flex-start;
        text-align: left;
    }

    .team-row {
        width: 100%;
        max-width: 100%;
        flex: none;
        gap: 6px;
        min-width: 0;
        overflow: visible;
    }

    .team-mark-schedule {
        flex-basis: 36px;
        width: 36px;
        min-width: 36px;
        gap: 2px;
    }

    .team-logo-schedule {
        width: 36px;
        height: 28px;
    }

    .team-code-schedule {
        min-width: 2.2ch;
        padding-inline: 4px;
        font-size: 0.58rem;
    }

    .team-identity-schedule {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .team-name-schedule {
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .team-pitcher-schedule {
        font-size: 0.6rem;
    }

    .team-record-schedule {
        flex: 0 0 auto;
    }

    .team-separator {
        justify-self: start;
        height: 8px;
        margin: -2px 0 -1px 34px;
        font-size: 0.7rem;
        opacity: 0.78;
    }
    
    .game-time-section {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        align-self: stretch;
        padding-top: 0;
    }
    
    .game-bets-indicator {
        flex-direction: row;
        align-items: center;
        min-width: auto;
    }
}

/* Ensure team logos display properly in team name text */
.team-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 60px; /* Consistent height for all team names */
}

.team-name-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    line-height: 1.2;
    min-height: 40px; /* Consistent height for team name text */
    justify-content: center;
}

/* Ensure team names wrap consistently */
.team-name-text {
    word-wrap: break-word;
    hyphens: auto;
    max-width: 120px; /* Limit width to force consistent wrapping */
}

/* Bet text with logo styling */
.bet-text h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
