* { box-sizing: border-box; }
body { background-color: #f4f7f6; font-family: 'Segoe UI', sans-serif; display: flex; flex-direction: column; align-items: center; min-height: 100vh; margin: 0; padding: 20px; }

#yla-palkki { width: 100%; max-width: 1000px; display: none; justify-content: flex-end; margin-bottom: 10px; }
.editori-kontti { display: none; flex-direction: row; gap: 20px; width: 100%; max-width: 1100px; justify-content: center; }
.valkoinen-laatikko { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.muokkaus-alue { width: 350px; flex-shrink: 0; font-size: 13px; }

input { width: 100%; padding: 8px; margin-bottom: 8px; border: 1px solid #ddd; border-radius: 4px; }
.nappula { padding: 10px 20px; background: #008eff; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; width: 100%; margin-top: 5px; }
.nappula-pieni { padding: 6px; font-size: 11px; flex: 1; cursor: pointer; border: 1px solid #ddd; background: #f8f9fa; border-radius: 4px; }

.kortti { 
    width: 500px; height: 280px; background: white; 
    position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-size: cover; background-position: center;
}

.raahattava { position: absolute; cursor: move; user-select: none; padding: 5px; border: 1px dashed transparent; }
.raahattava:hover { border-color: #008eff; }

.kortti-logo { max-height: 60px; max-width: 180px; pointer-events: none; }
.kortti-kuva { width: 85px; height: 85px; object-fit: cover; border: 2px solid #eee; pointer-events: none; }
.muoto-ympyra { border-radius: 50% !important; }
.muoto-nelio { border-radius: 4px !important; }

.teksti-alue { pointer-events: none; }
.teksti-alue h2 { margin: 0; font-size: 20px; }
.teksti-alue h3 { margin: 2px 0; font-size: 16px; font-weight: normal; }
.yhteystiedot { margin-top: 5px; font-size: 11px; }

.lista-rivi { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #eee; font-size: 14px; }