.pa-launch-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 28px 0 10px;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(79, 145, 199, .32);
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(79, 145, 199, .13), rgba(255, 255, 255, .94) 58%),
        #fff;
    box-shadow: 0 14px 36px rgba(44, 85, 116, .10);
}

.pa-launch-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(#4f91c7, #76b4df);
}

.pa-launch-card::after {
    content: "6 × GRID";
    position: absolute;
    right: 180px;
    bottom: -13px;
    color: rgba(79, 145, 199, .08);
    font: 900 54px/1 "Cascadia Code", Consolas, monospace;
    letter-spacing: -.08em;
    pointer-events: none;
}

.pa-launch-copy { position: relative; z-index: 1; min-width: 0; }

.pa-launch-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #2e678f;
    font: 800 11px/1.2 "Cascadia Code", Consolas, monospace;
    letter-spacing: .12em;
}

.pa-launch-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f91c7;
    box-shadow: 0 0 0 4px rgba(79, 145, 199, .14);
}

.pa-launch-card h2 {
    margin: 0;
    color: var(--ink, #253442);
    font-size: 20px;
    line-height: 1.35;
}

.pa-launch-card p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #667987;
    font-size: 13.5px;
    line-height: 1.75;
}

.pa-launch-btn {
    position: relative;
    z-index: 1;
    min-width: 168px;
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid #397fb6;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #4f91c7, #397fb6);
    box-shadow: 0 9px 20px rgba(57, 127, 182, .24);
    font: 750 14px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.pa-launch-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 25px rgba(57, 127, 182, .30);
}

.pa-launch-btn:active { transform: translateY(0); }
.pa-launch-btn:focus-visible { outline: 3px solid rgba(79, 145, 199, .35); outline-offset: 3px; }

.pa-launch-hero { grid-template-columns: minmax(0, 1fr) 205px auto; }
.pa-launch-hero .pa-launch-btn { min-width: 150px; }

.pa-launch-mini {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 84px;
    gap: 8px;
    align-items: center;
    min-height: 108px;
    padding: 9px;
    border: 1px solid rgba(174, 199, 216, .75);
    border-radius: 12px;
    background: rgba(247, 251, 253, .88);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .62);
}

.pa-mini-code {
    min-width: 0;
    padding: 8px 7px;
    border-radius: 8px;
    color: #c9d9e5;
    background: #243442;
    font: 700 8px/1.65 "Cascadia Code", Consolas, monospace;
    white-space: nowrap;
}

.pa-mini-code span, .pa-mini-code b, .pa-mini-code i { display: block; overflow: hidden; text-overflow: ellipsis; }
.pa-mini-code span { color: #f2c86e; }
.pa-mini-code b { color: #7ed0aa; font-weight: 700; }
.pa-mini-code i { color: #89c8f7; font-style: normal; }

.pa-mini-preview {
    display: grid;
    grid-template-columns: repeat(2, 31px);
    gap: 4px;
    align-content: start;
    justify-content: center;
    padding-top: 3px;
}

.pa-mini-cell {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: #fff;
    font: 800 10px/1 "Cascadia Code", Consolas, monospace;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08);
}

.pa-mini-cell:nth-child(1) { background: #4f9bd0; }
.pa-mini-cell:nth-child(2) { background: #f6b51d; }
.pa-mini-cell:nth-child(3) { background: #9ca3a7; }
.pa-mini-cell:nth-child(4) { background: #d4773d; }
.pa-mini-cell:nth-child(5) { background: #8da7dd; }
.pa-mini-cell:nth-child(6) { background: #9fc987; }

.pa-mini-caption {
    position: absolute;
    right: 10px;
    bottom: 6px;
    color: #7e96a7;
    font: 700 7px/1 "Cascadia Code", Consolas, monospace;
    letter-spacing: .04em;
}

.pl-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    padding: 14px;
    background: rgba(22, 35, 47, .48);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.pl-overlay.is-open { display: block; animation: plFade .18s ease; }

@keyframes plFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

html.pl-lock,
html.pl-lock body { overflow: hidden; }

.pl-window {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1180px, calc(100vw - 28px));
    height: min(790px, calc(100vh - 28px));
    min-width: 360px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(177, 201, 218, .9);
    border-radius: 16px;
    background: #eef4f8;
    box-shadow: 0 32px 90px rgba(11, 27, 40, .34);
    transform: translate(-50%, -50%);
    animation: plPop .22s cubic-bezier(.2, .8, .2, 1);
}

@keyframes plPop {
    from { opacity: 0; transform: translate(-50%, -48%) scale(.985); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.pl-window.is-max {
    inset: 10px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
    transform: none !important;
}

.pl-head {
    flex: none;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 0 15px;
    color: #dcecf7;
    background: linear-gradient(100deg, #253849, #304d64);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    user-select: none;
    cursor: move;
    touch-action: none;
}

.pl-dots { display: flex; flex: none; gap: 6px; }
.pl-dots i { width: 10px; height: 10px; border-radius: 50%; }
.pl-dots i:nth-child(1) { background: #ff665d; }
.pl-dots i:nth-child(2) { background: #f7bd3e; }
.pl-dots i:nth-child(3) { background: #42c95b; }

.pl-title-wrap { min-width: 0; flex: 1; }
.pl-title {
    display: block;
    overflow: hidden;
    color: #f2f8fc;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pl-subtitle {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #92aabd;
    font: 10px/1.2 "Cascadia Code", Consolas, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-actions { display: flex; align-items: center; gap: 6px; flex: none; cursor: default; }

.pl-btn {
    height: 29px;
    min-width: 31px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    color: #c9dbe8;
    background: rgba(255, 255, 255, .06);
    font: 700 12px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.pl-btn:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.pl-btn.close:hover { border-color: #d94f4f; background: #c94848; }
.pl-btn:focus-visible { outline: 2px solid #7fc3f3; outline-offset: 2px; }

.pl-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #eef4f8;
}

.pl-frame { display: block; width: 100%; height: 100%; border: 0; background: #eef4f8; }

.pl-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 13px;
    color: #3f6684;
    background: #eef4f8;
    font-size: 13px;
    text-align: center;
}

.pl-loading.is-hidden { display: none; }

.pl-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border: 3px solid rgba(79, 145, 199, .18);
    border-top-color: #4f91c7;
    border-radius: 50%;
    animation: plSpin .8s linear infinite;
}

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

.pl-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    touch-action: none;
    background:
        linear-gradient(135deg, transparent 48%, rgba(69, 105, 132, .65) 49%, rgba(69, 105, 132, .65) 56%, transparent 57%),
        linear-gradient(135deg, transparent 68%, rgba(69, 105, 132, .65) 69%, rgba(69, 105, 132, .65) 76%, transparent 77%);
}

.pl-window.is-max .pl-resize { display: none; }

@media (max-width: 720px) {
    .pa-launch-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    .pa-launch-card::after { right: 8px; }
    .pa-launch-btn { width: 100%; }
    .pa-launch-hero { grid-template-columns: 1fr; }
    .pa-launch-mini { max-width: 300px; }
    .pl-overlay { padding: 7px; }
    .pl-window {
        width: calc(100vw - 14px);
        height: calc(100vh - 14px);
        min-width: 0;
        min-height: 0;
        border-radius: 11px;
    }
    .pl-head { height: 46px; padding-left: 10px; }
    .pl-dots { display: none; }
    .pl-btn.new-window { display: none; }
    .pl-subtitle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pl-overlay.is-open,
    .pl-window,
    .pl-spinner { animation: none; }
    .pa-launch-btn { transition: none; }
}
