:root {
    color-scheme: dark;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #080a10;
    color: #e7e9ef;
    font-family: Inter, system-ui, sans-serif;
}

h1:focus {
    outline: none;
}

.live-review-shell {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: radial-gradient(circle at top, #1a1f2e 0%, #080a10 45%);
}

.live-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .7rem 1rem;
    background: rgba(15, 18, 28, .92);
    border-bottom: 1px solid #2f3747;
}

.title-stack h1 {
    margin: 0;
    font-size: 1.15rem;
}

.title-stack span {
    color: #9da8be;
    font-size: .8rem;
}

.toolbar-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    border: 1px solid #3e4b63;
    background: #141b2b;
    color: #e8edf7;
    border-radius: .4rem;
    padding: .45rem .75rem;
    font-size: .82rem;
}

.btn.danger {
    border-color: #7f2a34;
    background: #4a1820;
}

.viewer-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.image-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.live-image {
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    transform-origin: center center;
    transition: transform 0.08s linear;
}

.exif-hud {
    position: absolute;
    left: .85rem;
    top: .85rem;
    display: grid;
    gap: .2rem;
    padding: .6rem .75rem;
    border: 1px solid #323a4d;
    border-radius: .45rem;
    background: rgba(11, 13, 20, .78);
    backdrop-filter: blur(4px);
    font-size: .83rem;
}

.filmstrip {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    padding: .55rem .75rem;
    background: rgba(8, 11, 17, .95);
    border-top: 1px solid #2a3342;
}

.thumb {
    border: 1px solid #273044;
    border-radius: .45rem;
    padding: 0;
    overflow: hidden;
    background: #0f1524;
    min-width: 7.8rem;
    height: 5rem;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.active {
    border-color: #5da2ff;
    box-shadow: 0 0 0 1px rgba(93, 162, 255, .6);
}

.clear-panel {
    position: absolute;
    top: 4rem;
    right: 1rem;
    display: grid;
    gap: .5rem;
    width: 14rem;
    padding: .85rem;
    border-radius: .6rem;
    border: 1px solid #343d50;
    background: rgba(10, 14, 22, .95);
}

.clear-panel input {
    border: 1px solid #3a4255;
    border-radius: .35rem;
    background: #0a1020;
    color: #f8fbff;
    padding: .45rem;
}

.empty-state {
    color: #95a2bc;
    font-size: 1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}
