/* Screen Monitor — centered preview + toolbar (mh-v2) */

.screen-monitor-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.screen-preview-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: min(72vh, 640px);
    padding: var(--space-6);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-secondary);
}

.screen-device-frame {
    position: relative;
    width: min(100%, 420px);
    max-height: min(72vh, 640px);
    aspect-ratio: 9 / 19;
    background: #0a0a0a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.45);
    margin: 0 auto;
}

.screen-device-frame:fullscreen {
    width: 100%;
    max-height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 22px;
    background: #0a0a0a;
    border-radius: 0 0 14px 14px;
    z-index: 2;
    pointer-events: none;
}

.screen-view-port {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 12px;
}

.screen-zoom-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
}

.screen-live-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-md);
    user-select: none;
    -webkit-user-drag: none;
}

.screen-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    justify-content: center;
}

.screen-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
}

.screen-recording-timer {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(239, 68, 68, 0.12);
    color: var(--status-error);
    border-radius: var(--radius-md);
    font-variant-numeric: tabular-nums;
    font-weight: var(--font-medium);
}

.screen-recording-timer.is-visible {
    display: inline-flex;
}

.screen-placeholder-inner {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-muted);
}
