/* SavvyGreat Snapic single full-screen camera surface
   20260815-snapic-camera-screen-actions-4 */

.sgsnapic-camera-screen-actions {
    --sgsnapic-voice-level: 0;
    position: fixed !important;
    z-index: 2147483640 !important;
    inset: 0 !important;
    display: none !important;
    pointer-events: none !important;
    color: #fff;
    font-family: inherit;
}

.sgsnapic-camera-screen-actions[data-live="true"] {
    display: block !important;
}

.sgsnapic-camera-screen-topbar {
    position: fixed !important;
    z-index: 2147483644 !important;
    top: calc(8px + env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.sgsnapic-camera-screen-close,
.sgsnapic-camera-screen-settings button,
.sgsnapic-camera-screen-mode button,
.sgsnapic-camera-screen-lenses button,
.sgsnapic-screen-side,
.sgsnapic-screen-shutter,
.sgsnapic-screen-record,
.sgsnapic-screen-record-stop {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.sgsnapic-camera-screen-close {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 50%;
    background: rgba(0,0,0,.56);
    color: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    pointer-events: auto;
    cursor: pointer;
}

.sgsnapic-camera-screen-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.sgsnapic-camera-screen-close:disabled {
    opacity: .42;
}

.sgsnapic-camera-screen-settings {
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: auto;
}

.sgsnapic-camera-screen-settings button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.40);
    border-radius: 999px;
    background: rgba(0,0,0,.56);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(0,0,0,.26);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    cursor: pointer;
}

.sgsnapic-camera-screen-settings button[aria-pressed="true"] {
    border-color: rgba(150,255,196,.72);
    background: rgba(6,78,59,.72);
}

.sgsnapic-camera-screen-settings [data-sgsnapic-screen-hd][aria-pressed="true"] {
    border-color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.92);
    color: #111;
}

.sgsnapic-camera-screen-settings button:disabled {
    opacity: .48;
}

.sgsnapic-camera-screen-settings svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: currentColor;
}

.sgsnapic-camera-screen-level {
    position: relative;
    width: 28px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
}

.sgsnapic-camera-screen-level b {
    position: absolute;
    inset: 0;
    transform: scaleX(var(--sgsnapic-voice-level));
    transform-origin: left center;
    border-radius: inherit;
    background: #7ef5a6;
    transition: transform 90ms linear, background-color 120ms ease;
}

.sgsnapic-camera-screen-actions[data-clipping="true"] .sgsnapic-camera-screen-level b {
    background: #ff5a55;
}

.sgsnapic-camera-screen-status {
    position: fixed;
    z-index: 2147483641;
    left: 50%;
    bottom: calc(248px + env(safe-area-inset-bottom));
    max-width: min(680px, calc(100vw - 32px));
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,.48);
    color: rgba(255,255,255,.92);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 1px 3px #000;
    pointer-events: none;
}

.sgsnapic-camera-screen-status[hidden] {
    display: none !important;
}

.sgsnapic-camera-screen-status.is-error {
    background: rgba(108,20,16,.78);
    color: #ffdad6;
}

.sgsnapic-camera-screen-record-info {
    position: fixed !important;
    z-index: 2147483643 !important;
    left: 50%;
    bottom: calc(215px + env(safe-area-inset-bottom));
    display: none !important;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
    pointer-events: none;
}

.sgsnapic-camera-screen-actions[data-recording="true"] .sgsnapic-camera-screen-record-info {
    display: inline-flex !important;
}

.sgsnapic-camera-screen-record-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255,59,48,.22);
    animation: sgsnapic-camera-screen-pulse 1s ease-in-out infinite;
}

@keyframes sgsnapic-camera-screen-pulse {
    50% { transform: scale(.72); opacity: .65; }
}

.sgsnapic-camera-screen-mode {
    position: fixed !important;
    z-index: 2147483643 !important;
    left: 50%;
    bottom: calc(160px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transform: translateX(-50%);
    padding: 4px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    background: rgba(0,0,0,.64);
    box-shadow: 0 5px 20px rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
}

.sgsnapic-camera-screen-mode button {
    min-width: 82px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.sgsnapic-camera-screen-mode button[aria-pressed="true"] {
    background: #fff;
    color: #101114;
}

.sgsnapic-camera-screen-mode button:disabled {
    opacity: .48;
}

.sgsnapic-camera-screen-mode svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sgsnapic-camera-screen-lenses {
    position: fixed;
    z-index: 2147483643;
    left: 50%;
    bottom: calc(118px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 5px;
    transform: translateX(-50%);
    min-height: 34px;
    pointer-events: auto;
}

.sgsnapic-camera-screen-lenses:empty {
    display: none;
}

.sgsnapic-camera-screen-lenses button {
    min-width: 38px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(0,0,0,.56);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.sgsnapic-camera-screen-lenses button[aria-pressed="true"] {
    border-color: #fff;
    background: rgba(255,255,255,.94);
    color: #111;
}

.sgsnapic-camera-screen-lenses button:disabled {
    opacity: .45;
}

.sgsnapic-camera-screen-primary {
    position: fixed !important;
    z-index: 2147483644 !important;
    left: 50%;
    bottom: calc(34px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 54px 82px 54px;
    align-items: center;
    justify-items: center;
    gap: 22px;
    transform: translateX(-50%);
    pointer-events: auto;
}

.sgsnapic-screen-side,
.sgsnapic-screen-shutter,
.sgsnapic-screen-record,
.sgsnapic-screen-record-stop {
    appearance: none;
    -webkit-appearance: none;
    place-items: center;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: 0 5px 22px rgba(0,0,0,.36);
}

.sgsnapic-screen-side {
    grid-column: 1;
    grid-row: 1;
    width: 50px;
    height: 50px;
    display: grid;
    border: 1px solid rgba(255,255,255,.50);
    border-radius: 50%;
    background: rgba(0,0,0,.60);
    color: #fff;
}

.sgsnapic-screen-side:disabled {
    opacity: .42;
}

.sgsnapic-screen-side svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.6;
}

.sgsnapic-screen-side-placeholder {
    grid-column: 3;
    grid-row: 1;
    width: 50px;
    height: 50px;
}

.sgsnapic-screen-shutter,
.sgsnapic-screen-record,
.sgsnapic-screen-record-stop {
    grid-column: 2;
    grid-row: 1;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    display: none;
    border-radius: 50%;
}

.sgsnapic-camera-screen-actions[data-mode="photo"][data-recording="false"] [data-sgsnapic-screen-capture] {
    display: grid;
}

.sgsnapic-screen-shutter {
    border: 5px solid #fff;
    background: rgba(255,255,255,.18);
}

.sgsnapic-screen-shutter > span {
    width: 61px;
    height: 61px;
    display: block;
    border-radius: 50%;
    background: #fff;
}

.sgsnapic-camera-screen-actions[data-mode="video"][data-recording="false"] [data-sgsnapic-screen-record] {
    display: grid;
}

.sgsnapic-screen-record {
    border: 5px solid #fff;
    background: rgba(0,0,0,.28);
}

.sgsnapic-screen-record > span {
    width: 57px;
    height: 57px;
    display: block;
    border-radius: 50%;
    background: #ff3b30;
}

.sgsnapic-camera-screen-actions[data-recording="true"] [data-sgsnapic-screen-record-stop] {
    display: grid;
}

.sgsnapic-screen-record-stop {
    border: 5px solid #fff;
    background: rgba(0,0,0,.34);
}

.sgsnapic-screen-record-stop > span {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 7px;
    background: #ff3b30;
}

.sgsnapic-camera-screen-caption {
    position: fixed;
    z-index: 2147483642;
    left: 50%;
    bottom: calc(8px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    max-width: calc(100vw - 24px);
    color: rgba(255,255,255,.9);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 1px 4px #000;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 640px) {
    .sgsnapic-camera-screen-topbar {
        top: calc(6px + env(safe-area-inset-top));
    }

    .sgsnapic-camera-screen-close {
        width: 42px;
        height: 42px;
    }

    .sgsnapic-camera-screen-settings {
        gap: 5px;
    }

    .sgsnapic-camera-screen-settings button {
        min-height: 38px;
        padding: 0 9px;
        font-size: 10px;
    }

    .sgsnapic-camera-screen-settings [data-sgsnapic-screen-hd] span {
        display: none;
    }

    .sgsnapic-camera-screen-level {
        width: 22px;
    }

    .sgsnapic-camera-screen-status {
        bottom: calc(236px + env(safe-area-inset-bottom));
        font-size: 10px;
    }

    .sgsnapic-camera-screen-record-info {
        bottom: calc(204px + env(safe-area-inset-bottom));
    }

    .sgsnapic-camera-screen-mode {
        bottom: calc(151px + env(safe-area-inset-bottom));
    }

    .sgsnapic-camera-screen-mode button {
        min-width: 76px;
        min-height: 36px;
        padding: 0 10px;
        font-size: 11px;
    }

    .sgsnapic-camera-screen-lenses {
        bottom: calc(112px + env(safe-area-inset-bottom));
    }

    .sgsnapic-camera-screen-primary {
        bottom: calc(31px + env(safe-area-inset-bottom));
        grid-template-columns: 48px 76px 48px;
        gap: 18px;
    }

    .sgsnapic-screen-side {
        width: 46px;
        height: 46px;
    }

    .sgsnapic-screen-shutter,
    .sgsnapic-screen-record,
    .sgsnapic-screen-record-stop {
        width: 76px;
        height: 76px;
        min-width: 76px;
        min-height: 76px;
    }

    .sgsnapic-screen-shutter > span { width: 57px; height: 57px; }
    .sgsnapic-screen-record > span { width: 53px; height: 53px; }
}

@media (orientation: landscape) and (max-height: 520px) {
    .sgsnapic-camera-screen-topbar {
        top: calc(5px + env(safe-area-inset-top));
    }

    .sgsnapic-camera-screen-status {
        left: max(12px, env(safe-area-inset-left));
        bottom: calc(12px + env(safe-area-inset-bottom));
        max-width: 260px;
        transform: none;
        text-align: left;
    }

    .sgsnapic-camera-screen-record-info {
        left: auto;
        right: calc(12px + env(safe-area-inset-right));
        bottom: calc(14px + env(safe-area-inset-bottom));
        transform: none;
    }

    .sgsnapic-camera-screen-mode {
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: calc(50% - 110px);
    }

    .sgsnapic-camera-screen-lenses {
        left: calc(50% + 118px);
        bottom: calc(17px + env(safe-area-inset-bottom));
    }

    .sgsnapic-camera-screen-primary {
        left: 50%;
        bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .sgsnapic-camera-screen-caption {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgsnapic-camera-screen-record-dot {
        animation: none !important;
    }
    .sgsnapic-camera-screen-level b {
        transition: none !important;
    }
}
