/* Drawn panel previews for the game pages' feature tiles (partials/*-features.html):
   the dashboard's cards, inputs, badges, console log, schedule steps and rows,
   so each game can show its own panel screens without screenshots. */

.pv-frame {
    flex-grow: 1;
    margin: 28px -28px -28px 0;
    overflow: hidden;
    border-top-left-radius: 12px;
    background: #13141f;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #e6e7ee;
}

.pv-pad {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.pv-mono,
.pv-log {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pv-muted {
    color: #8b8fa3;
}

.pv-push {
    margin-left: auto;
}

.pv-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-label.is-red {
    color: #f0687e;
}

.pv-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pv-head-title {
    font-size: 14px;
    font-weight: 600;
}

.pv-head-end {
    margin-left: auto;
    font-size: 12px;
    color: #8b8fa3;
}

.pv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pv-badge.is-green {
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
}

.pv-badge.is-blue {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
}

.pv-badge.is-cyan {
    background: rgba(34, 211, 238, 0.12);
    color: #22d3ee;
}

.pv-badge.is-red {
    background: rgba(240, 104, 126, 0.14);
    color: #f0687e;
}

.pv-badge.is-gray {
    background: #262632;
    color: #c9cbd3;
}

.pv-badge.is-amber {
    background: rgba(245, 185, 66, 0.14);
    color: #f5b942;
}

.pv-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pv-live {
    width: 8px;
    height: 8px;
    color: #4ade80;
}

/* Startup variables, as the panel draws them */

.pv-var {
    padding: 14px;
    border-radius: 10px;
    background: #1a1b27;
}

.pv-var.is-focus {
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5);
}

.pv-var-name {
    font-weight: 600;
}

.pv-var-desc {
    margin-top: 4px;
    font-size: 12px;
    color: #8b8fa3;
}

.pv-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    margin-top: 12px;
    padding: 0 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #23232e;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pv-menu {
    margin-top: 6px;
    padding: 4px;
    border-radius: 8px;
    background: #23232e;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.pv-menu span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    color: #b4b7c6;
}

.pv-menu .is-on {
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
}

.pv-vars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pv-vars.is-dim {
    opacity: 0.55;
}

.pv-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #8b8fa3;
}

/* The framework tile: Startup with the console starting over it */

.pv-log {
    font-size: 12px;
    line-height: 22px;
}

.pv-log span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pv-log .is-dim {
    color: #8b8fa3;
}

.pv-log i {
    font-style: normal;
}

.pv-log .c-falix {
    color: #60a5fa;
}

.pv-log .c-green {
    color: #4ade80;
}

.pv-log .c-amber {
    color: #f5b942;
}

.pv-log .c-purple {
    color: #c084fc;
}

.pv-log .c-dim {
    color: #8b8fa3;
}

.pv-log .c-name {
    color: #60a5fa;
}

/* The wipe schedule */

.pv-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px 22px;
}

.pv-node {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 320px;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: #1a1b27;
}

.pv-node.is-trigger {
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.4);
}

.pv-node-kind {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b8fa3;
}

.pv-node-text {
    font-weight: 600;
}

.pv-node-text small {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 400;
    color: #8b8fa3;
}

.pv-link {
    width: 2px;
    height: 14px;
    margin-left: 28px;
    background: rgba(255, 255, 255, 0.12);
}

.pv-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #262632;
    color: #c9cbd3;
}

.pv-icon.is-blue {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
}

.pv-icon.is-amber {
    background: rgba(245, 185, 66, 0.14);
    color: #f5b942;
}

.pv-icon.is-cyan {
    background: rgba(34, 211, 238, 0.12);
    color: #22d3ee;
}

.pv-icon.is-red {
    background: rgba(240, 104, 126, 0.14);
    color: #f0687e;
}

.pv-icon.is-green {
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
}

/* The console */

.pv-console-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
}

.pv-console-name {
    margin-right: 2px;
    font-size: 15px;
    font-weight: 700;
}

.pv-address {
    padding: 3px 8px;
    border-radius: 6px;
    background: #262632;
    font-size: 12px;
}

.pv-power {
    display: flex;
    gap: 6px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
}

.pv-power span {
    padding: 6px 10px;
    border-radius: 6px;
}

.pv-power .is-start {
    background: #0e2622;
    color: #2f7d4f;
}

.pv-power .is-restart {
    background: #2e241e;
    color: #f5b942;
}

.pv-power .is-stop {
    background: #46131b;
    color: #f0687e;
}

.pv-tabs {
    display: flex;
    gap: 18px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12.5px;
    color: #8b8fa3;
}

.pv-tabs span {
    padding: 8px 0;
}

.pv-tabs .is-on {
    color: #fff;
    box-shadow: inset 0 -2px 0 #3b82f6;
}

.pv-console .pv-log {
    padding: 12px 16px;
}

.pv-command {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin: 4px 16px 0;
    padding: 0 12px;
    border-radius: 8px;
    background: #23232e;
    font-size: 12px;
}

.pv-command b {
    font-weight: 400;
    color: #60a5fa;
}

.pv-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 14px;
}

.pv-status .pv-badge {
    padding: 5px 10px;
    font-size: 12px;
}

/* Felix */

.pv-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #262632;
    font-size: 12px;
    color: #c9cbd3;
}

.pv-ask {
    align-self: flex-end;
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 10px;
    background: #1e3a8a;
    line-height: 1.45;
}

.pv-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #1a1b27;
    font-size: 12.5px;
}

.pv-actions span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pv-actions svg {
    flex: none;
}

.pv-answer {
    max-width: 92%;
    line-height: 1.5;
    color: #c9cbd3;
}

.pv-composer {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-top: auto;
    padding: 0 6px 0 12px;
    border-radius: 10px;
    background: #23232e;
    color: #8b8fa3;
}

.pv-composer span {
    flex-grow: 1;
}

.pv-composer b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #2b2b38;
    color: #c9cbd3;
}

/* Instances */

.pv-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #1a1b27;
}

.pv-row.is-live {
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.pv-row img {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.pv-row img.is-off {
    filter: grayscale(1);
}

.pv-row-body {
    flex-grow: 1;
    min-width: 0;
}

.pv-row-sub {
    font-size: 12px;
    color: #8b8fa3;
}

.pv-switch-btn {
    padding: 6px 12px;
    border-radius: 6px;
    background: #09234a;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 600;
}

.pv-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #8b8fa3;
}

/* Sub-user limits */

.pv-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b2f63;
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 700;
}

.pv-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

.pv-rules {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.pv-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: #23232e;
    font-size: 12px;
}

.pv-rule .pv-badge {
    padding: 1px 6px;
    font-size: 11px;
}

.pv-box {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #23232e;
    font-size: 12px;
    line-height: 1.7;
}

/* Time Machine */

.pv-day {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
}

.pv-event .pv-row-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.pv-time {
    padding: 1px 6px;
    border-radius: 4px;
    background: #262632;
    font-size: 11.5px;
}

.pv-event .pv-badge {
    padding: 1px 8px;
    border-radius: 999px;
}

/* Firewall */

.pv-toggles {
    padding: 4px 18px 10px;
}

.pv-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pv-toggle::after {
    content: "";
    flex: none;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: radial-gradient(circle at 24px 10px, #fff 7px, transparent 7.5px), #2563eb;
}

/* The CPU comparison */

.pv-perf {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 40px;
}

.pv-perf-stat {
    margin-top: 2px;
    font-size: 96px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #60a5fa;
}

.pv-perf-caption {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 600;
}

.pv-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    font-size: 13.5px;
}

.pv-bar {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

.pv-bar-track {
    height: 8px;
}

.pv-bar-track span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #475569;
}

.pv-bar.is-us {
    font-weight: 600;
    color: #fff;
}

.pv-bar.is-us .pv-bar-track span {
    background: #3b82f6;
}

.pv-bar-pct {
    text-align: right;
}

.pv-perf-note {
    margin-top: 18px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.45);
}

.pv-stack-row {
    display: flex;
    gap: 8px;
}

/* Buttons and selects drawn inside a preview */
.pv-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: #262632;
    color: #c9cbd3;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pv-btn.is-blue {
    background: #09234a;
    color: #60a5fa;
}

.pv-btn.is-primary {
    align-self: flex-end;
    background: #2563eb;
    color: #fff;
}

.pv-input.is-flat {
    flex-grow: 1;
    margin-top: 0;
    color: #8b8fa3;
}

.pv-tabs.is-inline {
    margin-left: auto;
    padding: 0;
    border: 0;
}

/* A Steam Workshop page: item cards with art, name, author and an action */
.pv-ws {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pv-ws-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #1a1b27;
}

.pv-ws-art {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    border-radius: 7px;
    background: #2a3f5f;
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.pv-ws-art.is-green {
    background: #3b4f2a;
}

.pv-ws-art.is-brown {
    background: #5a3a24;
}

.pv-ws-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 7px;
    background: #262632;
    color: #c9cbd3;
    font-size: 12px;
    font-weight: 600;
}

.pv-ws-btn.is-install {
    background: #166534;
    color: #fff;
}

/* A setting's allowed values, the current one marked */
.pv-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pv-options span {
    padding: 5px 9px;
    border-radius: 7px;
    background: #23232e;
    font-size: 12px;
    color: #c9cbd3;
}

.pv-options .is-on {
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5);
}

@media (max-width: 767.98px) {
    .pv-frame {
        margin: 24px -22px -22px 0;
    }

    .pv-vars,
    .pv-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .pv-power .is-start,
    .pv-address {
        display: none;
    }

    .pv-perf-stat {
        font-size: 72px;
    }

    .pv-ws {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pv-hide-sm {
        display: none;
    }
}
