.nomen-start {
    max-width: 560px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nomen-start h3 {
    margin: 0;
    color: #1a3d6f;
}

.nomen-start p {
    margin: 0;
}

.nomen-interval-label {
    font-weight: 600;
}

.nomen-start input[type="number"] {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1.1rem;
}

.nomen-start-buttons {
    margin-top: 4px;
}

.nomen-start-hint {
    font-size: .85rem;
    color: #777;
}

.nomen-admin {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1000px;
}

.nomen-admin-actions a {
    font-weight: 600;
}

.nomen-admin-section {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.nomen-admin-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1a3d6f;
}

.nomen-admin-hint {
    color: #666;
    font-size: .9rem;
}

.nomen-file-info {
    margin-top: 10px;
    color: #555;
    font-size: .9rem;
}

.nomen-admin-buttons {
    margin-top: 14px;
}

.nomen-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
}

.nomen-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nomen-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nomen-bild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.nomen-bild-card {
    margin: 0;
    padding: 8px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nomen-bild-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

.nomen-bild-fehler {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #777;
    font-size: .82rem;
    text-align: center;
}

.nomen-bild-card figcaption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
}

.nomen-delete {
    padding: 4px 8px;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.nomen-delete:hover {
    background: #f8d7da;
}

.nomen-stage {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.nomen-stage-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
}

.nomen-fokuspunkt {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #e00000;
    box-shadow: 0 0 12px rgba(0, 0, 0, .55);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.nomen-stage-topbar {
    position: absolute;
    top: 12px;
    left: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: .95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
    pointer-events: none;
}

.nomen-stage-controls {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .6);
    transform: translateX(-50%);
}

.nomen-stage-button {
    padding: 8px 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    font-size: .95rem;
    cursor: pointer;
}

.nomen-stage-button:hover {
    background: rgba(255, 255, 255, .25);
}

.nomen-stage-button-stop {
    border-color: rgba(255, 120, 120, .8);
    color: #ffd7d7;
}

@media (max-width: 500px) {
    .nomen-stage-controls {
        width: calc(100% - 24px);
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .nomen-stage-button {
        flex: 1 1 auto;
        padding: 8px 10px;
        font-size: .85rem;
    }
}
