body {
    background-color: #f5f5f5;
}

#appVersion {
    font-size: 0.7em;
}

.min-w-0 {
    min-width: 0;
}

.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.thumbnail-grid .thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e0e0;
    border: 1px solid #ccc;
}

.thumbnail-grid .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-grid .thumb .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    line-height: 20px;
    padding: 0;
    border-radius: 50%;
    font-size: 14px;
}

.thumbnail-grid .thumb.uploading {
    opacity: 0.5;
}

.camera-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #000;
    display: flex;
    flex-direction: column;
}

.camera-overlay video {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.camera-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

.camera-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.9);
    color: #fff;
    font-size: 46px;
    line-height: 90px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.camera-check.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.camera-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.camera-bottombar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0 calc(env(safe-area-inset-bottom, 0px) + 28px);
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

@media (orientation: landscape) {
    .camera-bottombar {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: auto;
        padding: 16px calc(env(safe-area-inset-right, 0px) + 28px) 16px 16px;
        background: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
    }
}

.shutter-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid rgba(255,255,255,0.5);
    box-shadow: 0 0 0 2px #000 inset;
    padding: 0;
}

.shutter-btn:active {
    background: #ddd;
}
