.runtime-page {
    min-height: 100vh;
    background: #f5f5f7;
    color: #1d1d1f;
}

.runtime-shell {
    width: 100%;
    margin: 0 auto;
    padding: 96px 0;
    overflow: hidden;
}

.runtime-carousel {
    position: relative;
    width: 100%;
    padding-bottom: 86px;
}

.runtime-carousel-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0;
}

.runtime-carousel-track::-webkit-scrollbar {
    display: none;
}

.runtime-slide {
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 620px;
    scroll-snap-align: start;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.runtime-hero {
    flex-direction: column;
    justify-content: center;
    width: min(1040px, calc(100vw - 64px));
    max-width: min(1040px, calc(100vw - 64px));
    padding: 64px;
    box-sizing: border-box;
    border-radius: 36px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: none;
}

.camera-panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: 36px;
    width: min(1040px, calc(100vw - 64px));
    max-width: min(1040px, calc(100vw - 64px));
    box-sizing: border-box;
    padding: 48px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 80% 18%, rgba(29, 29, 31, .10), transparent 32%),
        rgba(255, 255, 255, .74);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: none;
}

.camera-copy h2 {
    margin: 12px 0 18px;
    color: #1d1d1f;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .94;
    letter-spacing: -.06em;
}

.camera-copy p:last-child {
    max-width: 430px;
    margin: 0;
    color: #6e6e73;
    font-size: 20px;
    line-height: 1.6;
}

.camera-stage {
    display: grid;
    gap: 18px;
}

.camera-preview {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    overflow: hidden;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(29, 29, 31, .92), rgba(58, 58, 60, .72)),
        #1d1d1f;
    color: #f5f5f7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.camera-preview::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
}

.camera-lens {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 36px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 24px 70px rgba(0, 0, 0, .30);
}

.camera-lens::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .92), transparent 9%),
        radial-gradient(circle at center, rgba(245, 245, 247, .28), rgba(245, 245, 247, .07) 48%, transparent 50%);
    border: 1px solid rgba(255, 255, 255, .28);
}

.camera-lens::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 18px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.camera-preview span {
    position: absolute;
    left: 28px;
    bottom: 24px;
    color: rgba(245, 245, 247, .74);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.camera-launch {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 24px;
    background: #1d1d1f;
    color: #f5f5f7;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.camera-launch:hover {
    transform: translateY(-1px);
}

.camera-launch:active {
    opacity: .86;
}

.runtime-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.runtime-carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #86868b;
    cursor: pointer;
    transition: width .28s cubic-bezier(.2, .8, .2, 1), background .24s ease, opacity .24s ease;
}

.runtime-carousel-dots button.is-active {
    width: 48px;
    background: #1d1d1f;
}

.runtime-kicker {
    margin: 0 0 14px;
    color: #0066cc;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.runtime-hero h1 {
    margin: 0;
    color: #1d1d1f;
    font-size: clamp(48px, 8vw, 96px);
    line-height: .96;
    letter-spacing: -0.06em;
}

.runtime-desc {
    margin: 28px 0 36px;
    color: #6e6e73;
    font-size: 20px;
    line-height: 1.7;
}

.runtime-trigger {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    background: #1d1d1f;
    color: #f5f5f7;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.runtime-trigger:hover {
    transform: translateY(-1px);
}

.runtime-trigger:active {
    transform: translateY(0);
    opacity: .86;
}

.runtime-trigger.is-loading {
    pointer-events: none;
    opacity: .82;
}

.runtime-trigger.is-loading::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .34);
    border-top-color: #f5f5f7;
    vertical-align: -2px;
    animation: runtimeSpin .9s linear infinite;
}

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

.runtime-panel,
.runtime-unsupported {
    width: min(920px, calc(100% - 40px));
    margin: 56px auto 0;
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .08);
    animation: runtimePanelIn .52s cubic-bezier(.2, .8, .2, 1) both;
}

.vision-panel {
    width: min(920px, calc(100% - 40px));
    margin: 56px auto 0;
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .08);
    animation: runtimePanelIn .52s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes runtimePanelIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }

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

.runtime-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.runtime-panel h2,
.runtime-unsupported h2,
.vision-panel h2 {
    margin: 0;
    color: #1d1d1f;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.runtime-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 800;
}

.runtime-badge::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34c759;
}

.runtime-badge.is-unsupported::before {
    background: #86868b;
}

.runtime-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.runtime-card {
    min-height: 96px;
    padding: 18px 22px;
    border-radius: 24px;
    background: #f5f5f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.runtime-card:has(#browserStatus) {
    align-items: stretch;
}

.runtime-card-wide {
    grid-column: auto;
}

.runtime-card span {
    display: block;
    margin-bottom: 10px;
    color: #86868b;
    font-size: 13px;
    font-weight: 800;
}

.runtime-card strong {
    display: block;
    color: #1d1d1f;
    font-size: 20px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#browserStatus {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.vision-head {
    max-width: 680px;
    margin-bottom: 28px;
}

.vision-head p:last-child {
    margin: 14px 0 0;
    color: #6e6e73;
    font-size: 17px;
    line-height: 1.7;
}

.vision-upload {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.2fr);
    gap: 18px;
    align-items: stretch;
}

.vision-upload .runtime-trigger {
    align-self: start;
    justify-self: start;
}

.image-preview-box {
    min-height: 112px;
    border-radius: 24px;
    border: 1px dashed rgba(0, 0, 0, .16);
    background: rgba(255, 255, 255, .52);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.image-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #86868b;
    text-align: left;
    font-weight: 800;
}

.preview-icon {
    font-size: 26px;
    line-height: 1;
    opacity: .65;
}

.preview-copy strong {
    display: block;
    color: #86868b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.preview-copy em {
    display: block;
    margin-top: 4px;
    color: #86868b;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.image-preview-box.has-image {
    min-height: 320px;
    border-style: solid;
    background: transparent;
}

.image-preview-box.has-image .image-preview-placeholder {
    display: none;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 24px;
}

.image-preview-box img[hidden] {
    display: none;
}

.vision-result {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.vision-result>div {
    min-height: 96px;
    padding: 18px 22px;
    border-radius: 24px;
    background: #f5f5f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.vision-result span {
    display: block;
    margin-bottom: 10px;
    color: #86868b;
    font-size: 13px;
    font-weight: 800;
}

.vision-result strong {
    display: block;
    color: #1d1d1f;
    font-size: 20px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.runtime-dashboard {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.dashboard-head {
    margin-bottom: 18px;
}

.dashboard-head h3 {
    margin: 0;
    color: #1d1d1f;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-grid>div {
    min-height: 88px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #f5f5f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.dashboard-grid span {
    display: block;
    color: #86868b;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-grid strong {
    display: block;
    margin-top: 9px;
    color: #1d1d1f;
    font-size: 18px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-panel {
    margin-top: 18px;
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(245, 245, 247, .96), rgba(239, 239, 242, .88));
    border: 1px solid rgba(0, 0, 0, .04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
    overflow: hidden;
}

.history-panel::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size .34s cubic-bezier(.2, .8, .2, 1), opacity .24s ease;
    transition-behavior: allow-discrete;
}

.history-panel[open]::details-content {
    block-size: auto;
    opacity: 1;
}

.history-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    min-height: 62px;
    padding: 10px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .48);
    color: #86868b;
    cursor: pointer;
    list-style: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    transition: background .24s ease, color .24s ease, box-shadow .24s ease;
}

.history-summary:hover {
    background: rgba(255, 255, 255, .58);
    color: #6e6e73;
}

.history-summary-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.history-summary-title {
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
}

.history-summary-desc {
    color: #86868b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.history-summary-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #6e6e73;
    font-size: 13px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .035);
}

#historyCount {
    justify-self: end;
}

.history-summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #86868b;
    border-bottom: 2px solid #86868b;
    transform: rotate(45deg);
    transition: transform .24s ease;
}

.history-panel[open] .history-summary::after {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.history-panel[open] .history-table {
    margin-top: 12px;
    opacity: 1;
    transform: translateY(0);
}

.history-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px auto;
    gap: 12px;
    margin-top: 12px;
}

.history-tools input,
.history-tools select {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.history-tools input::placeholder {
    color: #86868b;
}

.history-tools select {
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #86868b 50%),
        linear-gradient(135deg, #86868b 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 17px,
        calc(100% - 13px) 17px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.history-tools select:hover,
.history-tools input:hover {
    background-color: rgba(255, 255, 255, .86);
}

.history-tools select:focus,
.history-tools input:focus {
    background-color: rgba(255, 255, 255, .96);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 204, .22), 0 0 0 3px rgba(0, 102, 204, .08);
}

.history-actions {
    display: flex;
    gap: 8px;
}

.history-actions button,
.history-delete {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #6e6e73;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.history-actions button {
    min-height: 40px;
    padding: 0 12px;
}

.history-delete {
    min-height: 30px;
    padding: 0 10px;
}

.history-actions button:hover,
.history-delete:hover {
    color: #1d1d1f;
    background: rgba(255, 255, 255, .96);
    transform: translateY(-1px);
}

.history-empty {
    min-width: 600px;
    padding: 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    color: #86868b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.history-table {
    display: grid;
    grid-template-rows: 1fr;
    overflow: hidden;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .24s ease, transform .34s cubic-bezier(.2, .8, .2, 1), margin-top .34s ease;
}

.history-table-inner {
    min-height: 0;
    overflow-x: auto;
    padding: 0 0 2px;
}

.history-table-head,
.history-item {
    display: grid;
    grid-template-columns: 72px minmax(180px, 1fr) 92px 96px 64px;
    column-gap: 12px;
    align-items: center;
    min-width: 620px;
}

.history-table-head {
    padding: 10px 16px 12px;
    color: #86868b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .04em;
}

.history-table-head span:nth-child(3),
.history-table-head span:nth-child(4),
.history-table-head span:nth-child(5),
.history-item>span:nth-of-type(1),
.history-item>span:nth-of-type(2),
.history-delete {
    text-align: center;
    justify-self: center;
}

.history-list {
    display: grid;
    gap: 10px;
    padding: 0 2px 2px;
}

.history-item {
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .045);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.history-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .06);
}

.history-item img,
.history-thumb-fallback {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, .04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.history-item img {
    object-fit: cover;
}

.history-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-size: 12px;
    font-weight: 800;
}

.history-item div {
    min-width: 0;
    display: flex;
    align-items: center;
}

.history-item strong {
    display: block;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item span {
    color: #6e6e73;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item div span {
    display: none;
}

.runtime-unsupported p:last-child {
    max-width: 640px;
    color: #6e6e73;
    font-size: 17px;
    line-height: 1.8;
}

@media (max-width: 560px) {
    .runtime-shell {
        padding: 72px 0;
    }

    .runtime-carousel {
        padding-bottom: 0px;
    }

    .runtime-carousel-track {
        gap: 0;
        padding: 0;
    }

    .runtime-slide {
        flex-basis: 100%;
        min-width: 100%;
        min-height: auto;
    }

    .runtime-hero,
    .camera-panel {
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        padding: 30px 22px;
        border-radius: 30px;
    }

    .camera-panel {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .camera-copy h2 {
        font-size: clamp(40px, 12vw, 56px);
    }

    .camera-copy p:last-child {
        font-size: 17px;
    }

    .camera-preview {
        min-height: 260px;
        border-radius: 26px;
    }

    .runtime-hero h1 {
        font-size: clamp(44px, 14vw, 64px);
    }

    .runtime-desc {
        font-size: 17px;
    }

    .runtime-carousel-dots {
        position: static;
        transform: none;
        width: max-content;
        max-width: calc(100vw - 48px);
        margin: 22px auto 0;
        padding: 0;
    }
    
    .runtime-trigger,
    .camera-launch {
    width: 100%;
    min-height: 54px;
    }

    .runtime-carousel-dots button.is-active {
        width: 38px;
    }

    .vision-upload,
    .vision-result,
    .dashboard-grid,
    .runtime-grid {
        grid-template-columns: 1fr;
    }

    .history-table-head {
        display: none;
    }

    .history-table-inner {
        overflow-x: visible;
    }

    .history-item {
        min-width: 0;
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb meta delete"
            "score score score"
            "latency latency latency";
        gap: 12px;
        padding: 16px;
    }

    .history-item img,
    .history-thumb-fallback {
        grid-area: thumb;
        width: 56px;
        height: 56px;
    }

    .history-item div {
        grid-area: meta;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .history-delete {
        grid-area: delete;
        align-self: center;
    }

    .history-item>span:nth-of-type(1) {
        grid-area: score;
    }

    .history-item>span:nth-of-type(2) {
        grid-area: latency;
    }

    .history-item>span:nth-of-type(1),
    .history-item>span:nth-of-type(2) {
        display: flex;
        justify-content: space-between;
        text-align: left;
        width: 100%;
    }

    .history-item>span:nth-of-type(1)::before {
        content: "可信度";
        color: #86868b;
        font-weight: 800;
    }

    .history-item>span:nth-of-type(2)::before {
        content: "思考时长";
        color: #86868b;
        font-weight: 800;
    }

    .history-table-inner {
        overflow-x: visible;
    }

    .history-table-head {
        display: none;
    }

    .history-list {
        gap: 12px;
    }

    .history-tools {
        grid-template-columns: 1fr;
    }

    .history-actions {
        flex-wrap: wrap;
    }

    .history-empty {
        min-width: 0;
    }

    .history-summary {
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 58px;
        padding: 10px 12px;
    }

    .history-summary-title {
        font-size: 16px;
    }

    .history-summary-desc {
        display: none;
    }

    .history-summary-meta {
        min-height: 30px;
        padding: 0 10px;
        font-size: 12px;
    }

    .history-item {
        min-width: 0;
        min-height: 0;
        grid-template-columns: 60px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb meta delete"
            "thumb score delete"
            "thumb latency delete";
        gap: 6px 12px;
        padding: 14px;
    }

    .history-item img,
    .history-thumb-fallback {
        grid-area: thumb;
        align-self: start;
    }

    .history-item div {
        grid-area: meta;
        display: flex;
        align-items: center;
        min-height: 52px;
    }

    .history-item>span:nth-of-type(1) {
        grid-area: score;
    }

    .history-item>span:nth-of-type(2) {
        grid-area: latency;
    }

    .history-delete {
        grid-area: delete;
        align-self: center;
    }

    .history-item>span:nth-of-type(1),
    .history-item>span:nth-of-type(2) {
        text-align: left;
    }

    .history-item img,
    .history-thumb-fallback {
        width: 52px;
        height: 52px;
    }

    .image-preview-placeholder {
        gap: 10px;
    }

    .preview-icon {
        font-size: 23px;
    }

    .preview-copy strong {
        font-size: 13px;
    }

    .preview-copy em {
        font-size: 12px;
    }
}

/* Runtime Probe hero visuals: final clean layer */
.runtime-slide {
    align-items: center;
}

.runtime-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: center;
    column-gap: clamp(28px, 5vw, 56px);
    min-height: 620px;
}

.runtime-copy {
    min-width: 0;
}

.runtime-desc {
    max-width: 680px;
}

.runtime-trigger,
.camera-launch {
    width: fit-content;
    min-width: 132px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 0 24px;
}

.runtime-icon-visual {
    width: 320px;
    min-height: 280px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(circle at 76% 18%, rgba(29, 29, 31, .075), transparent 34%),
        rgba(255, 255, 255, .48);
    border: 1px solid rgba(0, 0, 0, .045);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .78),
        0 22px 64px rgba(29, 29, 31, .045);
}

.runtime-icon-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .66), transparent 42%),
        radial-gradient(circle at 52% 52%, rgba(255, 255, 255, .42), transparent 30%);
    opacity: .88;
    pointer-events: none;
}

.runtime-icon-visual::after {
    content: "";
    position: absolute;
    width: 146px;
    height: 28px;
    bottom: 70px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, .13), transparent 70%);
    filter: blur(16px);
    opacity: .72;
    pointer-events: none;
}

.runtime-monitor-icon {
    width: 112px;
    height: auto;
    fill: none;
    stroke: #007aff;
    stroke-width: 5.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 18px 34px rgba(0, 122, 255, .16));
    animation: runtimeIconFloat 5.2s ease-in-out infinite;
}

.runtime-monitor-icon rect {
    stroke-width: 6.4;
}

@keyframes runtimeIconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.camera-panel {
    overflow: hidden;
}

.camera-copy {
    min-width: 0;
}

.camera-stage {
    display: grid;
    place-items: center;
}

.camera-face-preview {
    min-height: 360px;
    width: 100%;
    background:
        radial-gradient(circle at 76% 16%, rgba(29, 29, 31, .08), transparent 34%),
        rgba(255, 255, 255, .42);
    border: 1px solid rgba(0, 0, 0, .035);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 22px 64px rgba(29, 29, 31, .035);
    color: #1d1d1f;
    display: grid;
    place-items: center;
}

.camera-face-preview::before,
.camera-face-preview::after {
    display: none;
}

.face-scan-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
}

.face-scan-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(174, 174, 178, .72) 0deg 1.15deg,
        transparent 1.15deg 4.8deg
    );
    mask-image: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
    animation: faceScanRotate 22s linear infinite;
}

.face-scan-face {
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    color: rgba(174, 174, 178, .78);
    animation: none;
}

.face-scan-face svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 5.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.face-scan-face svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

@media (max-width: 760px) {
    .runtime-shell {
        padding: 72px 0;
    }

    .runtime-carousel {
        padding-bottom: 0;
    }

    .runtime-slide {
        min-height: auto;
    }

    .runtime-hero,
    .camera-panel {
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        padding: 30px 22px;
        border-radius: 30px;
    }

    .runtime-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        row-gap: 24px;
    }

    .runtime-icon-visual {
        width: 100%;
        min-height: 220px;
        margin: 4px auto 0;
    }

    .runtime-monitor-icon {
        width: 96px;
    }

    .camera-panel {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .camera-face-preview {
        min-height: 280px;
        border-radius: 26px;
    }

    .face-scan-ring {
        width: 236px;
        height: 236px;
    }

    .face-scan-face {
        width: 112px;
        height: 112px;
    }

    .runtime-trigger,
    .camera-launch {
        width: 100%;
        min-height: 54px;
    }
}



/* Final visual system */
.runtime-hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, .78fr);
    align-items: center;
    gap: 44px;
    width: min(1040px, calc(100vw - 64px));
    max-width: min(1040px, calc(100vw - 64px));
    min-height: 620px;
    padding: 64px;
    box-sizing: border-box;
    border-radius: 36px;
    background:
        radial-gradient(circle at 82% 20%, rgba(29, 29, 31, .08), transparent 34%),
        rgba(255, 255, 255, .74);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 22px 64px rgba(29, 29, 31, .035);
    overflow: hidden;
}

.runtime-copy {
    min-width: 0;
}

.runtime-trigger {
    width: fit-content;
    min-width: 132px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 0 24px;
}

.runtime-neural-visual {
    min-height: 360px;
    display: grid;
    place-items: center;
    position: relative;
}

.runtime-neural-visual::after {
    content: "";
    position: absolute;
    width: 168px;
    height: 32px;
    bottom: 48px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(80, 96, 130, .13), transparent 70%);
    filter: blur(16px);
    opacity: .72;
}

.neural-core {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .9) 0 18%, transparent 19%),
        radial-gradient(circle at 50% 50%, rgba(0, 122, 255, .13), transparent 46%),
        repeating-conic-gradient(
            from 0deg,
            rgba(174, 174, 178, .42) 0deg 1.1deg,
            transparent 1.1deg 6.2deg
        );
    mask-image: radial-gradient(circle, transparent 43%, #000 44%, #000 64%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle, transparent 43%, #000 44%, #000 64%, transparent 65%);
    animation: neuralCoreRotate 30s linear infinite;
}

.neural-core::before {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), transparent 18%),
        linear-gradient(145deg, rgba(255,255,255,.70), rgba(232,234,239,.50));
    border: 1px solid rgba(174, 174, 178, .28);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        inset 0 -16px 34px rgba(142,142,147,.10),
        0 20px 52px rgba(29,29,31,.06);
    mask-image: none;
    -webkit-mask-image: none;
}

.neural-core::after {
    content: "";
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #007aff;
    box-shadow:
        0 0 0 14px rgba(0, 122, 255, .08),
        0 0 46px rgba(0, 122, 255, .22);
    opacity: .92;
    mask-image: none;
    -webkit-mask-image: none;
}

.neural-core span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 122, 255, .82);
    box-shadow: 0 0 0 8px rgba(0, 122, 255, .055);
    mask-image: none;
    -webkit-mask-image: none;
}

.neural-core span:nth-child(1) { transform: translate(0, -106px); }
.neural-core span:nth-child(2) { transform: rotate(60deg) translate(0, -106px); }
.neural-core span:nth-child(3) { transform: rotate(120deg) translate(0, -106px); }
.neural-core span:nth-child(4) { transform: rotate(180deg) translate(0, -106px); }
.neural-core span:nth-child(5) { transform: rotate(240deg) translate(0, -106px); }
.neural-core span:nth-child(6) { transform: rotate(300deg) translate(0, -106px); }

.camera-panel {
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 18%, rgba(29, 29, 31, .08), transparent 34%),
        rgba(255, 255, 255, .74);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 22px 64px rgba(29, 29, 31, .035);
}

.camera-face-preview {
    min-height: 360px;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    place-items: center;
}

.camera-face-preview::before,
.camera-face-preview::after {
    display: none;
}

.face-scan-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
}

.face-scan-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(174, 174, 178, .72) 0deg 1.15deg,
        transparent 1.15deg 4.8deg
    );
    mask-image: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
    animation: faceScanRotate 22s linear infinite;
}

.face-scan-face {
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    color: rgba(174, 174, 178, .78);
    animation: none;
}

.face-scan-face svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 5.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

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

@media (max-width: 760px) {
    .runtime-hero,
    .camera-panel {
        grid-template-columns: 1fr;
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        padding: 30px 22px;
        border-radius: 30px;
    }

    .runtime-neural-visual,
    .camera-face-preview {
        min-height: 260px;
    }

    .neural-core,
    .face-scan-ring {
        width: 236px;
        height: 236px;
    }

    .face-scan-face {
        width: 116px;
        height: 116px;
    }
}

/* Runtime icon final */
.runtime-icon-visual {
    min-height: 360px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.runtime-icon-visual::before,
.runtime-icon-visual::after {
    display: none;
}

.runtime-core-icon {
    width: 136px;
    height: 136px;
    fill: none;
    stroke: #007aff;
    stroke-width: 6.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 18px 34px rgba(0, 122, 255, .14));
    animation: runtimeIconFloat 5.2s ease-in-out infinite;
}

@keyframes runtimeIconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Runtime icon refinement */
.runtime-core-icon {
    width: 172px;
    height: 172px;
    fill: none;
    stroke: #007aff;
    stroke-width: 6.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(0 14px 22px rgba(0, 122, 255, .16))
        drop-shadow(0 34px 70px rgba(0, 122, 255, .10));
    animation: none;
}

.runtime-core-icon rect {
    stroke-width: 6.8;
}

.runtime-icon-visual {
    min-height: 360px;
}



/* Ops console final minimal icon */
.camera-face-preview {
    min-height: 360px;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    place-items: center;
}

.camera-face-preview::before,
.camera-face-preview::after {
    display: none;
}

.camera-face-frame {
    width: 260px;
    height: 260px;
    display: grid;
    place-items: center;
    position: relative;
}

.camera-face-frame::after {
    display: none;
}

.camera-face-icon {
    width: 210px;
    height: 210px;
    fill: none;
    stroke: #BFBFC1;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(8px 12px 18px rgba(191, 191, 193, .18))
        drop-shadow(22px 28px 42px rgba(191, 191, 193, .12));
}

.camera-face-icon .corner {
    stroke-width: 6.4;
}

.camera-face-icon circle {
    fill: #BFBFC1;
    stroke: none;
}

.runtime-page .runtime-carousel-track {
    scroll-padding-left: 0;
}

.runtime-page .runtime-slide {
    align-items: center;
}

.runtime-page .runtime-hero,
.runtime-page .camera-panel {
    width: min(1040px, calc(100vw - 64px));
    max-width: min(1040px, calc(100vw - 64px));
    min-height: 620px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 82% 20%, rgba(29, 29, 31, .08), transparent 34%),
        rgba(255, 255, 255, .74);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 22px 64px rgba(29, 29, 31, .035);
}

.runtime-page .runtime-hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, .78fr);
    align-items: center;
    gap: 44px;
    padding: 64px;
    overflow: hidden;
}

.runtime-page .camera-panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: 36px;
    padding: 48px;
    overflow: hidden;
}

.runtime-page .camera-preview.camera-face-preview {
    min-height: 360px;
    display: grid;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1d1d1f;
}

.runtime-page .camera-preview.camera-face-preview::before,
.runtime-page .camera-preview.camera-face-preview::after {
    display: none;
    content: none;
}

.runtime-page .camera-preview.camera-face-preview .face-scan-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
}

.runtime-page .camera-preview.camera-face-preview .face-scan-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(174, 174, 178, .72) 0deg 1.15deg,
        transparent 1.15deg 4.8deg
    );
    mask-image: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
    animation: faceScanRotate 22s linear infinite;
}

.runtime-page .camera-preview.camera-face-preview .face-scan-face {
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    color: #BFBFC1;
}

.runtime-page .camera-preview.camera-face-preview .face-scan-face svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 5.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(8px 12px 18px rgba(191, 191, 193, .18))
        drop-shadow(22px 28px 42px rgba(191, 191, 193, .12));
}

@media (max-width: 760px) {
    .runtime-page .runtime-hero,
    .runtime-page .camera-panel {
        grid-template-columns: 1fr;
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        min-height: auto;
        padding: 30px 22px;
        border-radius: 30px;
    }

    .runtime-page .camera-preview.camera-face-preview {
        min-height: 260px;
    }

    .runtime-page .camera-preview.camera-face-preview .face-scan-ring {
        width: 236px;
        height: 236px;
    }

    .runtime-page .camera-preview.camera-face-preview .face-scan-face {
        width: 116px;
        height: 116px;
    }
}

/* Apple-style button refinement: compact rectangular controls, not pill-heavy CTAs. */
.runtime-trigger,
.camera-launch,
.history-actions button,
.history-delete {
    border-radius: 12px;
}

.runtime-carousel-dots button {
    border-radius: 4px;
}

.runtime-carousel-dots button.is-active {
    border-radius: 6px;
}
