/* Page and canvas defaults previously supplied by the upstream stylesheet. */
* {
    margin: 0;
    padding: 0;
    touch-action: none;
}
body {
    overflow: hidden;
    font-family: Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
button {
    appearance: none;
}
/* Preserve the upstream Chrome/macOS WebGPU frame-pacing workaround. */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
}
html,
body {
    width: 100%;
    height: 100%;
    background: #090a0e;
    color: #f6f6fa;
}
[hidden] {
    display: none !important;
}
#application-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    outline: none;
}
.jet-top {
    position: fixed;
    inset: max(22px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) auto
        max(24px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}
#jet-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #ffffff20;
    background: #101118b8;
    pointer-events: auto;
}
#jet-logo {
    width: 56px;
    height: auto;
}
#jet-title {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    padding: 10px 14px;
    border-radius: 30px;
    background: #101118b8;
}
.jet-toolbar {
    width: max-content;
    max-width: calc(100vw - 24px);
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid #ffffff20;
    border-radius: 18px;
    background: #101118d9;
    z-index: 20;
}
.jet-button {
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    color: #eeeef4;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font:
        13px Arial,
        sans-serif;
    cursor: pointer;
    touch-action: manipulation;
}
.jet-button:hover,
.jet-button[aria-expanded='true'] {
    background: #ffffff15;
}
.jet-button:focus-visible,
#jet-brand:focus-visible {
    outline: 2px solid #b48dff;
    outline-offset: 3px;
}
.jet-button:disabled {
    opacity: 0.35;
    cursor: default;
}
.jet-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.jet-divider {
    width: 1px;
    height: 24px;
    background: #ffffff20;
    align-self: center;
    margin: 0 2px;
}
#jet-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(330px, calc(100vw - 64px));
    padding: 28px;
    border: 1px solid #ffffff18;
    border-radius: 20px;
    background: #101118eb;
    text-align: center;
    z-index: 15;
}
#jet-status-title {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 12px;
}
#jet-status-text {
    color: #b4b5c2;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
#jet-progress {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 22px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    accent-color: #a25aff;
}
#jet-progress::-webkit-progress-bar {
    background: #292935;
}
#jet-progress::-webkit-progress-value {
    background: linear-gradient(90deg, #4f5bff, #fb57d4);
}
#jet-retry {
    margin: 16px auto 0;
    background: #ffffff12;
}
#jet-help-panel {
    position: fixed;
    bottom: max(94px, calc(env(safe-area-inset-bottom) + 70px));
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 64px));
    padding: 22px;
    border: 1px solid #ffffff20;
    border-radius: 16px;
    background: #101118ed;
    z-index: 20;
}
#jet-help-panel h2 {
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 400;
}
#jet-help-panel p {
    font-size: 12px;
    color: #c0c1ce;
    line-height: 1.8;
}
#jet-notice {
    position: fixed;
    bottom: 100px;
    left: 24px;
    right: 24px;
    text-align: center;
    font-size: 12px;
    pointer-events: none;
}
@media (max-width: 480px) {
    .jet-top {
        inset: max(16px, env(safe-area-inset-top)) 16px auto;
    }
    #jet-title {
        max-width: 50vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
#jet-comparison {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 7;
}
#jet-split {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--jet-split, 50%);
    width: 44px;
    transform: translateX(-50%);
    pointer-events: auto;
    cursor: ew-resize;
    touch-action: none;
    outline: none;
}
#jet-split::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 21px;
    width: 2px;
    background: #ffffffd0;
    box-shadow: 0 0 5px #0008;
}
#jet-split span {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #fff8;
    border-radius: 50%;
    background: #171720;
    color: white;
    font-size: 22px;
}
#jet-split:focus-visible span {
    outline: 3px solid #b48dff;
    outline-offset: 3px;
}
.jet-side-label {
    position: absolute;
    top: max(88px, calc(env(safe-area-inset-top) + 70px));
    max-width: calc(50% - 48px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 24px;
    background: #101118d9;
    font-size: 12px;
}
#jet-left-label {
    left: 24px;
}
#jet-right-label {
    right: 24px;
}
#jet-compare[aria-pressed='true'] {
    background: #8c62ed35;
    color: #e4d9ff;
}
#jet-notice {
    z-index: 22;
    text-shadow: 0 1px 4px #000;
}
@media (max-width: 540px) {
    #jet-reset span {
        display: none;
    }
    #jet-reset {
        padding: 0;
    }
    .jet-toolbar {
        gap: 2px;
    }
    .jet-side-label {
        max-width: calc(50% - 40px);
        font-size: 11px;
    }
    #jet-left-label {
        left: 12px;
    }
    #jet-right-label {
        right: 12px;
    }
}
