.sheet-app .editor {
    max-width: 420px;
}

.compact-actions {
    margin-top: 0;
}

.image-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
}

.image-empty {
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, .18);
    color: var(--ui-muted);
    font-size: 13px;
}

.image-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .08);
}

.image-thumb {
    width: 72px;
    height: 96px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
}

.image-meta {
    min-width: 0;
}

.image-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff4e6;
    overflow-wrap: anywhere;
    margin-bottom: 4px;
}

.image-subtitle {
    font-size: 12px;
    color: var(--ui-muted);
    margin-bottom: 8px;
}

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

.image-actions .btn {
    padding: 7px 10px;
    font-size: 12px;
}

.sheet {
    width: 2480px;
    height: 3508px;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .52);
}

.sheet-items {
    position: absolute;
    inset: 0;
}

.sheet-slot {
    position: absolute;
}

.sheet-card-frame {
    position: absolute;
    overflow: hidden;
    background: #fff;
}

.sheet-card-image {
    display: block;
    width: 100%;
    height: 100%;
}

.cut-guides {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.preview-wrap {
    align-items: start;
}


/* The generic preview scaler uses a centered transform origin, which shifts
   very large pages visually to the right after scaling. For the A4 sheet,
   keep the transform anchored to the shell's top-left corner; the preview
   grid then centers the shell itself accurately. */
.sheet-app .scale-shell {
    transform-origin: top left;
}

.layout-note-strong {
    color: #fff4e6;
    font-weight: 700;
}

@media (max-width: 980px) {
    .app.sheet-app {
        grid-template-columns: 1fr;
    }

    .sheet-app .editor {
        position: static;
        max-height: none;
    }
}
